From 46deb59123c901c52ebcd4a8d0f05e5f050f52ee Mon Sep 17 00:00:00 2001 From: azure-powershell-bot <65331932+azure-powershell-bot@users.noreply.github.com> Date: Tue, 17 May 2022 01:03:13 +0000 Subject: [PATCH 1/2] Move DataMigration to main --- .../check-dependencies.ps1 | 2 +- ...DataMigrationPerformanceDataCollection.ps1 | 64 +++++++++++- ...ster-AzDataMigrationIntegrationRuntime.ps1 | 10 +- .../custom/Helpers/IRRegister.ps1 | 14 +-- ...zDataMigrationPerformanceDataCollection.md | 56 ++++++++++- .../Get-AzDataMigrationSkuRecommendation.md | 4 + .../docs/New-AzDataMigrationToSqlDb.md | 5 +- .../docs/Remove-AzDataMigrationToSqlDb.md | 4 +- ...zDataMigrationPerformanceDataCollection.md | 35 +++++++ .../Get-AzDataMigrationSkuRecommendation.md | 4 + .../examples/New-AzDataMigrationToSqlDb.md | 5 +- .../examples/Remove-AzDataMigrationToSqlDb.md | 4 +- ...DataMigrationPerformanceDataCollection.ps1 | 50 ++-------- .../Get-AzDataMigrationSkuRecommendation.ps1 | 40 -------- .../exports/New-AzDataMigrationToSqlDb.ps1 | 5 +- .../exports/ProxyCmdletDefinitions.ps1 | 99 +++---------------- .../exports/Remove-AzDataMigrationToSqlDb.ps1 | 4 +- .../DataMigration.Autorest/generate-info.json | 8 +- .../generated/api/Models/Any.PowerShell.cs | 2 +- .../generated/api/Models/Any.TypeConverter.cs | 3 +- .../generated/api/Models/Any.json.cs | 8 +- .../AuthenticationKeys.PowerShell.cs | 2 +- .../AuthenticationKeys.TypeConverter.cs | 4 +- .../AuthenticationKeys.json.cs | 8 +- .../AzureBlob.PowerShell.cs | 2 +- .../AzureBlob.TypeConverter.cs | 3 +- .../Api20220330Preview/AzureBlob.json.cs | 8 +- .../BackupConfiguration.PowerShell.cs | 2 +- .../BackupConfiguration.TypeConverter.cs | 4 +- .../BackupConfiguration.json.cs | 8 +- .../CopyProgressDetails.PowerShell.cs | 2 +- .../CopyProgressDetails.TypeConverter.cs | 4 +- .../CopyProgressDetails.json.cs | 8 +- .../DatabaseMigration.PowerShell.cs | 2 +- .../DatabaseMigration.TypeConverter.cs | 3 +- .../Api20220330Preview/DatabaseMigration.cs | 2 +- .../DatabaseMigration.json.cs | 8 +- .../DatabaseMigrationListResult.PowerShell.cs | 2 +- ...tabaseMigrationListResult.TypeConverter.cs | 4 +- .../DatabaseMigrationListResult.json.cs | 8 +- .../DatabaseMigrationProperties.PowerShell.cs | 2 +- ...tabaseMigrationProperties.TypeConverter.cs | 4 +- .../DatabaseMigrationProperties.json.cs | 8 +- ...baseMigrationPropertiesSqlDb.PowerShell.cs | 2 +- ...eMigrationPropertiesSqlDb.TypeConverter.cs | 4 +- .../DatabaseMigrationPropertiesSqlDb.cs | 2 +- .../DatabaseMigrationPropertiesSqlDb.json.cs | 8 +- ...baseMigrationPropertiesSqlMi.PowerShell.cs | 2 +- ...eMigrationPropertiesSqlMi.TypeConverter.cs | 4 +- .../DatabaseMigrationPropertiesSqlMi.cs | 2 +- .../DatabaseMigrationPropertiesSqlMi.json.cs | 8 +- ...baseMigrationPropertiesSqlVM.PowerShell.cs | 2 +- ...eMigrationPropertiesSqlVM.TypeConverter.cs | 4 +- .../DatabaseMigrationPropertiesSqlVM.cs | 2 +- .../DatabaseMigrationPropertiesSqlVM.json.cs | 8 +- .../DatabaseMigrationSqlDb.PowerShell.cs | 2 +- .../DatabaseMigrationSqlDb.TypeConverter.cs | 4 +- .../DatabaseMigrationSqlDb.cs | 2 +- .../DatabaseMigrationSqlDb.json.cs | 8 +- .../DatabaseMigrationSqlMi.PowerShell.cs | 2 +- .../DatabaseMigrationSqlMi.TypeConverter.cs | 4 +- .../DatabaseMigrationSqlMi.cs | 2 +- .../DatabaseMigrationSqlMi.json.cs | 8 +- .../DatabaseMigrationSqlVM.PowerShell.cs | 2 +- .../DatabaseMigrationSqlVM.TypeConverter.cs | 4 +- .../DatabaseMigrationSqlVM.cs | 2 +- .../DatabaseMigrationSqlVM.json.cs | 8 +- .../DeleteNode.PowerShell.cs | 2 +- .../DeleteNode.TypeConverter.cs | 3 +- .../Api20220330Preview/DeleteNode.json.cs | 8 +- .../ErrorInfo.PowerShell.cs | 2 +- .../ErrorInfo.TypeConverter.cs | 3 +- .../Api20220330Preview/ErrorInfo.json.cs | 8 +- ...grationRuntimeMonitoringData.PowerShell.cs | 2 +- ...tionRuntimeMonitoringData.TypeConverter.cs | 4 +- .../IntegrationRuntimeMonitoringData.json.cs | 8 +- .../MigrationOperationInput.PowerShell.cs | 2 +- .../MigrationOperationInput.TypeConverter.cs | 4 +- .../MigrationOperationInput.json.cs | 8 +- .../MigrationStatusDetails.PowerShell.cs | 2 +- .../MigrationStatusDetails.TypeConverter.cs | 4 +- .../MigrationStatusDetails.json.cs | 8 +- .../NodeMonitoringData.PowerShell.cs | 2 +- .../NodeMonitoringData.TypeConverter.cs | 4 +- .../NodeMonitoringData.json.cs | 8 +- ...ringDataAdditionalProperties.PowerShell.cs | 4 +- ...gDataAdditionalProperties.TypeConverter.cs | 4 +- ...MonitoringDataAdditionalProperties.json.cs | 8 +- .../OfflineConfiguration.PowerShell.cs | 2 +- .../OfflineConfiguration.TypeConverter.cs | 4 +- .../OfflineConfiguration.json.cs | 8 +- .../OperationListResult.PowerShell.cs | 2 +- .../OperationListResult.TypeConverter.cs | 4 +- .../OperationListResult.json.cs | 8 +- .../OperationsDefinition.PowerShell.cs | 2 +- .../OperationsDefinition.TypeConverter.cs | 4 +- .../OperationsDefinition.json.cs | 8 +- ...erationsDefinitionProperties.PowerShell.cs | 2 +- ...tionsDefinitionProperties.TypeConverter.cs | 4 +- .../OperationsDefinitionProperties.json.cs | 8 +- .../OperationsDisplayDefinition.PowerShell.cs | 2 +- ...erationsDisplayDefinition.TypeConverter.cs | 4 +- .../OperationsDisplayDefinition.json.cs | 8 +- .../ProxyResource.PowerShell.cs | 2 +- .../ProxyResource.TypeConverter.cs | 3 +- .../Api20220330Preview/ProxyResource.json.cs | 8 +- .../RegenAuthKeys.PowerShell.cs | 2 +- .../RegenAuthKeys.TypeConverter.cs | 3 +- .../Api20220330Preview/RegenAuthKeys.json.cs | 8 +- .../SourceLocation.PowerShell.cs | 2 +- .../SourceLocation.TypeConverter.cs | 3 +- .../Api20220330Preview/SourceLocation.json.cs | 8 +- .../SqlBackupFileInfo.PowerShell.cs | 2 +- .../SqlBackupFileInfo.TypeConverter.cs | 3 +- .../SqlBackupFileInfo.json.cs | 8 +- .../SqlBackupSetInfo.PowerShell.cs | 2 +- .../SqlBackupSetInfo.TypeConverter.cs | 3 +- .../SqlBackupSetInfo.json.cs | 8 +- .../SqlConnectionInformation.PowerShell.cs | 2 +- .../SqlConnectionInformation.TypeConverter.cs | 4 +- .../SqlConnectionInformation.json.cs | 8 +- .../SqlDbMigrationStatusDetails.PowerShell.cs | 2 +- ...lDbMigrationStatusDetails.TypeConverter.cs | 4 +- .../SqlDbMigrationStatusDetails.json.cs | 8 +- .../SqlDbOfflineConfiguration.PowerShell.cs | 2 +- ...SqlDbOfflineConfiguration.TypeConverter.cs | 4 +- .../SqlDbOfflineConfiguration.json.cs | 8 +- .../SqlFileShare.PowerShell.cs | 2 +- .../SqlFileShare.TypeConverter.cs | 3 +- .../Api20220330Preview/SqlFileShare.json.cs | 8 +- .../SqlMigrationListResult.PowerShell.cs | 2 +- .../SqlMigrationListResult.TypeConverter.cs | 4 +- .../SqlMigrationListResult.json.cs | 8 +- .../SqlMigrationService.PowerShell.cs | 2 +- .../SqlMigrationService.TypeConverter.cs | 4 +- .../Api20220330Preview/SqlMigrationService.cs | 2 +- .../SqlMigrationService.json.cs | 8 +- ...qlMigrationServiceProperties.PowerShell.cs | 2 +- ...igrationServiceProperties.TypeConverter.cs | 4 +- .../SqlMigrationServiceProperties.json.cs | 8 +- .../SqlMigrationServiceUpdate.PowerShell.cs | 2 +- ...SqlMigrationServiceUpdate.TypeConverter.cs | 4 +- .../SqlMigrationServiceUpdate.json.cs | 8 +- ...qlMigrationServiceUpdateTags.PowerShell.cs | 2 +- ...igrationServiceUpdateTags.TypeConverter.cs | 4 +- .../SqlMigrationServiceUpdateTags.json.cs | 8 +- .../SystemData.PowerShell.cs | 2 +- .../SystemData.TypeConverter.cs | 3 +- .../Api20220330Preview/SystemData.json.cs | 8 +- .../TargetLocation.PowerShell.cs | 2 +- .../TargetLocation.TypeConverter.cs | 3 +- .../Api20220330Preview/TargetLocation.json.cs | 8 +- .../TrackedResource.PowerShell.cs | 2 +- .../TrackedResource.TypeConverter.cs | 3 +- .../TrackedResource.json.cs | 8 +- .../TrackedResourceTags.PowerShell.cs | 2 +- .../TrackedResourceTags.TypeConverter.cs | 4 +- .../TrackedResourceTags.json.cs | 8 +- .../DataMigrationIdentity.PowerShell.cs | 2 +- .../DataMigrationIdentity.TypeConverter.cs | 4 +- .../api/Models/DataMigrationIdentity.json.cs | 8 +- .../generated/api/Support/CreatedByType.cs | 10 +- .../generated/api/Support/OperationOrigin.cs | 10 +- .../generated/api/Support/ResourceType.cs | 10 +- .../GetAzDataMigrationOperation_List.cs | 4 +- ...etAzDataMigrationSqlServiceAuthKey_List.cs | 4 +- ...SqlServiceIntegrationRuntimeMetric_List.cs | 4 +- ...AzDataMigrationSqlServiceMigration_List.cs | 4 +- .../GetAzDataMigrationSqlService_Get.cs | 4 +- ...zDataMigrationSqlService_GetViaIdentity.cs | 4 +- .../GetAzDataMigrationSqlService_List.cs | 4 +- .../GetAzDataMigrationSqlService_List1.cs | 4 +- .../cmdlets/GetAzDataMigrationToSqlDb_Get.cs | 4 +- ...etAzDataMigrationToSqlDb_GetViaIdentity.cs | 4 +- ...AzDataMigrationToSqlManagedInstance_Get.cs | 4 +- ...tionToSqlManagedInstance_GetViaIdentity.cs | 4 +- .../cmdlets/GetAzDataMigrationToSqlVM_Get.cs | 4 +- ...etAzDataMigrationToSqlVM_GetViaIdentity.cs | 4 +- ...verToSqlManagedInstance_CutoverExpanded.cs | 23 ++--- ...MigrationCutoverToSqlVM_CutoverExpanded.cs | 23 ++--- ...ionSqlServiceAuthKey_RegenerateExpanded.cs | 25 +++-- ...zDataMigrationSqlService_CreateExpanded.cs | 25 +++-- ...ewAzDataMigrationToSqlDb_CreateExpanded.cs | 61 ++++++------ ...tionToSqlManagedInstance_CreateExpanded.cs | 67 ++++++------- ...ewAzDataMigrationToSqlVM_CreateExpanded.cs | 67 ++++++------- ...aMigrationSqlServiceNode_DeleteExpanded.cs | 23 ++--- ...qlServiceNode_DeleteViaIdentityExpanded.cs | 25 +++-- .../RemoveAzDataMigrationSqlService_Delete.cs | 4 +- ...taMigrationSqlService_DeleteViaIdentity.cs | 4 +- .../RemoveAzDataMigrationToSqlDb_Delete.cs | 4 +- ...zDataMigrationToSqlDb_DeleteViaIdentity.cs | 4 +- ...opAzDataMigrationToSqlDb_CancelExpanded.cs | 23 ++--- ...tionToSqlManagedInstance_CancelExpanded.cs | 23 ++--- ...opAzDataMigrationToSqlVM_CancelExpanded.cs | 23 ++--- ...zDataMigrationSqlService_UpdateExpanded.cs | 23 ++--- ...ionSqlService_UpdateViaIdentityExpanded.cs | 25 +++-- .../DataMigration/Az.DataMigration.psd1 | 7 +- ...zDataMigrationPerformanceDataCollection.md | 56 ++++++++++- .../Get-AzDataMigrationSkuRecommendation.md | 4 + .../help/New-AzDataMigrationToSqlDb.md | 4 +- .../help/Remove-AzDataMigrationToSqlDb.md | 4 +- 201 files changed, 896 insertions(+), 784 deletions(-) diff --git a/src/DataMigration/DataMigration.Autorest/check-dependencies.ps1 b/src/DataMigration/DataMigration.Autorest/check-dependencies.ps1 index 1200ec1e6fc4..c29591c7bfe1 100644 --- a/src/DataMigration/DataMigration.Autorest/check-dependencies.ps1 +++ b/src/DataMigration/DataMigration.Autorest/check-dependencies.ps1 @@ -25,7 +25,7 @@ if(-not $Isolated) { 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)) { + if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0) -or ($requiredVersion -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -eq [System.Version]$requiredVersion } | 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) { diff --git a/src/DataMigration/DataMigration.Autorest/custom/Cmdlets/Get-AzDataMigrationPerformanceDataCollection.ps1 b/src/DataMigration/DataMigration.Autorest/custom/Cmdlets/Get-AzDataMigrationPerformanceDataCollection.ps1 index f1b67bb4468b..055bee082250 100644 --- a/src/DataMigration/DataMigration.Autorest/custom/Cmdlets/Get-AzDataMigrationPerformanceDataCollection.ps1 +++ b/src/DataMigration/DataMigration.Autorest/custom/Cmdlets/Get-AzDataMigrationPerformanceDataCollection.ps1 @@ -50,6 +50,10 @@ function Get-AzDataMigrationPerformanceDataCollection [System.String] ${ConfigFilePath}, + [Parameter(HelpMessage = 'Duration of time in seconds for which you want to collect performance data')] + [System.Int64] + ${Time}, + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] [System.Management.Automation.SwitchParameter] @@ -122,13 +126,65 @@ function Get-AzDataMigrationPerformanceDataCollection } # Running PerfDataCollection - & $ExePath PerfDataCollection @splat - + If($PSBoundParameters.ContainsKey("Time")) + { + #this is used to create a json file in case the perf collection is to be time based + $jsonHash = [Ordered]@{ + 'action' = "PerfDataCollection" + 'sqlConnectionStrings'= $SqlConnectionStrings + 'outputfolder'= $OutputFolder + 'perfQueryIntervalInSec'= $PerfQueryInterval + 'staticQueryIntervalInSec'= $StaticQueryInterval + 'numberOfIterations'= $NumberOfIterations + } + # removing empty key,vallue pairs from $jsonHash + if($OutputFolder -eq "") + { + $jsonHash.Remove('outputfolder') + } + if($PerfQueryInterval -eq "") + { + $jsonHash.Remove('perfQueryIntervalInSec') + } + if($StaticQueryInterval -eq "") + { + $jsonHash.Remove('staticQueryIntervalInSec') + } + if($NumberOfIterations -eq "") + { + $jsonHash.Remove('numberOfIterations') + } + + $saveAt = Join-Path -Path $DefaultOutputFolder -ChildPath Downloads; + $saveas = Join-Path -Path $saveAt -ChildPath "tempConfigFileForPerf.json" + $jsonHash | ConvertTo-Json -depth 100 | Set-Content $saveas + $pro = Start-Process -FilePath $ExePath -ArgumentList "--configFile ""$saveas""" -PassThru -NoNewWindow + Start-Sleep -Seconds $Time + $pro | stop-process + Remove-Item -Path $saveas + } + else + { + & $ExePath PerfDataCollection @splat + } } else { - Test-ConfigFile $PSBoundParameters.ConfigFilePath "PerfDataCollection" - & $ExePath --configFile $PSBoundParameters.ConfigFilePath + if($PSBoundParameters.ContainsKey("Time")) + { + $paramPath = $PSBoundParameters.ConfigFilePath + Test-ConfigFile $PSBoundParameters.ConfigFilePath "PerfDataCollection" + $pro = Start-Process -FilePath $ExePath -ArgumentList "--configFile ""$paramPath""" -PassThru -NoNewWindow + Start-Sleep -Seconds $Time + $pro | stop-process + + } + else{ + Test-ConfigFile $PSBoundParameters.ConfigFilePath "PerfDataCollection" + & $ExePath --configFile $PSBoundParameters.ConfigFilePath + } + + } $LogFilePath = Join-Path -Path $DefaultOutputFolder -ChildPath Logs; diff --git a/src/DataMigration/DataMigration.Autorest/custom/Cmdlets/Register-AzDataMigrationIntegrationRuntime.ps1 b/src/DataMigration/DataMigration.Autorest/custom/Cmdlets/Register-AzDataMigrationIntegrationRuntime.ps1 index c00336882e13..bccf26bc2fbc 100644 --- a/src/DataMigration/DataMigration.Autorest/custom/Cmdlets/Register-AzDataMigrationIntegrationRuntime.ps1 +++ b/src/DataMigration/DataMigration.Autorest/custom/Cmdlets/Register-AzDataMigrationIntegrationRuntime.ps1 @@ -50,6 +50,7 @@ function Register-AzDataMigrationIntegrationRuntime # Entry point $OSPlatform = Get-OSName + # Validate if OS is windows, as currently SHIR is only supported in Windows if(-not $OSPlatform.Contains("Windows")) { throw "This command cannot be run in non-windows environment" @@ -63,9 +64,10 @@ function Register-AzDataMigrationIntegrationRuntime throw "Failed: You do not have Administrator rights to run this command!`nPlease re-run this command as an Administrator!" Break } - + + # Validate if given authKey is not empty $null = Validate-Input $PSBoundParameters.AuthKey - + # If SHIR MSI path is provided Perform installation of SHIR if($PSBoundParameters.ContainsKey("IntegrationRuntimePath")) { $path = $PSBoundParameters.IntegrationRuntimePath @@ -87,6 +89,7 @@ function Register-AzDataMigrationIntegrationRuntime } + # Check if SHIR is Installed or not if(-Not (Check-WhetherGatewayInstalled("Microsoft Integration Runtime"))) { throw "Failed: No installed Integration Runtime found!" @@ -94,8 +97,9 @@ function Register-AzDataMigrationIntegrationRuntime if($PSCmdlet.ShouldProcess('Microsoft Integration Runtime','Register AuthKey')) { + # Register authkeys on SHIR $result = Register-IR $PSBoundParameters.AuthKey - + # Returns True, if command ran successfully and -PassThru parameter is specified if($PSBoundParameters.ContainsKey("PassThru")) { return $result; diff --git a/src/DataMigration/DataMigration.Autorest/custom/Helpers/IRRegister.ps1 b/src/DataMigration/DataMigration.Autorest/custom/Helpers/IRRegister.ps1 index fc12349c2d84..2b9116f2e220 100644 --- a/src/DataMigration/DataMigration.Autorest/custom/Helpers/IRRegister.ps1 +++ b/src/DataMigration/DataMigration.Autorest/custom/Helpers/IRRegister.ps1 @@ -29,13 +29,13 @@ function Install-Gateway { ) process { - + # Check if SHIR is installed or not. If yes, don't install again if(Check-WhetherGatewayInstalled("Microsoft Integration Runtime")) { Write-Host "Microsoft Integration Runtime is already installed." return } - + # If not installed start installation Write-Host "Start Gateway installation" Start-Process -FilePath "msiexec.exe" -ArgumentList "/i `"$path`" /quiet /passive" -Wait @@ -55,10 +55,12 @@ function Check-WhetherGatewayInstalled { ) process{ - + + # Check the uninstall software path in Registry to see if SHIR is installed or not. $installedSoftwares = Get-ChildItem "hklm:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" foreach ($installedSoftware in $installedSoftwares) - { + { + # DisplayName contains the name of the software $displayName = $installedSoftware.GetValue("DisplayName") if($DisplayName -eq "$name Preview" -or $DisplayName -eq "$name") { @@ -76,7 +78,7 @@ function Get-CmdFilePath { param() process{ - + # Use Registry to get the installed path of SHIR $filePath = Get-ItemPropertyValue "hklm:\Software\Microsoft\DataTransfer\DataManagementGateway\ConfigurationManager" "DiacmdPath" if ([string]::IsNullOrEmpty($filePath)) { @@ -112,7 +114,7 @@ function Register-IR { # Open Intranet Port (Necessary for Re-Register. Service has to be running for Re-Register to work.) Start-Process $dmgCmdPath "-EnableRemoteAccess 8060" -Wait - # Register/ Re-register IR + # Register/ Re-register IR (6>&1 is used to capture the output of script) $result = & $regIRScriptPath -gatewayKey $key 6>&1 if($result.ToString().Contains("successful")) { diff --git a/src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationPerformanceDataCollection.md b/src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationPerformanceDataCollection.md index 851744a406b6..2a2dbcbc7dd1 100644 --- a/src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationPerformanceDataCollection.md +++ b/src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationPerformanceDataCollection.md @@ -15,13 +15,14 @@ Collect performance data for given SQL Server instance(s) ### CommandLine (Default) ``` Get-AzDataMigrationPerformanceDataCollection -SqlConnectionStrings [-NumberOfIterations ] - [-OutputFolder ] [-PerfQueryInterval ] [-StaticQueryInterval ] [-PassThru] - [] + [-OutputFolder ] [-PerfQueryInterval ] [-StaticQueryInterval ] [-Time ] + [-PassThru] [] ``` ### ConfigFile ``` -Get-AzDataMigrationPerformanceDataCollection -ConfigFilePath [-PassThru] [] +Get-AzDataMigrationPerformanceDataCollection -ConfigFilePath [-Time ] [-PassThru] + [] ``` ## DESCRIPTION @@ -32,7 +33,9 @@ Collect performance data for given SQL Server instance(s) ### Example 1: Run Performance Data Collection on given SQL Server using connection string ```powershell PS C:\> Get-AzDataMigrationPerformanceDataCollection -SqlConnectionStrings "Data Source=AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM;Initial Catalog=master;Integrated Security=False;User Id=dummyUserId;Password=dummyPassword" -NumberOfIterations 2 +``` +```output Connecting to the SQL server(s)... Starting data collection... Press the Enter key to stop the data collection at any time... @@ -60,7 +63,9 @@ This command runs Performance Data Collection on given SQL Server using the conn ### Example 2: Run Performance Data Collection on given SQL Server using assessment config file ```powershell PS C:\> Get-AzDataMigrationAssessment -ConfigFilePath "C:\Users\user\document\config.json" +``` +```output Connecting to the SQL server(s)... Starting data collection... Press the Enter key to stop the data collection at any time... @@ -85,6 +90,36 @@ Event and Error Logs Folder Path: C:\Users\vmanhas\AppData\Local\Microsoft\SqlAs This command runs Performance Data Collection on given SQL Server using the config file. +### Example 3: Run Performance Data Collection on given SQL Server that stops after a specified time +```powershell +PS C:\> Get-AzDataMigrationAssessment -ConfigFilePath "C:\Users\user\document\config.json" -Time 120 +``` + +```output +Connecting to the SQL server(s)... +Starting data collection... +Press the Enter key to stop the data collection at any time... + +Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. +Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. +Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. +UTC 2022-02-03 07:04:50, Server AALAB03-2K8: + Performance data query iteration: 1 of 2, collected 349 data points. +UTC 2022-02-03 07:04:52, Server AALAB03-2K8: + Collected static configuration data, and saved to C:\Users\vmanhas\AppData\Local\Microsoft\SqlAssessment. +Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. +UTC 2022-02-03 07:05:44, Server AALAB03-2K8: + Performance data query iteration: 2 of 2, collected 347 data points. +UTC 2022-02-03 07:07:13, Server AALAB03-2K8: + Aggregated 696 raw data points to 263 performance counters, and saved to C:\Users\vmanhas\AppData\Local\Microsoft\SqlAssessment. +UTC 2022-02-03 07:07:16, Server AALAB03-2K8: + Performance data query iteration: 1 of 2, collected 349 data points. + +Event and Error Logs Folder Path: C:\Users\vmanhas\AppData\Local\Microsoft\SqlAssessment\Logs +``` + +This command runs Performance Data Collection on given SQL Server that stops after a specified time. + ## PARAMETERS ### -ConfigFilePath @@ -196,6 +231,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Time +Duration of time in seconds for which you want to collect performance data + +```yaml +Type: System.Int64 +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). diff --git a/src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationSkuRecommendation.md b/src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationSkuRecommendation.md index 36c2f8968c76..f9ac5a051480 100644 --- a/src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationSkuRecommendation.md +++ b/src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationSkuRecommendation.md @@ -33,7 +33,9 @@ Gives SKU recommendations for Azure SQL offerings ### Example 1: Run SKU Recommendation on given SQL Server using connection string ```powershell PS C:\> Get-AzDataMigrationSkuRecommendation -DisplayResult +``` +```output Starting SKU recommendation... Performing aggregation for instance AALAB03-2K8... @@ -60,7 +62,9 @@ This command runs Run SKU Recommendation on given SQL Server using the connectio ### Example 2: Run Run SKU Recommendation on given SQL Server using assessment config file ```powershell PS C:\> Get-AzDataMigrationSkuRecommendation -ConfigFilePath "C:\Users\user\document\config.json" +``` +```output Starting SKU recommendation... Performing aggregation for instance AALAB03-2K8... diff --git a/src/DataMigration/DataMigration.Autorest/docs/New-AzDataMigrationToSqlDb.md b/src/DataMigration/DataMigration.Autorest/docs/New-AzDataMigrationToSqlDb.md index 78ae7e6ee276..57e7a15f94bb 100644 --- a/src/DataMigration/DataMigration.Autorest/docs/New-AzDataMigrationToSqlDb.md +++ b/src/DataMigration/DataMigration.Autorest/docs/New-AzDataMigrationToSqlDb.md @@ -32,7 +32,10 @@ Create a new database migration to a given SQL Db. ### Example 1: Start a Database Migration from the on-premise Source Sql Server to target Sql Db ```powershell -New-AzDataMigrationToSqlDb -ResourceGroupName myRG -SqlDbInstanceName "mysqldb" -MigrationService "/subscriptions/1111-2222-3333-4444/resourceGroups/myRG/providers/Microsoft.DataMigration/SqlMigrationServices/myDMS" -TargetSqlConnectionAuthentication "SqlAuthentication" -TargetSqlConnectionDataSource "mydb.windows.net" -TargetSqlConnectionPassword "pass" -TargetSqlConnectionUserName "user" -SourceSqlConnectionAuthentication "SqlAuthentication" -SourceSqlConnectionDataSource "xyz.MICROSOFT.COM" -SourceSqlConnectionUserName "user1" -SourceSqlConnectionPassword "password" -SourceDatabaseName "sourcedb" -TargetDbName "mydb1" -Scope "/subscriptions/1111-2222-3333-4444/resourceGroups/myRG/providers/Microsoft.Sql/servers/mysqldb" +$sourcePassword = ConvertTo-SecureString "pass123" -AsPlainText -Force +$targetPassword = ConvertTo-SecureString "pass123" -AsPlainText -Force +New-AzDataMigrationToSqlDb -ResourceGroupName myRG -SqlDbInstanceName "mysqldb" -MigrationService "/subscriptions/1111-2222-3333-4444/resourceGroups/myRG/providers/Microsoft.DataMigration/SqlMigrationServices/myDMS" -TargetSqlConnectionAuthentication "SqlAuthentication" -TargetSqlConnectionDataSource "mydb.windows.net" -TargetSqlConnectionPassword $targetPassword -TargetSqlConnectionUserName "user" -SourceSqlConnectionAuthentication "SqlAuthentication" -SourceSqlConnectionDataSource "xyz.MICROSOFT.COM" -SourceSqlConnectionUserName "user1" -SourceSqlConnectionPassword $sourcePassword -SourceDatabaseName "sourcedb" -TargetDbName "mydb1" -Scope "/subscriptions/1111-2222-3333-4444/resourceGroups/myRG/providers/Microsoft.Sql/servers/mysqldb" + ``` ```output diff --git a/src/DataMigration/DataMigration.Autorest/docs/Remove-AzDataMigrationToSqlDb.md b/src/DataMigration/DataMigration.Autorest/docs/Remove-AzDataMigrationToSqlDb.md index ab711c50df3b..6123693c4042 100644 --- a/src/DataMigration/DataMigration.Autorest/docs/Remove-AzDataMigrationToSqlDb.md +++ b/src/DataMigration/DataMigration.Autorest/docs/Remove-AzDataMigrationToSqlDb.md @@ -32,14 +32,14 @@ Remove the specified database migration for a given SQL Db. ### Example 1: Delete the SQL DB Database Migration resource. ```powershell -Remove-AzDataMigrationToSqlDb -ResourceGroupName tsum38RG -SqlDbInstanceName dmstestsqldb -TargetDbName at_sqldbtrgtps1 +Remove-AzDataMigrationToSqlDb -ResourceGroupName myRG -SqlDbInstanceName sqldb -TargetDbName myDB ``` Delete the SQL DB Database Migration resource. ### Example 2: Delete the SQL DB Database Migration resource even if it is in progress ```powershell -Remove-AzDataMigrationToSqlDb -ResourceGroupName tsum38RG -SqlDbInstanceName dmstestsqldb -TargetDbName at_sqldbtrgtps1 -Force +Remove-AzDataMigrationToSqlDb -ResourceGroupName myRG -SqlDbInstanceName sqldb -TargetDbName myDB -Force ``` Forcibly deletes an ongoing Migration to SQL DB by adding the optional "Force" parameter diff --git a/src/DataMigration/DataMigration.Autorest/examples/Get-AzDataMigrationPerformanceDataCollection.md b/src/DataMigration/DataMigration.Autorest/examples/Get-AzDataMigrationPerformanceDataCollection.md index 5398f5bfb91a..258a4a972eea 100644 --- a/src/DataMigration/DataMigration.Autorest/examples/Get-AzDataMigrationPerformanceDataCollection.md +++ b/src/DataMigration/DataMigration.Autorest/examples/Get-AzDataMigrationPerformanceDataCollection.md @@ -1,7 +1,9 @@ ### Example 1: Run Performance Data Collection on given SQL Server using connection string ```powershell PS C:\> Get-AzDataMigrationPerformanceDataCollection -SqlConnectionStrings "Data Source=AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM;Initial Catalog=master;Integrated Security=False;User Id=dummyUserId;Password=dummyPassword" -NumberOfIterations 2 +``` +```output Connecting to the SQL server(s)... Starting data collection... Press the Enter key to stop the data collection at any time... @@ -30,7 +32,9 @@ This command runs Performance Data Collection on given SQL Server using the conn ### Example 2: Run Performance Data Collection on given SQL Server using assessment config file ```powershell PS C:\> Get-AzDataMigrationAssessment -ConfigFilePath "C:\Users\user\document\config.json" +``` +```output Connecting to the SQL server(s)... Starting data collection... Press the Enter key to stop the data collection at any time... @@ -56,4 +60,35 @@ Event and Error Logs Folder Path: C:\Users\vmanhas\AppData\Local\Microsoft\SqlAs This command runs Performance Data Collection on given SQL Server using the config file. +### Example 3: Run Performance Data Collection on given SQL Server that stops after a specified time +```powershell +PS C:\> Get-AzDataMigrationAssessment -ConfigFilePath "C:\Users\user\document\config.json" -Time 120 +``` + +```output +Connecting to the SQL server(s)... +Starting data collection... +Press the Enter key to stop the data collection at any time... + +Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. +Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. +Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. +UTC 2022-02-03 07:04:50, Server AALAB03-2K8: + Performance data query iteration: 1 of 2, collected 349 data points. +UTC 2022-02-03 07:04:52, Server AALAB03-2K8: + Collected static configuration data, and saved to C:\Users\vmanhas\AppData\Local\Microsoft\SqlAssessment. +Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. +UTC 2022-02-03 07:05:44, Server AALAB03-2K8: + Performance data query iteration: 2 of 2, collected 347 data points. +UTC 2022-02-03 07:07:13, Server AALAB03-2K8: + Aggregated 696 raw data points to 263 performance counters, and saved to C:\Users\vmanhas\AppData\Local\Microsoft\SqlAssessment. +UTC 2022-02-03 07:07:16, Server AALAB03-2K8: + Performance data query iteration: 1 of 2, collected 349 data points. + +Event and Error Logs Folder Path: C:\Users\vmanhas\AppData\Local\Microsoft\SqlAssessment\Logs +``` + +This command runs Performance Data Collection on given SQL Server that stops after a specified time. + + diff --git a/src/DataMigration/DataMigration.Autorest/examples/Get-AzDataMigrationSkuRecommendation.md b/src/DataMigration/DataMigration.Autorest/examples/Get-AzDataMigrationSkuRecommendation.md index 616400e3842e..01766cd87893 100644 --- a/src/DataMigration/DataMigration.Autorest/examples/Get-AzDataMigrationSkuRecommendation.md +++ b/src/DataMigration/DataMigration.Autorest/examples/Get-AzDataMigrationSkuRecommendation.md @@ -1,7 +1,9 @@ ### Example 1: Run SKU Recommendation on given SQL Server using connection string ```powershell PS C:\> Get-AzDataMigrationSkuRecommendation -DisplayResult +``` +```output Starting SKU recommendation... Performing aggregation for instance AALAB03-2K8... @@ -29,7 +31,9 @@ This command runs Run SKU Recommendation on given SQL Server using the connectio ### Example 2: Run Run SKU Recommendation on given SQL Server using assessment config file ```powershell PS C:\> Get-AzDataMigrationSkuRecommendation -ConfigFilePath "C:\Users\user\document\config.json" +``` +```output Starting SKU recommendation... Performing aggregation for instance AALAB03-2K8... diff --git a/src/DataMigration/DataMigration.Autorest/examples/New-AzDataMigrationToSqlDb.md b/src/DataMigration/DataMigration.Autorest/examples/New-AzDataMigrationToSqlDb.md index 58a704961470..54e2277e2730 100644 --- a/src/DataMigration/DataMigration.Autorest/examples/New-AzDataMigrationToSqlDb.md +++ b/src/DataMigration/DataMigration.Autorest/examples/New-AzDataMigrationToSqlDb.md @@ -1,6 +1,9 @@ ### Example 1: Start a Database Migration from the on-premise Source Sql Server to target Sql Db ```powershell -New-AzDataMigrationToSqlDb -ResourceGroupName myRG -SqlDbInstanceName "mysqldb" -MigrationService "/subscriptions/1111-2222-3333-4444/resourceGroups/myRG/providers/Microsoft.DataMigration/SqlMigrationServices/myDMS" -TargetSqlConnectionAuthentication "SqlAuthentication" -TargetSqlConnectionDataSource "mydb.windows.net" -TargetSqlConnectionPassword "pass" -TargetSqlConnectionUserName "user" -SourceSqlConnectionAuthentication "SqlAuthentication" -SourceSqlConnectionDataSource "xyz.MICROSOFT.COM" -SourceSqlConnectionUserName "user1" -SourceSqlConnectionPassword "password" -SourceDatabaseName "sourcedb" -TargetDbName "mydb1" -Scope "/subscriptions/1111-2222-3333-4444/resourceGroups/myRG/providers/Microsoft.Sql/servers/mysqldb" +$sourcePassword = ConvertTo-SecureString "pass123" -AsPlainText -Force +$targetPassword = ConvertTo-SecureString "pass123" -AsPlainText -Force +New-AzDataMigrationToSqlDb -ResourceGroupName myRG -SqlDbInstanceName "mysqldb" -MigrationService "/subscriptions/1111-2222-3333-4444/resourceGroups/myRG/providers/Microsoft.DataMigration/SqlMigrationServices/myDMS" -TargetSqlConnectionAuthentication "SqlAuthentication" -TargetSqlConnectionDataSource "mydb.windows.net" -TargetSqlConnectionPassword $targetPassword -TargetSqlConnectionUserName "user" -SourceSqlConnectionAuthentication "SqlAuthentication" -SourceSqlConnectionDataSource "xyz.MICROSOFT.COM" -SourceSqlConnectionUserName "user1" -SourceSqlConnectionPassword $sourcePassword -SourceDatabaseName "sourcedb" -TargetDbName "mydb1" -Scope "/subscriptions/1111-2222-3333-4444/resourceGroups/myRG/providers/Microsoft.Sql/servers/mysqldb" + ``` ```output diff --git a/src/DataMigration/DataMigration.Autorest/examples/Remove-AzDataMigrationToSqlDb.md b/src/DataMigration/DataMigration.Autorest/examples/Remove-AzDataMigrationToSqlDb.md index 0616d1fa3b17..c6cc88c48b58 100644 --- a/src/DataMigration/DataMigration.Autorest/examples/Remove-AzDataMigrationToSqlDb.md +++ b/src/DataMigration/DataMigration.Autorest/examples/Remove-AzDataMigrationToSqlDb.md @@ -1,13 +1,13 @@ ### Example 1: Delete the SQL DB Database Migration resource. ```powershell -Remove-AzDataMigrationToSqlDb -ResourceGroupName tsum38RG -SqlDbInstanceName dmstestsqldb -TargetDbName at_sqldbtrgtps1 +Remove-AzDataMigrationToSqlDb -ResourceGroupName myRG -SqlDbInstanceName sqldb -TargetDbName myDB ``` Delete the SQL DB Database Migration resource. ### Example 2: Delete the SQL DB Database Migration resource even if it is in progress ```powershell -Remove-AzDataMigrationToSqlDb -ResourceGroupName tsum38RG -SqlDbInstanceName dmstestsqldb -TargetDbName at_sqldbtrgtps1 -Force +Remove-AzDataMigrationToSqlDb -ResourceGroupName myRG -SqlDbInstanceName sqldb -TargetDbName myDB -Force ``` Forcibly deletes an ongoing Migration to SQL DB by adding the optional "Force" parameter diff --git a/src/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationPerformanceDataCollection.ps1 b/src/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationPerformanceDataCollection.ps1 index 4eb463f6f0b8..1cf55f5f97d8 100644 --- a/src/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationPerformanceDataCollection.ps1 +++ b/src/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationPerformanceDataCollection.ps1 @@ -21,50 +21,10 @@ Collect performance data for given SQL Server instance(s) Collect performance data for given SQL Server instance(s) .Example PS C:\> Get-AzDataMigrationPerformanceDataCollection -SqlConnectionStrings "Data Source=AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM;Initial Catalog=master;Integrated Security=False;User Id=dummyUserId;Password=dummyPassword" -NumberOfIterations 2 - -Connecting to the SQL server(s)... -Starting data collection... -Press the Enter key to stop the data collection at any time... - -Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. -Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. -Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. -UTC 2022-02-03 07:04:50, Server AALAB03-2K8: - Performance data query iteration: 1 of 2, collected 349 data points. -UTC 2022-02-03 07:04:52, Server AALAB03-2K8: - Collected static configuration data, and saved to C:\Users\vmanhas\AppData\Local\Microsoft\SqlAssessment. -Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. -UTC 2022-02-03 07:05:44, Server AALAB03-2K8: - Performance data query iteration: 2 of 2, collected 347 data points. -UTC 2022-02-03 07:07:13, Server AALAB03-2K8: - Aggregated 696 raw data points to 263 performance counters, and saved to C:\Users\vmanhas\AppData\Local\Microsoft\SqlAssessment. -UTC 2022-02-03 07:07:16, Server AALAB03-2K8: - Performance data query iteration: 1 of 2, collected 349 data points. - -Event and Error Logs Folder Path: C:\Users\vmanhas\AppData\Local\Microsoft\SqlAssessment\Logs .Example PS C:\> Get-AzDataMigrationAssessment -ConfigFilePath "C:\Users\user\document\config.json" - -Connecting to the SQL server(s)... -Starting data collection... -Press the Enter key to stop the data collection at any time... - -Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. -Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. -Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. -UTC 2022-02-03 07:04:50, Server AALAB03-2K8: - Performance data query iteration: 1 of 2, collected 349 data points. -UTC 2022-02-03 07:04:52, Server AALAB03-2K8: - Collected static configuration data, and saved to C:\Users\vmanhas\AppData\Local\Microsoft\SqlAssessment. -Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. -UTC 2022-02-03 07:05:44, Server AALAB03-2K8: - Performance data query iteration: 2 of 2, collected 347 data points. -UTC 2022-02-03 07:07:13, Server AALAB03-2K8: - Aggregated 696 raw data points to 263 performance counters, and saved to C:\Users\vmanhas\AppData\Local\Microsoft\SqlAssessment. -UTC 2022-02-03 07:07:16, Server AALAB03-2K8: - Performance data query iteration: 1 of 2, collected 349 data points. - -Event and Error Logs Folder Path: C:\Users\vmanhas\AppData\Local\Microsoft\SqlAssessment\Logs +.Example +PS C:\> Get-AzDataMigrationAssessment -ConfigFilePath "C:\Users\user\document\config.json" -Time 120 .Outputs System.Boolean @@ -109,6 +69,12 @@ param( # (Default: 20, Minimum: 2) ${NumberOfIterations}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Body')] + [System.Int64] + # Duration of time in seconds for which you want to collect performance data + ${Time}, + [Parameter(ParameterSetName='ConfigFile', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Body')] [System.String] diff --git a/src/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSkuRecommendation.ps1 b/src/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSkuRecommendation.ps1 index 1d175ee6c84a..e8f60db0aaed 100644 --- a/src/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSkuRecommendation.ps1 +++ b/src/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSkuRecommendation.ps1 @@ -21,49 +21,9 @@ Gives SKU recommendations for Azure SQL offerings Gives SKU recommendations for Azure SQL offerings .Example PS C:\> Get-AzDataMigrationSkuRecommendation -DisplayResult - -Starting SKU recommendation... - -Performing aggregation for instance AALAB03-2K8... -Aggregation complete. Calculating SKU recommendations... -Instance name: AALAB03-2K8 -SKU recommendation: Azure SQL Managed Instance: -Compute: Gen5 - GeneralPurpose - 4 cores -Storage: 64 GB -Recommendation reasons: - According to the performance data collected, we estimate that your SQL server instance has a requirement for 0.16 vCores of CPU. For greater flexibility, based on your scaling factor of 100.00%, we are making a recommendation based on 0.16 vCores. Based on all the other factors, including memory, storage, and IO, this is the smallest compute sizing that will satisfy all of your needs. - This SQL Server instance requires 0.44 GB of memory, which is within this SKU's limit of 20.40 GB. - This SQL Server instance requires 32.37 GB of storage for data files. We recommend provisioning 64 GB of storage, which is the closest valid amount that can be provisioned that meets your requirement. - This SQL Server instance requires 0.00 MB/second of combined read/write IO throughput. This is a relatively idle instance, so IO latency is not considered. - Assuming the database uses the Full Recovery Model, this SQL Server instance requires 1 IOPS for data and log files. - This is the most cost-efficient offering among all the performance eligible SKUs. - - -Finishing SKU recommendations... -Event and Error Logs Folder Path: C:\Users\vmanhas\AppData\Local\Microsoft\SqlAssessment\Logs .Example PS C:\> Get-AzDataMigrationSkuRecommendation -ConfigFilePath "C:\Users\user\document\config.json" -Starting SKU recommendation... - -Performing aggregation for instance AALAB03-2K8... -Aggregation complete. Calculating SKU recommendations... -Instance name: AALAB03-2K8 -SKU recommendation: Azure SQL Managed Instance: -Compute: Gen5 - GeneralPurpose - 4 cores -Storage: 64 GB -Recommendation reasons: - According to the performance data collected, we estimate that your SQL server instance has a requirement for 0.16 vCores of CPU. For greater flexibility, based on your scaling factor of 100.00%, we are making a recommendation based on 0.16 vCores. Based on all the other factors, including memory, storage, and IO, this is the smallest compute sizing that will satisfy all of your needs. - This SQL Server instance requires 0.44 GB of memory, which is within this SKU's limit of 20.40 GB. - This SQL Server instance requires 32.37 GB of storage for data files. We recommend provisioning 64 GB of storage, which is the closest valid amount that can be provisioned that meets your requirement. - This SQL Server instance requires 0.00 MB/second of combined read/write IO throughput. This is a relatively idle instance, so IO latency is not considered. - Assuming the database uses the Full Recovery Model, this SQL Server instance requires 1 IOPS for data and log files. - This is the most cost-efficient offering among all the performance eligible SKUs. - - -Finishing SKU recommendations... -Event and Error Logs Folder Path: C:\Users\vmanhas\AppData\Local\Microsoft\SqlAssessment\Logs - .Outputs System.Boolean .Link diff --git a/src/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlDb.ps1 b/src/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlDb.ps1 index 1f3a1ddd77a0..5fe3dd93feb3 100644 --- a/src/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlDb.ps1 +++ b/src/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlDb.ps1 @@ -20,7 +20,10 @@ Create a new database migration to a given SQL Db. .Description Create a new database migration to a given SQL Db. .Example -New-AzDataMigrationToSqlDb -ResourceGroupName myRG -SqlDbInstanceName "mysqldb" -MigrationService "/subscriptions/1111-2222-3333-4444/resourceGroups/myRG/providers/Microsoft.DataMigration/SqlMigrationServices/myDMS" -TargetSqlConnectionAuthentication "SqlAuthentication" -TargetSqlConnectionDataSource "mydb.windows.net" -TargetSqlConnectionPassword "pass" -TargetSqlConnectionUserName "user" -SourceSqlConnectionAuthentication "SqlAuthentication" -SourceSqlConnectionDataSource "xyz.MICROSOFT.COM" -SourceSqlConnectionUserName "user1" -SourceSqlConnectionPassword "password" -SourceDatabaseName "sourcedb" -TargetDbName "mydb1" -Scope "/subscriptions/1111-2222-3333-4444/resourceGroups/myRG/providers/Microsoft.Sql/servers/mysqldb" +$sourcePassword = ConvertTo-SecureString "pass123" -AsPlainText -Force +$targetPassword = ConvertTo-SecureString "pass123" -AsPlainText -Force +New-AzDataMigrationToSqlDb -ResourceGroupName myRG -SqlDbInstanceName "mysqldb" -MigrationService "/subscriptions/1111-2222-3333-4444/resourceGroups/myRG/providers/Microsoft.DataMigration/SqlMigrationServices/myDMS" -TargetSqlConnectionAuthentication "SqlAuthentication" -TargetSqlConnectionDataSource "mydb.windows.net" -TargetSqlConnectionPassword $targetPassword -TargetSqlConnectionUserName "user" -SourceSqlConnectionAuthentication "SqlAuthentication" -SourceSqlConnectionDataSource "xyz.MICROSOFT.COM" -SourceSqlConnectionUserName "user1" -SourceSqlConnectionPassword $sourcePassword -SourceDatabaseName "sourcedb" -TargetDbName "mydb1" -Scope "/subscriptions/1111-2222-3333-4444/resourceGroups/myRG/providers/Microsoft.Sql/servers/mysqldb" + .Example $sourcePassword = ConvertTo-SecureString "pass123" -AsPlainText -Force $targetPassword = ConvertTo-SecureString "pass123" -AsPlainText -Force diff --git a/src/DataMigration/DataMigration.Autorest/exports/ProxyCmdletDefinitions.ps1 b/src/DataMigration/DataMigration.Autorest/exports/ProxyCmdletDefinitions.ps1 index c16339656751..f34c66328a7c 100644 --- a/src/DataMigration/DataMigration.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/src/DataMigration/DataMigration.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -2142,7 +2142,10 @@ Create a new database migration to a given SQL Db. .Description Create a new database migration to a given SQL Db. .Example -New-AzDataMigrationToSqlDb -ResourceGroupName myRG -SqlDbInstanceName "mysqldb" -MigrationService "/subscriptions/1111-2222-3333-4444/resourceGroups/myRG/providers/Microsoft.DataMigration/SqlMigrationServices/myDMS" -TargetSqlConnectionAuthentication "SqlAuthentication" -TargetSqlConnectionDataSource "mydb.windows.net" -TargetSqlConnectionPassword "pass" -TargetSqlConnectionUserName "user" -SourceSqlConnectionAuthentication "SqlAuthentication" -SourceSqlConnectionDataSource "xyz.MICROSOFT.COM" -SourceSqlConnectionUserName "user1" -SourceSqlConnectionPassword "password" -SourceDatabaseName "sourcedb" -TargetDbName "mydb1" -Scope "/subscriptions/1111-2222-3333-4444/resourceGroups/myRG/providers/Microsoft.Sql/servers/mysqldb" +$sourcePassword = ConvertTo-SecureString "pass123" -AsPlainText -Force +$targetPassword = ConvertTo-SecureString "pass123" -AsPlainText -Force +New-AzDataMigrationToSqlDb -ResourceGroupName myRG -SqlDbInstanceName "mysqldb" -MigrationService "/subscriptions/1111-2222-3333-4444/resourceGroups/myRG/providers/Microsoft.DataMigration/SqlMigrationServices/myDMS" -TargetSqlConnectionAuthentication "SqlAuthentication" -TargetSqlConnectionDataSource "mydb.windows.net" -TargetSqlConnectionPassword $targetPassword -TargetSqlConnectionUserName "user" -SourceSqlConnectionAuthentication "SqlAuthentication" -SourceSqlConnectionDataSource "xyz.MICROSOFT.COM" -SourceSqlConnectionUserName "user1" -SourceSqlConnectionPassword $sourcePassword -SourceDatabaseName "sourcedb" -TargetDbName "mydb1" -Scope "/subscriptions/1111-2222-3333-4444/resourceGroups/myRG/providers/Microsoft.Sql/servers/mysqldb" + .Example $sourcePassword = ConvertTo-SecureString "pass123" -AsPlainText -Force $targetPassword = ConvertTo-SecureString "pass123" -AsPlainText -Force @@ -3487,9 +3490,9 @@ Remove the specified database migration for a given SQL Db. .Description Remove the specified database migration for a given SQL Db. .Example -Remove-AzDataMigrationToSqlDb -ResourceGroupName tsum38RG -SqlDbInstanceName dmstestsqldb -TargetDbName at_sqldbtrgtps1 +Remove-AzDataMigrationToSqlDb -ResourceGroupName myRG -SqlDbInstanceName sqldb -TargetDbName myDB .Example -Remove-AzDataMigrationToSqlDb -ResourceGroupName tsum38RG -SqlDbInstanceName dmstestsqldb -TargetDbName at_sqldbtrgtps1 -Force +Remove-AzDataMigrationToSqlDb -ResourceGroupName myRG -SqlDbInstanceName sqldb -TargetDbName myDB -Force .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity @@ -4629,50 +4632,10 @@ Collect performance data for given SQL Server instance(s) Collect performance data for given SQL Server instance(s) .Example PS C:\> Get-AzDataMigrationPerformanceDataCollection -SqlConnectionStrings "Data Source=AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM;Initial Catalog=master;Integrated Security=False;User Id=dummyUserId;Password=dummyPassword" -NumberOfIterations 2 - -Connecting to the SQL server(s)... -Starting data collection... -Press the Enter key to stop the data collection at any time... - -Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. -Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. -Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. -UTC 2022-02-03 07:04:50, Server AALAB03-2K8: - Performance data query iteration: 1 of 2, collected 349 data points. -UTC 2022-02-03 07:04:52, Server AALAB03-2K8: - Collected static configuration data, and saved to C:\Users\vmanhas\AppData\Local\Microsoft\SqlAssessment. -Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. -UTC 2022-02-03 07:05:44, Server AALAB03-2K8: - Performance data query iteration: 2 of 2, collected 347 data points. -UTC 2022-02-03 07:07:13, Server AALAB03-2K8: - Aggregated 696 raw data points to 263 performance counters, and saved to C:\Users\vmanhas\AppData\Local\Microsoft\SqlAssessment. -UTC 2022-02-03 07:07:16, Server AALAB03-2K8: - Performance data query iteration: 1 of 2, collected 349 data points. - -Event and Error Logs Folder Path: C:\Users\vmanhas\AppData\Local\Microsoft\SqlAssessment\Logs .Example PS C:\> Get-AzDataMigrationAssessment -ConfigFilePath "C:\Users\user\document\config.json" - -Connecting to the SQL server(s)... -Starting data collection... -Press the Enter key to stop the data collection at any time... - -Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. -Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. -Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. -UTC 2022-02-03 07:04:50, Server AALAB03-2K8: - Performance data query iteration: 1 of 2, collected 349 data points. -UTC 2022-02-03 07:04:52, Server AALAB03-2K8: - Collected static configuration data, and saved to C:\Users\vmanhas\AppData\Local\Microsoft\SqlAssessment. -Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. -UTC 2022-02-03 07:05:44, Server AALAB03-2K8: - Performance data query iteration: 2 of 2, collected 347 data points. -UTC 2022-02-03 07:07:13, Server AALAB03-2K8: - Aggregated 696 raw data points to 263 performance counters, and saved to C:\Users\vmanhas\AppData\Local\Microsoft\SqlAssessment. -UTC 2022-02-03 07:07:16, Server AALAB03-2K8: - Performance data query iteration: 1 of 2, collected 349 data points. - -Event and Error Logs Folder Path: C:\Users\vmanhas\AppData\Local\Microsoft\SqlAssessment\Logs +.Example +PS C:\> Get-AzDataMigrationAssessment -ConfigFilePath "C:\Users\user\document\config.json" -Time 120 .Outputs System.Boolean @@ -4717,6 +4680,12 @@ param( # (Default: 20, Minimum: 2) ${NumberOfIterations}, + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Body')] + [System.Int64] + # Duration of time in seconds for which you want to collect performance data + ${Time}, + [Parameter(ParameterSetName='ConfigFile', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Body')] [System.String] @@ -4811,49 +4780,9 @@ Gives SKU recommendations for Azure SQL offerings Gives SKU recommendations for Azure SQL offerings .Example PS C:\> Get-AzDataMigrationSkuRecommendation -DisplayResult - -Starting SKU recommendation... - -Performing aggregation for instance AALAB03-2K8... -Aggregation complete. Calculating SKU recommendations... -Instance name: AALAB03-2K8 -SKU recommendation: Azure SQL Managed Instance: -Compute: Gen5 - GeneralPurpose - 4 cores -Storage: 64 GB -Recommendation reasons: - According to the performance data collected, we estimate that your SQL server instance has a requirement for 0.16 vCores of CPU. For greater flexibility, based on your scaling factor of 100.00%, we are making a recommendation based on 0.16 vCores. Based on all the other factors, including memory, storage, and IO, this is the smallest compute sizing that will satisfy all of your needs. - This SQL Server instance requires 0.44 GB of memory, which is within this SKU's limit of 20.40 GB. - This SQL Server instance requires 32.37 GB of storage for data files. We recommend provisioning 64 GB of storage, which is the closest valid amount that can be provisioned that meets your requirement. - This SQL Server instance requires 0.00 MB/second of combined read/write IO throughput. This is a relatively idle instance, so IO latency is not considered. - Assuming the database uses the Full Recovery Model, this SQL Server instance requires 1 IOPS for data and log files. - This is the most cost-efficient offering among all the performance eligible SKUs. - - -Finishing SKU recommendations... -Event and Error Logs Folder Path: C:\Users\vmanhas\AppData\Local\Microsoft\SqlAssessment\Logs .Example PS C:\> Get-AzDataMigrationSkuRecommendation -ConfigFilePath "C:\Users\user\document\config.json" -Starting SKU recommendation... - -Performing aggregation for instance AALAB03-2K8... -Aggregation complete. Calculating SKU recommendations... -Instance name: AALAB03-2K8 -SKU recommendation: Azure SQL Managed Instance: -Compute: Gen5 - GeneralPurpose - 4 cores -Storage: 64 GB -Recommendation reasons: - According to the performance data collected, we estimate that your SQL server instance has a requirement for 0.16 vCores of CPU. For greater flexibility, based on your scaling factor of 100.00%, we are making a recommendation based on 0.16 vCores. Based on all the other factors, including memory, storage, and IO, this is the smallest compute sizing that will satisfy all of your needs. - This SQL Server instance requires 0.44 GB of memory, which is within this SKU's limit of 20.40 GB. - This SQL Server instance requires 32.37 GB of storage for data files. We recommend provisioning 64 GB of storage, which is the closest valid amount that can be provisioned that meets your requirement. - This SQL Server instance requires 0.00 MB/second of combined read/write IO throughput. This is a relatively idle instance, so IO latency is not considered. - Assuming the database uses the Full Recovery Model, this SQL Server instance requires 1 IOPS for data and log files. - This is the most cost-efficient offering among all the performance eligible SKUs. - - -Finishing SKU recommendations... -Event and Error Logs Folder Path: C:\Users\vmanhas\AppData\Local\Microsoft\SqlAssessment\Logs - .Outputs System.Boolean .Link diff --git a/src/DataMigration/DataMigration.Autorest/exports/Remove-AzDataMigrationToSqlDb.ps1 b/src/DataMigration/DataMigration.Autorest/exports/Remove-AzDataMigrationToSqlDb.ps1 index 87a75df1db89..a4a5d0d5abd0 100644 --- a/src/DataMigration/DataMigration.Autorest/exports/Remove-AzDataMigrationToSqlDb.ps1 +++ b/src/DataMigration/DataMigration.Autorest/exports/Remove-AzDataMigrationToSqlDb.ps1 @@ -20,9 +20,9 @@ Remove the specified database migration for a given SQL Db. .Description Remove the specified database migration for a given SQL Db. .Example -Remove-AzDataMigrationToSqlDb -ResourceGroupName tsum38RG -SqlDbInstanceName dmstestsqldb -TargetDbName at_sqldbtrgtps1 +Remove-AzDataMigrationToSqlDb -ResourceGroupName myRG -SqlDbInstanceName sqldb -TargetDbName myDB .Example -Remove-AzDataMigrationToSqlDb -ResourceGroupName tsum38RG -SqlDbInstanceName dmstestsqldb -TargetDbName at_sqldbtrgtps1 -Force +Remove-AzDataMigrationToSqlDb -ResourceGroupName myRG -SqlDbInstanceName sqldb -TargetDbName myDB -Force .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity diff --git a/src/DataMigration/DataMigration.Autorest/generate-info.json b/src/DataMigration/DataMigration.Autorest/generate-info.json index feccb1556cc9..9ae5105578e3 100644 --- a/src/DataMigration/DataMigration.Autorest/generate-info.json +++ b/src/DataMigration/DataMigration.Autorest/generate-info.json @@ -1,8 +1,8 @@ { - "autorest_core": "3.8.3", - "node": "v14.15.5", "autorest_modelerfour": "4.15.414", + "node": "v14.15.5", + "autorest_core": "3.8.4", + "swagger_commit": "63353171621815e17db46a3075a79c9af60a0831", "autorest": "`-- (empty)", - "swagger_commit": "cc26f1d28c939bbcde00a29aa8958b3eebb10cea", - "autorest_powershell": "3.0.482" + "autorest_powershell": "3.0.486" } diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Any.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Any.PowerShell.cs index 4bdef5386a86..27ecb3b17383 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Any.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Any.PowerShell.cs @@ -116,7 +116,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IAny Deser /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IAny FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Any.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Any.TypeConverter.cs index f6f94ef96478..1c5c57e595d9 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Any.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Any.TypeConverter.cs @@ -26,8 +26,7 @@ public partial class AnyTypeConverter : global::System.Management.Automation.PST public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Any.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Any.json.cs index 2768a40f9edf..47c2120b8993 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Any.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Any.json.cs @@ -20,7 +20,7 @@ public partial class Any partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class Any /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class Any /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/AuthenticationKeys.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/AuthenticationKeys.PowerShell.cs index 2149daf85ea9..3d6be6566677 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/AuthenticationKeys.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/AuthenticationKeys.PowerShell.cs @@ -134,7 +134,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IAuthenticationKeys FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/AuthenticationKeys.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/AuthenticationKeys.TypeConverter.cs index fb2a3d93f7d1..e56343f20694 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/AuthenticationKeys.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/AuthenticationKeys.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class AuthenticationKeysTypeConverter : global::System.Management public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/AuthenticationKeys.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/AuthenticationKeys.json.cs index 1989b774f165..497d5fb55f4e 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/AuthenticationKeys.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/AuthenticationKeys.json.cs @@ -20,7 +20,7 @@ public partial class AuthenticationKeys partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class AuthenticationKeys /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AuthenticationKeys /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/AzureBlob.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/AzureBlob.PowerShell.cs index e8541dbb4e8f..e12b9281a49a 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/AzureBlob.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/AzureBlob.PowerShell.cs @@ -140,7 +140,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IAzureBlob FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/AzureBlob.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/AzureBlob.TypeConverter.cs index 35a064902800..49679e04f749 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/AzureBlob.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/AzureBlob.TypeConverter.cs @@ -26,8 +26,7 @@ public partial class AzureBlobTypeConverter : global::System.Management.Automati public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/AzureBlob.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/AzureBlob.json.cs index f8beb9922add..2b57a8be6f29 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/AzureBlob.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/AzureBlob.json.cs @@ -20,7 +20,7 @@ public partial class AzureBlob partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class AzureBlob /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class AzureBlob /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/BackupConfiguration.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/BackupConfiguration.PowerShell.cs index 9f1b02b6f1ad..551069b64c6b 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/BackupConfiguration.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/BackupConfiguration.PowerShell.cs @@ -222,7 +222,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IBackupConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/BackupConfiguration.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/BackupConfiguration.TypeConverter.cs index 63cb56167e6f..55ccd75c8096 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/BackupConfiguration.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/BackupConfiguration.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class BackupConfigurationTypeConverter : global::System.Managemen public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/BackupConfiguration.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/BackupConfiguration.json.cs index d40f030734be..d4b5b0be50bc 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/BackupConfiguration.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/BackupConfiguration.json.cs @@ -20,7 +20,7 @@ public partial class BackupConfiguration partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class BackupConfiguration /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class BackupConfiguration /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/CopyProgressDetails.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/CopyProgressDetails.PowerShell.cs index 6f3345858a6e..fa626e3b8a5c 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/CopyProgressDetails.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/CopyProgressDetails.PowerShell.cs @@ -206,7 +206,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ICopyProgressDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/CopyProgressDetails.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/CopyProgressDetails.TypeConverter.cs index 36bde2cdd48f..f3ecd75e79f5 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/CopyProgressDetails.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/CopyProgressDetails.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class CopyProgressDetailsTypeConverter : global::System.Managemen public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/CopyProgressDetails.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/CopyProgressDetails.json.cs index 3f3b2392baf3..365fa5c5fcda 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/CopyProgressDetails.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/CopyProgressDetails.json.cs @@ -20,7 +20,7 @@ public partial class CopyProgressDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class CopyProgressDetails /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class CopyProgressDetails /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigration.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigration.PowerShell.cs index 3980b372e93b..8b0605bb9eba 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigration.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigration.PowerShell.cs @@ -382,7 +382,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IDatabaseMigration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigration.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigration.TypeConverter.cs index faf52c03e902..f273f511acdc 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigration.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigration.TypeConverter.cs @@ -26,8 +26,7 @@ public partial class DatabaseMigrationTypeConverter : global::System.Management. public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigration.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigration.cs index b43f206c8109..de5d4e9b8d0c 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigration.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigration.cs @@ -225,7 +225,7 @@ public DatabaseMigration() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) { diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigration.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigration.json.cs index 92f8ba3a7702..4633d8403342 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigration.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigration.json.cs @@ -20,7 +20,7 @@ public partial class DatabaseMigration partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class DatabaseMigration /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class DatabaseMigration /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationListResult.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationListResult.PowerShell.cs index 09d88d63ff8f..19aad2f8f4b8 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationListResult.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationListResult.PowerShell.cs @@ -134,7 +134,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IDatabaseMigrationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationListResult.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationListResult.TypeConverter.cs index b01c2608d0aa..e26afc84b325 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationListResult.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationListResult.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class DatabaseMigrationListResultTypeConverter : global::System.M public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationListResult.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationListResult.json.cs index 27fcb5066a49..0f411fd51c8a 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationListResult.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationListResult.json.cs @@ -20,7 +20,7 @@ public partial class DatabaseMigrationListResult partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class DatabaseMigrationListResult /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class DatabaseMigrationListResult /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationProperties.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationProperties.PowerShell.cs index 40166261fb06..5b21c33f5cb9 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationProperties.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationProperties.PowerShell.cs @@ -294,7 +294,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IDatabaseMigrationProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationProperties.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationProperties.TypeConverter.cs index ef5cf85f31f0..4e3f3b0adf0f 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationProperties.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationProperties.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class DatabaseMigrationPropertiesTypeConverter : global::System.M public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationProperties.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationProperties.json.cs index aa5fbbccd742..50411ac048c9 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationProperties.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationProperties.json.cs @@ -20,7 +20,7 @@ public partial class DatabaseMigrationProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class DatabaseMigrationProperties /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class DatabaseMigrationProperties /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlDb.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlDb.PowerShell.cs index a42d58c478ad..f8d81f35071e 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlDb.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlDb.PowerShell.cs @@ -406,7 +406,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IDatabaseMigrationPropertiesSqlDb FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlDb.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlDb.TypeConverter.cs index 9a729f132243..af5bea460431 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlDb.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlDb.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class DatabaseMigrationPropertiesSqlDbTypeConverter : global::Sys public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlDb.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlDb.cs index 97221eeb376e..0268f02ddb12 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlDb.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlDb.cs @@ -232,7 +232,7 @@ public DatabaseMigrationPropertiesSqlDb() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) { diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlDb.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlDb.json.cs index c859329efdd1..aa3763315cd9 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlDb.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlDb.json.cs @@ -20,7 +20,7 @@ public partial class DatabaseMigrationPropertiesSqlDb partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class DatabaseMigrationPropertiesSqlDb /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class DatabaseMigrationPropertiesSqlDb /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlMi.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlMi.PowerShell.cs index 4fd77f075ed8..04def28c21f4 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlMi.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlMi.PowerShell.cs @@ -438,7 +438,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IDatabaseMigrationPropertiesSqlMi FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlMi.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlMi.TypeConverter.cs index 1fc1730e06a7..2da9466188e6 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlMi.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlMi.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class DatabaseMigrationPropertiesSqlMiTypeConverter : global::Sys public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlMi.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlMi.cs index ed10f3c1786e..b06ff75ed382 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlMi.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlMi.cs @@ -235,7 +235,7 @@ public DatabaseMigrationPropertiesSqlMi() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) { diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlMi.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlMi.json.cs index 7f2943a3601f..b96e37a7b364 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlMi.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlMi.json.cs @@ -20,7 +20,7 @@ public partial class DatabaseMigrationPropertiesSqlMi partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class DatabaseMigrationPropertiesSqlMi /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class DatabaseMigrationPropertiesSqlMi /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlVM.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlVM.PowerShell.cs index af41ce66aca9..7b3729ec58cf 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlVM.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlVM.PowerShell.cs @@ -438,7 +438,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IDatabaseMigrationPropertiesSqlVM FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlVM.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlVM.TypeConverter.cs index d66804d41e49..f35e51b8bb03 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlVM.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlVM.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class DatabaseMigrationPropertiesSqlVMTypeConverter : global::Sys public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlVM.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlVM.cs index 79e2f9501b9f..e97487b94bea 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlVM.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlVM.cs @@ -235,7 +235,7 @@ public DatabaseMigrationPropertiesSqlVM() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) { diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlVM.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlVM.json.cs index dc5cd0fcd846..eaf55914019a 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlVM.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationPropertiesSqlVM.json.cs @@ -20,7 +20,7 @@ public partial class DatabaseMigrationPropertiesSqlVM partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class DatabaseMigrationPropertiesSqlVM /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class DatabaseMigrationPropertiesSqlVM /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlDb.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlDb.PowerShell.cs index 31f02a8a545c..ff323c4816f0 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlDb.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlDb.PowerShell.cs @@ -494,7 +494,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IDatabaseMigrationSqlDb FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlDb.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlDb.TypeConverter.cs index 1fd4d976be80..9155c2273589 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlDb.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlDb.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class DatabaseMigrationSqlDbTypeConverter : global::System.Manage public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlDb.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlDb.cs index d786acbc8cad..cc1a4b623c0e 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlDb.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlDb.cs @@ -301,7 +301,7 @@ public DatabaseMigrationSqlDb() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) { diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlDb.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlDb.json.cs index 55786bc909bc..b470a4500bb1 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlDb.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlDb.json.cs @@ -20,7 +20,7 @@ public partial class DatabaseMigrationSqlDb partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class DatabaseMigrationSqlDb /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class DatabaseMigrationSqlDb /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlMi.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlMi.PowerShell.cs index 65612b210186..437cc2bab536 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlMi.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlMi.PowerShell.cs @@ -526,7 +526,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IDatabaseMigrationSqlMi FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlMi.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlMi.TypeConverter.cs index b9b15ad25ce7..0bf5dd740c1c 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlMi.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlMi.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class DatabaseMigrationSqlMiTypeConverter : global::System.Manage public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlMi.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlMi.cs index 8114561d5891..532621f7cfab 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlMi.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlMi.cs @@ -312,7 +312,7 @@ public DatabaseMigrationSqlMi() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) { diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlMi.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlMi.json.cs index f1d85e6b7188..8523bf35dd45 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlMi.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlMi.json.cs @@ -20,7 +20,7 @@ public partial class DatabaseMigrationSqlMi partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class DatabaseMigrationSqlMi /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class DatabaseMigrationSqlMi /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlVM.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlVM.PowerShell.cs index 6cb6f01962b1..ae46318e9b34 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlVM.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlVM.PowerShell.cs @@ -526,7 +526,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IDatabaseMigrationSqlVM FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlVM.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlVM.TypeConverter.cs index dbb990856069..7fbe678db00b 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlVM.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlVM.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class DatabaseMigrationSqlVMTypeConverter : global::System.Manage public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlVM.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlVM.cs index 4547526a40f9..f512a9fc4800 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlVM.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlVM.cs @@ -312,7 +312,7 @@ public DatabaseMigrationSqlVM() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) { diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlVM.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlVM.json.cs index deb402c86590..1b1e62f352a6 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlVM.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DatabaseMigrationSqlVM.json.cs @@ -20,7 +20,7 @@ public partial class DatabaseMigrationSqlVM partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class DatabaseMigrationSqlVM /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class DatabaseMigrationSqlVM /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DeleteNode.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DeleteNode.PowerShell.cs index 86d94fd97af5..5d7160979ba1 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DeleteNode.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DeleteNode.PowerShell.cs @@ -132,7 +132,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IDeleteNode FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DeleteNode.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DeleteNode.TypeConverter.cs index b6d1e81f2988..21ac2d9dc83d 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DeleteNode.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DeleteNode.TypeConverter.cs @@ -26,8 +26,7 @@ public partial class DeleteNodeTypeConverter : global::System.Management.Automat public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DeleteNode.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DeleteNode.json.cs index 8c9db8ebf5a8..f43d79a9d7de 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DeleteNode.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/DeleteNode.json.cs @@ -20,7 +20,7 @@ public partial class DeleteNode partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class DeleteNode /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class DeleteNode /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/ErrorInfo.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/ErrorInfo.PowerShell.cs index a4a3ad1bba2c..25c0e6faaadf 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/ErrorInfo.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/ErrorInfo.PowerShell.cs @@ -132,7 +132,7 @@ internal ErrorInfo(global::System.Management.Automation.PSObject 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IErrorInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/ErrorInfo.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/ErrorInfo.TypeConverter.cs index 3da19cdb3ae7..244e190d16e3 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/ErrorInfo.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/ErrorInfo.TypeConverter.cs @@ -26,8 +26,7 @@ public partial class ErrorInfoTypeConverter : global::System.Management.Automati public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/ErrorInfo.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/ErrorInfo.json.cs index 6afd6fe03cf1..d69827fa4647 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/ErrorInfo.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/ErrorInfo.json.cs @@ -20,7 +20,7 @@ public partial class ErrorInfo partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class ErrorInfo /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class ErrorInfo /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/IntegrationRuntimeMonitoringData.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/IntegrationRuntimeMonitoringData.PowerShell.cs index c2e4e3f8f11d..a272271e4941 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/IntegrationRuntimeMonitoringData.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/IntegrationRuntimeMonitoringData.PowerShell.cs @@ -84,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IIntegrationRuntimeMonitoringData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/IntegrationRuntimeMonitoringData.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/IntegrationRuntimeMonitoringData.TypeConverter.cs index 159b1c1c8e77..44a6e660a3c3 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/IntegrationRuntimeMonitoringData.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/IntegrationRuntimeMonitoringData.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class IntegrationRuntimeMonitoringDataTypeConverter : global::Sys public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/IntegrationRuntimeMonitoringData.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/IntegrationRuntimeMonitoringData.json.cs index e23d55c9e2f9..b1011b13e1c2 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/IntegrationRuntimeMonitoringData.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/IntegrationRuntimeMonitoringData.json.cs @@ -20,7 +20,7 @@ public partial class IntegrationRuntimeMonitoringData partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class IntegrationRuntimeMonitoringData /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class IntegrationRuntimeMonitoringData /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/MigrationOperationInput.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/MigrationOperationInput.PowerShell.cs index dab2615351b1..10104e24be70 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/MigrationOperationInput.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/MigrationOperationInput.PowerShell.cs @@ -84,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IMigrationOperationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/MigrationOperationInput.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/MigrationOperationInput.TypeConverter.cs index 904b9df4711e..b57a9547c106 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/MigrationOperationInput.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/MigrationOperationInput.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class MigrationOperationInputTypeConverter : global::System.Manag public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/MigrationOperationInput.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/MigrationOperationInput.json.cs index 92d200f80da9..d0a5ea960d80 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/MigrationOperationInput.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/MigrationOperationInput.json.cs @@ -20,7 +20,7 @@ public partial class MigrationOperationInput partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class MigrationOperationInput /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class MigrationOperationInput /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/MigrationStatusDetails.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/MigrationStatusDetails.PowerShell.cs index 8e5c12a0c957..2d7ec3b6a22f 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/MigrationStatusDetails.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/MigrationStatusDetails.PowerShell.cs @@ -84,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IMigrationStatusDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/MigrationStatusDetails.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/MigrationStatusDetails.TypeConverter.cs index 5c2d543f003e..125c994ec3ab 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/MigrationStatusDetails.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/MigrationStatusDetails.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class MigrationStatusDetailsTypeConverter : global::System.Manage public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/MigrationStatusDetails.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/MigrationStatusDetails.json.cs index 426588576b1c..875b5a1225c1 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/MigrationStatusDetails.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/MigrationStatusDetails.json.cs @@ -20,7 +20,7 @@ public partial class MigrationStatusDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class MigrationStatusDetails /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class MigrationStatusDetails /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/NodeMonitoringData.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/NodeMonitoringData.PowerShell.cs index a7f24522c542..155f440fed5d 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/NodeMonitoringData.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/NodeMonitoringData.PowerShell.cs @@ -83,7 +83,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.INodeMonitoringData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/NodeMonitoringData.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/NodeMonitoringData.TypeConverter.cs index c73b43d45da7..56da4a482545 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/NodeMonitoringData.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/NodeMonitoringData.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class NodeMonitoringDataTypeConverter : global::System.Management public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/NodeMonitoringData.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/NodeMonitoringData.json.cs index 0bd18a3398a0..a9e970a3760f 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/NodeMonitoringData.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/NodeMonitoringData.json.cs @@ -19,7 +19,7 @@ public partial class NodeMonitoringData partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -29,7 +29,8 @@ public partial class NodeMonitoringData /// /// 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. + /// If you wish 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. @@ -41,7 +42,8 @@ public partial class NodeMonitoringData /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/NodeMonitoringDataAdditionalProperties.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/NodeMonitoringDataAdditionalProperties.PowerShell.cs index 9f07869adb2c..c71312c21514 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/NodeMonitoringDataAdditionalProperties.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/NodeMonitoringDataAdditionalProperties.PowerShell.cs @@ -85,7 +85,9 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// string. /// /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. + /// + /// an instance of the model class. + /// public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.INodeMonitoringDataAdditionalProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/NodeMonitoringDataAdditionalProperties.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/NodeMonitoringDataAdditionalProperties.TypeConverter.cs index cbe2a414a271..38e2d1a8b6d1 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/NodeMonitoringDataAdditionalProperties.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/NodeMonitoringDataAdditionalProperties.TypeConverter.cs @@ -27,8 +27,8 @@ public partial class NodeMonitoringDataAdditionalPropertiesTypeConverter : globa public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/NodeMonitoringDataAdditionalProperties.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/NodeMonitoringDataAdditionalProperties.json.cs index 50e0f1721ce2..031e91088c02 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/NodeMonitoringDataAdditionalProperties.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/NodeMonitoringDataAdditionalProperties.json.cs @@ -20,7 +20,7 @@ public partial class NodeMonitoringDataAdditionalProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class NodeMonitoringDataAdditionalProperties /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class NodeMonitoringDataAdditionalProperties /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OfflineConfiguration.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OfflineConfiguration.PowerShell.cs index d289c3de2d27..8817cc576f69 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OfflineConfiguration.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OfflineConfiguration.PowerShell.cs @@ -84,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IOfflineConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OfflineConfiguration.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OfflineConfiguration.TypeConverter.cs index 1ac44a39514e..191fbaffb1da 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OfflineConfiguration.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OfflineConfiguration.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class OfflineConfigurationTypeConverter : global::System.Manageme public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OfflineConfiguration.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OfflineConfiguration.json.cs index 047b43d6e2f5..b38fe7d44f68 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OfflineConfiguration.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OfflineConfiguration.json.cs @@ -20,7 +20,7 @@ public partial class OfflineConfiguration partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class OfflineConfiguration /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class OfflineConfiguration /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationListResult.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationListResult.PowerShell.cs index f19d3170328f..e17ce5b021db 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationListResult.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationListResult.PowerShell.cs @@ -84,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationListResult.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationListResult.TypeConverter.cs index e706aae599be..96852885a5c4 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationListResult.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationListResult.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class OperationListResultTypeConverter : global::System.Managemen public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationListResult.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationListResult.json.cs index 5a5e5980ccee..40032fa65167 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationListResult.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationListResult.json.cs @@ -20,7 +20,7 @@ public partial class OperationListResult partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class OperationListResult /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class OperationListResult /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDefinition.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDefinition.PowerShell.cs index 6f9ade95d045..8e2323674182 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDefinition.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDefinition.PowerShell.cs @@ -83,7 +83,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IOperationsDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDefinition.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDefinition.TypeConverter.cs index 02f502c050d1..0c91012f0f57 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDefinition.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDefinition.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class OperationsDefinitionTypeConverter : global::System.Manageme public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDefinition.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDefinition.json.cs index 33f6cf7c0655..e391dc7c3148 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDefinition.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDefinition.json.cs @@ -19,7 +19,7 @@ public partial class OperationsDefinition partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -29,7 +29,8 @@ public partial class OperationsDefinition /// /// 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. + /// If you wish 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. @@ -41,7 +42,8 @@ public partial class OperationsDefinition /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDefinitionProperties.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDefinitionProperties.PowerShell.cs index 4b91f70772f5..0d5fce8002de 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDefinitionProperties.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDefinitionProperties.PowerShell.cs @@ -84,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IOperationsDefinitionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDefinitionProperties.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDefinitionProperties.TypeConverter.cs index 4006d81bee67..d389535a8c22 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDefinitionProperties.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDefinitionProperties.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class OperationsDefinitionPropertiesTypeConverter : global::Syste public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDefinitionProperties.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDefinitionProperties.json.cs index e6dd3107b694..eb730695891d 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDefinitionProperties.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDefinitionProperties.json.cs @@ -20,7 +20,7 @@ public partial class OperationsDefinitionProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class OperationsDefinitionProperties /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class OperationsDefinitionProperties /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDisplayDefinition.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDisplayDefinition.PowerShell.cs index 77a6b057c83a..e7f9400c0922 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDisplayDefinition.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDisplayDefinition.PowerShell.cs @@ -83,7 +83,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IOperationsDisplayDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDisplayDefinition.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDisplayDefinition.TypeConverter.cs index eb3a58729443..b56618b191bb 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDisplayDefinition.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDisplayDefinition.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class OperationsDisplayDefinitionTypeConverter : global::System.M public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDisplayDefinition.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDisplayDefinition.json.cs index e6ae25aa47be..a43ff0316e55 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDisplayDefinition.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/OperationsDisplayDefinition.json.cs @@ -19,7 +19,7 @@ public partial class OperationsDisplayDefinition partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -29,7 +29,8 @@ public partial class OperationsDisplayDefinition /// /// 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. + /// If you wish 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. @@ -41,7 +42,8 @@ public partial class OperationsDisplayDefinition /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/ProxyResource.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/ProxyResource.PowerShell.cs index 48054483ac4a..28a4829fcc56 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/ProxyResource.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/ProxyResource.PowerShell.cs @@ -81,7 +81,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IProxyResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/ProxyResource.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/ProxyResource.TypeConverter.cs index 07736c2d383f..4e880a907be0 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/ProxyResource.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/ProxyResource.TypeConverter.cs @@ -26,8 +26,7 @@ public partial class ProxyResourceTypeConverter : global::System.Management.Auto public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/ProxyResource.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/ProxyResource.json.cs index 0f4db4df8ff4..691b3d8e1765 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/ProxyResource.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/ProxyResource.json.cs @@ -19,7 +19,7 @@ public partial class ProxyResource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -29,7 +29,8 @@ public partial class ProxyResource /// /// 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. + /// If you wish 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. @@ -41,7 +42,8 @@ public partial class ProxyResource /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/RegenAuthKeys.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/RegenAuthKeys.PowerShell.cs index 14165a4b3e4d..73a87b21ab7b 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/RegenAuthKeys.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/RegenAuthKeys.PowerShell.cs @@ -82,7 +82,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IRegenAuthKeys FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/RegenAuthKeys.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/RegenAuthKeys.TypeConverter.cs index a6b02c7b85bd..c86d4a0782aa 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/RegenAuthKeys.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/RegenAuthKeys.TypeConverter.cs @@ -26,8 +26,7 @@ public partial class RegenAuthKeysTypeConverter : global::System.Management.Auto public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/RegenAuthKeys.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/RegenAuthKeys.json.cs index 5bdc90b99cb4..55845f395b3c 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/RegenAuthKeys.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/RegenAuthKeys.json.cs @@ -20,7 +20,7 @@ public partial class RegenAuthKeys partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class RegenAuthKeys /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class RegenAuthKeys /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SourceLocation.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SourceLocation.PowerShell.cs index 23cb2fc73d0e..42c62fc9959c 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SourceLocation.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SourceLocation.PowerShell.cs @@ -84,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISourceLocation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SourceLocation.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SourceLocation.TypeConverter.cs index b69f10c19f5a..1690dd26d6cf 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SourceLocation.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SourceLocation.TypeConverter.cs @@ -26,8 +26,7 @@ public partial class SourceLocationTypeConverter : global::System.Management.Aut public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SourceLocation.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SourceLocation.json.cs index 341795cad223..78b09d2d5425 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SourceLocation.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SourceLocation.json.cs @@ -20,7 +20,7 @@ public partial class SourceLocation partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class SourceLocation /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class SourceLocation /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlBackupFileInfo.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlBackupFileInfo.PowerShell.cs index eda725d86164..e20fe824423a 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlBackupFileInfo.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlBackupFileInfo.PowerShell.cs @@ -84,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlBackupFileInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlBackupFileInfo.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlBackupFileInfo.TypeConverter.cs index 794fc12fe029..06e97480cce0 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlBackupFileInfo.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlBackupFileInfo.TypeConverter.cs @@ -26,8 +26,7 @@ public partial class SqlBackupFileInfoTypeConverter : global::System.Management. public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlBackupFileInfo.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlBackupFileInfo.json.cs index e12ae4ee5409..5ff08cd0df21 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlBackupFileInfo.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlBackupFileInfo.json.cs @@ -20,7 +20,7 @@ public partial class SqlBackupFileInfo partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class SqlBackupFileInfo /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class SqlBackupFileInfo /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlBackupSetInfo.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlBackupSetInfo.PowerShell.cs index 9b9d57c5b7ee..868904a8e730 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlBackupSetInfo.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlBackupSetInfo.PowerShell.cs @@ -84,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlBackupSetInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlBackupSetInfo.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlBackupSetInfo.TypeConverter.cs index 1086b9d6e8e9..484bd7afd89e 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlBackupSetInfo.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlBackupSetInfo.TypeConverter.cs @@ -26,8 +26,7 @@ public partial class SqlBackupSetInfoTypeConverter : global::System.Management.A public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlBackupSetInfo.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlBackupSetInfo.json.cs index ca3458cca274..a94c4ee42ba6 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlBackupSetInfo.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlBackupSetInfo.json.cs @@ -20,7 +20,7 @@ public partial class SqlBackupSetInfo partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class SqlBackupSetInfo /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class SqlBackupSetInfo /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlConnectionInformation.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlConnectionInformation.PowerShell.cs index 0f1da80421d1..8ca7ecdc5968 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlConnectionInformation.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlConnectionInformation.PowerShell.cs @@ -84,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlConnectionInformation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlConnectionInformation.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlConnectionInformation.TypeConverter.cs index ae0f111f7554..c51673f0157d 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlConnectionInformation.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlConnectionInformation.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class SqlConnectionInformationTypeConverter : global::System.Mana public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlConnectionInformation.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlConnectionInformation.json.cs index e5374b4fff64..31ec7c3c1f10 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlConnectionInformation.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlConnectionInformation.json.cs @@ -20,7 +20,7 @@ public partial class SqlConnectionInformation partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class SqlConnectionInformation /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class SqlConnectionInformation /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlDbMigrationStatusDetails.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlDbMigrationStatusDetails.PowerShell.cs index bf3c771c156c..84acecc31acf 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlDbMigrationStatusDetails.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlDbMigrationStatusDetails.PowerShell.cs @@ -84,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlDbMigrationStatusDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlDbMigrationStatusDetails.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlDbMigrationStatusDetails.TypeConverter.cs index 92d809dec7f1..650cd88228ba 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlDbMigrationStatusDetails.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlDbMigrationStatusDetails.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class SqlDbMigrationStatusDetailsTypeConverter : global::System.M public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlDbMigrationStatusDetails.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlDbMigrationStatusDetails.json.cs index e2e14ee6f68b..f5a3b7ef25e6 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlDbMigrationStatusDetails.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlDbMigrationStatusDetails.json.cs @@ -20,7 +20,7 @@ public partial class SqlDbMigrationStatusDetails partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class SqlDbMigrationStatusDetails /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class SqlDbMigrationStatusDetails /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlDbOfflineConfiguration.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlDbOfflineConfiguration.PowerShell.cs index bb3948e1dc6b..83bd2242fa50 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlDbOfflineConfiguration.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlDbOfflineConfiguration.PowerShell.cs @@ -84,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlDbOfflineConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlDbOfflineConfiguration.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlDbOfflineConfiguration.TypeConverter.cs index dcb6a9146491..15e92bc5c416 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlDbOfflineConfiguration.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlDbOfflineConfiguration.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class SqlDbOfflineConfigurationTypeConverter : global::System.Man public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlDbOfflineConfiguration.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlDbOfflineConfiguration.json.cs index acfa56ca6613..5dd78f89d19c 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlDbOfflineConfiguration.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlDbOfflineConfiguration.json.cs @@ -20,7 +20,7 @@ public partial class SqlDbOfflineConfiguration partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class SqlDbOfflineConfiguration /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class SqlDbOfflineConfiguration /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlFileShare.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlFileShare.PowerShell.cs index 9a160cbfba9e..811843885245 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlFileShare.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlFileShare.PowerShell.cs @@ -82,7 +82,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlFileShare FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlFileShare.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlFileShare.TypeConverter.cs index 981308e26a6e..d188c86a5a38 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlFileShare.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlFileShare.TypeConverter.cs @@ -26,8 +26,7 @@ public partial class SqlFileShareTypeConverter : global::System.Management.Autom public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlFileShare.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlFileShare.json.cs index 308b91c7464e..42b10f56b011 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlFileShare.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlFileShare.json.cs @@ -20,7 +20,7 @@ public partial class SqlFileShare partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class SqlFileShare /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class SqlFileShare /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationListResult.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationListResult.PowerShell.cs index 46ea871c3c6f..8d635b23726d 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationListResult.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationListResult.PowerShell.cs @@ -84,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlMigrationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationListResult.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationListResult.TypeConverter.cs index 178df9ae9098..e6278778ea27 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationListResult.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationListResult.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class SqlMigrationListResultTypeConverter : global::System.Manage public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationListResult.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationListResult.json.cs index c3f1cf8b702f..80c32f146af2 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationListResult.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationListResult.json.cs @@ -20,7 +20,7 @@ public partial class SqlMigrationListResult partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class SqlMigrationListResult /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class SqlMigrationListResult /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationService.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationService.PowerShell.cs index 67f4ba3846ca..fb529db6a2c6 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationService.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationService.PowerShell.cs @@ -84,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlMigrationService FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationService.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationService.TypeConverter.cs index 8cf64d51110a..0a1be2b956d1 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationService.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationService.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class SqlMigrationServiceTypeConverter : global::System.Managemen public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationService.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationService.cs index 902ec3dc77f5..5382b3767cb8 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationService.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationService.cs @@ -117,7 +117,7 @@ public SqlMigrationService() /// an instance that will receive validation /// events. /// - /// A < see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. + /// A that will be complete when validation is completed. /// public async global::System.Threading.Tasks.Task Validate(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) { diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationService.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationService.json.cs index 9518df21a838..a97050477d4f 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationService.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationService.json.cs @@ -20,7 +20,7 @@ public partial class SqlMigrationService partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class SqlMigrationService /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class SqlMigrationService /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceProperties.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceProperties.PowerShell.cs index 0e1f8f488e3e..6b4571521007 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceProperties.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceProperties.PowerShell.cs @@ -84,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlMigrationServiceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceProperties.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceProperties.TypeConverter.cs index e0e8e43ed6e9..ab31ed682b8b 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceProperties.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceProperties.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class SqlMigrationServicePropertiesTypeConverter : global::System public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceProperties.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceProperties.json.cs index c37b5870fd05..1e5932a267f9 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceProperties.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceProperties.json.cs @@ -20,7 +20,7 @@ public partial class SqlMigrationServiceProperties partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class SqlMigrationServiceProperties /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class SqlMigrationServiceProperties /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceUpdate.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceUpdate.PowerShell.cs index 9a75304aa83e..d2e69cedbec8 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceUpdate.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceUpdate.PowerShell.cs @@ -84,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlMigrationServiceUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceUpdate.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceUpdate.TypeConverter.cs index b07678fd2cd9..6a6f25d9b33c 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceUpdate.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceUpdate.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class SqlMigrationServiceUpdateTypeConverter : global::System.Man public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceUpdate.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceUpdate.json.cs index 42da14e8e3d9..982f1fe1c6ff 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceUpdate.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceUpdate.json.cs @@ -20,7 +20,7 @@ public partial class SqlMigrationServiceUpdate partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class SqlMigrationServiceUpdate /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class SqlMigrationServiceUpdate /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceUpdateTags.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceUpdateTags.PowerShell.cs index 1f5e67016439..82982f8b1c76 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceUpdateTags.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceUpdateTags.PowerShell.cs @@ -84,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlMigrationServiceUpdateTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceUpdateTags.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceUpdateTags.TypeConverter.cs index 8f40ff6b3808..8146720c1bc2 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceUpdateTags.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceUpdateTags.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class SqlMigrationServiceUpdateTagsTypeConverter : global::System public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceUpdateTags.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceUpdateTags.json.cs index a59a126c7bba..14095abef294 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceUpdateTags.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SqlMigrationServiceUpdateTags.json.cs @@ -20,7 +20,7 @@ public partial class SqlMigrationServiceUpdateTags partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class SqlMigrationServiceUpdateTags /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class SqlMigrationServiceUpdateTags /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SystemData.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SystemData.PowerShell.cs index 7325e29e2f4f..6e145a548027 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SystemData.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SystemData.PowerShell.cs @@ -81,7 +81,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SystemData.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SystemData.TypeConverter.cs index a3625dba3b9c..a3e8fc11c378 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SystemData.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SystemData.TypeConverter.cs @@ -26,8 +26,7 @@ public partial class SystemDataTypeConverter : global::System.Management.Automat public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SystemData.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SystemData.json.cs index 9f1843b16022..8e500cbedbce 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SystemData.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/SystemData.json.cs @@ -19,7 +19,7 @@ public partial class SystemData partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -29,7 +29,8 @@ public partial class SystemData /// /// 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. + /// If you wish 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. @@ -41,7 +42,8 @@ public partial class SystemData /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TargetLocation.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TargetLocation.PowerShell.cs index 956b97e3af23..ad1a212a9402 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TargetLocation.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TargetLocation.PowerShell.cs @@ -84,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ITargetLocation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TargetLocation.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TargetLocation.TypeConverter.cs index 79efe3c487d6..23499211d3ec 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TargetLocation.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TargetLocation.TypeConverter.cs @@ -26,8 +26,7 @@ public partial class TargetLocationTypeConverter : global::System.Management.Aut public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TargetLocation.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TargetLocation.json.cs index 955f54f6f7f5..521cd56e4d31 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TargetLocation.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TargetLocation.json.cs @@ -20,7 +20,7 @@ public partial class TargetLocation partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class TargetLocation /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class TargetLocation /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TrackedResource.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TrackedResource.PowerShell.cs index be482b8adae2..eefdca5feb65 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TrackedResource.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TrackedResource.PowerShell.cs @@ -83,7 +83,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ITrackedResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TrackedResource.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TrackedResource.TypeConverter.cs index f55c0afc5484..fc6e4b1ae6e9 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TrackedResource.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TrackedResource.TypeConverter.cs @@ -26,8 +26,7 @@ public partial class TrackedResourceTypeConverter : global::System.Management.Au public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TrackedResource.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TrackedResource.json.cs index 44e65b9fb008..2c3fa4072e76 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TrackedResource.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TrackedResource.json.cs @@ -19,7 +19,7 @@ public partial class TrackedResource partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -29,7 +29,8 @@ public partial class TrackedResource /// /// 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. + /// If you wish 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. @@ -41,7 +42,8 @@ public partial class TrackedResource /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TrackedResourceTags.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TrackedResourceTags.PowerShell.cs index 8c3b3653bee6..68777c22a2f6 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TrackedResourceTags.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TrackedResourceTags.PowerShell.cs @@ -84,7 +84,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2022033 /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ITrackedResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TrackedResourceTags.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TrackedResourceTags.TypeConverter.cs index eaf38f5e9cc8..5da3c246b24f 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TrackedResourceTags.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TrackedResourceTags.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class TrackedResourceTagsTypeConverter : global::System.Managemen public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TrackedResourceTags.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TrackedResourceTags.json.cs index 7f0ef2271928..7af2b0ffa645 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TrackedResourceTags.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/Api20220330Preview/TrackedResourceTags.json.cs @@ -20,7 +20,7 @@ public partial class TrackedResourceTags partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -30,7 +30,8 @@ public partial class TrackedResourceTags /// /// 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. + /// If you wish 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. @@ -42,7 +43,8 @@ public partial class TrackedResourceTags /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/DataMigrationIdentity.PowerShell.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/DataMigrationIdentity.PowerShell.cs index 988edf2e5ca1..8fa2bb2f72c8 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/DataMigrationIdentity.PowerShell.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/DataMigrationIdentity.PowerShell.cs @@ -179,7 +179,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigra /// 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. + /// an instance of the model class. public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/DataMigrationIdentity.TypeConverter.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/DataMigrationIdentity.TypeConverter.cs index c60ead64c050..788d8601b51e 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/DataMigrationIdentity.TypeConverter.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/DataMigrationIdentity.TypeConverter.cs @@ -26,8 +26,8 @@ public partial class DataMigrationIdentityTypeConverter : global::System.Managem public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// - /// Determines if the converter can convert the parameter to the - /// parameter. + /// Determines if the converter can convert the parameter to the . /// /// the instance to check if it can be converted to the type. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Models/DataMigrationIdentity.json.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Models/DataMigrationIdentity.json.cs index 206e3663a418..3851ecd92d10 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Models/DataMigrationIdentity.json.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Models/DataMigrationIdentity.json.cs @@ -19,7 +19,7 @@ public partial class DataMigrationIdentity partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json); /// - /// AfterToJson will be called after the json erialization has finished, allowing customization of the AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior /// /// The JSON container that the serialization result will be placed in. @@ -29,7 +29,8 @@ public partial class DataMigrationIdentity /// /// 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. + /// If you wish 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. @@ -41,7 +42,8 @@ public partial class DataMigrationIdentity /// /// 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. + /// 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. diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Support/CreatedByType.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Support/CreatedByType.cs index 049474999dbd..588956a61d17 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Support/CreatedByType.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Support/CreatedByType.cs @@ -27,7 +27,7 @@ internal static object CreateFrom(object value) return new CreatedByType(global::System.Convert.ToString(value)); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private CreatedByType(string underlyingValue) { @@ -81,8 +81,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataMi } /// Overriding != operator for enum CreatedByType - /// the value to compare against - /// the value to compare against + /// 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.DataMigration.Support.CreatedByType e1, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType e2) { @@ -90,8 +90,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataMi } /// Overriding == operator for enum CreatedByType - /// the value to compare against - /// the value to compare against + /// 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.DataMigration.Support.CreatedByType e1, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType e2) { diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Support/OperationOrigin.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Support/OperationOrigin.cs index b01945e26621..775fca93bc42 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Support/OperationOrigin.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Support/OperationOrigin.cs @@ -46,7 +46,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private OperationOrigin(string underlyingValue) { @@ -77,8 +77,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataMi } /// Overriding != operator for enum OperationOrigin - /// the value to compare against - /// the value to compare against + /// 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.DataMigration.Support.OperationOrigin e1, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.OperationOrigin e2) { @@ -86,8 +86,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataMi } /// Overriding == operator for enum OperationOrigin - /// the value to compare against - /// the value to compare against + /// 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.DataMigration.Support.OperationOrigin e1, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.OperationOrigin e2) { diff --git a/src/DataMigration/DataMigration.Autorest/generated/api/Support/ResourceType.cs b/src/DataMigration/DataMigration.Autorest/generated/api/Support/ResourceType.cs index c3e8be94c6f9..acf67ce6df39 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/api/Support/ResourceType.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/api/Support/ResourceType.cs @@ -48,7 +48,7 @@ public override int GetHashCode() return this._value.GetHashCode(); } - /// Creates an instance of the + /// Creates an instance of the Enum class. /// the value to create an instance for. private ResourceType(string underlyingValue) { @@ -79,8 +79,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataMi } /// Overriding != operator for enum ResourceType - /// the value to compare against - /// the value to compare against + /// 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.DataMigration.Support.ResourceType e1, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType e2) { @@ -88,8 +88,8 @@ public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataMi } /// Overriding == operator for enum ResourceType - /// the value to compare against - /// the value to compare against + /// 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.DataMigration.Support.ResourceType e1, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType e2) { diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationOperation_List.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationOperation_List.cs index 03666447a715..72498bbafedd 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationOperation_List.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationOperation_List.cs @@ -73,11 +73,11 @@ public partial class GetAzDataMigrationOperation_List : global::System.Managemen public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlServiceAuthKey_List.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlServiceAuthKey_List.cs index b6188f346c5a..23f058b3d08c 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlServiceAuthKey_List.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlServiceAuthKey_List.cs @@ -67,11 +67,11 @@ public partial class GetAzDataMigrationSqlServiceAuthKey_List : global::System.M public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlServiceIntegrationRuntimeMetric_List.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlServiceIntegrationRuntimeMetric_List.cs index 5ce6bc3da8ca..a9d2d32e194c 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlServiceIntegrationRuntimeMetric_List.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlServiceIntegrationRuntimeMetric_List.cs @@ -69,11 +69,11 @@ public partial class GetAzDataMigrationSqlServiceIntegrationRuntimeMetric_List : public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlServiceMigration_List.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlServiceMigration_List.cs index 6a0639f78d5a..8f55572c8728 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlServiceMigration_List.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlServiceMigration_List.cs @@ -73,11 +73,11 @@ public partial class GetAzDataMigrationSqlServiceMigration_List : global::System public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_Get.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_Get.cs index a9eef1b91408..0aea6957bc93 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_Get.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_Get.cs @@ -67,11 +67,11 @@ public partial class GetAzDataMigrationSqlService_Get : global::System.Managemen public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_GetViaIdentity.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_GetViaIdentity.cs index 9107e1386099..7119d6211047 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_GetViaIdentity.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_GetViaIdentity.cs @@ -75,11 +75,11 @@ public partial class GetAzDataMigrationSqlService_GetViaIdentity : global::Syste public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_List.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_List.cs index a6d1ba31f841..1bb824d6c7b2 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_List.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_List.cs @@ -73,11 +73,11 @@ public partial class GetAzDataMigrationSqlService_List : global::System.Manageme public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_List1.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_List1.cs index 7b3f65b521b8..da1944bc241e 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_List1.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_List1.cs @@ -73,11 +73,11 @@ public partial class GetAzDataMigrationSqlService_List1 : global::System.Managem public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlDb_Get.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlDb_Get.cs index 8a1f15a89ca9..3ee5199dff48 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlDb_Get.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlDb_Get.cs @@ -81,11 +81,11 @@ public partial class GetAzDataMigrationToSqlDb_Get : global::System.Management.A public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlDb_GetViaIdentity.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlDb_GetViaIdentity.cs index 354d55ba72b7..4105576bfc07 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlDb_GetViaIdentity.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlDb_GetViaIdentity.cs @@ -89,11 +89,11 @@ public partial class GetAzDataMigrationToSqlDb_GetViaIdentity : global::System.M public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlManagedInstance_Get.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlManagedInstance_Get.cs index 554fe12b6643..9e06a43410c1 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlManagedInstance_Get.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlManagedInstance_Get.cs @@ -94,11 +94,11 @@ public partial class GetAzDataMigrationToSqlManagedInstance_Get : global::System public string ManagedInstanceName { get => this._managedInstanceName; set => this._managedInstanceName = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlManagedInstance_GetViaIdentity.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlManagedInstance_GetViaIdentity.cs index aebeca448799..4f3c3708f890 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlManagedInstance_GetViaIdentity.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlManagedInstance_GetViaIdentity.cs @@ -89,11 +89,11 @@ public partial class GetAzDataMigrationToSqlManagedInstance_GetViaIdentity : glo public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlVM_Get.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlVM_Get.cs index 354aa9f1bbcd..72cd3ae6f4ea 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlVM_Get.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlVM_Get.cs @@ -81,11 +81,11 @@ public partial class GetAzDataMigrationToSqlVM_Get : global::System.Management.A public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlVM_GetViaIdentity.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlVM_GetViaIdentity.cs index 481e5da2ec05..0d3d43f7c3ac 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlVM_GetViaIdentity.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlVM_GetViaIdentity.cs @@ -89,11 +89,11 @@ public partial class GetAzDataMigrationToSqlVM_GetViaIdentity : global::System.M public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationCutoverToSqlManagedInstance_CutoverExpanded.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationCutoverToSqlManagedInstance_CutoverExpanded.cs index 9191e222077d..0f41fbc59404 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationCutoverToSqlManagedInstance_CutoverExpanded.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationCutoverToSqlManagedInstance_CutoverExpanded.cs @@ -35,6 +35,9 @@ public partial class InvokeAzDataMigrationCutoverToSqlManagedInstance_CutoverExp /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// Migration Operation Input + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IMigrationOperationInput _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.MigrationOperationInput(); + /// 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.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] @@ -86,11 +89,11 @@ public partial class InvokeAzDataMigrationCutoverToSqlManagedInstance_CutoverExp public string ManagedInstanceName { get => this._managedInstanceName; set => this._managedInstanceName = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// ID tracking migration operation. @@ -102,7 +105,7 @@ public partial class InvokeAzDataMigrationCutoverToSqlManagedInstance_CutoverExp Description = @"ID tracking migration operation.", SerializedName = @"migrationOperationId", PossibleTypes = new [] { typeof(string) })] - public string MigrationOperationId { get => ParametersBody.MigrationOperationId ?? null; set => ParametersBody.MigrationOperationId = value; } + public string MigrationOperationId { get => _parametersBody.MigrationOperationId ?? null; set => _parametersBody.MigrationOperationId = value; } /// /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue @@ -112,12 +115,6 @@ public partial class InvokeAzDataMigrationCutoverToSqlManagedInstance_CutoverExp [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IMigrationOperationInput _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.MigrationOperationInput(); - - /// Migration Operation Input - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IMigrationOperationInput 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. /// @@ -252,7 +249,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets.InvokeAzDataMigr clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; clone.ResourceGroupName = this.ResourceGroupName; clone.ManagedInstanceName = this.ManagedInstanceName; clone.TargetDbName = this.TargetDbName; @@ -419,12 +416,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DatabaseMigrationsSqlMiCutover(ResourceGroupName, ManagedInstanceName, TargetDbName, SubscriptionId, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.DatabaseMigrationsSqlMiCutover(ResourceGroupName, ManagedInstanceName, TargetDbName, SubscriptionId, _parametersBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,ManagedInstanceName=ManagedInstanceName,TargetDbName=TargetDbName,SubscriptionId=SubscriptionId,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,ManagedInstanceName=ManagedInstanceName,TargetDbName=TargetDbName,SubscriptionId=SubscriptionId,body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -464,7 +461,7 @@ protected override void StopProcessing() // Error Response : default // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.RestException(responseMessage); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, ManagedInstanceName=ManagedInstanceName, TargetDbName=TargetDbName, SubscriptionId=SubscriptionId, body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, ManagedInstanceName=ManagedInstanceName, TargetDbName=TargetDbName, SubscriptionId=SubscriptionId, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationCutoverToSqlVM_CutoverExpanded.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationCutoverToSqlVM_CutoverExpanded.cs index 2a2f9d7b565e..3a607fa9b79d 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationCutoverToSqlVM_CutoverExpanded.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationCutoverToSqlVM_CutoverExpanded.cs @@ -33,6 +33,9 @@ public partial class InvokeAzDataMigrationCutoverToSqlVM_CutoverExpanded : globa /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// Migration Operation Input + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IMigrationOperationInput _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.MigrationOperationInput(); + /// 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.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] @@ -71,11 +74,11 @@ public partial class InvokeAzDataMigrationCutoverToSqlVM_CutoverExpanded : globa public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// ID tracking migration operation. @@ -87,7 +90,7 @@ public partial class InvokeAzDataMigrationCutoverToSqlVM_CutoverExpanded : globa Description = @"ID tracking migration operation.", SerializedName = @"migrationOperationId", PossibleTypes = new [] { typeof(string) })] - public string MigrationOperationId { get => ParametersBody.MigrationOperationId ?? null; set => ParametersBody.MigrationOperationId = value; } + public string MigrationOperationId { get => _parametersBody.MigrationOperationId ?? null; set => _parametersBody.MigrationOperationId = value; } /// /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue @@ -97,12 +100,6 @@ public partial class InvokeAzDataMigrationCutoverToSqlVM_CutoverExpanded : globa [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IMigrationOperationInput _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.MigrationOperationInput(); - - /// Migration Operation Input - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IMigrationOperationInput 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. /// @@ -248,7 +245,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets.InvokeAzDataMigr clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; clone.ResourceGroupName = this.ResourceGroupName; clone.SqlVirtualMachineName = this.SqlVirtualMachineName; clone.TargetDbName = this.TargetDbName; @@ -414,12 +411,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DatabaseMigrationsSqlVMCutover(ResourceGroupName, SqlVirtualMachineName, TargetDbName, SubscriptionId, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.DatabaseMigrationsSqlVMCutover(ResourceGroupName, SqlVirtualMachineName, TargetDbName, SubscriptionId, _parametersBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,SqlVirtualMachineName=SqlVirtualMachineName,TargetDbName=TargetDbName,SubscriptionId=SubscriptionId,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,SqlVirtualMachineName=SqlVirtualMachineName,TargetDbName=TargetDbName,SubscriptionId=SubscriptionId,body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -459,7 +456,7 @@ protected override void StopProcessing() // Error Response : default // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.RestException(responseMessage); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SqlVirtualMachineName=SqlVirtualMachineName, TargetDbName=TargetDbName, SubscriptionId=SubscriptionId, body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SqlVirtualMachineName=SqlVirtualMachineName, TargetDbName=TargetDbName, SubscriptionId=SubscriptionId, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationSqlServiceAuthKey_RegenerateExpanded.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationSqlServiceAuthKey_RegenerateExpanded.cs index 1c35b6ae6b76..471ccae44897 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationSqlServiceAuthKey_RegenerateExpanded.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationSqlServiceAuthKey_RegenerateExpanded.cs @@ -36,6 +36,9 @@ public partial class NewAzDataMigrationSqlServiceAuthKey_RegenerateExpanded : gl /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// An authentication key to regenerate. + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IRegenAuthKeys _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.RegenAuthKeys(); + /// The first authentication key. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The first authentication key.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Body)] @@ -45,7 +48,7 @@ public partial class NewAzDataMigrationSqlServiceAuthKey_RegenerateExpanded : gl Description = @"The first authentication key.", SerializedName = @"authKey1", PossibleTypes = new [] { typeof(string) })] - public string AuthKey1 { get => ParametersBody.AuthKey1 ?? null; set => ParametersBody.AuthKey1 = value; } + public string AuthKey1 { get => _parametersBody.AuthKey1 ?? null; set => _parametersBody.AuthKey1 = value; } /// The second authentication key. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The second authentication key.")] @@ -56,7 +59,7 @@ public partial class NewAzDataMigrationSqlServiceAuthKey_RegenerateExpanded : gl Description = @"The second authentication key.", SerializedName = @"authKey2", PossibleTypes = new [] { typeof(string) })] - public string AuthKey2 { get => ParametersBody.AuthKey2 ?? null; set => ParametersBody.AuthKey2 = value; } + public string AuthKey2 { get => _parametersBody.AuthKey2 ?? null; set => _parametersBody.AuthKey2 = value; } /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -99,22 +102,16 @@ public partial class NewAzDataMigrationSqlServiceAuthKey_RegenerateExpanded : gl Description = @"The name of authentication key to generate.", SerializedName = @"keyName", PossibleTypes = new [] { typeof(string) })] - public string KeyName { get => ParametersBody.KeyName ?? null; set => ParametersBody.KeyName = value; } + public string KeyName { get => _parametersBody.KeyName ?? null; set => _parametersBody.KeyName = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IRegenAuthKeys _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.RegenAuthKeys(); - - /// An authentication key to regenerate. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IRegenAuthKeys 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. /// @@ -360,12 +357,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.SqlMigrationServicesRegenerateAuthKeys(ResourceGroupName, SqlMigrationServiceName, SubscriptionId, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.SqlMigrationServicesRegenerateAuthKeys(ResourceGroupName, SqlMigrationServiceName, SubscriptionId, _parametersBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,SqlMigrationServiceName=SqlMigrationServiceName,SubscriptionId=SubscriptionId,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,SqlMigrationServiceName=SqlMigrationServiceName,SubscriptionId=SubscriptionId,body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -405,7 +402,7 @@ protected override void StopProcessing() // Error Response : default // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.RestException(responseMessage); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SqlMigrationServiceName=SqlMigrationServiceName, SubscriptionId=SubscriptionId, body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SqlMigrationServiceName=SqlMigrationServiceName, SubscriptionId=SubscriptionId, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationSqlService_CreateExpanded.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationSqlService_CreateExpanded.cs index 9c64b4fbbf97..48ded9072095 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationSqlService_CreateExpanded.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationSqlService_CreateExpanded.cs @@ -34,6 +34,9 @@ public partial class NewAzDataMigrationSqlService_CreateExpanded : global::Syste /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// A SQL Migration Service. + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlMigrationService _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.SqlMigrationService(); + /// 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.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] @@ -80,14 +83,14 @@ public partial class NewAzDataMigrationSqlService_CreateExpanded : global::Syste Description = @".", SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] - public string Location { get => ParametersBody.Location ?? null; set => ParametersBody.Location = value; } + public string Location { get => _parametersBody.Location ?? null; set => _parametersBody.Location = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -113,12 +116,6 @@ public partial class NewAzDataMigrationSqlService_CreateExpanded : global::Syste [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlMigrationService _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.SqlMigrationService(); - - /// A SQL Migration Service. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlMigrationService 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. /// @@ -192,7 +189,7 @@ public partial class NewAzDataMigrationSqlService_CreateExpanded : global::Syste Description = @"Dictionary of ", SerializedName = @"tags", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ITrackedResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ITrackedResourceTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ITrackedResourceTags 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 @@ -251,7 +248,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets.NewAzDataMigrati clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; clone.ResourceGroupName = this.ResourceGroupName; clone.Name = this.Name; clone.SubscriptionId = this.SubscriptionId; @@ -416,12 +413,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.SqlMigrationServicesCreateOrUpdate(ResourceGroupName, Name, SubscriptionId, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.SqlMigrationServicesCreateOrUpdate(ResourceGroupName, Name, SubscriptionId, _parametersBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.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}) + 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 } }); @@ -461,7 +458,7 @@ protected override void StopProcessing() // Error Response : default // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.RestException(responseMessage); - 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 }) + 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 } }); diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationToSqlDb_CreateExpanded.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationToSqlDb_CreateExpanded.cs index 2fde510dacb5..cd02a84b7def 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationToSqlDb_CreateExpanded.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationToSqlDb_CreateExpanded.cs @@ -34,6 +34,9 @@ public partial class NewAzDataMigrationToSqlDb_CreateExpanded : global::System.M /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// Database Migration Resource for SQL Database. + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IDatabaseMigrationSqlDb _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.DatabaseMigrationSqlDb(); + /// 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.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] @@ -81,14 +84,14 @@ public partial class NewAzDataMigrationToSqlDb_CreateExpanded : global::System.M SerializedName = @"kind", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType))] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType Kind { get => ParametersBody.Kind ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType)""); set => ParametersBody.Kind = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType Kind { get => _parametersBody.Kind ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType)""); set => _parametersBody.Kind = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// ID tracking current migration operation. @@ -101,7 +104,7 @@ public partial class NewAzDataMigrationToSqlDb_CreateExpanded : global::System.M SerializedName = @"migrationOperationId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotExport] - public string MigrationOperationId { get => ParametersBody.MigrationOperationId ?? null; set => ParametersBody.MigrationOperationId = value; } + public string MigrationOperationId { get => _parametersBody.MigrationOperationId ?? null; set => _parametersBody.MigrationOperationId = value; } /// Resource Id of the Migration Service. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource Id of the Migration Service.")] @@ -112,7 +115,7 @@ public partial class NewAzDataMigrationToSqlDb_CreateExpanded : global::System.M Description = @"Resource Id of the Migration Service.", SerializedName = @"migrationService", PossibleTypes = new [] { typeof(string) })] - public string MigrationService { get => ParametersBody.MigrationService ?? null; set => ParametersBody.MigrationService = value; } + public string MigrationService { get => _parametersBody.MigrationService ?? null; set => _parametersBody.MigrationService = value; } /// /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue @@ -122,12 +125,6 @@ public partial class NewAzDataMigrationToSqlDb_CreateExpanded : global::System.M [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IDatabaseMigrationSqlDb _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.DatabaseMigrationSqlDb(); - - /// Database Migration Resource for SQL Database. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IDatabaseMigrationSqlDb 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. /// @@ -150,7 +147,7 @@ public partial class NewAzDataMigrationToSqlDb_CreateExpanded : global::System.M SerializedName = @"provisioningError", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotExport] - public string ProvisioningError { get => ParametersBody.ProvisioningError ?? null; set => ParametersBody.ProvisioningError = value; } + public string ProvisioningError { get => _parametersBody.ProvisioningError ?? null; set => _parametersBody.ProvisioningError = 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")] @@ -194,7 +191,7 @@ public partial class NewAzDataMigrationToSqlDb_CreateExpanded : global::System.M Description = @"Resource Id of the target resource (SQL VM or SQL Managed Instance)", SerializedName = @"scope", PossibleTypes = new [] { typeof(string) })] - public string Scope { get => ParametersBody.Scope ?? null; set => ParametersBody.Scope = value; } + public string Scope { get => _parametersBody.Scope ?? null; set => _parametersBody.Scope = value; } /// Name of the source database. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the source database.")] @@ -205,7 +202,7 @@ public partial class NewAzDataMigrationToSqlDb_CreateExpanded : global::System.M Description = @"Name of the source database.", SerializedName = @"sourceDatabaseName", PossibleTypes = new [] { typeof(string) })] - public string SourceDatabaseName { get => ParametersBody.SourceDatabaseName ?? null; set => ParametersBody.SourceDatabaseName = value; } + public string SourceDatabaseName { get => _parametersBody.SourceDatabaseName ?? null; set => _parametersBody.SourceDatabaseName = value; } /// Authentication type. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Authentication type.")] @@ -216,7 +213,7 @@ public partial class NewAzDataMigrationToSqlDb_CreateExpanded : global::System.M Description = @"Authentication type.", SerializedName = @"authentication", PossibleTypes = new [] { typeof(string) })] - public string SourceSqlConnectionAuthentication { get => ParametersBody.SourceSqlConnectionAuthentication ?? null; set => ParametersBody.SourceSqlConnectionAuthentication = value; } + public string SourceSqlConnectionAuthentication { get => _parametersBody.SourceSqlConnectionAuthentication ?? null; set => _parametersBody.SourceSqlConnectionAuthentication = value; } /// Data source. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Data source.")] @@ -227,7 +224,7 @@ public partial class NewAzDataMigrationToSqlDb_CreateExpanded : global::System.M Description = @"Data source.", SerializedName = @"dataSource", PossibleTypes = new [] { typeof(string) })] - public string SourceSqlConnectionDataSource { get => ParametersBody.SourceSqlConnectionDataSource ?? null; set => ParametersBody.SourceSqlConnectionDataSource = value; } + public string SourceSqlConnectionDataSource { get => _parametersBody.SourceSqlConnectionDataSource ?? null; set => _parametersBody.SourceSqlConnectionDataSource = value; } /// Whether to encrypt connection or not. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Whether to encrypt connection or not.")] @@ -238,7 +235,7 @@ public partial class NewAzDataMigrationToSqlDb_CreateExpanded : global::System.M Description = @"Whether to encrypt connection or not.", SerializedName = @"encryptConnection", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] - public global::System.Management.Automation.SwitchParameter SourceSqlConnectionEncryptConnection { get => ParametersBody.SourceSqlConnectionEncryptConnection ?? default(global::System.Management.Automation.SwitchParameter); set => ParametersBody.SourceSqlConnectionEncryptConnection = value; } + public global::System.Management.Automation.SwitchParameter SourceSqlConnectionEncryptConnection { get => _parametersBody.SourceSqlConnectionEncryptConnection ?? default(global::System.Management.Automation.SwitchParameter); set => _parametersBody.SourceSqlConnectionEncryptConnection = value; } /// Password to connect to source SQL. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Password to connect to source SQL.")] @@ -249,7 +246,7 @@ public partial class NewAzDataMigrationToSqlDb_CreateExpanded : global::System.M Description = @"Password to connect to source SQL.", SerializedName = @"password", PossibleTypes = new [] { typeof(System.Security.SecureString) })] - public System.Security.SecureString SourceSqlConnectionPassword { get => ParametersBody.SourceSqlConnectionPassword ?? null; set => ParametersBody.SourceSqlConnectionPassword = value; } + public System.Security.SecureString SourceSqlConnectionPassword { get => _parametersBody.SourceSqlConnectionPassword ?? null; set => _parametersBody.SourceSqlConnectionPassword = value; } /// Whether to trust server certificate or not. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Whether to trust server certificate or not.")] @@ -260,7 +257,7 @@ public partial class NewAzDataMigrationToSqlDb_CreateExpanded : global::System.M Description = @"Whether to trust server certificate or not.", SerializedName = @"trustServerCertificate", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] - public global::System.Management.Automation.SwitchParameter SourceSqlConnectionTrustServerCertificate { get => ParametersBody.SourceSqlConnectionTrustServerCertificate ?? default(global::System.Management.Automation.SwitchParameter); set => ParametersBody.SourceSqlConnectionTrustServerCertificate = value; } + public global::System.Management.Automation.SwitchParameter SourceSqlConnectionTrustServerCertificate { get => _parametersBody.SourceSqlConnectionTrustServerCertificate ?? default(global::System.Management.Automation.SwitchParameter); set => _parametersBody.SourceSqlConnectionTrustServerCertificate = value; } /// User name to connect to source SQL. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "User name to connect to source SQL.")] @@ -271,7 +268,7 @@ public partial class NewAzDataMigrationToSqlDb_CreateExpanded : global::System.M Description = @"User name to connect to source SQL.", SerializedName = @"userName", PossibleTypes = new [] { typeof(string) })] - public string SourceSqlConnectionUserName { get => ParametersBody.SourceSqlConnectionUserName ?? null; set => ParametersBody.SourceSqlConnectionUserName = value; } + public string SourceSqlConnectionUserName { get => _parametersBody.SourceSqlConnectionUserName ?? null; set => _parametersBody.SourceSqlConnectionUserName = value; } /// Backing field for property. private string _sqlDbInstanceName; @@ -314,7 +311,7 @@ public partial class NewAzDataMigrationToSqlDb_CreateExpanded : global::System.M Description = @"List of tables to copy.", SerializedName = @"tableList", PossibleTypes = new [] { typeof(string) })] - public string[] TableList { get => ParametersBody.TableList ?? null /* arrayOf */; set => ParametersBody.TableList = value; } + public string[] TableList { get => _parametersBody.TableList ?? null /* arrayOf */; set => _parametersBody.TableList = value; } /// Database collation to be used for the target database. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Database collation to be used for the target database.")] @@ -325,7 +322,7 @@ public partial class NewAzDataMigrationToSqlDb_CreateExpanded : global::System.M Description = @"Database collation to be used for the target database.", SerializedName = @"targetDatabaseCollation", PossibleTypes = new [] { typeof(string) })] - public string TargetDatabaseCollation { get => ParametersBody.TargetDatabaseCollation ?? null; set => ParametersBody.TargetDatabaseCollation = value; } + public string TargetDatabaseCollation { get => _parametersBody.TargetDatabaseCollation ?? null; set => _parametersBody.TargetDatabaseCollation = value; } /// Backing field for property. private string _targetDbName; @@ -350,7 +347,7 @@ public partial class NewAzDataMigrationToSqlDb_CreateExpanded : global::System.M Description = @"Authentication type.", SerializedName = @"authentication", PossibleTypes = new [] { typeof(string) })] - public string TargetSqlConnectionAuthentication { get => ParametersBody.TargetSqlConnectionAuthentication ?? null; set => ParametersBody.TargetSqlConnectionAuthentication = value; } + public string TargetSqlConnectionAuthentication { get => _parametersBody.TargetSqlConnectionAuthentication ?? null; set => _parametersBody.TargetSqlConnectionAuthentication = value; } /// Data source. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Data source.")] @@ -361,7 +358,7 @@ public partial class NewAzDataMigrationToSqlDb_CreateExpanded : global::System.M Description = @"Data source.", SerializedName = @"dataSource", PossibleTypes = new [] { typeof(string) })] - public string TargetSqlConnectionDataSource { get => ParametersBody.TargetSqlConnectionDataSource ?? null; set => ParametersBody.TargetSqlConnectionDataSource = value; } + public string TargetSqlConnectionDataSource { get => _parametersBody.TargetSqlConnectionDataSource ?? null; set => _parametersBody.TargetSqlConnectionDataSource = value; } /// Whether to encrypt connection or not. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Whether to encrypt connection or not.")] @@ -372,7 +369,7 @@ public partial class NewAzDataMigrationToSqlDb_CreateExpanded : global::System.M Description = @"Whether to encrypt connection or not.", SerializedName = @"encryptConnection", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] - public global::System.Management.Automation.SwitchParameter TargetSqlConnectionEncryptConnection { get => ParametersBody.TargetSqlConnectionEncryptConnection ?? default(global::System.Management.Automation.SwitchParameter); set => ParametersBody.TargetSqlConnectionEncryptConnection = value; } + public global::System.Management.Automation.SwitchParameter TargetSqlConnectionEncryptConnection { get => _parametersBody.TargetSqlConnectionEncryptConnection ?? default(global::System.Management.Automation.SwitchParameter); set => _parametersBody.TargetSqlConnectionEncryptConnection = value; } /// Password to connect to source SQL. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Password to connect to source SQL.")] @@ -383,7 +380,7 @@ public partial class NewAzDataMigrationToSqlDb_CreateExpanded : global::System.M Description = @"Password to connect to source SQL.", SerializedName = @"password", PossibleTypes = new [] { typeof(System.Security.SecureString) })] - public System.Security.SecureString TargetSqlConnectionPassword { get => ParametersBody.TargetSqlConnectionPassword ?? null; set => ParametersBody.TargetSqlConnectionPassword = value; } + public System.Security.SecureString TargetSqlConnectionPassword { get => _parametersBody.TargetSqlConnectionPassword ?? null; set => _parametersBody.TargetSqlConnectionPassword = value; } /// Whether to trust server certificate or not. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Whether to trust server certificate or not.")] @@ -394,7 +391,7 @@ public partial class NewAzDataMigrationToSqlDb_CreateExpanded : global::System.M Description = @"Whether to trust server certificate or not.", SerializedName = @"trustServerCertificate", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] - public global::System.Management.Automation.SwitchParameter TargetSqlConnectionTrustServerCertificate { get => ParametersBody.TargetSqlConnectionTrustServerCertificate ?? default(global::System.Management.Automation.SwitchParameter); set => ParametersBody.TargetSqlConnectionTrustServerCertificate = value; } + public global::System.Management.Automation.SwitchParameter TargetSqlConnectionTrustServerCertificate { get => _parametersBody.TargetSqlConnectionTrustServerCertificate ?? default(global::System.Management.Automation.SwitchParameter); set => _parametersBody.TargetSqlConnectionTrustServerCertificate = value; } /// User name to connect to source SQL. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "User name to connect to source SQL.")] @@ -405,7 +402,7 @@ public partial class NewAzDataMigrationToSqlDb_CreateExpanded : global::System.M Description = @"User name to connect to source SQL.", SerializedName = @"userName", PossibleTypes = new [] { typeof(string) })] - public string TargetSqlConnectionUserName { get => ParametersBody.TargetSqlConnectionUserName ?? null; set => ParametersBody.TargetSqlConnectionUserName = value; } + public string TargetSqlConnectionUserName { get => _parametersBody.TargetSqlConnectionUserName ?? null; set => _parametersBody.TargetSqlConnectionUserName = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what @@ -464,7 +461,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets.NewAzDataMigrati clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; clone.ResourceGroupName = this.ResourceGroupName; clone.SqlDbInstanceName = this.SqlDbInstanceName; clone.TargetDbName = this.TargetDbName; @@ -630,12 +627,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DatabaseMigrationsSqlDbCreateOrUpdate(ResourceGroupName, SqlDbInstanceName, TargetDbName, SubscriptionId, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.DatabaseMigrationsSqlDbCreateOrUpdate(ResourceGroupName, SqlDbInstanceName, TargetDbName, SubscriptionId, _parametersBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,SqlDbInstanceName=SqlDbInstanceName,TargetDbName=TargetDbName,SubscriptionId=SubscriptionId,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,SqlDbInstanceName=SqlDbInstanceName,TargetDbName=TargetDbName,SubscriptionId=SubscriptionId,body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -675,7 +672,7 @@ protected override void StopProcessing() // Error Response : default // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.RestException(responseMessage); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SqlDbInstanceName=SqlDbInstanceName, TargetDbName=TargetDbName, SubscriptionId=SubscriptionId, body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SqlDbInstanceName=SqlDbInstanceName, TargetDbName=TargetDbName, SubscriptionId=SubscriptionId, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationToSqlManagedInstance_CreateExpanded.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationToSqlManagedInstance_CreateExpanded.cs index 0eefae7dd96b..62e9af1225c2 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationToSqlManagedInstance_CreateExpanded.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationToSqlManagedInstance_CreateExpanded.cs @@ -34,6 +34,9 @@ public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : glo /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// Database Migration Resource for SQL Managed Instance. + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IDatabaseMigrationSqlMi _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.DatabaseMigrationSqlMi(); + /// 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.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] @@ -48,7 +51,7 @@ public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : glo Description = @"Storage Account Key.", SerializedName = @"accountKey", PossibleTypes = new [] { typeof(string) })] - public string AzureBlobAccountKey { get => ParametersBody.AzureBlobAccountKey ?? null; set => ParametersBody.AzureBlobAccountKey = value; } + public string AzureBlobAccountKey { get => _parametersBody.AzureBlobAccountKey ?? null; set => _parametersBody.AzureBlobAccountKey = value; } /// Blob container name where backups are stored. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Blob container name where backups are stored.")] @@ -59,7 +62,7 @@ public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : glo Description = @"Blob container name where backups are stored.", SerializedName = @"blobContainerName", PossibleTypes = new [] { typeof(string) })] - public string AzureBlobContainerName { get => ParametersBody.AzureBlobContainerName ?? null; set => ParametersBody.AzureBlobContainerName = value; } + public string AzureBlobContainerName { get => _parametersBody.AzureBlobContainerName ?? null; set => _parametersBody.AzureBlobContainerName = value; } /// Resource Id of the storage account where backups are stored. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource Id of the storage account where backups are stored.")] @@ -70,7 +73,7 @@ public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : glo Description = @"Resource Id of the storage account where backups are stored.", SerializedName = @"storageAccountResourceId", PossibleTypes = new [] { typeof(string) })] - public string AzureBlobStorageAccountResourceId { get => ParametersBody.AzureBlobStorageAccountResourceId ?? null; set => ParametersBody.AzureBlobStorageAccountResourceId = value; } + public string AzureBlobStorageAccountResourceId { get => _parametersBody.AzureBlobStorageAccountResourceId ?? null; set => _parametersBody.AzureBlobStorageAccountResourceId = value; } /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -98,7 +101,7 @@ public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : glo Description = @"Password for username to access file share location.", SerializedName = @"password", PossibleTypes = new [] { typeof(System.Security.SecureString) })] - public System.Security.SecureString FileSharePassword { get => ParametersBody.FileSharePassword ?? null; set => ParametersBody.FileSharePassword = value; } + public System.Security.SecureString FileSharePassword { get => _parametersBody.FileSharePassword ?? null; set => _parametersBody.FileSharePassword = value; } /// Location as SMB share or local drive where backups are placed. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Location as SMB share or local drive where backups are placed.")] @@ -109,7 +112,7 @@ public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : glo Description = @"Location as SMB share or local drive where backups are placed.", SerializedName = @"path", PossibleTypes = new [] { typeof(string) })] - public string FileSharePath { get => ParametersBody.FileSharePath ?? null; set => ParametersBody.FileSharePath = value; } + public string FileSharePath { get => _parametersBody.FileSharePath ?? null; set => _parametersBody.FileSharePath = value; } /// Username to access the file share location for backups. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Username to access the file share location for backups.")] @@ -120,7 +123,7 @@ public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : glo Description = @"Username to access the file share location for backups.", SerializedName = @"username", PossibleTypes = new [] { typeof(string) })] - public string FileShareUsername { get => ParametersBody.FileShareUsername ?? null; set => ParametersBody.FileShareUsername = value; } + public string FileShareUsername { get => _parametersBody.FileShareUsername ?? null; set => _parametersBody.FileShareUsername = 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")] @@ -147,7 +150,7 @@ public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : glo SerializedName = @"kind", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType))] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType Kind { get => ParametersBody.Kind ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType)""); set => ParametersBody.Kind = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType Kind { get => _parametersBody.Kind ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType)""); set => _parametersBody.Kind = value; } /// Backing field for property. private string _managedInstanceName; @@ -163,11 +166,11 @@ public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : glo public string ManagedInstanceName { get => this._managedInstanceName; set => this._managedInstanceName = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// ID tracking current migration operation. @@ -180,7 +183,7 @@ public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : glo SerializedName = @"migrationOperationId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotExport] - public string MigrationOperationId { get => ParametersBody.MigrationOperationId ?? null; set => ParametersBody.MigrationOperationId = value; } + public string MigrationOperationId { get => _parametersBody.MigrationOperationId ?? null; set => _parametersBody.MigrationOperationId = value; } /// Resource Id of the Migration Service. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource Id of the Migration Service.")] @@ -191,7 +194,7 @@ public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : glo Description = @"Resource Id of the Migration Service.", SerializedName = @"migrationService", PossibleTypes = new [] { typeof(string) })] - public string MigrationService { get => ParametersBody.MigrationService ?? null; set => ParametersBody.MigrationService = value; } + public string MigrationService { get => _parametersBody.MigrationService ?? null; set => _parametersBody.MigrationService = value; } /// /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue @@ -210,7 +213,7 @@ public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : glo Description = @"Offline migration", SerializedName = @"offline", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] - public global::System.Management.Automation.SwitchParameter Offline { get => ParametersBody.OfflineConfigurationOffline ?? default(global::System.Management.Automation.SwitchParameter); set => ParametersBody.OfflineConfigurationOffline = value; } + public global::System.Management.Automation.SwitchParameter Offline { get => _parametersBody.OfflineConfigurationOffline ?? default(global::System.Management.Automation.SwitchParameter); set => _parametersBody.OfflineConfigurationOffline = value; } /// /// Last backup name for offline migration. This is optional for migrations from file share. If it is not provided, then the @@ -224,13 +227,7 @@ public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : glo Description = @"Last backup name for offline migration. This is optional for migrations from file share. If it is not provided, then the service will determine the last backup file name based on latest backup files present in file share.", SerializedName = @"lastBackupName", PossibleTypes = new [] { typeof(string) })] - public string OfflineConfigurationLastBackupName { get => ParametersBody.OfflineConfigurationLastBackupName ?? null; set => ParametersBody.OfflineConfigurationLastBackupName = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IDatabaseMigrationSqlMi _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.DatabaseMigrationSqlMi(); - - /// Database Migration Resource for SQL Managed Instance. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IDatabaseMigrationSqlMi ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + public string OfflineConfigurationLastBackupName { get => _parametersBody.OfflineConfigurationLastBackupName ?? null; set => _parametersBody.OfflineConfigurationLastBackupName = value; } /// /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. @@ -254,7 +251,7 @@ public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : glo SerializedName = @"provisioningError", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotExport] - public string ProvisioningError { get => ParametersBody.ProvisioningError ?? null; set => ParametersBody.ProvisioningError = value; } + public string ProvisioningError { get => _parametersBody.ProvisioningError ?? null; set => _parametersBody.ProvisioningError = 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")] @@ -298,7 +295,7 @@ public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : glo Description = @"Resource Id of the target resource (SQL VM or SQL Managed Instance)", SerializedName = @"scope", PossibleTypes = new [] { typeof(string) })] - public string Scope { get => ParametersBody.Scope ?? null; set => ParametersBody.Scope = value; } + public string Scope { get => _parametersBody.Scope ?? null; set => _parametersBody.Scope = value; } /// Name of the source database. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the source database.")] @@ -309,7 +306,7 @@ public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : glo Description = @"Name of the source database.", SerializedName = @"sourceDatabaseName", PossibleTypes = new [] { typeof(string) })] - public string SourceDatabaseName { get => ParametersBody.SourceDatabaseName ?? null; set => ParametersBody.SourceDatabaseName = value; } + public string SourceDatabaseName { get => _parametersBody.SourceDatabaseName ?? null; set => _parametersBody.SourceDatabaseName = value; } /// Authentication type. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Authentication type.")] @@ -320,7 +317,7 @@ public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : glo Description = @"Authentication type.", SerializedName = @"authentication", PossibleTypes = new [] { typeof(string) })] - public string SourceSqlConnectionAuthentication { get => ParametersBody.SourceSqlConnectionAuthentication ?? null; set => ParametersBody.SourceSqlConnectionAuthentication = value; } + public string SourceSqlConnectionAuthentication { get => _parametersBody.SourceSqlConnectionAuthentication ?? null; set => _parametersBody.SourceSqlConnectionAuthentication = value; } /// Data source. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Data source.")] @@ -331,7 +328,7 @@ public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : glo Description = @"Data source.", SerializedName = @"dataSource", PossibleTypes = new [] { typeof(string) })] - public string SourceSqlConnectionDataSource { get => ParametersBody.SourceSqlConnectionDataSource ?? null; set => ParametersBody.SourceSqlConnectionDataSource = value; } + public string SourceSqlConnectionDataSource { get => _parametersBody.SourceSqlConnectionDataSource ?? null; set => _parametersBody.SourceSqlConnectionDataSource = value; } /// Whether to encrypt connection or not. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Whether to encrypt connection or not.")] @@ -342,7 +339,7 @@ public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : glo Description = @"Whether to encrypt connection or not.", SerializedName = @"encryptConnection", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] - public global::System.Management.Automation.SwitchParameter SourceSqlConnectionEncryptConnection { get => ParametersBody.SourceSqlConnectionEncryptConnection ?? default(global::System.Management.Automation.SwitchParameter); set => ParametersBody.SourceSqlConnectionEncryptConnection = value; } + public global::System.Management.Automation.SwitchParameter SourceSqlConnectionEncryptConnection { get => _parametersBody.SourceSqlConnectionEncryptConnection ?? default(global::System.Management.Automation.SwitchParameter); set => _parametersBody.SourceSqlConnectionEncryptConnection = value; } /// Password to connect to source SQL. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Password to connect to source SQL.")] @@ -353,7 +350,7 @@ public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : glo Description = @"Password to connect to source SQL.", SerializedName = @"password", PossibleTypes = new [] { typeof(System.Security.SecureString) })] - public System.Security.SecureString SourceSqlConnectionPassword { get => ParametersBody.SourceSqlConnectionPassword ?? null; set => ParametersBody.SourceSqlConnectionPassword = value; } + public System.Security.SecureString SourceSqlConnectionPassword { get => _parametersBody.SourceSqlConnectionPassword ?? null; set => _parametersBody.SourceSqlConnectionPassword = value; } /// Whether to trust server certificate or not. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Whether to trust server certificate or not.")] @@ -364,7 +361,7 @@ public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : glo Description = @"Whether to trust server certificate or not.", SerializedName = @"trustServerCertificate", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] - public global::System.Management.Automation.SwitchParameter SourceSqlConnectionTrustServerCertificate { get => ParametersBody.SourceSqlConnectionTrustServerCertificate ?? default(global::System.Management.Automation.SwitchParameter); set => ParametersBody.SourceSqlConnectionTrustServerCertificate = value; } + public global::System.Management.Automation.SwitchParameter SourceSqlConnectionTrustServerCertificate { get => _parametersBody.SourceSqlConnectionTrustServerCertificate ?? default(global::System.Management.Automation.SwitchParameter); set => _parametersBody.SourceSqlConnectionTrustServerCertificate = value; } /// User name to connect to source SQL. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "User name to connect to source SQL.")] @@ -375,7 +372,7 @@ public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : glo Description = @"User name to connect to source SQL.", SerializedName = @"userName", PossibleTypes = new [] { typeof(string) })] - public string SourceSqlConnectionUserName { get => ParametersBody.SourceSqlConnectionUserName ?? null; set => ParametersBody.SourceSqlConnectionUserName = value; } + public string SourceSqlConnectionUserName { get => _parametersBody.SourceSqlConnectionUserName ?? null; set => _parametersBody.SourceSqlConnectionUserName = value; } /// Storage Account Key. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Storage Account Key.")] @@ -386,7 +383,7 @@ public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : glo Description = @"Storage Account Key.", SerializedName = @"accountKey", PossibleTypes = new [] { typeof(string) })] - public string StorageAccountKey { get => ParametersBody.TargetLocationAccountKey ?? null; set => ParametersBody.TargetLocationAccountKey = value; } + public string StorageAccountKey { get => _parametersBody.TargetLocationAccountKey ?? null; set => _parametersBody.TargetLocationAccountKey = value; } /// Resource Id of the storage account copying backups. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource Id of the storage account copying backups.")] @@ -397,7 +394,7 @@ public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : glo Description = @"Resource Id of the storage account copying backups.", SerializedName = @"storageAccountResourceId", PossibleTypes = new [] { typeof(string) })] - public string StorageAccountResourceId { get => ParametersBody.TargetLocationStorageAccountResourceId ?? null; set => ParametersBody.TargetLocationStorageAccountResourceId = value; } + public string StorageAccountResourceId { get => _parametersBody.TargetLocationStorageAccountResourceId ?? null; set => _parametersBody.TargetLocationStorageAccountResourceId = value; } /// Backing field for property. private string _subscriptionId; @@ -426,7 +423,7 @@ public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : glo Description = @"Database collation to be used for the target database.", SerializedName = @"targetDatabaseCollation", PossibleTypes = new [] { typeof(string) })] - public string TargetDatabaseCollation { get => ParametersBody.TargetDatabaseCollation ?? null; set => ParametersBody.TargetDatabaseCollation = value; } + public string TargetDatabaseCollation { get => _parametersBody.TargetDatabaseCollation ?? null; set => _parametersBody.TargetDatabaseCollation = value; } /// Backing field for property. private string _targetDbName; @@ -499,7 +496,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets.NewAzDataMigrati clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; clone.ResourceGroupName = this.ResourceGroupName; clone.ManagedInstanceName = this.ManagedInstanceName; clone.TargetDbName = this.TargetDbName; @@ -665,12 +662,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DatabaseMigrationsSqlMiCreateOrUpdate(ResourceGroupName, ManagedInstanceName, TargetDbName, SubscriptionId, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.DatabaseMigrationsSqlMiCreateOrUpdate(ResourceGroupName, ManagedInstanceName, TargetDbName, SubscriptionId, _parametersBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,ManagedInstanceName=ManagedInstanceName,TargetDbName=TargetDbName,SubscriptionId=SubscriptionId,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,ManagedInstanceName=ManagedInstanceName,TargetDbName=TargetDbName,SubscriptionId=SubscriptionId,body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -710,7 +707,7 @@ protected override void StopProcessing() // Error Response : default // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.RestException(responseMessage); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, ManagedInstanceName=ManagedInstanceName, TargetDbName=TargetDbName, SubscriptionId=SubscriptionId, body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, ManagedInstanceName=ManagedInstanceName, TargetDbName=TargetDbName, SubscriptionId=SubscriptionId, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationToSqlVM_CreateExpanded.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationToSqlVM_CreateExpanded.cs index 1fb6ea7f581f..b0a72f7f2f8b 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationToSqlVM_CreateExpanded.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationToSqlVM_CreateExpanded.cs @@ -34,6 +34,9 @@ public partial class NewAzDataMigrationToSqlVM_CreateExpanded : global::System.M /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// Database Migration Resource for SQL Virtual Machine. + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IDatabaseMigrationSqlVM _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.DatabaseMigrationSqlVM(); + /// 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.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] @@ -48,7 +51,7 @@ public partial class NewAzDataMigrationToSqlVM_CreateExpanded : global::System.M Description = @"Storage Account Key.", SerializedName = @"accountKey", PossibleTypes = new [] { typeof(string) })] - public string AzureBlobAccountKey { get => ParametersBody.AzureBlobAccountKey ?? null; set => ParametersBody.AzureBlobAccountKey = value; } + public string AzureBlobAccountKey { get => _parametersBody.AzureBlobAccountKey ?? null; set => _parametersBody.AzureBlobAccountKey = value; } /// Blob container name where backups are stored. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Blob container name where backups are stored.")] @@ -59,7 +62,7 @@ public partial class NewAzDataMigrationToSqlVM_CreateExpanded : global::System.M Description = @"Blob container name where backups are stored.", SerializedName = @"blobContainerName", PossibleTypes = new [] { typeof(string) })] - public string AzureBlobContainerName { get => ParametersBody.AzureBlobContainerName ?? null; set => ParametersBody.AzureBlobContainerName = value; } + public string AzureBlobContainerName { get => _parametersBody.AzureBlobContainerName ?? null; set => _parametersBody.AzureBlobContainerName = value; } /// Resource Id of the storage account where backups are stored. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource Id of the storage account where backups are stored.")] @@ -70,7 +73,7 @@ public partial class NewAzDataMigrationToSqlVM_CreateExpanded : global::System.M Description = @"Resource Id of the storage account where backups are stored.", SerializedName = @"storageAccountResourceId", PossibleTypes = new [] { typeof(string) })] - public string AzureBlobStorageAccountResourceId { get => ParametersBody.AzureBlobStorageAccountResourceId ?? null; set => ParametersBody.AzureBlobStorageAccountResourceId = value; } + public string AzureBlobStorageAccountResourceId { get => _parametersBody.AzureBlobStorageAccountResourceId ?? null; set => _parametersBody.AzureBlobStorageAccountResourceId = value; } /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -98,7 +101,7 @@ public partial class NewAzDataMigrationToSqlVM_CreateExpanded : global::System.M Description = @"Password for username to access file share location.", SerializedName = @"password", PossibleTypes = new [] { typeof(System.Security.SecureString) })] - public System.Security.SecureString FileSharePassword { get => ParametersBody.FileSharePassword ?? null; set => ParametersBody.FileSharePassword = value; } + public System.Security.SecureString FileSharePassword { get => _parametersBody.FileSharePassword ?? null; set => _parametersBody.FileSharePassword = value; } /// Location as SMB share or local drive where backups are placed. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Location as SMB share or local drive where backups are placed.")] @@ -109,7 +112,7 @@ public partial class NewAzDataMigrationToSqlVM_CreateExpanded : global::System.M Description = @"Location as SMB share or local drive where backups are placed.", SerializedName = @"path", PossibleTypes = new [] { typeof(string) })] - public string FileSharePath { get => ParametersBody.FileSharePath ?? null; set => ParametersBody.FileSharePath = value; } + public string FileSharePath { get => _parametersBody.FileSharePath ?? null; set => _parametersBody.FileSharePath = value; } /// Username to access the file share location for backups. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Username to access the file share location for backups.")] @@ -120,7 +123,7 @@ public partial class NewAzDataMigrationToSqlVM_CreateExpanded : global::System.M Description = @"Username to access the file share location for backups.", SerializedName = @"username", PossibleTypes = new [] { typeof(string) })] - public string FileShareUsername { get => ParametersBody.FileShareUsername ?? null; set => ParametersBody.FileShareUsername = value; } + public string FileShareUsername { get => _parametersBody.FileShareUsername ?? null; set => _parametersBody.FileShareUsername = 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")] @@ -147,14 +150,14 @@ public partial class NewAzDataMigrationToSqlVM_CreateExpanded : global::System.M SerializedName = @"kind", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) })] [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType))] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType Kind { get => ParametersBody.Kind ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType)""); set => ParametersBody.Kind = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType Kind { get => _parametersBody.Kind ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType)""); set => _parametersBody.Kind = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// ID tracking current migration operation. @@ -167,7 +170,7 @@ public partial class NewAzDataMigrationToSqlVM_CreateExpanded : global::System.M SerializedName = @"migrationOperationId", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotExport] - public string MigrationOperationId { get => ParametersBody.MigrationOperationId ?? null; set => ParametersBody.MigrationOperationId = value; } + public string MigrationOperationId { get => _parametersBody.MigrationOperationId ?? null; set => _parametersBody.MigrationOperationId = value; } /// Resource Id of the Migration Service. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource Id of the Migration Service.")] @@ -178,7 +181,7 @@ public partial class NewAzDataMigrationToSqlVM_CreateExpanded : global::System.M Description = @"Resource Id of the Migration Service.", SerializedName = @"migrationService", PossibleTypes = new [] { typeof(string) })] - public string MigrationService { get => ParametersBody.MigrationService ?? null; set => ParametersBody.MigrationService = value; } + public string MigrationService { get => _parametersBody.MigrationService ?? null; set => _parametersBody.MigrationService = value; } /// /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue @@ -197,7 +200,7 @@ public partial class NewAzDataMigrationToSqlVM_CreateExpanded : global::System.M Description = @"Offline migration", SerializedName = @"offline", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] - public global::System.Management.Automation.SwitchParameter Offline { get => ParametersBody.OfflineConfigurationOffline ?? default(global::System.Management.Automation.SwitchParameter); set => ParametersBody.OfflineConfigurationOffline = value; } + public global::System.Management.Automation.SwitchParameter Offline { get => _parametersBody.OfflineConfigurationOffline ?? default(global::System.Management.Automation.SwitchParameter); set => _parametersBody.OfflineConfigurationOffline = value; } /// /// Last backup name for offline migration. This is optional for migrations from file share. If it is not provided, then the @@ -211,13 +214,7 @@ public partial class NewAzDataMigrationToSqlVM_CreateExpanded : global::System.M Description = @"Last backup name for offline migration. This is optional for migrations from file share. If it is not provided, then the service will determine the last backup file name based on latest backup files present in file share.", SerializedName = @"lastBackupName", PossibleTypes = new [] { typeof(string) })] - public string OfflineConfigurationLastBackupName { get => ParametersBody.OfflineConfigurationLastBackupName ?? null; set => ParametersBody.OfflineConfigurationLastBackupName = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IDatabaseMigrationSqlVM _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.DatabaseMigrationSqlVM(); - - /// Database Migration Resource for SQL Virtual Machine. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IDatabaseMigrationSqlVM ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + public string OfflineConfigurationLastBackupName { get => _parametersBody.OfflineConfigurationLastBackupName ?? null; set => _parametersBody.OfflineConfigurationLastBackupName = value; } /// /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. @@ -241,7 +238,7 @@ public partial class NewAzDataMigrationToSqlVM_CreateExpanded : global::System.M SerializedName = @"provisioningError", PossibleTypes = new [] { typeof(string) })] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotExport] - public string ProvisioningError { get => ParametersBody.ProvisioningError ?? null; set => ParametersBody.ProvisioningError = value; } + public string ProvisioningError { get => _parametersBody.ProvisioningError ?? null; set => _parametersBody.ProvisioningError = 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")] @@ -288,7 +285,7 @@ public partial class NewAzDataMigrationToSqlVM_CreateExpanded : global::System.M Description = @"Resource Id of the target resource (SQL VM). For the Scope parameter, use the Scope of the SQL VM (/subscriptions/111-222/resourceGroups/myRG/providers/Microsoft.SqlVirtualMachine/SqlVirtualMachines/xyz-SqlVM) and not the Compute SQL VM (/subscriptions/111-222/resourceGroups/myRG/providers/Microsoft.Compute/virtualMachines/xyz-SqlVM)", SerializedName = @"scope", PossibleTypes = new [] { typeof(string) })] - public string Scope { get => ParametersBody.Scope ?? null; set => ParametersBody.Scope = value; } + public string Scope { get => _parametersBody.Scope ?? null; set => _parametersBody.Scope = value; } /// Name of the source database. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Name of the source database.")] @@ -299,7 +296,7 @@ public partial class NewAzDataMigrationToSqlVM_CreateExpanded : global::System.M Description = @"Name of the source database.", SerializedName = @"sourceDatabaseName", PossibleTypes = new [] { typeof(string) })] - public string SourceDatabaseName { get => ParametersBody.SourceDatabaseName ?? null; set => ParametersBody.SourceDatabaseName = value; } + public string SourceDatabaseName { get => _parametersBody.SourceDatabaseName ?? null; set => _parametersBody.SourceDatabaseName = value; } /// Authentication type. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Authentication type.")] @@ -310,7 +307,7 @@ public partial class NewAzDataMigrationToSqlVM_CreateExpanded : global::System.M Description = @"Authentication type.", SerializedName = @"authentication", PossibleTypes = new [] { typeof(string) })] - public string SourceSqlConnectionAuthentication { get => ParametersBody.SourceSqlConnectionAuthentication ?? null; set => ParametersBody.SourceSqlConnectionAuthentication = value; } + public string SourceSqlConnectionAuthentication { get => _parametersBody.SourceSqlConnectionAuthentication ?? null; set => _parametersBody.SourceSqlConnectionAuthentication = value; } /// Data source. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Data source.")] @@ -321,7 +318,7 @@ public partial class NewAzDataMigrationToSqlVM_CreateExpanded : global::System.M Description = @"Data source.", SerializedName = @"dataSource", PossibleTypes = new [] { typeof(string) })] - public string SourceSqlConnectionDataSource { get => ParametersBody.SourceSqlConnectionDataSource ?? null; set => ParametersBody.SourceSqlConnectionDataSource = value; } + public string SourceSqlConnectionDataSource { get => _parametersBody.SourceSqlConnectionDataSource ?? null; set => _parametersBody.SourceSqlConnectionDataSource = value; } /// Whether to encrypt connection or not. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Whether to encrypt connection or not.")] @@ -332,7 +329,7 @@ public partial class NewAzDataMigrationToSqlVM_CreateExpanded : global::System.M Description = @"Whether to encrypt connection or not.", SerializedName = @"encryptConnection", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] - public global::System.Management.Automation.SwitchParameter SourceSqlConnectionEncryptConnection { get => ParametersBody.SourceSqlConnectionEncryptConnection ?? default(global::System.Management.Automation.SwitchParameter); set => ParametersBody.SourceSqlConnectionEncryptConnection = value; } + public global::System.Management.Automation.SwitchParameter SourceSqlConnectionEncryptConnection { get => _parametersBody.SourceSqlConnectionEncryptConnection ?? default(global::System.Management.Automation.SwitchParameter); set => _parametersBody.SourceSqlConnectionEncryptConnection = value; } /// Password to connect to source SQL. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Password to connect to source SQL.")] @@ -343,7 +340,7 @@ public partial class NewAzDataMigrationToSqlVM_CreateExpanded : global::System.M Description = @"Password to connect to source SQL.", SerializedName = @"password", PossibleTypes = new [] { typeof(System.Security.SecureString) })] - public System.Security.SecureString SourceSqlConnectionPassword { get => ParametersBody.SourceSqlConnectionPassword ?? null; set => ParametersBody.SourceSqlConnectionPassword = value; } + public System.Security.SecureString SourceSqlConnectionPassword { get => _parametersBody.SourceSqlConnectionPassword ?? null; set => _parametersBody.SourceSqlConnectionPassword = value; } /// Whether to trust server certificate or not. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Whether to trust server certificate or not.")] @@ -354,7 +351,7 @@ public partial class NewAzDataMigrationToSqlVM_CreateExpanded : global::System.M Description = @"Whether to trust server certificate or not.", SerializedName = @"trustServerCertificate", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] - public global::System.Management.Automation.SwitchParameter SourceSqlConnectionTrustServerCertificate { get => ParametersBody.SourceSqlConnectionTrustServerCertificate ?? default(global::System.Management.Automation.SwitchParameter); set => ParametersBody.SourceSqlConnectionTrustServerCertificate = value; } + public global::System.Management.Automation.SwitchParameter SourceSqlConnectionTrustServerCertificate { get => _parametersBody.SourceSqlConnectionTrustServerCertificate ?? default(global::System.Management.Automation.SwitchParameter); set => _parametersBody.SourceSqlConnectionTrustServerCertificate = value; } /// User name to connect to source SQL. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "User name to connect to source SQL.")] @@ -365,7 +362,7 @@ public partial class NewAzDataMigrationToSqlVM_CreateExpanded : global::System.M Description = @"User name to connect to source SQL.", SerializedName = @"userName", PossibleTypes = new [] { typeof(string) })] - public string SourceSqlConnectionUserName { get => ParametersBody.SourceSqlConnectionUserName ?? null; set => ParametersBody.SourceSqlConnectionUserName = value; } + public string SourceSqlConnectionUserName { get => _parametersBody.SourceSqlConnectionUserName ?? null; set => _parametersBody.SourceSqlConnectionUserName = value; } /// Backing field for property. private string _sqlVirtualMachineName; @@ -389,7 +386,7 @@ public partial class NewAzDataMigrationToSqlVM_CreateExpanded : global::System.M Description = @"Storage Account Key.", SerializedName = @"accountKey", PossibleTypes = new [] { typeof(string) })] - public string StorageAccountKey { get => ParametersBody.TargetLocationAccountKey ?? null; set => ParametersBody.TargetLocationAccountKey = value; } + public string StorageAccountKey { get => _parametersBody.TargetLocationAccountKey ?? null; set => _parametersBody.TargetLocationAccountKey = value; } /// Resource Id of the storage account copying backups. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource Id of the storage account copying backups.")] @@ -400,7 +397,7 @@ public partial class NewAzDataMigrationToSqlVM_CreateExpanded : global::System.M Description = @"Resource Id of the storage account copying backups.", SerializedName = @"storageAccountResourceId", PossibleTypes = new [] { typeof(string) })] - public string StorageAccountResourceId { get => ParametersBody.TargetLocationStorageAccountResourceId ?? null; set => ParametersBody.TargetLocationStorageAccountResourceId = value; } + public string StorageAccountResourceId { get => _parametersBody.TargetLocationStorageAccountResourceId ?? null; set => _parametersBody.TargetLocationStorageAccountResourceId = value; } /// Backing field for property. private string _subscriptionId; @@ -429,7 +426,7 @@ public partial class NewAzDataMigrationToSqlVM_CreateExpanded : global::System.M Description = @"Database collation to be used for the target database.", SerializedName = @"targetDatabaseCollation", PossibleTypes = new [] { typeof(string) })] - public string TargetDatabaseCollation { get => ParametersBody.TargetDatabaseCollation ?? null; set => ParametersBody.TargetDatabaseCollation = value; } + public string TargetDatabaseCollation { get => _parametersBody.TargetDatabaseCollation ?? null; set => _parametersBody.TargetDatabaseCollation = value; } /// Backing field for property. private string _targetDbName; @@ -502,7 +499,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets.NewAzDataMigrati clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; clone.ResourceGroupName = this.ResourceGroupName; clone.SqlVirtualMachineName = this.SqlVirtualMachineName; clone.TargetDbName = this.TargetDbName; @@ -668,12 +665,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DatabaseMigrationsSqlVMCreateOrUpdate(ResourceGroupName, SqlVirtualMachineName, TargetDbName, SubscriptionId, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.DatabaseMigrationsSqlVMCreateOrUpdate(ResourceGroupName, SqlVirtualMachineName, TargetDbName, SubscriptionId, _parametersBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,SqlVirtualMachineName=SqlVirtualMachineName,TargetDbName=TargetDbName,SubscriptionId=SubscriptionId,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,SqlVirtualMachineName=SqlVirtualMachineName,TargetDbName=TargetDbName,SubscriptionId=SubscriptionId,body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -713,7 +710,7 @@ protected override void StopProcessing() // Error Response : default // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.RestException(responseMessage); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SqlVirtualMachineName=SqlVirtualMachineName, TargetDbName=TargetDbName, SubscriptionId=SubscriptionId, body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SqlVirtualMachineName=SqlVirtualMachineName, TargetDbName=TargetDbName, SubscriptionId=SubscriptionId, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlServiceNode_DeleteExpanded.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlServiceNode_DeleteExpanded.cs index c36eadd8f140..48ef3c70520a 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlServiceNode_DeleteExpanded.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlServiceNode_DeleteExpanded.cs @@ -34,6 +34,9 @@ public partial class RemoveAzDataMigrationSqlServiceNode_DeleteExpanded : global /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// Details of node to be deleted. + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IDeleteNode _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.DeleteNode(); + /// 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.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] @@ -72,17 +75,17 @@ public partial class RemoveAzDataMigrationSqlServiceNode_DeleteExpanded : global Description = @"The name of integration runtime.", SerializedName = @"integrationRuntimeName", PossibleTypes = new [] { typeof(string) })] - public string IntegrationRuntimeName { get => ParametersBody.IntegrationRuntimeName ?? null; set => ParametersBody.IntegrationRuntimeName = value; } + public string IntegrationRuntimeName { get => _parametersBody.IntegrationRuntimeName ?? null; set => _parametersBody.IntegrationRuntimeName = value; } /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// The name of node to delete. @@ -94,13 +97,7 @@ public partial class RemoveAzDataMigrationSqlServiceNode_DeleteExpanded : global Description = @"The name of node to delete.", SerializedName = @"nodeName", PossibleTypes = new [] { typeof(string) })] - public string NodeName { get => ParametersBody.NodeName ?? null; set => ParametersBody.NodeName = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IDeleteNode _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.DeleteNode(); - - /// Details of node to be deleted. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IDeleteNode ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + public string NodeName { get => _parametersBody.NodeName ?? null; set => _parametersBody.NodeName = value; } /// /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. @@ -339,12 +336,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.SqlMigrationServicesDeleteNode(ResourceGroupName, SqlMigrationServiceName, SubscriptionId, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.SqlMigrationServicesDeleteNode(ResourceGroupName, SqlMigrationServiceName, SubscriptionId, _parametersBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,SqlMigrationServiceName=SqlMigrationServiceName,SubscriptionId=SubscriptionId,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,SqlMigrationServiceName=SqlMigrationServiceName,SubscriptionId=SubscriptionId,body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -392,7 +389,7 @@ protected override void StopProcessing() // Error Response : default // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.RestException(responseMessage); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SqlMigrationServiceName=SqlMigrationServiceName, SubscriptionId=SubscriptionId, body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SqlMigrationServiceName=SqlMigrationServiceName, SubscriptionId=SubscriptionId, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlServiceNode_DeleteViaIdentityExpanded.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlServiceNode_DeleteViaIdentityExpanded.cs index e88a82cf85bb..f5260341f71a 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlServiceNode_DeleteViaIdentityExpanded.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlServiceNode_DeleteViaIdentityExpanded.cs @@ -34,6 +34,9 @@ public partial class RemoveAzDataMigrationSqlServiceNode_DeleteViaIdentityExpand /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// Details of node to be deleted. + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IDeleteNode _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.DeleteNode(); + /// 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.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] @@ -80,17 +83,17 @@ public partial class RemoveAzDataMigrationSqlServiceNode_DeleteViaIdentityExpand Description = @"The name of integration runtime.", SerializedName = @"integrationRuntimeName", PossibleTypes = new [] { typeof(string) })] - public string IntegrationRuntimeName { get => ParametersBody.IntegrationRuntimeName ?? null; set => ParametersBody.IntegrationRuntimeName = value; } + public string IntegrationRuntimeName { get => _parametersBody.IntegrationRuntimeName ?? null; set => _parametersBody.IntegrationRuntimeName = value; } /// Accessor for our copy of the InvocationInfo. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// The name of node to delete. @@ -102,13 +105,7 @@ public partial class RemoveAzDataMigrationSqlServiceNode_DeleteViaIdentityExpand Description = @"The name of node to delete.", SerializedName = @"nodeName", PossibleTypes = new [] { typeof(string) })] - public string NodeName { get => ParametersBody.NodeName ?? null; set => ParametersBody.NodeName = value; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IDeleteNode _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.DeleteNode(); - - /// Details of node to be deleted. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IDeleteNode ParametersBody { get => this._parametersBody; set => this._parametersBody = value; } + public string NodeName { get => _parametersBody.NodeName ?? null; set => _parametersBody.NodeName = value; } /// /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. @@ -300,7 +297,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.SqlMigrationServicesDeleteNodeViaIdentity(InputObject.Id, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.SqlMigrationServicesDeleteNodeViaIdentity(InputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline); } else { @@ -317,13 +314,13 @@ 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.SqlMigrationServicesDeleteNode(InputObject.ResourceGroupName ?? null, InputObject.SqlMigrationServiceName ?? null, InputObject.SubscriptionId ?? null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.SqlMigrationServicesDeleteNode(InputObject.ResourceGroupName ?? null, InputObject.SqlMigrationServiceName ?? null, InputObject.SubscriptionId ?? null, _parametersBody, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody}) + 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 } }); @@ -371,7 +368,7 @@ protected override void StopProcessing() // Error Response : default // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.RestException(responseMessage); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + 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 } }); diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlService_Delete.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlService_Delete.cs index df6e310a1c04..c2c154d9a46d 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlService_Delete.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlService_Delete.cs @@ -72,11 +72,11 @@ public partial class RemoveAzDataMigrationSqlService_Delete : global::System.Man public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlService_DeleteViaIdentity.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlService_DeleteViaIdentity.cs index 4682b8331384..0ea16a9247ea 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlService_DeleteViaIdentity.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlService_DeleteViaIdentity.cs @@ -80,11 +80,11 @@ public partial class RemoveAzDataMigrationSqlService_DeleteViaIdentity : global: public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlDb_Delete.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlDb_Delete.cs index 5d67f80f5a99..6dadb46ae0ad 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlDb_Delete.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlDb_Delete.cs @@ -88,11 +88,11 @@ public partial class RemoveAzDataMigrationToSqlDb_Delete : global::System.Manage public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlDb_DeleteViaIdentity.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlDb_DeleteViaIdentity.cs index 7d4f6fbe22b4..7506447900ae 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlDb_DeleteViaIdentity.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlDb_DeleteViaIdentity.cs @@ -96,11 +96,11 @@ public partial class RemoveAzDataMigrationToSqlDb_DeleteViaIdentity : global::Sy public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/StopAzDataMigrationToSqlDb_CancelExpanded.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/StopAzDataMigrationToSqlDb_CancelExpanded.cs index 2d22f7de17c5..6a970c91431f 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/StopAzDataMigrationToSqlDb_CancelExpanded.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/StopAzDataMigrationToSqlDb_CancelExpanded.cs @@ -34,6 +34,9 @@ public partial class StopAzDataMigrationToSqlDb_CancelExpanded : global::System. /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// Migration Operation Input + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IMigrationOperationInput _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.MigrationOperationInput(); + /// 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.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] @@ -72,11 +75,11 @@ public partial class StopAzDataMigrationToSqlDb_CancelExpanded : global::System. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// ID tracking migration operation. @@ -88,7 +91,7 @@ public partial class StopAzDataMigrationToSqlDb_CancelExpanded : global::System. Description = @"ID tracking migration operation.", SerializedName = @"migrationOperationId", PossibleTypes = new [] { typeof(string) })] - public string MigrationOperationId { get => ParametersBody.MigrationOperationId ?? null; set => ParametersBody.MigrationOperationId = value; } + public string MigrationOperationId { get => _parametersBody.MigrationOperationId ?? null; set => _parametersBody.MigrationOperationId = value; } /// /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue @@ -98,12 +101,6 @@ public partial class StopAzDataMigrationToSqlDb_CancelExpanded : global::System. [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IMigrationOperationInput _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.MigrationOperationInput(); - - /// Migration Operation Input - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IMigrationOperationInput 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. /// @@ -249,7 +246,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets.StopAzDataMigrat clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; clone.ResourceGroupName = this.ResourceGroupName; clone.SqlDbInstanceName = this.SqlDbInstanceName; clone.TargetDbName = this.TargetDbName; @@ -407,12 +404,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DatabaseMigrationsSqlDbCancel(ResourceGroupName, SqlDbInstanceName, TargetDbName, SubscriptionId, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.DatabaseMigrationsSqlDbCancel(ResourceGroupName, SqlDbInstanceName, TargetDbName, SubscriptionId, _parametersBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,SqlDbInstanceName=SqlDbInstanceName,TargetDbName=TargetDbName,SubscriptionId=SubscriptionId,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,SqlDbInstanceName=SqlDbInstanceName,TargetDbName=TargetDbName,SubscriptionId=SubscriptionId,body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -460,7 +457,7 @@ protected override void StopProcessing() // Error Response : default // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.RestException(responseMessage); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SqlDbInstanceName=SqlDbInstanceName, TargetDbName=TargetDbName, SubscriptionId=SubscriptionId, body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SqlDbInstanceName=SqlDbInstanceName, TargetDbName=TargetDbName, SubscriptionId=SubscriptionId, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/StopAzDataMigrationToSqlManagedInstance_CancelExpanded.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/StopAzDataMigrationToSqlManagedInstance_CancelExpanded.cs index f888c964a3d8..ad446774c38c 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/StopAzDataMigrationToSqlManagedInstance_CancelExpanded.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/StopAzDataMigrationToSqlManagedInstance_CancelExpanded.cs @@ -34,6 +34,9 @@ public partial class StopAzDataMigrationToSqlManagedInstance_CancelExpanded : gl /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// Migration Operation Input + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IMigrationOperationInput _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.MigrationOperationInput(); + /// 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.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] @@ -85,11 +88,11 @@ public partial class StopAzDataMigrationToSqlManagedInstance_CancelExpanded : gl public string ManagedInstanceName { get => this._managedInstanceName; set => this._managedInstanceName = value; } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// ID tracking migration operation. @@ -101,7 +104,7 @@ public partial class StopAzDataMigrationToSqlManagedInstance_CancelExpanded : gl Description = @"ID tracking migration operation.", SerializedName = @"migrationOperationId", PossibleTypes = new [] { typeof(string) })] - public string MigrationOperationId { get => ParametersBody.MigrationOperationId ?? null; set => ParametersBody.MigrationOperationId = value; } + public string MigrationOperationId { get => _parametersBody.MigrationOperationId ?? null; set => _parametersBody.MigrationOperationId = value; } /// /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue @@ -111,12 +114,6 @@ public partial class StopAzDataMigrationToSqlManagedInstance_CancelExpanded : gl [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IMigrationOperationInput _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.MigrationOperationInput(); - - /// Migration Operation Input - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IMigrationOperationInput 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. /// @@ -249,7 +246,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets.StopAzDataMigrat clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; clone.ResourceGroupName = this.ResourceGroupName; clone.ManagedInstanceName = this.ManagedInstanceName; clone.TargetDbName = this.TargetDbName; @@ -407,12 +404,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DatabaseMigrationsSqlMiCancel(ResourceGroupName, ManagedInstanceName, TargetDbName, SubscriptionId, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.DatabaseMigrationsSqlMiCancel(ResourceGroupName, ManagedInstanceName, TargetDbName, SubscriptionId, _parametersBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,ManagedInstanceName=ManagedInstanceName,TargetDbName=TargetDbName,SubscriptionId=SubscriptionId,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,ManagedInstanceName=ManagedInstanceName,TargetDbName=TargetDbName,SubscriptionId=SubscriptionId,body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -460,7 +457,7 @@ protected override void StopProcessing() // Error Response : default // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.RestException(responseMessage); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, ManagedInstanceName=ManagedInstanceName, TargetDbName=TargetDbName, SubscriptionId=SubscriptionId, body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, ManagedInstanceName=ManagedInstanceName, TargetDbName=TargetDbName, SubscriptionId=SubscriptionId, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/StopAzDataMigrationToSqlVM_CancelExpanded.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/StopAzDataMigrationToSqlVM_CancelExpanded.cs index 3f96923c795e..35180bd013dd 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/StopAzDataMigrationToSqlVM_CancelExpanded.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/StopAzDataMigrationToSqlVM_CancelExpanded.cs @@ -34,6 +34,9 @@ public partial class StopAzDataMigrationToSqlVM_CancelExpanded : global::System. /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// Migration Operation Input + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IMigrationOperationInput _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.MigrationOperationInput(); + /// 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.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] @@ -72,11 +75,11 @@ public partial class StopAzDataMigrationToSqlVM_CancelExpanded : global::System. public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// ID tracking migration operation. @@ -88,7 +91,7 @@ public partial class StopAzDataMigrationToSqlVM_CancelExpanded : global::System. Description = @"ID tracking migration operation.", SerializedName = @"migrationOperationId", PossibleTypes = new [] { typeof(string) })] - public string MigrationOperationId { get => ParametersBody.MigrationOperationId ?? null; set => ParametersBody.MigrationOperationId = value; } + public string MigrationOperationId { get => _parametersBody.MigrationOperationId ?? null; set => _parametersBody.MigrationOperationId = value; } /// /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue @@ -98,12 +101,6 @@ public partial class StopAzDataMigrationToSqlVM_CancelExpanded : global::System. [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IMigrationOperationInput _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.MigrationOperationInput(); - - /// Migration Operation Input - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.IMigrationOperationInput 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. /// @@ -249,7 +246,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets.StopAzDataMigrat clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; clone.ResourceGroupName = this.ResourceGroupName; clone.SqlVirtualMachineName = this.SqlVirtualMachineName; clone.TargetDbName = this.TargetDbName; @@ -407,12 +404,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.DatabaseMigrationsSqlVMCancel(ResourceGroupName, SqlVirtualMachineName, TargetDbName, SubscriptionId, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.DatabaseMigrationsSqlVMCancel(ResourceGroupName, SqlVirtualMachineName, TargetDbName, SubscriptionId, _parametersBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,SqlVirtualMachineName=SqlVirtualMachineName,TargetDbName=TargetDbName,SubscriptionId=SubscriptionId,body=ParametersBody}) + WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName,SqlVirtualMachineName=SqlVirtualMachineName,TargetDbName=TargetDbName,SubscriptionId=SubscriptionId,body=_parametersBody}) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); @@ -460,7 +457,7 @@ protected override void StopProcessing() // Error Response : default // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.RestException(responseMessage); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SqlVirtualMachineName=SqlVirtualMachineName, TargetDbName=TargetDbName, SubscriptionId=SubscriptionId, body=ParametersBody }) + WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { ResourceGroupName=ResourceGroupName, SqlVirtualMachineName=SqlVirtualMachineName, TargetDbName=TargetDbName, SubscriptionId=SubscriptionId, body=_parametersBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } }); diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/UpdateAzDataMigrationSqlService_UpdateExpanded.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/UpdateAzDataMigrationSqlService_UpdateExpanded.cs index ade7c59ce107..914bde401049 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/UpdateAzDataMigrationSqlService_UpdateExpanded.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/UpdateAzDataMigrationSqlService_UpdateExpanded.cs @@ -34,6 +34,9 @@ public partial class UpdateAzDataMigrationSqlService_UpdateExpanded : global::Sy /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// An update to a SQL Migration Service. + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlMigrationServiceUpdate _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.SqlMigrationServiceUpdate(); + /// 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.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] @@ -72,11 +75,11 @@ public partial class UpdateAzDataMigrationSqlService_UpdateExpanded : global::Sy public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// Backing field for property. @@ -102,12 +105,6 @@ public partial class UpdateAzDataMigrationSqlService_UpdateExpanded : global::Sy [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlMigrationServiceUpdate _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.SqlMigrationServiceUpdate(); - - /// An update to a SQL Migration Service. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlMigrationServiceUpdate 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. /// @@ -181,7 +178,7 @@ public partial class UpdateAzDataMigrationSqlService_UpdateExpanded : global::Sy Description = @"Dictionary of ", SerializedName = @"tags", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlMigrationServiceUpdateTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlMigrationServiceUpdateTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlMigrationServiceUpdateTags 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 @@ -240,7 +237,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets.UpdateAzDataMigr clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; clone.ResourceGroupName = this.ResourceGroupName; clone.Name = this.Name; clone.SubscriptionId = this.SubscriptionId; @@ -397,12 +394,12 @@ protected override void ProcessRecord() try { await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - await this.Client.SqlMigrationServicesUpdate(ResourceGroupName, Name, SubscriptionId, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.SqlMigrationServicesUpdate(ResourceGroupName, Name, SubscriptionId, _parametersBody, onOk, onDefault, this, Pipeline); await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.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}) + 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 } }); @@ -450,7 +447,7 @@ public UpdateAzDataMigrationSqlService_UpdateExpanded() // Error Response : default // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.RestException(responseMessage); - 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 }) + 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 } }); diff --git a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/UpdateAzDataMigrationSqlService_UpdateViaIdentityExpanded.cs b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/UpdateAzDataMigrationSqlService_UpdateViaIdentityExpanded.cs index 75bcb0086193..892690f2f750 100644 --- a/src/DataMigration/DataMigration.Autorest/generated/cmdlets/UpdateAzDataMigrationSqlService_UpdateViaIdentityExpanded.cs +++ b/src/DataMigration/DataMigration.Autorest/generated/cmdlets/UpdateAzDataMigrationSqlService_UpdateViaIdentityExpanded.cs @@ -34,6 +34,9 @@ public partial class UpdateAzDataMigrationSqlService_UpdateViaIdentityExpanded : /// private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + /// An update to a SQL Migration Service. + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlMigrationServiceUpdate _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.SqlMigrationServiceUpdate(); + /// 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.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] @@ -80,11 +83,11 @@ public partial class UpdateAzDataMigrationSqlService_UpdateViaIdentityExpanded : public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// - /// cancellation delegate. Stops the cmdlet when called. + /// cancellation delegate. Stops the cmdlet when called. /// global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - /// cancellation token. + /// cancellation token. global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// @@ -95,12 +98,6 @@ public partial class UpdateAzDataMigrationSqlService_UpdateViaIdentityExpanded : [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter NoWait { get; set; } - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlMigrationServiceUpdate _parametersBody= new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.SqlMigrationServiceUpdate(); - - /// An update to a SQL Migration Service. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlMigrationServiceUpdate 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. /// @@ -139,7 +136,7 @@ public partial class UpdateAzDataMigrationSqlService_UpdateViaIdentityExpanded : Description = @"Dictionary of ", SerializedName = @"tags", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlMigrationServiceUpdateTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlMigrationServiceUpdateTags Tag { get => ParametersBody.Tag ?? null /* object */; set => ParametersBody.Tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20220330Preview.ISqlMigrationServiceUpdateTags 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 @@ -200,7 +197,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets.UpdateAzDataMigr clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; clone.HttpPipelinePrepend = this.HttpPipelinePrepend; clone.HttpPipelineAppend = this.HttpPipelineAppend; - clone.ParametersBody = this.ParametersBody; + clone._parametersBody = this._parametersBody; return clone; } @@ -356,7 +353,7 @@ protected override void ProcessRecord() await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } if (InputObject?.Id != null) { - await this.Client.SqlMigrationServicesUpdateViaIdentity(InputObject.Id, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.SqlMigrationServicesUpdateViaIdentity(InputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline); } else { @@ -373,13 +370,13 @@ 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.SqlMigrationServicesUpdate(InputObject.ResourceGroupName ?? null, InputObject.SqlMigrationServiceName ?? null, InputObject.SubscriptionId ?? null, ParametersBody, onOk, onDefault, this, Pipeline); + await this.Client.SqlMigrationServicesUpdate(InputObject.ResourceGroupName ?? null, InputObject.SqlMigrationServiceName ?? null, InputObject.SubscriptionId ?? null, _parametersBody, onOk, onDefault, this, Pipeline); } await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.UndeclaredResponseException urexception) { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody}) + 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 } }); @@ -427,7 +424,7 @@ public UpdateAzDataMigrationSqlService_UpdateViaIdentityExpanded() // Error Response : default // Unrecognized Response. Create an error record based on what we have. var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.RestException(responseMessage); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=ParametersBody }) + 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 } }); diff --git a/src/DataMigration/DataMigration/Az.DataMigration.psd1 b/src/DataMigration/DataMigration/Az.DataMigration.psd1 index 4dd347ea159c..53711b9e42e8 100644 --- a/src/DataMigration/DataMigration/Az.DataMigration.psd1 +++ b/src/DataMigration/DataMigration/Az.DataMigration.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 4/22/2022 +# Generated on: 5/17/2022 # @{ @@ -141,7 +141,8 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','Sql','Database','Data','Migration','Service' + Tags = 'Azure', 'ResourceManager', 'ARM', 'Sql', 'Database', 'Data', 'Migration', + 'Service' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -167,7 +168,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/DataMigration/DataMigration/help/Get-AzDataMigrationPerformanceDataCollection.md b/src/DataMigration/DataMigration/help/Get-AzDataMigrationPerformanceDataCollection.md index 83a745411197..bd0f80a3ac39 100644 --- a/src/DataMigration/DataMigration/help/Get-AzDataMigrationPerformanceDataCollection.md +++ b/src/DataMigration/DataMigration/help/Get-AzDataMigrationPerformanceDataCollection.md @@ -15,13 +15,14 @@ Collect performance data for given SQL Server instance(s) ### CommandLine (Default) ``` Get-AzDataMigrationPerformanceDataCollection -SqlConnectionStrings [-OutputFolder ] - [-PerfQueryInterval ] [-StaticQueryInterval ] [-NumberOfIterations ] [-PassThru] - [] + [-PerfQueryInterval ] [-StaticQueryInterval ] [-NumberOfIterations ] [-Time ] + [-PassThru] [] ``` ### ConfigFile ``` -Get-AzDataMigrationPerformanceDataCollection -ConfigFilePath [-PassThru] [] +Get-AzDataMigrationPerformanceDataCollection [-Time ] -ConfigFilePath [-PassThru] + [] ``` ## DESCRIPTION @@ -32,7 +33,9 @@ Collect performance data for given SQL Server instance(s) ### Example 1: Run Performance Data Collection on given SQL Server using connection string ```powershell PS C:\> Get-AzDataMigrationPerformanceDataCollection -SqlConnectionStrings "Data Source=AALAB03-2K8.REDMOND.CORP.MICROSOFT.COM;Initial Catalog=master;Integrated Security=False;User Id=dummyUserId;Password=dummyPassword" -NumberOfIterations 2 +``` +```output Connecting to the SQL server(s)... Starting data collection... Press the Enter key to stop the data collection at any time... @@ -60,7 +63,9 @@ This command runs Performance Data Collection on given SQL Server using the conn ### Example 2: Run Performance Data Collection on given SQL Server using assessment config file ```powershell PS C:\> Get-AzDataMigrationAssessment -ConfigFilePath "C:\Users\user\document\config.json" +``` +```output Connecting to the SQL server(s)... Starting data collection... Press the Enter key to stop the data collection at any time... @@ -85,6 +90,36 @@ Event and Error Logs Folder Path: C:\Users\vmanhas\AppData\Local\Microsoft\SqlAs This command runs Performance Data Collection on given SQL Server using the config file. +### Example 3: Run Performance Data Collection on given SQL Server that stops after a specified time +```powershell +PS C:\> Get-AzDataMigrationAssessment -ConfigFilePath "C:\Users\user\document\config.json" -Time 120 +``` + +```output +Connecting to the SQL server(s)... +Starting data collection... +Press the Enter key to stop the data collection at any time... + +Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. +Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. +Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. +UTC 2022-02-03 07:04:50, Server AALAB03-2K8: + Performance data query iteration: 1 of 2, collected 349 data points. +UTC 2022-02-03 07:04:52, Server AALAB03-2K8: + Collected static configuration data, and saved to C:\Users\vmanhas\AppData\Local\Microsoft\SqlAssessment. +Security Warning: The negotiated TLS 1.0 is an insecure protocol and is supported for backward compatibility only. The recommended protocol version is TLS 1.2 and later. +UTC 2022-02-03 07:05:44, Server AALAB03-2K8: + Performance data query iteration: 2 of 2, collected 347 data points. +UTC 2022-02-03 07:07:13, Server AALAB03-2K8: + Aggregated 696 raw data points to 263 performance counters, and saved to C:\Users\vmanhas\AppData\Local\Microsoft\SqlAssessment. +UTC 2022-02-03 07:07:16, Server AALAB03-2K8: + Performance data query iteration: 1 of 2, collected 349 data points. + +Event and Error Logs Folder Path: C:\Users\vmanhas\AppData\Local\Microsoft\SqlAssessment\Logs +``` + +This command runs Performance Data Collection on given SQL Server that stops after a specified time. + ## PARAMETERS ### -ConfigFilePath @@ -195,6 +230,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -Time +Duration of time in seconds for which you want to collect performance data + +```yaml +Type: System.Int64 +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). diff --git a/src/DataMigration/DataMigration/help/Get-AzDataMigrationSkuRecommendation.md b/src/DataMigration/DataMigration/help/Get-AzDataMigrationSkuRecommendation.md index b421298ed76a..0f92c4752b96 100644 --- a/src/DataMigration/DataMigration/help/Get-AzDataMigrationSkuRecommendation.md +++ b/src/DataMigration/DataMigration/help/Get-AzDataMigrationSkuRecommendation.md @@ -33,7 +33,9 @@ Gives SKU recommendations for Azure SQL offerings ### Example 1: Run SKU Recommendation on given SQL Server using connection string ```powershell PS C:\> Get-AzDataMigrationSkuRecommendation -DisplayResult +``` +```output Starting SKU recommendation... Performing aggregation for instance AALAB03-2K8... @@ -60,7 +62,9 @@ This command runs Run SKU Recommendation on given SQL Server using the connectio ### Example 2: Run Run SKU Recommendation on given SQL Server using assessment config file ```powershell PS C:\> Get-AzDataMigrationSkuRecommendation -ConfigFilePath "C:\Users\user\document\config.json" +``` +```output Starting SKU recommendation... Performing aggregation for instance AALAB03-2K8... diff --git a/src/DataMigration/DataMigration/help/New-AzDataMigrationToSqlDb.md b/src/DataMigration/DataMigration/help/New-AzDataMigrationToSqlDb.md index c1dda5553ef6..32b29a3c703a 100644 --- a/src/DataMigration/DataMigration/help/New-AzDataMigrationToSqlDb.md +++ b/src/DataMigration/DataMigration/help/New-AzDataMigrationToSqlDb.md @@ -32,7 +32,9 @@ Create a new database migration to a given SQL Db. ### Example 1: Start a Database Migration from the on-premise Source Sql Server to target Sql Db ```powershell -New-AzDataMigrationToSqlDb -ResourceGroupName myRG -SqlDbInstanceName "mysqldb" -MigrationService "/subscriptions/1111-2222-3333-4444/resourceGroups/myRG/providers/Microsoft.DataMigration/SqlMigrationServices/myDMS" -TargetSqlConnectionAuthentication "SqlAuthentication" -TargetSqlConnectionDataSource "mydb.windows.net" -TargetSqlConnectionPassword "pass" -TargetSqlConnectionUserName "user" -SourceSqlConnectionAuthentication "SqlAuthentication" -SourceSqlConnectionDataSource "xyz.MICROSOFT.COM" -SourceSqlConnectionUserName "user1" -SourceSqlConnectionPassword "password" -SourceDatabaseName "sourcedb" -TargetDbName "mydb1" -Scope "/subscriptions/1111-2222-3333-4444/resourceGroups/myRG/providers/Microsoft.Sql/servers/mysqldb" +$sourcePassword = ConvertTo-SecureString "pass123" -AsPlainText -Force +$targetPassword = ConvertTo-SecureString "pass123" -AsPlainText -Force +New-AzDataMigrationToSqlDb -ResourceGroupName myRG -SqlDbInstanceName "mysqldb" -MigrationService "/subscriptions/1111-2222-3333-4444/resourceGroups/myRG/providers/Microsoft.DataMigration/SqlMigrationServices/myDMS" -TargetSqlConnectionAuthentication "SqlAuthentication" -TargetSqlConnectionDataSource "mydb.windows.net" -TargetSqlConnectionPassword $targetPassword -TargetSqlConnectionUserName "user" -SourceSqlConnectionAuthentication "SqlAuthentication" -SourceSqlConnectionDataSource "xyz.MICROSOFT.COM" -SourceSqlConnectionUserName "user1" -SourceSqlConnectionPassword $sourcePassword -SourceDatabaseName "sourcedb" -TargetDbName "mydb1" -Scope "/subscriptions/1111-2222-3333-4444/resourceGroups/myRG/providers/Microsoft.Sql/servers/mysqldb" ``` ```output diff --git a/src/DataMigration/DataMigration/help/Remove-AzDataMigrationToSqlDb.md b/src/DataMigration/DataMigration/help/Remove-AzDataMigrationToSqlDb.md index 1ac9d5532e33..5bbd7b0dd51d 100644 --- a/src/DataMigration/DataMigration/help/Remove-AzDataMigrationToSqlDb.md +++ b/src/DataMigration/DataMigration/help/Remove-AzDataMigrationToSqlDb.md @@ -32,14 +32,14 @@ Remove the specified database migration for a given SQL Db. ### Example 1: Delete the SQL DB Database Migration resource. ```powershell -Remove-AzDataMigrationToSqlDb -ResourceGroupName tsum38RG -SqlDbInstanceName dmstestsqldb -TargetDbName at_sqldbtrgtps1 +Remove-AzDataMigrationToSqlDb -ResourceGroupName myRG -SqlDbInstanceName sqldb -TargetDbName myDB ``` Delete the SQL DB Database Migration resource. ### Example 2: Delete the SQL DB Database Migration resource even if it is in progress ```powershell -Remove-AzDataMigrationToSqlDb -ResourceGroupName tsum38RG -SqlDbInstanceName dmstestsqldb -TargetDbName at_sqldbtrgtps1 -Force +Remove-AzDataMigrationToSqlDb -ResourceGroupName myRG -SqlDbInstanceName sqldb -TargetDbName myDB -Force ``` Forcibly deletes an ongoing Migration to SQL DB by adding the optional "Force" parameter From 09c4f7ea82f344b7b1d5ad93c6cf4c0067dd360b Mon Sep 17 00:00:00 2001 From: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com> Date: Tue, 17 May 2022 09:23:57 +0800 Subject: [PATCH 2/2] Update changelog --- src/DataMigration/DataMigration/ChangeLog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DataMigration/DataMigration/ChangeLog.md b/src/DataMigration/DataMigration/ChangeLog.md index 6461d586d913..223b524a5327 100644 --- a/src/DataMigration/DataMigration/ChangeLog.md +++ b/src/DataMigration/DataMigration/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Added an optional `Time` parameter to `Get-AzDataMigrationPerformanceDataCollection` to stop the perf collection after the given time ## Version 0.10.0 * Added support for migrating SQL Server databases to Azure SQL DB