diff --git a/generated/DataMigration/DataMigration.Autorest/Az.DataMigration.format.ps1xml b/generated/DataMigration/DataMigration.Autorest/Az.DataMigration.format.ps1xml index 61c622b140f6..812e407e1ce6 100644 --- a/generated/DataMigration/DataMigration.Autorest/Az.DataMigration.format.ps1xml +++ b/generated/DataMigration/DataMigration.Autorest/Az.DataMigration.format.ps1xml @@ -408,9 +408,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.AuthenticationKeys + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.AuthenticationKeys - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.AuthenticationKeys + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.AuthenticationKeys @@ -436,9 +436,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.AzureBlob + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.AzureBlob - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.AzureBlob + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.AzureBlob @@ -476,9 +476,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.CopyProgressDetails + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.CopyProgressDetails - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.CopyProgressDetails + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.CopyProgressDetails @@ -558,9 +558,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigration + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigration - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigration + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigration @@ -598,9 +598,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationBase + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationBase - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationBase + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationBase @@ -656,9 +656,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationBaseListResult + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationBaseListResult - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationBaseListResult + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationBaseListResult @@ -678,9 +678,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationBaseProperties + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationBaseProperties - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationBaseProperties + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationBaseProperties @@ -748,9 +748,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationCosmosDbMongo + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationCosmosDbMongo - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationCosmosDbMongo + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationCosmosDbMongo @@ -806,9 +806,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationCosmosDbMongoListResult + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationCosmosDbMongoListResult - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationCosmosDbMongoListResult + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationCosmosDbMongoListResult @@ -828,9 +828,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationListResult + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationListResult - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationListResult + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationListResult @@ -850,9 +850,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationProperties + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationProperties - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationProperties + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationProperties @@ -950,9 +950,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesCosmosDbMongo + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesCosmosDbMongo - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesCosmosDbMongo + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesCosmosDbMongo @@ -1032,9 +1032,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlDb + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlDb - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlDb + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlDb @@ -1168,9 +1168,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlMi + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlMi - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlMi + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlMi @@ -1298,9 +1298,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlVM + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlVM - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlVM + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlVM @@ -1428,9 +1428,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationSqlDb + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationSqlDb - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationSqlDb + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationSqlDb @@ -1468,9 +1468,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationSqlMi + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationSqlMi - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationSqlMi + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationSqlMi @@ -1508,9 +1508,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationSqlVM + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationSqlVM - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationSqlVM + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationSqlVM @@ -1548,9 +1548,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DeleteNode + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DeleteNode - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DeleteNode + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DeleteNode @@ -1576,9 +1576,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfo + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfo - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfo + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfo @@ -1604,9 +1604,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IntegrationRuntimeMonitoringData + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IntegrationRuntimeMonitoringData - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IntegrationRuntimeMonitoringData + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IntegrationRuntimeMonitoringData @@ -1626,9 +1626,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationOperationInput + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationOperationInput - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationOperationInput + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationOperationInput @@ -1648,9 +1648,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationService + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationService - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationService + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationService @@ -1712,9 +1712,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationServiceListResult + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationServiceListResult - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationServiceListResult + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationServiceListResult @@ -1734,9 +1734,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationServiceProperties + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationServiceProperties - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationServiceProperties + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationServiceProperties @@ -1762,9 +1762,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationServiceUpdateTags + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationServiceUpdateTags - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationServiceUpdateTags + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationServiceUpdateTags @@ -1784,9 +1784,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationStatusDetails + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationStatusDetails - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationStatusDetails + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationStatusDetails @@ -1860,9 +1860,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoConnectionInformation + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoConnectionInformation - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoConnectionInformation + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoConnectionInformation @@ -1906,9 +1906,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoMigrationCollection + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoMigrationCollection - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoMigrationCollection + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoMigrationCollection @@ -1946,9 +1946,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoMigrationProgressDetails + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoMigrationProgressDetails - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoMigrationProgressDetails + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoMigrationProgressDetails @@ -1992,9 +1992,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.NodeMonitoringData + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.NodeMonitoringData - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.NodeMonitoringData + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.NodeMonitoringData @@ -2056,9 +2056,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OfflineConfiguration + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OfflineConfiguration - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OfflineConfiguration + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OfflineConfiguration @@ -2084,9 +2084,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationListResult + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationListResult - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationListResult + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationListResult @@ -2106,9 +2106,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationsDefinition + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationsDefinition - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationsDefinition + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationsDefinition @@ -2140,9 +2140,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationsDisplayDefinition + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationsDisplayDefinition - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationsDisplayDefinition + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationsDisplayDefinition @@ -2180,9 +2180,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ProxyResource + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ProxyResource - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ProxyResource + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ProxyResource @@ -2202,9 +2202,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.RegenAuthKeys + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.RegenAuthKeys - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.RegenAuthKeys + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.RegenAuthKeys @@ -2236,9 +2236,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SourceLocation + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SourceLocation - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SourceLocation + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SourceLocation @@ -2258,9 +2258,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupFileInfo + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupFileInfo - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupFileInfo + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupFileInfo @@ -2322,9 +2322,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupSetInfo + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupSetInfo - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupSetInfo + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupSetInfo @@ -2398,9 +2398,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformation + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformation - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformation + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformation @@ -2444,9 +2444,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlDbMigrationStatusDetails + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlDbMigrationStatusDetails - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlDbMigrationStatusDetails + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlDbMigrationStatusDetails @@ -2472,9 +2472,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlDbOfflineConfiguration + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlDbOfflineConfiguration - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlDbOfflineConfiguration + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlDbOfflineConfiguration @@ -2494,9 +2494,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlFileShare + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlFileShare - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlFileShare + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlFileShare @@ -2522,9 +2522,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationListResult + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationListResult - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationListResult + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationListResult @@ -2544,9 +2544,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationService + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationService - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationService + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationService @@ -2584,9 +2584,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationServiceProperties + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationServiceProperties - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationServiceProperties + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationServiceProperties @@ -2612,9 +2612,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationServiceUpdateTags + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationServiceUpdateTags - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationServiceUpdateTags + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationServiceUpdateTags @@ -2634,9 +2634,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SystemDataAutoGenerated + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SystemDataAutoGenerated - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SystemDataAutoGenerated + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SystemDataAutoGenerated @@ -2686,9 +2686,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.TargetLocation + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.TargetLocation - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.TargetLocation + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.TargetLocation @@ -2714,9 +2714,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.TrackedResourceAutoGenerated + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.TrackedResourceAutoGenerated - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.TrackedResourceAutoGenerated + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.TrackedResourceAutoGenerated diff --git a/generated/DataMigration/DataMigration.Autorest/Az.DataMigration.psd1 b/generated/DataMigration/DataMigration.Autorest/Az.DataMigration.psd1 index fd406da2ad36..360148914a69 100644 --- a/generated/DataMigration/DataMigration.Autorest/Az.DataMigration.psd1 +++ b/generated/DataMigration/DataMigration.Autorest/Az.DataMigration.psd1 @@ -11,7 +11,7 @@ DotNetFrameworkVersion = '4.7.2' RequiredAssemblies = './bin/Az.DataMigration.private.dll' FormatsToProcess = './Az.DataMigration.format.ps1xml' - FunctionsToExport = 'Get-AzDataMigrationAssessment', 'Get-AzDataMigrationPerformanceDataCollection', 'Get-AzDataMigrationSkuRecommendation', 'Get-AzDataMigrationSqlService', 'Get-AzDataMigrationSqlServiceAuthKey', 'Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric', 'Get-AzDataMigrationSqlServiceMigration', 'Get-AzDataMigrationToSqlDb', 'Get-AzDataMigrationToSqlManagedInstance', 'Get-AzDataMigrationToSqlVM', 'Invoke-AzDataMigrationCutoverToSqlManagedInstance', 'Invoke-AzDataMigrationCutoverToSqlVM', 'New-AzDataMigrationLoginsMigration', 'New-AzDataMigrationSqlServerSchema', 'New-AzDataMigrationSqlService', 'New-AzDataMigrationSqlServiceAuthKey', 'New-AzDataMigrationTdeCertificateMigration', 'New-AzDataMigrationToSqlDb', 'New-AzDataMigrationToSqlManagedInstance', 'New-AzDataMigrationToSqlVM', 'Register-AzDataMigrationIntegrationRuntime', 'Remove-AzDataMigrationSqlService', 'Remove-AzDataMigrationSqlServiceNode', 'Remove-AzDataMigrationToSqlDb', 'Stop-AzDataMigrationToSqlDb', 'Stop-AzDataMigrationToSqlManagedInstance', 'Stop-AzDataMigrationToSqlVM', 'Update-AzDataMigrationSqlService', '*' + FunctionsToExport = 'Get-AzDataMigrationAssessment', 'Get-AzDataMigrationPerformanceDataCollection', 'Get-AzDataMigrationSkuRecommendation', 'Get-AzDataMigrationSqlService', 'Get-AzDataMigrationSqlServiceAuthKey', 'Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric', 'Get-AzDataMigrationSqlServiceMigration', 'Get-AzDataMigrationToSqlDb', 'Get-AzDataMigrationToSqlManagedInstance', 'Get-AzDataMigrationToSqlVM', 'Invoke-AzDataMigrationCutoverToSqlManagedInstance', 'Invoke-AzDataMigrationCutoverToSqlVM', 'Invoke-AzDataMigrationRetryToSqlDb', 'New-AzDataMigrationLoginsMigration', 'New-AzDataMigrationSqlServerSchema', 'New-AzDataMigrationSqlService', 'New-AzDataMigrationSqlServiceAuthKey', 'New-AzDataMigrationTdeCertificateMigration', 'New-AzDataMigrationToSqlDb', 'New-AzDataMigrationToSqlManagedInstance', 'New-AzDataMigrationToSqlVM', 'Register-AzDataMigrationIntegrationRuntime', 'Remove-AzDataMigrationSqlService', 'Remove-AzDataMigrationSqlServiceNode', 'Remove-AzDataMigrationToSqlDb', 'Remove-AzDataMigrationToSqlManagedInstance', 'Remove-AzDataMigrationToSqlVM', 'Stop-AzDataMigrationToSqlDb', 'Stop-AzDataMigrationToSqlManagedInstance', 'Stop-AzDataMigrationToSqlVM', 'Update-AzDataMigrationSqlService', '*' AliasesToExport = '*' PrivateData = @{ PSData = @{ diff --git a/generated/DataMigration/DataMigration.Autorest/Properties/AssemblyInfo.cs b/generated/DataMigration/DataMigration.Autorest/Properties/AssemblyInfo.cs index afda2f1fbe24..e1df1e769c22 100644 --- a/generated/DataMigration/DataMigration.Autorest/Properties/AssemblyInfo.cs +++ b/generated/DataMigration/DataMigration.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,11 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DataMigration")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.14.10")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.14.10")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.15.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.15.0")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] + + + + diff --git a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlService.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlService.ps1 index ae7679fb960f..782b197cf881 100644 --- a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlService.ps1 +++ b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlService.ps1 @@ -29,7 +29,7 @@ Get-AzDataMigrationSqlService .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService .Notes COMPLEX PARAMETER PROPERTIES @@ -51,7 +51,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationsqlservice #> function Get-AzDataMigrationSqlService { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService])] [CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlServiceAuthKey.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlServiceAuthKey.ps1 index 9c06fb7b177e..0851f47ebc91 100644 --- a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlServiceAuthKey.ps1 +++ b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlServiceAuthKey.ps1 @@ -23,12 +23,12 @@ Retrieve the List of Authentication Keys for Self Hosted Integration Runtime. Get-AzDataMigrationSqlServiceAuthKey -ResourceGroupName "MyResourceGroup" -SqlMigrationServiceName "MySqlMigrationService" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeys +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeys .Link https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationsqlserviceauthkey #> function Get-AzDataMigrationSqlServiceAuthKey { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeys])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeys])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric.ps1 index afad985da54d..a4a27b40afe4 100644 --- a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric.ps1 +++ b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric.ps1 @@ -26,12 +26,12 @@ $item = Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric -ResourceGroupName $item.Node[0] .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringData +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringData .Link https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationsqlserviceintegrationruntimemetric #> function Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringData])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringData])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlServiceMigration.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlServiceMigration.ps1 index e61df0ff84fa..651094fc2b14 100644 --- a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlServiceMigration.ps1 +++ b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationSqlServiceMigration.ps1 @@ -23,12 +23,12 @@ Retrieve the List of database migrations attached to the service. Get-AzDataMigrationSqlServiceMigration -ResourceGroupName "MyResourceGroup" -SqlMigrationServiceName "MySqlMigrationService" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration .Link https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationsqlservicemigration #> function Get-AzDataMigrationSqlServiceMigration { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationToSqlDb.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationToSqlDb.ps1 index 0ae3018b89a5..e5535c1060c1 100644 --- a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationToSqlDb.ps1 +++ b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationToSqlDb.ps1 @@ -28,7 +28,7 @@ $dbMigration.MigrationStatusDetailMigrationState .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb .Notes COMPLEX PARAMETER PROPERTIES @@ -50,7 +50,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationtosqldb #> function Get-AzDataMigrationToSqlDb { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationToSqlManagedInstance.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationToSqlManagedInstance.ps1 index ff1be4dd8e46..81570860736e 100644 --- a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationToSqlManagedInstance.ps1 +++ b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationToSqlManagedInstance.ps1 @@ -28,7 +28,7 @@ $miMigration.MigrationStatusDetail .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi .Notes COMPLEX PARAMETER PROPERTIES @@ -50,7 +50,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationtosqlmanagedinstance #> function Get-AzDataMigrationToSqlManagedInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationToSqlVM.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationToSqlVM.ps1 index c9a9dad77d6a..29ee5294bde8 100644 --- a/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationToSqlVM.ps1 +++ b/generated/DataMigration/DataMigration.Autorest/exports/Get-AzDataMigrationToSqlVM.ps1 @@ -28,7 +28,7 @@ $vmMigration.MigrationStatusDetail .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM .Notes COMPLEX PARAMETER PROPERTIES @@ -50,7 +50,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationtosqlvm #> function Get-AzDataMigrationToSqlVM { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/generated/DataMigration/DataMigration.Autorest/exports/Invoke-AzDataMigrationRetryToSqlDb.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/Invoke-AzDataMigrationRetryToSqlDb.ps1 new file mode 100644 index 000000000000..03eda01f66e0 --- /dev/null +++ b/generated/DataMigration/DataMigration.Autorest/exports/Invoke-AzDataMigrationRetryToSqlDb.ps1 @@ -0,0 +1,266 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Retry on going migration for the database. +.Description +Retry on going migration for the database. +.Example +Invoke-AzDataMigrationRetryToSqlDb -ResourceGroupName myRG -SqlDbInstanceName sqldb -TargetDbName sqldb -MigrationOperationId migOpId + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [Id ]: Resource identity path + [ManagedInstanceName ]: + [MigrationName ]: Name of the migration. + [MigrationServiceName ]: Name of the Migration Service. + [ResourceGroupName ]: Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + [SqlDbInstanceName ]: + [SqlMigrationServiceName ]: Name of the SQL Migration Service. + [SqlVirtualMachineName ]: + [SubscriptionId ]: Subscription ID that identifies an Azure subscription. + [TargetDbName ]: The name of the target database. + [TargetResourceName ]: The name of the target resource/account. + +MIGRATIONOPERATIONINPUT : Migration Operation Input + MigrationOperationId : ID tracking migration operation. +.Link +https://learn.microsoft.com/powershell/module/az.datamigration/invoke-azdatamigrationretrytosqldb +#> +function Invoke-AzDataMigrationRetryToSqlDb { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='RetryExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Retry', Mandatory)] + [Parameter(ParameterSetName='RetryExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [System.String] + # Name of the resource group that contains the resource. + # You can obtain this value from the Azure Resource Manager API or the portal. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Retry', Mandatory)] + [Parameter(ParameterSetName='RetryExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [System.String] + # . + ${SqlDbInstanceName}, + + [Parameter(ParameterSetName='Retry')] + [Parameter(ParameterSetName='RetryExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription ID that identifies an Azure subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Retry', Mandatory)] + [Parameter(ParameterSetName='RetryExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [System.String] + # The name of the target database. + ${TargetDbName}, + + [Parameter(ParameterSetName='RetryViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='RetryViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Retry', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='RetryViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput] + # Migration Operation Input + # To construct, see NOTES section for MIGRATIONOPERATIONINPUT properties and create a hash table. + ${MigrationOperationInput}, + + [Parameter(ParameterSetName='RetryExpanded', Mandatory)] + [Parameter(ParameterSetName='RetryViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Body')] + [System.String] + # ID tracking migration operation. + ${MigrationOperationId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Retry = 'Az.DataMigration.private\Invoke-AzDataMigrationRetryToSqlDb_Retry'; + RetryExpanded = 'Az.DataMigration.private\Invoke-AzDataMigrationRetryToSqlDb_RetryExpanded'; + RetryViaIdentity = 'Az.DataMigration.private\Invoke-AzDataMigrationRetryToSqlDb_RetryViaIdentity'; + RetryViaIdentityExpanded = 'Az.DataMigration.private\Invoke-AzDataMigrationRetryToSqlDb_RetryViaIdentityExpanded'; + } + if (('Retry', 'RetryExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationSqlService.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationSqlService.ps1 index 59421f10597c..3269d143a1e4 100644 --- a/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationSqlService.ps1 +++ b/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationSqlService.ps1 @@ -23,12 +23,12 @@ Create or Update Database Migration Service. New-AzDataMigrationSqlService -ResourceGroupName "MyResourceGroup" -SqlMigrationServiceName "MySqlMigrationService" -Location "eastus2" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService .Link https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationsqlservice #> function New-AzDataMigrationSqlService { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationSqlServiceAuthKey.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationSqlServiceAuthKey.ps1 index 2802d8683d44..eedb809d7b92 100644 --- a/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationSqlServiceAuthKey.ps1 +++ b/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationSqlServiceAuthKey.ps1 @@ -23,12 +23,12 @@ Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime. New-AzDataMigrationSqlServiceAuthKey -ResourceGroupName "MyResourceGroup" -SqlMigrationServiceName "MySqlMigrationService" -KeyName AuthKey2 .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeys +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeys .Link https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationsqlserviceauthkey #> function New-AzDataMigrationSqlServiceAuthKey { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeys])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeys])] [CmdletBinding(DefaultParameterSetName='RegenerateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlDb.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlDb.ps1 index bf14cc1adad4..1bb384b437a6 100644 --- a/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlDb.ps1 +++ b/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlDb.ps1 @@ -33,12 +33,12 @@ $targetPassword = ConvertTo-SecureString -String $password -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" -TableList "table_1" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb .Link https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationtosqldb #> function New-AzDataMigrationToSqlDb { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlManagedInstance.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlManagedInstance.ps1 index db543b75740f..04df4c6b5c39 100644 --- a/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlManagedInstance.ps1 +++ b/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlManagedInstance.ps1 @@ -31,12 +31,12 @@ New-AzDataMigrationToSqlManagedInstance -ResourceGroupName "MyResourceGroup" -Ma New-AzDataMigrationToSqlManagedInstance -ResourceGroupName "MyResourceGroup" -ManagedInstanceName "MyManagedInstance" -TargetDbName "MyDb" -Kind "SqlMI" -Scope "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyResourceGroup/providers/Microsoft.Sql/managedInstances/MyManagedInstance" -MigrationService "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyRG/providers/Microsoft.DataMigration/SqlMigrationServices/MySqlMigrationService" -AzureBlobStorageAccountResourceId "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyResourceGroup/providers/Microsoft.Storage/storageAccounts/MyStorageAccount" -AzureBlobContainerName "container" -AzureBlobAccountKey "accountKey" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi .Link https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationtosqlmanagedinstance #> function New-AzDataMigrationToSqlManagedInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlVM.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlVM.ps1 index bf93b32426a8..10dc86bf168b 100644 --- a/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlVM.ps1 +++ b/generated/DataMigration/DataMigration.Autorest/exports/New-AzDataMigrationToSqlVM.ps1 @@ -26,12 +26,12 @@ $filesharePassword = ConvertTo-SecureString -String $password -AsPlainText -Forc New-AzDataMigrationToSqlVM -ResourceGroupName "MyResourceGroup" -SqlVirtualMachineName "MyVM" -TargetDbName "MyDb" -Kind "SqlVm" -Scope "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyResourceGroup/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachine/MyVM" -MigrationService "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyResourceGroup/providers/Microsoft.DataMigration/SqlMigrationServices/MySqlMigrationService" -StorageAccountResourceId "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyResourceGroup/providers/Microsoft.Storage/storageAccounts/MyStorageAccount" -StorageAccountKey "aaaaaccccoooouuunnntttkkkeeeyy" -FileSharePath "\\filesharepath.com\SharedBackup\MyBackUps" -FileShareUsername "filesharepath\User" -FileSharePassword $filesharePassword -SourceSqlConnectionAuthentication "SqlAuthentication" -SourceSqlConnectionDataSource "LabServer.database.net" -SourceSqlConnectionUserName "User" -SourceSqlConnectionPassword $sourcePassword -SourceDatabaseName "AdventureWorks" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM .Link https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationtosqlvm #> function New-AzDataMigrationToSqlVM { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/generated/DataMigration/DataMigration.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/ProxyCmdletDefinitions.ps1 index dd0bda8c2005..7be04c0eefec 100644 --- a/generated/DataMigration/DataMigration.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/DataMigration/DataMigration.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -23,12 +23,12 @@ Retrieve the List of Authentication Keys for Self Hosted Integration Runtime. Get-AzDataMigrationSqlServiceAuthKey -ResourceGroupName "MyResourceGroup" -SqlMigrationServiceName "MySqlMigrationService" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeys +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeys .Link https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationsqlserviceauthkey #> function Get-AzDataMigrationSqlServiceAuthKey { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeys])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeys])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -205,12 +205,12 @@ $item = Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric -ResourceGroupName $item.Node[0] .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringData +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringData .Link https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationsqlserviceintegrationruntimemetric #> function Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringData])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringData])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -384,12 +384,12 @@ Retrieve the List of database migrations attached to the service. Get-AzDataMigrationSqlServiceMigration -ResourceGroupName "MyResourceGroup" -SqlMigrationServiceName "MySqlMigrationService" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration .Link https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationsqlservicemigration #> function Get-AzDataMigrationSqlServiceMigration { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -569,7 +569,7 @@ Get-AzDataMigrationSqlService .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService .Notes COMPLEX PARAMETER PROPERTIES @@ -591,7 +591,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationsqlservice #> function Get-AzDataMigrationSqlService { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService])] [CmdletBinding(DefaultParameterSetName='List1', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -784,7 +784,7 @@ $dbMigration.MigrationStatusDetailMigrationState .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb .Notes COMPLEX PARAMETER PROPERTIES @@ -806,7 +806,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationtosqldb #> function Get-AzDataMigrationToSqlDb { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -1013,7 +1013,7 @@ $miMigration.MigrationStatusDetail .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi .Notes COMPLEX PARAMETER PROPERTIES @@ -1035,7 +1035,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationtosqlmanagedinstance #> function Get-AzDataMigrationToSqlManagedInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -1242,7 +1242,7 @@ $vmMigration.MigrationStatusDetail .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM .Notes COMPLEX PARAMETER PROPERTIES @@ -1264,7 +1264,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationtosqlvm #> function Get-AzDataMigrationToSqlVM { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM])] [CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -1867,6 +1867,257 @@ end { } } +<# +.Synopsis +Retry on going migration for the database. +.Description +Retry on going migration for the database. +.Example +Invoke-AzDataMigrationRetryToSqlDb -ResourceGroupName myRG -SqlDbInstanceName sqldb -TargetDbName sqldb -MigrationOperationId migOpId + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity +.Outputs +System.Boolean +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [Id ]: Resource identity path + [ManagedInstanceName ]: + [MigrationName ]: Name of the migration. + [MigrationServiceName ]: Name of the Migration Service. + [ResourceGroupName ]: Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + [SqlDbInstanceName ]: + [SqlMigrationServiceName ]: Name of the SQL Migration Service. + [SqlVirtualMachineName ]: + [SubscriptionId ]: Subscription ID that identifies an Azure subscription. + [TargetDbName ]: The name of the target database. + [TargetResourceName ]: The name of the target resource/account. + +MIGRATIONOPERATIONINPUT : Migration Operation Input + MigrationOperationId : ID tracking migration operation. +.Link +https://learn.microsoft.com/powershell/module/az.datamigration/invoke-azdatamigrationretrytosqldb +#> +function Invoke-AzDataMigrationRetryToSqlDb { +[OutputType([System.Boolean])] +[CmdletBinding(DefaultParameterSetName='RetryExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Retry', Mandatory)] + [Parameter(ParameterSetName='RetryExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [System.String] + # Name of the resource group that contains the resource. + # You can obtain this value from the Azure Resource Manager API or the portal. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Retry', Mandatory)] + [Parameter(ParameterSetName='RetryExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [System.String] + # . + ${SqlDbInstanceName}, + + [Parameter(ParameterSetName='Retry')] + [Parameter(ParameterSetName='RetryExpanded')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription ID that identifies an Azure subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Retry', Mandatory)] + [Parameter(ParameterSetName='RetryExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [System.String] + # The name of the target database. + ${TargetDbName}, + + [Parameter(ParameterSetName='RetryViaIdentity', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='RetryViaIdentityExpanded', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter(ParameterSetName='Retry', Mandatory, ValueFromPipeline)] + [Parameter(ParameterSetName='RetryViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput] + # Migration Operation Input + # To construct, see NOTES section for MIGRATIONOPERATIONINPUT properties and create a hash table. + ${MigrationOperationInput}, + + [Parameter(ParameterSetName='RetryExpanded', Mandatory)] + [Parameter(ParameterSetName='RetryViaIdentityExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Body')] + [System.String] + # ID tracking migration operation. + ${MigrationOperationId}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Retry = 'Az.DataMigration.private\Invoke-AzDataMigrationRetryToSqlDb_Retry'; + RetryExpanded = 'Az.DataMigration.private\Invoke-AzDataMigrationRetryToSqlDb_RetryExpanded'; + RetryViaIdentity = 'Az.DataMigration.private\Invoke-AzDataMigrationRetryToSqlDb_RetryViaIdentity'; + RetryViaIdentityExpanded = 'Az.DataMigration.private\Invoke-AzDataMigrationRetryToSqlDb_RetryViaIdentityExpanded'; + } + if (('Retry', 'RetryExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + <# .Synopsis Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime. @@ -1876,12 +2127,12 @@ Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime. New-AzDataMigrationSqlServiceAuthKey -ResourceGroupName "MyResourceGroup" -SqlMigrationServiceName "MySqlMigrationService" -KeyName AuthKey2 .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeys +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeys .Link https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationsqlserviceauthkey #> function New-AzDataMigrationSqlServiceAuthKey { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeys])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeys])] [CmdletBinding(DefaultParameterSetName='RegenerateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -2073,12 +2324,12 @@ Create or Update Database Migration Service. New-AzDataMigrationSqlService -ResourceGroupName "MyResourceGroup" -SqlMigrationServiceName "MySqlMigrationService" -Location "eastus2" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService .Link https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationsqlservice #> function New-AzDataMigrationSqlService { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -2288,12 +2539,12 @@ $targetPassword = ConvertTo-SecureString -String $password -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" -TableList "table_1" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb .Link https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationtosqldb #> function New-AzDataMigrationToSqlDb { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -2598,12 +2849,12 @@ $filesharePassword = ConvertTo-SecureString -String $password -AsPlainText -Forc New-AzDataMigrationToSqlVM -ResourceGroupName "MyResourceGroup" -SqlVirtualMachineName "MyVM" -TargetDbName "MyDb" -Kind "SqlVm" -Scope "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyResourceGroup/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachine/MyVM" -MigrationService "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyResourceGroup/providers/Microsoft.DataMigration/SqlMigrationServices/MySqlMigrationService" -StorageAccountResourceId "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyResourceGroup/providers/Microsoft.Storage/storageAccounts/MyStorageAccount" -StorageAccountKey "aaaaaccccoooouuunnntttkkkeeeyy" -FileSharePath "\\filesharepath.com\SharedBackup\MyBackUps" -FileShareUsername "filesharepath\User" -FileSharePassword $filesharePassword -SourceSqlConnectionAuthentication "SqlAuthentication" -SourceSqlConnectionDataSource "LabServer.database.net" -SourceSqlConnectionUserName "User" -SourceSqlConnectionPassword $sourcePassword -SourceDatabaseName "AdventureWorks" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM .Link https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationtosqlvm #> function New-AzDataMigrationToSqlVM { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -2927,7 +3178,7 @@ Remove-AzDataMigrationSqlServiceNode -ResourceGroupName "MyResourceGroup" -SqlMi .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode .Notes COMPLEX PARAMETER PROPERTIES @@ -2949,7 +3200,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.datamigration/remove-azdatamigrationsqlservicenode #> function Remove-AzDataMigrationSqlServiceNode { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode])] [CmdletBinding(DefaultParameterSetName='DeleteExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='DeleteExpanded', Mandatory)] @@ -3586,6 +3837,472 @@ end { } } +<# +.Synopsis +Delete Database Migration resource. +.Description +Delete Database Migration resource. +.Example +Remove-AzDataMigrationToSqlManagedInstance -ResourceGroupName myRG -managedInstanceName sqlmi -TargetDbName myDB +.Example +Remove-AzDataMigrationToSqlManagedInstance -ResourceGroupName myRG -managedInstanceName sqlmi -TargetDbName myDB -Force + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [Id ]: Resource identity path + [ManagedInstanceName ]: + [MigrationName ]: Name of the migration. + [MigrationServiceName ]: Name of the Migration Service. + [ResourceGroupName ]: Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + [SqlDbInstanceName ]: + [SqlMigrationServiceName ]: Name of the SQL Migration Service. + [SqlVirtualMachineName ]: + [SubscriptionId ]: Subscription ID that identifies an Azure subscription. + [TargetDbName ]: The name of the target database. + [TargetResourceName ]: The name of the target resource/account. +.Link +https://learn.microsoft.com/powershell/module/az.datamigration/remove-azdatamigrationtosqlmanagedinstance +#> +function Remove-AzDataMigrationToSqlManagedInstance { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [System.String] + # . + ${ManagedInstanceName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [System.String] + # Name of the resource group that contains the resource. + # You can obtain this value from the Azure Resource Manager API or the portal. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription ID that identifies an Azure subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [System.String] + # The name of the target database. + ${TargetDbName}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Query')] + [System.Management.Automation.SwitchParameter] + # Optional force delete boolean. + # If this is provided as true, migration will be deleted even if active. + ${Force}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.DataMigration.private\Remove-AzDataMigrationToSqlManagedInstance_Delete'; + DeleteViaIdentity = 'Az.DataMigration.private\Remove-AzDataMigrationToSqlManagedInstance_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + +<# +.Synopsis +Delete Database Migration resource. +.Description +Delete Database Migration resource. +.Example +Remove-AzDataMigrationToSqlVM -ResourceGroupName myRG -SqlVirtualMachineName myVM -TargetDbName myDB +.Example +Remove-AzDataMigrationToSqlVM -ResourceGroupName myRG -SqlVirtualMachineName myVM -TargetDbName myDB -Force + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [Id ]: Resource identity path + [ManagedInstanceName ]: + [MigrationName ]: Name of the migration. + [MigrationServiceName ]: Name of the Migration Service. + [ResourceGroupName ]: Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + [SqlDbInstanceName ]: + [SqlMigrationServiceName ]: Name of the SQL Migration Service. + [SqlVirtualMachineName ]: + [SubscriptionId ]: Subscription ID that identifies an Azure subscription. + [TargetDbName ]: The name of the target database. + [TargetResourceName ]: The name of the target resource/account. +.Link +https://learn.microsoft.com/powershell/module/az.datamigration/remove-azdatamigrationtosqlvm +#> +function Remove-AzDataMigrationToSqlVM { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [System.String] + # Name of the resource group that contains the resource. + # You can obtain this value from the Azure Resource Manager API or the portal. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [System.String] + # . + ${SqlVirtualMachineName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription ID that identifies an Azure subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [System.String] + # The name of the target database. + ${TargetDbName}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Query')] + [System.Management.Automation.SwitchParameter] + # Optional force delete boolean. + # If this is provided as true, migration will be deleted even if active. + ${Force}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.DataMigration.private\Remove-AzDataMigrationToSqlVM_Delete'; + DeleteViaIdentity = 'Az.DataMigration.private\Remove-AzDataMigrationToSqlVM_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} + <# .Synopsis Stop in-progress database migration to SQL Db. @@ -4216,7 +4933,7 @@ Update-AzDataMigrationSqlService -InputObject $mySqlMS -Tag @{Tag="Service"} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService .Notes COMPLEX PARAMETER PROPERTIES @@ -4238,7 +4955,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.datamigration/update-azdatamigrationsqlservice #> function Update-AzDataMigrationSqlService { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -4271,7 +4988,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateTags]))] [System.Collections.Hashtable] # Dictionary of ${Tag}, @@ -5402,12 +6119,12 @@ New-AzDataMigrationToSqlManagedInstance -ResourceGroupName "MyResourceGroup" -Ma New-AzDataMigrationToSqlManagedInstance -ResourceGroupName "MyResourceGroup" -ManagedInstanceName "MyManagedInstance" -TargetDbName "MyDb" -Kind "SqlMI" -Scope "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyResourceGroup/providers/Microsoft.Sql/managedInstances/MyManagedInstance" -MigrationService "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyRG/providers/Microsoft.DataMigration/SqlMigrationServices/MySqlMigrationService" -AzureBlobStorageAccountResourceId "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyResourceGroup/providers/Microsoft.Storage/storageAccounts/MyStorageAccount" -AzureBlobContainerName "container" -AzureBlobAccountKey "accountKey" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi .Link https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationtosqlmanagedinstance #> function New-AzDataMigrationToSqlManagedInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi])] [CmdletBinding(PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/generated/DataMigration/DataMigration.Autorest/exports/Remove-AzDataMigrationSqlServiceNode.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/Remove-AzDataMigrationSqlServiceNode.ps1 index af9594bf5f2e..f03a96ec0434 100644 --- a/generated/DataMigration/DataMigration.Autorest/exports/Remove-AzDataMigrationSqlServiceNode.ps1 +++ b/generated/DataMigration/DataMigration.Autorest/exports/Remove-AzDataMigrationSqlServiceNode.ps1 @@ -25,7 +25,7 @@ Remove-AzDataMigrationSqlServiceNode -ResourceGroupName "MyResourceGroup" -SqlMi .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode .Notes COMPLEX PARAMETER PROPERTIES @@ -47,7 +47,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.datamigration/remove-azdatamigrationsqlservicenode #> function Remove-AzDataMigrationSqlServiceNode { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode])] [CmdletBinding(DefaultParameterSetName='DeleteExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='DeleteExpanded', Mandatory)] diff --git a/generated/DataMigration/DataMigration.Autorest/exports/Remove-AzDataMigrationToSqlManagedInstance.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/Remove-AzDataMigrationToSqlManagedInstance.ps1 new file mode 100644 index 000000000000..32a72accf071 --- /dev/null +++ b/generated/DataMigration/DataMigration.Autorest/exports/Remove-AzDataMigrationToSqlManagedInstance.ps1 @@ -0,0 +1,248 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Delete Database Migration resource. +.Description +Delete Database Migration resource. +.Example +Remove-AzDataMigrationToSqlManagedInstance -ResourceGroupName myRG -managedInstanceName sqlmi -TargetDbName myDB +.Example +Remove-AzDataMigrationToSqlManagedInstance -ResourceGroupName myRG -managedInstanceName sqlmi -TargetDbName myDB -Force + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [Id ]: Resource identity path + [ManagedInstanceName ]: + [MigrationName ]: Name of the migration. + [MigrationServiceName ]: Name of the Migration Service. + [ResourceGroupName ]: Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + [SqlDbInstanceName ]: + [SqlMigrationServiceName ]: Name of the SQL Migration Service. + [SqlVirtualMachineName ]: + [SubscriptionId ]: Subscription ID that identifies an Azure subscription. + [TargetDbName ]: The name of the target database. + [TargetResourceName ]: The name of the target resource/account. +.Link +https://learn.microsoft.com/powershell/module/az.datamigration/remove-azdatamigrationtosqlmanagedinstance +#> +function Remove-AzDataMigrationToSqlManagedInstance { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [System.String] + # . + ${ManagedInstanceName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [System.String] + # Name of the resource group that contains the resource. + # You can obtain this value from the Azure Resource Manager API or the portal. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription ID that identifies an Azure subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [System.String] + # The name of the target database. + ${TargetDbName}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Query')] + [System.Management.Automation.SwitchParameter] + # Optional force delete boolean. + # If this is provided as true, migration will be deleted even if active. + ${Force}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.DataMigration.private\Remove-AzDataMigrationToSqlManagedInstance_Delete'; + DeleteViaIdentity = 'Az.DataMigration.private\Remove-AzDataMigrationToSqlManagedInstance_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/DataMigration/DataMigration.Autorest/exports/Remove-AzDataMigrationToSqlVM.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/Remove-AzDataMigrationToSqlVM.ps1 new file mode 100644 index 000000000000..5f0ca0642a3d --- /dev/null +++ b/generated/DataMigration/DataMigration.Autorest/exports/Remove-AzDataMigrationToSqlVM.ps1 @@ -0,0 +1,248 @@ + +# ---------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +# is regenerated. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Delete Database Migration resource. +.Description +Delete Database Migration resource. +.Example +Remove-AzDataMigrationToSqlVM -ResourceGroupName myRG -SqlVirtualMachineName myVM -TargetDbName myDB +.Example +Remove-AzDataMigrationToSqlVM -ResourceGroupName myRG -SqlVirtualMachineName myVM -TargetDbName myDB -Force + +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM +.Notes +COMPLEX PARAMETER PROPERTIES + +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. + +INPUTOBJECT : Identity Parameter + [Id ]: Resource identity path + [ManagedInstanceName ]: + [MigrationName ]: Name of the migration. + [MigrationServiceName ]: Name of the Migration Service. + [ResourceGroupName ]: Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. + [SqlDbInstanceName ]: + [SqlMigrationServiceName ]: Name of the SQL Migration Service. + [SqlVirtualMachineName ]: + [SubscriptionId ]: Subscription ID that identifies an Azure subscription. + [TargetDbName ]: The name of the target database. + [TargetResourceName ]: The name of the target resource/account. +.Link +https://learn.microsoft.com/powershell/module/az.datamigration/remove-azdatamigrationtosqlvm +#> +function Remove-AzDataMigrationToSqlVM { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM])] +[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [System.String] + # Name of the resource group that contains the resource. + # You can obtain this value from the Azure Resource Manager API or the portal. + ${ResourceGroupName}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [System.String] + # . + ${SqlVirtualMachineName}, + + [Parameter(ParameterSetName='Delete')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [System.String] + # Subscription ID that identifies an Azure subscription. + ${SubscriptionId}, + + [Parameter(ParameterSetName='Delete', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [System.String] + # The name of the target database. + ${TargetDbName}, + + [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity] + # Identity Parameter + # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. + ${InputObject}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Query')] + [System.Management.Automation.SwitchParameter] + # Optional force delete boolean. + # If this is provided as true, migration will be deleted even if active. + ${Force}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command as a job + ${AsJob}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be appended to the front of the pipeline + ${HttpPipelineAppend}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[]] + # SendAsync Pipeline Steps to be prepended to the front of the pipeline + ${HttpPipelinePrepend}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Run the command asynchronously + ${NoWait}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Returns true when the command succeeds + ${PassThru}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, + + [Parameter(DontShow)] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.PSCredential] + # Credentials for a proxy server to use for the remote call + ${ProxyCredential}, + + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} +) + +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName + + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() + } + $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + if ($preTelemetryId -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString() + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet) + } else { + $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + if ($internalCalledCmdlets -eq '') { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name + } else { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal' + } + + $mapping = @{ + Delete = 'Az.DataMigration.private\Remove-AzDataMigrationToSqlVM_Delete'; + DeleteViaIdentity = 'Az.DataMigration.private\Remove-AzDataMigrationToSqlVM_DeleteViaIdentity'; + } + if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + $testPlayback = $false + $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } + if ($testPlayback) { + $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') + } else { + $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + } + } + $cmdInfo = Get-Command -Name $mapping[$parameterSet] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){ + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name) + } + $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) + $scriptCmd = {& $wrappedCmd @PSBoundParameters} + $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) + $steppablePipeline.Begin($PSCmdlet) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} + +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } + + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + +} +end { + try { + $steppablePipeline.End() + + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets + if ($preTelemetryId -eq '') { + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet) + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId + + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } +} +} diff --git a/generated/DataMigration/DataMigration.Autorest/exports/Update-AzDataMigrationSqlService.ps1 b/generated/DataMigration/DataMigration.Autorest/exports/Update-AzDataMigrationSqlService.ps1 index 933cf857b409..d031dbd2ed9a 100644 --- a/generated/DataMigration/DataMigration.Autorest/exports/Update-AzDataMigrationSqlService.ps1 +++ b/generated/DataMigration/DataMigration.Autorest/exports/Update-AzDataMigrationSqlService.ps1 @@ -28,7 +28,7 @@ Update-AzDataMigrationSqlService -InputObject $mySqlMS -Tag @{Tag="Service"} .Inputs Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService .Notes COMPLEX PARAMETER PROPERTIES @@ -50,7 +50,7 @@ INPUTOBJECT : Identity Parameter https://learn.microsoft.com/powershell/module/az.datamigration/update-azdatamigrationsqlservice #> function Update-AzDataMigrationSqlService { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] @@ -83,7 +83,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateTags]))] [System.Collections.Hashtable] # Dictionary of ${Tag}, diff --git a/generated/DataMigration/DataMigration.Autorest/generate-info.json b/generated/DataMigration/DataMigration.Autorest/generate-info.json index ebcf7b26accf..7aae451013a1 100644 --- a/generated/DataMigration/DataMigration.Autorest/generate-info.json +++ b/generated/DataMigration/DataMigration.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "3d863b05-0047-489c-b7f2-6b7dfd14dd0a" + "generate_Id": "1c9b194d-7d03-41ae-8728-8bace933d453" } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/DataMigration.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/DataMigration.cs index b2a1a874a563..1d6aba56f16a 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/DataMigration.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/DataMigration.cs @@ -30,9 +30,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoCreate(string resourceGroupName, string targetResourceName, string migrationName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoCreate(string resourceGroupName, string targetResourceName, string migrationName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -78,9 +78,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -140,7 +140,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -257,7 +257,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationCosmosDbMongo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationCosmosDbMongo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -292,7 +292,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoCreate_Validate(string resourceGroupName, string targetResourceName, string migrationName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoCreate_Validate(string resourceGroupName, string targetResourceName, string migrationName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -324,7 +324,7 @@ public partial class DataMigration /// public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoDelete(string resourceGroupName, string targetResourceName, string migrationName, bool? force, string subscriptionId, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -370,7 +370,7 @@ public partial class DataMigration /// public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoDeleteViaIdentity(global::System.String viaIdentity, bool? force, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -608,9 +608,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoGet(string resourceGroupName, string targetResourceName, string migrationName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoGet(string resourceGroupName, string targetResourceName, string migrationName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -654,9 +654,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoGetForScope(string resourceGroupName, string targetResourceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoGetForScope(string resourceGroupName, string targetResourceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -696,9 +696,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoGetForScopeViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoGetForScopeViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -752,7 +752,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoGetForScope_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoGetForScope_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -770,7 +770,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationCosmosDbMongoListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationCosmosDbMongoListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -824,9 +824,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -882,7 +882,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbRuMongoGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -900,7 +900,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationCosmosDbMongo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationCosmosDbMongo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -962,9 +962,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoCreate(string resourceGroupName, string targetResourceName, string migrationName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoCreate(string resourceGroupName, string targetResourceName, string migrationName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1010,9 +1010,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1072,7 +1072,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1189,7 +1189,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationCosmosDbMongo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationCosmosDbMongo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -1224,7 +1224,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoCreate_Validate(string resourceGroupName, string targetResourceName, string migrationName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoCreate_Validate(string resourceGroupName, string targetResourceName, string migrationName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -1256,7 +1256,7 @@ public partial class DataMigration /// public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoDelete(string resourceGroupName, string targetResourceName, string migrationName, bool? force, string subscriptionId, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1302,7 +1302,7 @@ public partial class DataMigration /// public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoDeleteViaIdentity(global::System.String viaIdentity, bool? force, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1540,9 +1540,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoGet(string resourceGroupName, string targetResourceName, string migrationName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoGet(string resourceGroupName, string targetResourceName, string migrationName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1586,9 +1586,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoGetForScope(string resourceGroupName, string targetResourceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoGetForScope(string resourceGroupName, string targetResourceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1628,9 +1628,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoGetForScopeViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoGetForScopeViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1684,7 +1684,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoGetForScope_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoGetForScope_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1702,7 +1702,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationCosmosDbMongoListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationCosmosDbMongoListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -1756,9 +1756,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1814,7 +1814,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DatabaseMigrationsMongoToCosmosDbvCoreMongoGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1832,7 +1832,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationCosmosDbMongo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationCosmosDbMongo.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -1894,9 +1894,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCancel(string resourceGroupName, string sqlDbInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCancel(string resourceGroupName, string sqlDbInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1943,9 +1943,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCancelViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCancelViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2157,7 +2157,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCancel_Validate(string resourceGroupName, string sqlDbInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCancel_Validate(string resourceGroupName, string sqlDbInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -2189,9 +2189,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCreateOrUpdate(string resourceGroupName, string sqlDbInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCreateOrUpdate(string resourceGroupName, string sqlDbInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2241,9 +2241,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2303,7 +2303,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2420,7 +2420,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationSqlDb.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationSqlDb.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -2455,7 +2455,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCreateOrUpdate_Validate(string resourceGroupName, string sqlDbInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbCreateOrUpdate_Validate(string resourceGroupName, string sqlDbInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -2486,7 +2486,7 @@ public partial class DataMigration /// public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbDelete(string resourceGroupName, string sqlDbInstanceName, string targetDbName, bool? force, string subscriptionId, global::System.Func onOk, global::System.Func onNoContent, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2533,7 +2533,7 @@ public partial class DataMigration /// public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbDeleteViaIdentity(global::System.String viaIdentity, bool? force, global::System.Func onOk, global::System.Func onNoContent, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2777,9 +2777,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbGet(string resourceGroupName, string sqlDbInstanceName, string targetDbName, string migrationOperationId, string Expand, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbGet(string resourceGroupName, string sqlDbInstanceName, string targetDbName, string migrationOperationId, string Expand, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2827,9 +2827,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbGetViaIdentity(global::System.String viaIdentity, string migrationOperationId, string Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbGetViaIdentity(global::System.String viaIdentity, string migrationOperationId, string Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2887,7 +2887,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2905,7 +2905,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationSqlDb.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationSqlDb.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -2955,14 +2955,13 @@ public partial class DataMigration } } - /// Stop in-progress database migration to SQL Managed Instance. + /// Retry on going migration for the database. /// Name of the resource group that contains the resource. You can obtain this value from /// the Azure Resource Manager API or the portal. - /// + /// /// The name of the target database. /// Subscription ID that identifies an Azure subscription. - /// Required migration operation ID for which cancel will be initiated. - /// a delegate that is called when the remote service returns 200 (OK). + /// Required migration operation ID for which retry will be initiated. /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -2970,9 +2969,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCancel(string resourceGroupName, string managedInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbRetry(string resourceGroupName, string sqlDbInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2982,11 +2981,11 @@ public partial class DataMigration + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.Sql/managedInstances/" - + global::System.Uri.EscapeDataString(managedInstanceName) + + "/providers/Microsoft.Sql/servers/" + + global::System.Uri.EscapeDataString(sqlDbInstanceName) + "/providers/Microsoft.DataMigration/databaseMigrations/" + global::System.Uri.EscapeDataString(targetDbName) - + "/cancel" + + "/retry" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -3004,14 +3003,13 @@ public partial class DataMigration request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DatabaseMigrationsSqlMiCancel_Call(request,onOk,onDefault,eventListener,sender); + await this.DatabaseMigrationsSqlDbRetry_Call(request,onDefault,eventListener,sender); } } - /// Stop in-progress database migration to SQL Managed Instance. + /// Retry on going migration for the database. /// - /// Required migration operation ID for which cancel will be initiated. - /// a delegate that is called when the remote service returns 200 (OK). + /// Required migration operation ID for which retry will be initiated. /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -3019,23 +3017,23 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCancelViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbRetryViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Sql/managedInstances/(?[^/]+)/providers/Microsoft.DataMigration/databaseMigrations/(?[^/]+)/cancel$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Sql/servers/(?[^/]+)/providers/Microsoft.DataMigration/databaseMigrations/(?[^/]+)/retry$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/retry'"); } // replace URI parameters with values from identity var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var managedInstanceName = _match.Groups["managedInstanceName"].Value; + var sqlDbInstanceName = _match.Groups["sqlDbInstanceName"].Value; var targetDbName = _match.Groups["targetDbName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL @@ -3044,11 +3042,11 @@ public partial class DataMigration + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.Sql/managedInstances/" - + managedInstanceName + + "/providers/Microsoft.Sql/servers/" + + sqlDbInstanceName + "/providers/Microsoft.DataMigration/databaseMigrations/" + targetDbName - + "/cancel" + + "/retry" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -3066,13 +3064,12 @@ public partial class DataMigration request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DatabaseMigrationsSqlMiCancel_Call(request,onOk,onDefault,eventListener,sender); + await this.DatabaseMigrationsSqlDbRetry_Call(request,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -3080,7 +3077,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCancel_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbRetry_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3195,12 +3192,6 @@ public partial class DataMigration switch ( _response.StatusCode ) { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response); - break; - } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -3220,39 +3211,41 @@ public partial class DataMigration } /// - /// Validation method for method. Call this like the actual call, but you will + /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// /// Name of the resource group that contains the resource. You can obtain this value from /// the Azure Resource Manager API or the portal. - /// + /// /// The name of the target database. /// Subscription ID that identifies an Azure subscription. - /// Required migration operation ID for which cancel will be initiated. + /// Required migration operation ID for which retry will be initiated. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCancel_Validate(string resourceGroupName, string managedInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlDbRetry_Validate(string resourceGroupName, string sqlDbInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertNotNull(nameof(managedInstanceName),managedInstanceName); + await eventListener.AssertNotNull(nameof(sqlDbInstanceName),sqlDbInstanceName); + await eventListener.AssertRegEx(nameof(sqlDbInstanceName),sqlDbInstanceName,@"^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,127}$"); await eventListener.AssertNotNull(nameof(targetDbName),targetDbName); + await eventListener.AssertRegEx(nameof(targetDbName),targetDbName,@"^[a-zA-Z0-9][a-zA-Z0-9_.-]{0,127}$"); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Create a new database migration to a given SQL Managed Instance. + /// Stop in-progress database migration to SQL Managed Instance. /// Name of the resource group that contains the resource. You can obtain this value from /// the Azure Resource Manager API or the portal. /// /// The name of the target database. /// Subscription ID that identifies an Azure subscription. - /// Details of SqlMigrationService resource. + /// Required migration operation ID for which cancel will be initiated. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -3261,9 +3254,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCreateOrUpdate(string resourceGroupName, string managedInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCancel(string resourceGroupName, string managedInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3277,6 +3270,7 @@ public partial class DataMigration + global::System.Uri.EscapeDataString(managedInstanceName) + "/providers/Microsoft.DataMigration/databaseMigrations/" + global::System.Uri.EscapeDataString(targetDbName) + + "/cancel" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -3285,7 +3279,7 @@ public partial class DataMigration // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Put, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -3294,13 +3288,13 @@ public partial class DataMigration request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DatabaseMigrationsSqlMiCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.DatabaseMigrationsSqlMiCancel_Call(request,onOk,onDefault,eventListener,sender); } } - /// Create a new database migration to a given SQL Managed Instance. + /// Stop in-progress database migration to SQL Managed Instance. /// - /// Details of SqlMigrationService resource. + /// Required migration operation ID for which cancel will be initiated. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -3309,18 +3303,18 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCancelViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Sql/managedInstances/(?[^/]+)/providers/Microsoft.DataMigration/databaseMigrations/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Sql/managedInstances/(?[^/]+)/providers/Microsoft.DataMigration/databaseMigrations/(?[^/]+)/cancel$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel'"); } // replace URI parameters with values from identity @@ -3338,6 +3332,7 @@ public partial class DataMigration + managedInstanceName + "/providers/Microsoft.DataMigration/databaseMigrations/" + targetDbName + + "/cancel" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -3346,7 +3341,7 @@ public partial class DataMigration // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Put, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -3355,13 +3350,11 @@ public partial class DataMigration request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DatabaseMigrationsSqlMiCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.DatabaseMigrationsSqlMiCancel_Call(request,onOk,onDefault,eventListener,sender); } } - /// - /// Actual wire call for method. - /// + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -3371,7 +3364,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCancel_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3385,6 +3378,7 @@ public partial class DataMigration // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -3467,10 +3461,10 @@ public partial class DataMigration continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) + if (!string.IsNullOrWhiteSpace(_finalUri)) { // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Get); + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Get); // drop the old response _response?.Dispose(); @@ -3488,7 +3482,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationSqlMi.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response); break; } default: @@ -3510,20 +3504,20 @@ public partial class DataMigration } /// - /// Validation method for method. Call this like the actual call, but - /// you will get validation events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// /// Name of the resource group that contains the resource. You can obtain this value from /// the Azure Resource Manager API or the portal. /// /// The name of the target database. /// Subscription ID that identifies an Azure subscription. - /// Details of SqlMigrationService resource. + /// Required migration operation ID for which cancel will be initiated. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCreateOrUpdate_Validate(string resourceGroupName, string managedInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCancel_Validate(string resourceGroupName, string managedInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -3536,15 +3530,13 @@ public partial class DataMigration } } - /// - /// Initiate cutover for in-progress online database migration to SQL Managed Instance. - /// + /// Create a new database migration to a given SQL Managed Instance. /// Name of the resource group that contains the resource. You can obtain this value from /// the Azure Resource Manager API or the portal. /// /// The name of the target database. /// Subscription ID that identifies an Azure subscription. - /// Required migration operation ID for which cutover will be initiated. + /// Details of SqlMigrationService resource. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -3553,9 +3545,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCutover(string resourceGroupName, string managedInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCreateOrUpdate(string resourceGroupName, string managedInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3569,7 +3561,6 @@ public partial class DataMigration + global::System.Uri.EscapeDataString(managedInstanceName) + "/providers/Microsoft.DataMigration/databaseMigrations/" + global::System.Uri.EscapeDataString(targetDbName) - + "/cutover" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -3578,7 +3569,7 @@ public partial class DataMigration // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Put, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -3587,15 +3578,13 @@ public partial class DataMigration request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DatabaseMigrationsSqlMiCutover_Call(request,onOk,onDefault,eventListener,sender); + await this.DatabaseMigrationsSqlMiCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// - /// Initiate cutover for in-progress online database migration to SQL Managed Instance. - /// + /// Create a new database migration to a given SQL Managed Instance. /// - /// Required migration operation ID for which cutover will be initiated. + /// Details of SqlMigrationService resource. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -3604,18 +3593,18 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCutoverViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Sql/managedInstances/(?[^/]+)/providers/Microsoft.DataMigration/databaseMigrations/(?[^/]+)/cutover$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Sql/managedInstances/(?[^/]+)/providers/Microsoft.DataMigration/databaseMigrations/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cutover'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}'"); } // replace URI parameters with values from identity @@ -3633,7 +3622,6 @@ public partial class DataMigration + managedInstanceName + "/providers/Microsoft.DataMigration/databaseMigrations/" + targetDbName - + "/cutover" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -3642,7 +3630,7 @@ public partial class DataMigration // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Put, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -3651,11 +3639,13 @@ public partial class DataMigration request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DatabaseMigrationsSqlMiCutover_Call(request,onOk,onDefault,eventListener,sender); + await this.DatabaseMigrationsSqlMiCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// + /// Actual wire call for method. + /// /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -3665,7 +3655,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCutover_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3679,7 +3669,6 @@ public partial class DataMigration // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: default - var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -3762,10 +3751,10 @@ public partial class DataMigration continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) + if (!string.IsNullOrWhiteSpace(_originalUri)) { // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Get); + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Get); // drop the old response _response?.Dispose(); @@ -3783,7 +3772,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationSqlMi.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -3805,20 +3794,20 @@ public partial class DataMigration } /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. + /// Validation method for method. Call this like the actual call, but + /// you will get validation events back. /// /// Name of the resource group that contains the resource. You can obtain this value from /// the Azure Resource Manager API or the portal. /// /// The name of the target database. /// Subscription ID that identifies an Azure subscription. - /// Required migration operation ID for which cutover will be initiated. + /// Details of SqlMigrationService resource. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCutover_Validate(string resourceGroupName, string managedInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCreateOrUpdate_Validate(string resourceGroupName, string managedInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -3831,15 +3820,15 @@ public partial class DataMigration } } - /// Retrieve the specified database migration for a given SQL Managed Instance. + /// + /// Initiate cutover for in-progress online database migration to SQL Managed Instance. + /// /// Name of the resource group that contains the resource. You can obtain this value from /// the Azure Resource Manager API or the portal. /// /// The name of the target database. - /// Optional migration operation ID. If this is provided, then details of migration operation - /// for that ID are retrieved. If not provided (default), then details related to most recent or current operation are retrieved. - /// Complete migration details be included in the response. /// Subscription ID that identifies an Azure subscription. + /// Required migration operation ID for which cutover will be initiated. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -3848,9 +3837,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiGet(string resourceGroupName, string managedInstanceName, string targetDbName, string migrationOperationId, string Expand, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCutover(string resourceGroupName, string managedInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3864,11 +3853,8 @@ public partial class DataMigration + global::System.Uri.EscapeDataString(managedInstanceName) + "/providers/Microsoft.DataMigration/databaseMigrations/" + global::System.Uri.EscapeDataString(targetDbName) + + "/cutover" + "?" - + (string.IsNullOrEmpty(migrationOperationId) ? global::System.String.Empty : "migrationOperationId=" + global::System.Uri.EscapeDataString(migrationOperationId)) - + "&" - + (string.IsNullOrEmpty(Expand) ? global::System.String.Empty : "$expand=" + global::System.Uri.EscapeDataString(Expand)) - + "&" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -3876,20 +3862,24 @@ public partial class DataMigration // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DatabaseMigrationsSqlMiGet_Call(request,onOk,onDefault,eventListener,sender); + await this.DatabaseMigrationsSqlMiCutover_Call(request,onOk,onDefault,eventListener,sender); } } - /// Retrieve the specified database migration for a given SQL Managed Instance. + /// + /// Initiate cutover for in-progress online database migration to SQL Managed Instance. + /// /// - /// Optional migration operation ID. If this is provided, then details of migration operation - /// for that ID are retrieved. If not provided (default), then details related to most recent or current operation are retrieved. - /// Complete migration details be included in the response. + /// Required migration operation ID for which cutover will be initiated. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -3898,18 +3888,18 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiGetViaIdentity(global::System.String viaIdentity, string migrationOperationId, string Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCutoverViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Sql/managedInstances/(?[^/]+)/providers/Microsoft.DataMigration/databaseMigrations/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Sql/managedInstances/(?[^/]+)/providers/Microsoft.DataMigration/databaseMigrations/(?[^/]+)/cutover$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cutover'"); } // replace URI parameters with values from identity @@ -3927,11 +3917,8 @@ public partial class DataMigration + managedInstanceName + "/providers/Microsoft.DataMigration/databaseMigrations/" + targetDbName + + "/cutover" + "?" - + (string.IsNullOrEmpty(migrationOperationId) ? global::System.String.Empty : "migrationOperationId=" + global::System.Uri.EscapeDataString(migrationOperationId)) - + "&" - + (string.IsNullOrEmpty(Expand) ? global::System.String.Empty : "$expand=" + global::System.Uri.EscapeDataString(Expand)) - + "&" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -3939,16 +3926,20 @@ public partial class DataMigration // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DatabaseMigrationsSqlMiGet_Call(request,onOk,onDefault,eventListener,sender); + await this.DatabaseMigrationsSqlMiCutover_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -3958,7 +3949,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCutover_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3969,81 +3960,957 @@ public partial class DataMigration await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationSqlMi.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response); - break; + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Get); - /// - /// Validation method for method. Call this like the actual call, but you will get - /// validation events back. - /// - /// Name of the resource group that contains the resource. You can obtain this value from - /// the Azure Resource Manager API or the portal. - /// - /// The name of the target database. - /// Optional migration operation ID. If this is provided, then details of migration operation - /// for that ID are retrieved. If not provided (default), then details related to most recent or current operation are retrieved. - /// Complete migration details be included in the response. - /// Subscription ID that identifies an Azure subscription. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiGet_Validate(string resourceGroupName, string managedInstanceName, string targetDbName, string migrationOperationId, string Expand, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertNotNull(nameof(managedInstanceName),managedInstanceName); - await eventListener.AssertNotNull(nameof(targetDbName),targetDbName); - await eventListener.AssertRegEx(nameof(migrationOperationId),migrationOperationId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); - await eventListener.AssertNotNull(nameof(Expand),Expand); - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - } - } + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; - /// Stop in-progress database migration to SQL VM. - /// Name of the resource group that contains the resource. You can obtain this value from - /// the Azure Resource Manager API or the portal. - /// - /// The name of the target database. - /// Subscription ID that identifies an Azure subscription. - /// Migration Operation Input - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// Name of the resource group that contains the resource. You can obtain this value from + /// the Azure Resource Manager API or the portal. + /// + /// The name of the target database. + /// Subscription ID that identifies an Azure subscription. + /// Required migration operation ID for which cutover will be initiated. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiCutover_Validate(string resourceGroupName, string managedInstanceName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(managedInstanceName),managedInstanceName); + await eventListener.AssertNotNull(nameof(targetDbName),targetDbName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Delete Database Migration resource. + /// Name of the resource group that contains the resource. You can obtain this value from + /// the Azure Resource Manager API or the portal. + /// + /// The name of the target database. + /// Optional force delete boolean. If this is provided as true, migration will be deleted even if active. + /// Subscription ID that identifies an Azure subscription. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiDelete(string resourceGroupName, string managedInstanceName, string targetDbName, bool? force, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-06-30"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Sql/managedInstances/" + + global::System.Uri.EscapeDataString(managedInstanceName) + + "/providers/Microsoft.DataMigration/databaseMigrations/" + + global::System.Uri.EscapeDataString(targetDbName) + + "?" + + (null == force ? global::System.String.Empty : "force=" + global::System.Uri.EscapeDataString(force.ToString())) + + "&" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DatabaseMigrationsSqlMiDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Delete Database Migration resource. + /// + /// Optional force delete boolean. If this is provided as true, migration will be deleted even if active. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiDeleteViaIdentity(global::System.String viaIdentity, bool? force, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-06-30"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Sql/managedInstances/(?[^/]+)/providers/Microsoft.DataMigration/databaseMigrations/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}'"); + } + + // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var managedInstanceName = _match.Groups["managedInstanceName"].Value; + var targetDbName = _match.Groups["targetDbName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Sql/managedInstances/" + + managedInstanceName + + "/providers/Microsoft.DataMigration/databaseMigrations/" + + targetDbName + + "?" + + (null == force ? global::System.String.Empty : "force=" + global::System.Uri.EscapeDataString(force.ToString())) + + "&" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Delete, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DatabaseMigrationsSqlMiDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationSqlMi.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// Name of the resource group that contains the resource. You can obtain this value from + /// the Azure Resource Manager API or the portal. + /// + /// The name of the target database. + /// Optional force delete boolean. If this is provided as true, migration will be deleted even if active. + /// Subscription ID that identifies an Azure subscription. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiDelete_Validate(string resourceGroupName, string managedInstanceName, string targetDbName, bool? force, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(managedInstanceName),managedInstanceName); + await eventListener.AssertNotNull(nameof(targetDbName),targetDbName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// Retrieve the specified database migration for a given SQL Managed Instance. + /// Name of the resource group that contains the resource. You can obtain this value from + /// the Azure Resource Manager API or the portal. + /// + /// The name of the target database. + /// Optional migration operation ID. If this is provided, then details of migration operation + /// for that ID are retrieved. If not provided (default), then details related to most recent or current operation are retrieved. + /// Complete migration details be included in the response. + /// Subscription ID that identifies an Azure subscription. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiGet(string resourceGroupName, string managedInstanceName, string targetDbName, string migrationOperationId, string Expand, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-06-30"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.Sql/managedInstances/" + + global::System.Uri.EscapeDataString(managedInstanceName) + + "/providers/Microsoft.DataMigration/databaseMigrations/" + + global::System.Uri.EscapeDataString(targetDbName) + + "?" + + (string.IsNullOrEmpty(migrationOperationId) ? global::System.String.Empty : "migrationOperationId=" + global::System.Uri.EscapeDataString(migrationOperationId)) + + "&" + + (string.IsNullOrEmpty(Expand) ? global::System.String.Empty : "$expand=" + global::System.Uri.EscapeDataString(Expand)) + + "&" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DatabaseMigrationsSqlMiGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Retrieve the specified database migration for a given SQL Managed Instance. + /// + /// Optional migration operation ID. If this is provided, then details of migration operation + /// for that ID are retrieved. If not provided (default), then details related to most recent or current operation are retrieved. + /// Complete migration details be included in the response. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiGetViaIdentity(global::System.String viaIdentity, string migrationOperationId, string Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-06-30"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.Sql/managedInstances/(?[^/]+)/providers/Microsoft.DataMigration/databaseMigrations/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}'"); + } + + // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var managedInstanceName = _match.Groups["managedInstanceName"].Value; + var targetDbName = _match.Groups["targetDbName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.Sql/managedInstances/" + + managedInstanceName + + "/providers/Microsoft.DataMigration/databaseMigrations/" + + targetDbName + + "?" + + (string.IsNullOrEmpty(migrationOperationId) ? global::System.String.Empty : "migrationOperationId=" + global::System.Uri.EscapeDataString(migrationOperationId)) + + "&" + + (string.IsNullOrEmpty(Expand) ? global::System.String.Empty : "$expand=" + global::System.Uri.EscapeDataString(Expand)) + + "&" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DatabaseMigrationsSqlMiGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationSqlMi.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. + /// + /// Name of the resource group that contains the resource. You can obtain this value from + /// the Azure Resource Manager API or the portal. + /// + /// The name of the target database. + /// Optional migration operation ID. If this is provided, then details of migration operation + /// for that ID are retrieved. If not provided (default), then details related to most recent or current operation are retrieved. + /// Complete migration details be included in the response. + /// Subscription ID that identifies an Azure subscription. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlMiGet_Validate(string resourceGroupName, string managedInstanceName, string targetDbName, string migrationOperationId, string Expand, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(managedInstanceName),managedInstanceName); + await eventListener.AssertNotNull(nameof(targetDbName),targetDbName); + await eventListener.AssertRegEx(nameof(migrationOperationId),migrationOperationId,@"^[0-9a-fA-F]{8}(-[0-9a-fA-F]{4}){3}-[0-9a-fA-F]{12}$"); + await eventListener.AssertNotNull(nameof(Expand),Expand); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + } + } + + /// Stop in-progress database migration to SQL VM. + /// Name of the resource group that contains the resource. You can obtain this value from + /// the Azure Resource Manager API or the portal. + /// + /// The name of the target database. + /// Subscription ID that identifies an Azure subscription. + /// Migration Operation Input + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMCancel(string resourceGroupName, string sqlVirtualMachineName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-06-30"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/" + + global::System.Uri.EscapeDataString(sqlVirtualMachineName) + + "/providers/Microsoft.DataMigration/databaseMigrations/" + + global::System.Uri.EscapeDataString(targetDbName) + + "/cancel" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DatabaseMigrationsSqlVMCancel_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Stop in-progress database migration to SQL VM. + /// + /// Migration Operation Input + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMCancelViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + { + var apiVersion = @"2025-06-30"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/(?[^/]+)/providers/Microsoft.DataMigration/databaseMigrations/(?[^/]+)/cancel$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel'"); + } + + // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var sqlVirtualMachineName = _match.Groups["sqlVirtualMachineName"].Value; + var targetDbName = _match.Groups["targetDbName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/" + + sqlVirtualMachineName + + "/providers/Microsoft.DataMigration/databaseMigrations/" + + targetDbName + + "/cancel" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.DatabaseMigrationsSqlVMCancel_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMCancel_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + if (!string.IsNullOrWhiteSpace(_finalUri)) + { + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. + /// + /// Name of the resource group that contains the resource. You can obtain this value from + /// the Azure Resource Manager API or the portal. + /// + /// The name of the target database. + /// Subscription ID that identifies an Azure subscription. + /// Migration Operation Input + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMCancel_Validate(string resourceGroupName, string sqlVirtualMachineName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertNotNull(nameof(sqlVirtualMachineName),sqlVirtualMachineName); + await eventListener.AssertNotNull(nameof(targetDbName),targetDbName); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Create a new database migration to a given SQL VM. + /// Name of the resource group that contains the resource. You can obtain this value from + /// the Azure Resource Manager API or the portal. + /// + /// The name of the target database. + /// Subscription ID that identifies an Azure subscription. + /// Details of SqlMigrationService resource. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). /// an instance that will receive events. /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync pipeline to use to make the request. /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMCancel(string resourceGroupName, string sqlVirtualMachineName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMCreateOrUpdate(string resourceGroupName, string sqlVirtualMachineName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4057,7 +4924,6 @@ public partial class DataMigration + global::System.Uri.EscapeDataString(sqlVirtualMachineName) + "/providers/Microsoft.DataMigration/databaseMigrations/" + global::System.Uri.EscapeDataString(targetDbName) - + "/cancel" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4066,7 +4932,7 @@ public partial class DataMigration // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Put, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -4075,13 +4941,13 @@ public partial class DataMigration request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DatabaseMigrationsSqlVMCancel_Call(request,onOk,onDefault,eventListener,sender); + await this.DatabaseMigrationsSqlVMCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Stop in-progress database migration to SQL VM. + /// Create a new database migration to a given SQL VM. /// - /// Migration Operation Input + /// Details of SqlMigrationService resource. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4090,18 +4956,18 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMCancelViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/(?[^/]+)/providers/Microsoft.DataMigration/databaseMigrations/(?[^/]+)/cancel$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/(?[^/]+)/providers/Microsoft.DataMigration/databaseMigrations/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}'"); } // replace URI parameters with values from identity @@ -4119,7 +4985,6 @@ public partial class DataMigration + sqlVirtualMachineName + "/providers/Microsoft.DataMigration/databaseMigrations/" + targetDbName - + "/cancel" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4128,7 +4993,7 @@ public partial class DataMigration // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Put, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -4137,11 +5002,13 @@ public partial class DataMigration request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DatabaseMigrationsSqlVMCancel_Call(request,onOk,onDefault,eventListener,sender); + await this.DatabaseMigrationsSqlVMCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// + /// Actual wire call for method. + /// /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -4151,7 +5018,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMCancel_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4165,7 +5032,6 @@ public partial class DataMigration // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: default - var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -4248,10 +5114,10 @@ public partial class DataMigration continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_finalUri)) + if (!string.IsNullOrWhiteSpace(_originalUri)) { // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Get); + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Get); // drop the old response _response?.Dispose(); @@ -4269,7 +5135,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationSqlVM.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -4291,20 +5157,20 @@ public partial class DataMigration } /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. + /// Validation method for method. Call this like the actual call, but + /// you will get validation events back. /// /// Name of the resource group that contains the resource. You can obtain this value from /// the Azure Resource Manager API or the portal. /// /// The name of the target database. /// Subscription ID that identifies an Azure subscription. - /// Migration Operation Input + /// Details of SqlMigrationService resource. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMCancel_Validate(string resourceGroupName, string sqlVirtualMachineName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMCreateOrUpdate_Validate(string resourceGroupName, string sqlVirtualMachineName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -4317,13 +5183,13 @@ public partial class DataMigration } } - /// Create a new database migration to a given SQL VM. + /// Initiate cutover for in-progress online database migration to SQL VM. /// Name of the resource group that contains the resource. You can obtain this value from /// the Azure Resource Manager API or the portal. /// /// The name of the target database. /// Subscription ID that identifies an Azure subscription. - /// Details of SqlMigrationService resource. + /// Migration Operation Input /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4332,9 +5198,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMCreateOrUpdate(string resourceGroupName, string sqlVirtualMachineName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMCutover(string resourceGroupName, string sqlVirtualMachineName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4348,6 +5214,7 @@ public partial class DataMigration + global::System.Uri.EscapeDataString(sqlVirtualMachineName) + "/providers/Microsoft.DataMigration/databaseMigrations/" + global::System.Uri.EscapeDataString(targetDbName) + + "/cutover" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4356,7 +5223,7 @@ public partial class DataMigration // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Put, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -4365,13 +5232,13 @@ public partial class DataMigration request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DatabaseMigrationsSqlVMCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.DatabaseMigrationsSqlVMCutover_Call(request,onOk,onDefault,eventListener,sender); } } - /// Create a new database migration to a given SQL VM. + /// Initiate cutover for in-progress online database migration to SQL VM. /// - /// Details of SqlMigrationService resource. + /// Migration Operation Input /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4380,18 +5247,18 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMCutoverViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/(?[^/]+)/providers/Microsoft.DataMigration/databaseMigrations/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/(?[^/]+)/providers/Microsoft.DataMigration/databaseMigrations/(?[^/]+)/cutover$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cutover'"); } // replace URI parameters with values from identity @@ -4409,6 +5276,7 @@ public partial class DataMigration + sqlVirtualMachineName + "/providers/Microsoft.DataMigration/databaseMigrations/" + targetDbName + + "/cutover" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4417,7 +5285,7 @@ public partial class DataMigration // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Put, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -4426,13 +5294,11 @@ public partial class DataMigration request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DatabaseMigrationsSqlVMCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.DatabaseMigrationsSqlVMCutover_Call(request,onOk,onDefault,eventListener,sender); } } - /// - /// Actual wire call for method. - /// + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -4442,7 +5308,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMCutover_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4456,6 +5322,7 @@ public partial class DataMigration // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; // declared final-state-via: default + var _finalUri = _response.GetFirstHeader(@"Location"); var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -4538,10 +5405,10 @@ public partial class DataMigration continue; } // we are done polling, do a request on final target? - if (!string.IsNullOrWhiteSpace(_originalUri)) + if (!string.IsNullOrWhiteSpace(_finalUri)) { // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Get); + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Get); // drop the old response _response?.Dispose(); @@ -4559,7 +5426,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationSqlVM.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response); break; } default: @@ -4581,20 +5448,20 @@ public partial class DataMigration } /// - /// Validation method for method. Call this like the actual call, but - /// you will get validation events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// /// Name of the resource group that contains the resource. You can obtain this value from /// the Azure Resource Manager API or the portal. /// /// The name of the target database. /// Subscription ID that identifies an Azure subscription. - /// Details of SqlMigrationService resource. + /// Migration Operation Input /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMCreateOrUpdate_Validate(string resourceGroupName, string sqlVirtualMachineName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMCutover_Validate(string resourceGroupName, string sqlVirtualMachineName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -4607,14 +5474,15 @@ public partial class DataMigration } } - /// Initiate cutover for in-progress online database migration to SQL VM. + /// Delete Database Migration resource. /// Name of the resource group that contains the resource. You can obtain this value from /// the Azure Resource Manager API or the portal. /// /// The name of the target database. + /// Optional force delete boolean. If this is provided as true, migration will be deleted even if active. /// Subscription ID that identifies an Azure subscription. - /// Migration Operation Input /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -4622,9 +5490,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMCutover(string resourceGroupName, string sqlVirtualMachineName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMDelete(string resourceGroupName, string sqlVirtualMachineName, string targetDbName, bool? force, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4638,8 +5506,9 @@ public partial class DataMigration + global::System.Uri.EscapeDataString(sqlVirtualMachineName) + "/providers/Microsoft.DataMigration/databaseMigrations/" + global::System.Uri.EscapeDataString(targetDbName) - + "/cutover" + "?" + + (null == force ? global::System.String.Empty : "force=" + global::System.Uri.EscapeDataString(force.ToString())) + + "&" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4647,23 +5516,20 @@ public partial class DataMigration // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Delete, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DatabaseMigrationsSqlVMCutover_Call(request,onOk,onDefault,eventListener,sender); + await this.DatabaseMigrationsSqlVMDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } } - /// Initiate cutover for in-progress online database migration to SQL VM. + /// Delete Database Migration resource. /// - /// Migration Operation Input + /// Optional force delete boolean. If this is provided as true, migration will be deleted even if active. /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -4671,18 +5537,18 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMCutoverViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput body, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMDeleteViaIdentity(global::System.String viaIdentity, bool? force, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/(?[^/]+)/providers/Microsoft.DataMigration/databaseMigrations/(?[^/]+)/cutover$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/(?[^/]+)/providers/Microsoft.DataMigration/databaseMigrations/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cutover'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}'"); } // replace URI parameters with values from identity @@ -4700,8 +5566,9 @@ public partial class DataMigration + sqlVirtualMachineName + "/providers/Microsoft.DataMigration/databaseMigrations/" + targetDbName - + "/cutover" + "?" + + (null == force ? global::System.String.Empty : "force=" + global::System.Uri.EscapeDataString(force.ToString())) + + "&" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4709,22 +5576,19 @@ public partial class DataMigration // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Method.Delete, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.DatabaseMigrationsSqlVMCutover_Call(request,onOk,onDefault,eventListener,sender); + await this.DatabaseMigrationsSqlVMDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -4732,7 +5596,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMCutover_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4850,7 +5714,13 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationSqlVM.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); break; } default: @@ -4872,20 +5742,20 @@ public partial class DataMigration } /// - /// Validation method for method. Call this like the actual call, but you will + /// Validation method for method. Call this like the actual call, but you will /// get validation events back. /// /// Name of the resource group that contains the resource. You can obtain this value from /// the Azure Resource Manager API or the portal. /// /// The name of the target database. + /// Optional force delete boolean. If this is provided as true, migration will be deleted even if active. /// Subscription ID that identifies an Azure subscription. - /// Migration Operation Input /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMCutover_Validate(string resourceGroupName, string sqlVirtualMachineName, string targetDbName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMDelete_Validate(string resourceGroupName, string sqlVirtualMachineName, string targetDbName, bool? force, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -4893,8 +5763,6 @@ public partial class DataMigration await eventListener.AssertNotNull(nameof(sqlVirtualMachineName),sqlVirtualMachineName); await eventListener.AssertNotNull(nameof(targetDbName),targetDbName); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); } } @@ -4915,9 +5783,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMGet(string resourceGroupName, string sqlVirtualMachineName, string targetDbName, string migrationOperationId, string Expand, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMGet(string resourceGroupName, string sqlVirtualMachineName, string targetDbName, string migrationOperationId, string Expand, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -4965,9 +5833,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMGetViaIdentity(global::System.String viaIdentity, string migrationOperationId, string Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMGetViaIdentity(global::System.String viaIdentity, string migrationOperationId, string Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5025,7 +5893,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task DatabaseMigrationsSqlVMGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5043,7 +5911,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationSqlVM.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationSqlVM.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -5107,9 +5975,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MigrationServicesCreateOrUpdate(string resourceGroupName, string migrationServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationService body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task MigrationServicesCreateOrUpdate(string resourceGroupName, string migrationServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationService body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5153,9 +6021,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MigrationServicesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationService body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task MigrationServicesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationService body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5210,7 +6078,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task MigrationServicesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task MigrationServicesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5327,7 +6195,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -5361,7 +6229,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task MigrationServicesCreateOrUpdate_Validate(string resourceGroupName, string migrationServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationService body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task MigrationServicesCreateOrUpdate_Validate(string resourceGroupName, string migrationServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationService body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -5389,7 +6257,7 @@ public partial class DataMigration /// public async global::System.Threading.Tasks.Task MigrationServicesDelete(string resourceGroupName, string migrationServiceName, string subscriptionId, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5430,7 +6298,7 @@ public partial class DataMigration /// public async global::System.Threading.Tasks.Task MigrationServicesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5656,9 +6524,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MigrationServicesGet(string resourceGroupName, string migrationServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task MigrationServicesGet(string resourceGroupName, string migrationServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5697,9 +6565,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MigrationServicesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task MigrationServicesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5750,7 +6618,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task MigrationServicesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task MigrationServicesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5768,7 +6636,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -5824,9 +6692,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MigrationServicesListByResourceGroup(string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task MigrationServicesListByResourceGroup(string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5864,9 +6732,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MigrationServicesListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task MigrationServicesListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -5917,7 +6785,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task MigrationServicesListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task MigrationServicesListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5935,7 +6803,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationServiceListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationServiceListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -5986,9 +6854,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MigrationServicesListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task MigrationServicesListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6024,9 +6892,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MigrationServicesListBySubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task MigrationServicesListBySubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6072,7 +6940,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task MigrationServicesListBySubscription_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task MigrationServicesListBySubscription_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6090,7 +6958,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationServiceListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationServiceListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -6141,9 +7009,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MigrationServicesListMigrations(string resourceGroupName, string migrationServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task MigrationServicesListMigrations(string resourceGroupName, string migrationServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6183,9 +7051,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MigrationServicesListMigrationsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task MigrationServicesListMigrationsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6237,7 +7105,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task MigrationServicesListMigrations_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task MigrationServicesListMigrations_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6255,7 +7123,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationBaseListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationBaseListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -6313,9 +7181,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MigrationServicesUpdate(string resourceGroupName, string migrationServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task MigrationServicesUpdate(string resourceGroupName, string migrationServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6359,9 +7227,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MigrationServicesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task MigrationServicesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6416,7 +7284,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task MigrationServicesUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task MigrationServicesUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6533,7 +7401,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -6567,7 +7435,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task MigrationServicesUpdate_Validate(string resourceGroupName, string migrationServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task MigrationServicesUpdate_Validate(string resourceGroupName, string migrationServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -6589,9 +7457,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6625,9 +7493,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6670,7 +7538,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OperationsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OperationsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6688,7 +7556,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -6739,9 +7607,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SqlMigrationServicesCreateOrUpdate(string resourceGroupName, string sqlMigrationServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SqlMigrationServicesCreateOrUpdate(string resourceGroupName, string sqlMigrationServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6785,9 +7653,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SqlMigrationServicesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SqlMigrationServicesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -6842,7 +7710,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SqlMigrationServicesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SqlMigrationServicesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -6959,7 +7827,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -6993,7 +7861,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SqlMigrationServicesCreateOrUpdate_Validate(string resourceGroupName, string sqlMigrationServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task SqlMigrationServicesCreateOrUpdate_Validate(string resourceGroupName, string sqlMigrationServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -7021,7 +7889,7 @@ public partial class DataMigration /// public async global::System.Threading.Tasks.Task SqlMigrationServicesDelete(string resourceGroupName, string sqlMigrationServiceName, string subscriptionId, global::System.Func onOk, global::System.Func onNoContent, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7064,9 +7932,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SqlMigrationServicesDeleteNode(string resourceGroupName, string sqlMigrationServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SqlMigrationServicesDeleteNode(string resourceGroupName, string sqlMigrationServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7111,9 +7979,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SqlMigrationServicesDeleteNodeViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SqlMigrationServicesDeleteNodeViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7169,7 +8037,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SqlMigrationServicesDeleteNode_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SqlMigrationServicesDeleteNode_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -7187,7 +8055,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DeleteNode.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DeleteNode.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -7221,7 +8089,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SqlMigrationServicesDeleteNode_Validate(string resourceGroupName, string sqlMigrationServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task SqlMigrationServicesDeleteNode_Validate(string resourceGroupName, string sqlMigrationServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -7246,7 +8114,7 @@ public partial class DataMigration /// public async global::System.Threading.Tasks.Task SqlMigrationServicesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7478,9 +8346,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SqlMigrationServicesGet(string resourceGroupName, string sqlMigrationServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SqlMigrationServicesGet(string resourceGroupName, string sqlMigrationServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7519,9 +8387,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SqlMigrationServicesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SqlMigrationServicesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7572,7 +8440,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SqlMigrationServicesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SqlMigrationServicesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -7590,7 +8458,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -7646,9 +8514,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SqlMigrationServicesListAuthKeys(string resourceGroupName, string sqlMigrationServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SqlMigrationServicesListAuthKeys(string resourceGroupName, string sqlMigrationServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7688,9 +8556,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SqlMigrationServicesListAuthKeysViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SqlMigrationServicesListAuthKeysViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7742,7 +8610,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SqlMigrationServicesListAuthKeys_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SqlMigrationServicesListAuthKeys_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -7760,7 +8628,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.AuthenticationKeys.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.AuthenticationKeys.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -7815,9 +8683,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SqlMigrationServicesListByResourceGroup(string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SqlMigrationServicesListByResourceGroup(string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7855,9 +8723,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SqlMigrationServicesListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SqlMigrationServicesListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -7908,7 +8776,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SqlMigrationServicesListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SqlMigrationServicesListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -7926,7 +8794,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -7977,9 +8845,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SqlMigrationServicesListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SqlMigrationServicesListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8015,9 +8883,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SqlMigrationServicesListBySubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SqlMigrationServicesListBySubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8065,7 +8933,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SqlMigrationServicesListBySubscription_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SqlMigrationServicesListBySubscription_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8083,7 +8951,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -8134,9 +9002,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SqlMigrationServicesListMigrations(string resourceGroupName, string sqlMigrationServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SqlMigrationServicesListMigrations(string resourceGroupName, string sqlMigrationServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8176,9 +9044,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SqlMigrationServicesListMigrationsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SqlMigrationServicesListMigrationsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8230,7 +9098,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SqlMigrationServicesListMigrations_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SqlMigrationServicesListMigrations_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8248,7 +9116,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -8306,9 +9174,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SqlMigrationServicesListMonitoringData(string resourceGroupName, string sqlMigrationServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SqlMigrationServicesListMonitoringData(string resourceGroupName, string sqlMigrationServiceName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8350,9 +9218,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SqlMigrationServicesListMonitoringDataViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SqlMigrationServicesListMonitoringDataViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8406,7 +9274,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SqlMigrationServicesListMonitoringData_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SqlMigrationServicesListMonitoringData_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8424,7 +9292,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IntegrationRuntimeMonitoringData.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IntegrationRuntimeMonitoringData.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -8483,9 +9351,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SqlMigrationServicesRegenerateAuthKeys(string resourceGroupName, string sqlMigrationServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeys body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SqlMigrationServicesRegenerateAuthKeys(string resourceGroupName, string sqlMigrationServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeys body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8532,9 +9400,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SqlMigrationServicesRegenerateAuthKeysViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeys body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SqlMigrationServicesRegenerateAuthKeysViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeys body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8592,7 +9460,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SqlMigrationServicesRegenerateAuthKeys_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SqlMigrationServicesRegenerateAuthKeys_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8610,7 +9478,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.RegenAuthKeys.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.RegenAuthKeys.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -8644,7 +9512,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SqlMigrationServicesRegenerateAuthKeys_Validate(string resourceGroupName, string sqlMigrationServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeys body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task SqlMigrationServicesRegenerateAuthKeys_Validate(string resourceGroupName, string sqlMigrationServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeys body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -8670,9 +9538,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SqlMigrationServicesUpdate(string resourceGroupName, string sqlMigrationServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SqlMigrationServicesUpdate(string resourceGroupName, string sqlMigrationServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8716,9 +9584,9 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SqlMigrationServicesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SqlMigrationServicesUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdate body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { - var apiVersion = @"2025-03-15-preview"; + var apiVersion = @"2025-06-30"; // Constant Parameters using( NoSynchronizationContext ) { @@ -8773,7 +9641,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SqlMigrationServicesUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SqlMigrationServicesUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8890,7 +9758,7 @@ public partial class DataMigration case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationService.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -8924,7 +9792,7 @@ public partial class DataMigration /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SqlMigrationServicesUpdate_Validate(string resourceGroupName, string sqlMigrationServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task SqlMigrationServicesUpdate_Validate(string resourceGroupName, string sqlMigrationServiceName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdate body, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/BackupConfiguration.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/BackupConfiguration.PowerShell.cs deleted file mode 100644 index 30c1ce99b496..000000000000 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/BackupConfiguration.PowerShell.cs +++ /dev/null @@ -1,290 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; - - /// Backup Configuration - [System.ComponentModel.TypeConverter(typeof(BackupConfigurationTypeConverter))] - public partial class BackupConfiguration - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal BackupConfiguration(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SourceLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).SourceLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation) content.GetValueForProperty("SourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).SourceLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SourceLocationTypeConverter.ConvertFrom); - } - if (content.Contains("TargetLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).TargetLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation) content.GetValueForProperty("TargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).TargetLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.TargetLocationTypeConverter.ConvertFrom); - } - if (content.Contains("SourceLocationAzureBlob")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).SourceLocationAzureBlob = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob) content.GetValueForProperty("SourceLocationAzureBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).SourceLocationAzureBlob, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.AzureBlobTypeConverter.ConvertFrom); - } - if (content.Contains("TargetLocationAccountKey")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).TargetLocationAccountKey = (string) content.GetValueForProperty("TargetLocationAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).TargetLocationAccountKey, global::System.Convert.ToString); - } - if (content.Contains("SourceLocationFileShare")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).SourceLocationFileShare = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare) content.GetValueForProperty("SourceLocationFileShare",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).SourceLocationFileShare, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlFileShareTypeConverter.ConvertFrom); - } - if (content.Contains("SourceLocationFileStorageType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).SourceLocationFileStorageType = (string) content.GetValueForProperty("SourceLocationFileStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).SourceLocationFileStorageType, global::System.Convert.ToString); - } - if (content.Contains("AzureBlobAuthType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).AzureBlobAuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AzureBlobAuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).AzureBlobAuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); - } - if (content.Contains("AzureBlobAccountKey")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).AzureBlobAccountKey = (string) content.GetValueForProperty("AzureBlobAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).AzureBlobAccountKey, global::System.Convert.ToString); - } - if (content.Contains("TargetLocationStorageAccountResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).TargetLocationStorageAccountResourceId = (string) content.GetValueForProperty("TargetLocationStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).TargetLocationStorageAccountResourceId, global::System.Convert.ToString); - } - if (content.Contains("FileSharePath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).FileSharePath = (string) content.GetValueForProperty("FileSharePath",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).FileSharePath, global::System.Convert.ToString); - } - if (content.Contains("FileShareUsername")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).FileShareUsername = (string) content.GetValueForProperty("FileShareUsername",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).FileShareUsername, global::System.Convert.ToString); - } - if (content.Contains("FileSharePassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).FileSharePassword = (System.Security.SecureString) content.GetValueForProperty("FileSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).FileSharePassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("AzureBlobIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).AzureBlobIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("AzureBlobIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).AzureBlobIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("AzureBlobStorageAccountResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).AzureBlobStorageAccountResourceId = (string) content.GetValueForProperty("AzureBlobStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).AzureBlobStorageAccountResourceId, global::System.Convert.ToString); - } - if (content.Contains("AzureBlobContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).AzureBlobContainerName = (string) content.GetValueForProperty("AzureBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).AzureBlobContainerName, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal BackupConfiguration(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SourceLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).SourceLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation) content.GetValueForProperty("SourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).SourceLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SourceLocationTypeConverter.ConvertFrom); - } - if (content.Contains("TargetLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).TargetLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation) content.GetValueForProperty("TargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).TargetLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.TargetLocationTypeConverter.ConvertFrom); - } - if (content.Contains("SourceLocationAzureBlob")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).SourceLocationAzureBlob = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob) content.GetValueForProperty("SourceLocationAzureBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).SourceLocationAzureBlob, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.AzureBlobTypeConverter.ConvertFrom); - } - if (content.Contains("TargetLocationAccountKey")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).TargetLocationAccountKey = (string) content.GetValueForProperty("TargetLocationAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).TargetLocationAccountKey, global::System.Convert.ToString); - } - if (content.Contains("SourceLocationFileShare")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).SourceLocationFileShare = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare) content.GetValueForProperty("SourceLocationFileShare",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).SourceLocationFileShare, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlFileShareTypeConverter.ConvertFrom); - } - if (content.Contains("SourceLocationFileStorageType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).SourceLocationFileStorageType = (string) content.GetValueForProperty("SourceLocationFileStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).SourceLocationFileStorageType, global::System.Convert.ToString); - } - if (content.Contains("AzureBlobAuthType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).AzureBlobAuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AzureBlobAuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).AzureBlobAuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); - } - if (content.Contains("AzureBlobAccountKey")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).AzureBlobAccountKey = (string) content.GetValueForProperty("AzureBlobAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).AzureBlobAccountKey, global::System.Convert.ToString); - } - if (content.Contains("TargetLocationStorageAccountResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).TargetLocationStorageAccountResourceId = (string) content.GetValueForProperty("TargetLocationStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).TargetLocationStorageAccountResourceId, global::System.Convert.ToString); - } - if (content.Contains("FileSharePath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).FileSharePath = (string) content.GetValueForProperty("FileSharePath",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).FileSharePath, global::System.Convert.ToString); - } - if (content.Contains("FileShareUsername")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).FileShareUsername = (string) content.GetValueForProperty("FileShareUsername",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).FileShareUsername, global::System.Convert.ToString); - } - if (content.Contains("FileSharePassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).FileSharePassword = (System.Security.SecureString) content.GetValueForProperty("FileSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).FileSharePassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("AzureBlobIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).AzureBlobIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("AzureBlobIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).AzureBlobIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("AzureBlobStorageAccountResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).AzureBlobStorageAccountResourceId = (string) content.GetValueForProperty("AzureBlobStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).AzureBlobStorageAccountResourceId, global::System.Convert.ToString); - } - if (content.Contains("AzureBlobContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).AzureBlobContainerName = (string) content.GetValueForProperty("AzureBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).AzureBlobContainerName, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new BackupConfiguration(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new BackupConfiguration(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Backup Configuration - [System.ComponentModel.TypeConverter(typeof(BackupConfigurationTypeConverter))] - public partial interface IBackupConfiguration - - { - - } -} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationProperties.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationProperties.PowerShell.cs deleted file mode 100644 index bab649fabf30..000000000000 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationProperties.PowerShell.cs +++ /dev/null @@ -1,314 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; - - /// Database Migration Resource properties. - [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationPropertiesTypeConverter))] - public partial class DatabaseMigrationProperties - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DatabaseMigrationProperties(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SourceSqlConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformationTypeConverter.ConvertFrom); - } - if (content.Contains("SourceDatabaseName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName, global::System.Convert.ToString); - } - if (content.Contains("SourceServerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceServerName, global::System.Convert.ToString); - } - if (content.Contains("TargetDatabaseCollation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfoTypeConverter.ConvertFrom); - } - if (content.Contains("Kind")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); - } - if (content.Contains("Scope")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Scope, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("MigrationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus, global::System.Convert.ToString); - } - if (content.Contains("StartedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MigrationService")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationService, global::System.Convert.ToString); - } - if (content.Contains("MigrationOperationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionDataSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionAuthentication")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionUserName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("SourceSqlConnectionEncryptConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SourceSqlConnectionTrustServerCertificate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal DatabaseMigrationProperties(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SourceSqlConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformationTypeConverter.ConvertFrom); - } - if (content.Contains("SourceDatabaseName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName, global::System.Convert.ToString); - } - if (content.Contains("SourceServerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceServerName, global::System.Convert.ToString); - } - if (content.Contains("TargetDatabaseCollation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfoTypeConverter.ConvertFrom); - } - if (content.Contains("Kind")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); - } - if (content.Contains("Scope")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Scope, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("MigrationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus, global::System.Convert.ToString); - } - if (content.Contains("StartedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MigrationService")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationService, global::System.Convert.ToString); - } - if (content.Contains("MigrationOperationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionDataSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionAuthentication")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionUserName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("SourceSqlConnectionEncryptConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SourceSqlConnectionTrustServerCertificate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DatabaseMigrationProperties(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DatabaseMigrationProperties(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Database Migration Resource properties. - [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationPropertiesTypeConverter))] - public partial interface IDatabaseMigrationProperties - - { - - } -} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesCosmosDbMongo.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesCosmosDbMongo.PowerShell.cs deleted file mode 100644 index cdee3f93bd9f..000000000000 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesCosmosDbMongo.PowerShell.cs +++ /dev/null @@ -1,357 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; - - /// Database Migration Resource properties for CosmosDb for Mongo. - [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationPropertiesCosmosDbMongoTypeConverter))] - public partial class DatabaseMigrationPropertiesCosmosDbMongo - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DatabaseMigrationPropertiesCosmosDbMongo(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SourceMongoConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation) content.GetValueForProperty("SourceMongoConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoConnectionInformationTypeConverter.ConvertFrom); - } - if (content.Contains("TargetMongoConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation) content.GetValueForProperty("TargetMongoConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoConnectionInformationTypeConverter.ConvertFrom); - } - if (content.Contains("CollectionList")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).CollectionList = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollection[]) content.GetValueForProperty("CollectionList",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).CollectionList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoMigrationCollectionTypeConverter.ConvertFrom)); - } - if (content.Contains("MigrationFailureErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfoTypeConverter.ConvertFrom); - } - if (content.Contains("Kind")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); - } - if (content.Contains("Scope")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Scope, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("MigrationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus, global::System.Convert.ToString); - } - if (content.Contains("StartedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MigrationService")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationService, global::System.Convert.ToString); - } - if (content.Contains("MigrationOperationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError, global::System.Convert.ToString); - } - if (content.Contains("SourceMongoConnectionHost")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionHost = (string) content.GetValueForProperty("SourceMongoConnectionHost",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionHost, global::System.Convert.ToString); - } - if (content.Contains("SourceMongoConnectionPort")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionPort = (int?) content.GetValueForProperty("SourceMongoConnectionPort",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("SourceMongoConnectionUserName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionUserName = (string) content.GetValueForProperty("SourceMongoConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionUserName, global::System.Convert.ToString); - } - if (content.Contains("SourceMongoConnectionPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceMongoConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionPassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("SourceMongoConnectionUseSsl")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionUseSsl = (bool?) content.GetValueForProperty("SourceMongoConnectionUseSsl",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionUseSsl, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SourceMongoConnectionString")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionString = (string) content.GetValueForProperty("SourceMongoConnectionString",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionString, global::System.Convert.ToString); - } - if (content.Contains("TargetMongoConnectionHost")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionHost = (string) content.GetValueForProperty("TargetMongoConnectionHost",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionHost, global::System.Convert.ToString); - } - if (content.Contains("TargetMongoConnectionPort")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionPort = (int?) content.GetValueForProperty("TargetMongoConnectionPort",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("TargetMongoConnectionUserName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionUserName = (string) content.GetValueForProperty("TargetMongoConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionUserName, global::System.Convert.ToString); - } - if (content.Contains("TargetMongoConnectionPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("TargetMongoConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionPassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("TargetMongoConnectionUseSsl")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionUseSsl = (bool?) content.GetValueForProperty("TargetMongoConnectionUseSsl",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionUseSsl, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("TargetMongoConnectionString")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionString = (string) content.GetValueForProperty("TargetMongoConnectionString",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionString, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal DatabaseMigrationPropertiesCosmosDbMongo(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("SourceMongoConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation) content.GetValueForProperty("SourceMongoConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoConnectionInformationTypeConverter.ConvertFrom); - } - if (content.Contains("TargetMongoConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation) content.GetValueForProperty("TargetMongoConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoConnectionInformationTypeConverter.ConvertFrom); - } - if (content.Contains("CollectionList")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).CollectionList = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollection[]) content.GetValueForProperty("CollectionList",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).CollectionList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoMigrationCollectionTypeConverter.ConvertFrom)); - } - if (content.Contains("MigrationFailureErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfoTypeConverter.ConvertFrom); - } - if (content.Contains("Kind")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); - } - if (content.Contains("Scope")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Scope, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("MigrationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus, global::System.Convert.ToString); - } - if (content.Contains("StartedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MigrationService")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationService, global::System.Convert.ToString); - } - if (content.Contains("MigrationOperationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError, global::System.Convert.ToString); - } - if (content.Contains("SourceMongoConnectionHost")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionHost = (string) content.GetValueForProperty("SourceMongoConnectionHost",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionHost, global::System.Convert.ToString); - } - if (content.Contains("SourceMongoConnectionPort")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionPort = (int?) content.GetValueForProperty("SourceMongoConnectionPort",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("SourceMongoConnectionUserName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionUserName = (string) content.GetValueForProperty("SourceMongoConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionUserName, global::System.Convert.ToString); - } - if (content.Contains("SourceMongoConnectionPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceMongoConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionPassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("SourceMongoConnectionUseSsl")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionUseSsl = (bool?) content.GetValueForProperty("SourceMongoConnectionUseSsl",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionUseSsl, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SourceMongoConnectionString")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionString = (string) content.GetValueForProperty("SourceMongoConnectionString",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionString, global::System.Convert.ToString); - } - if (content.Contains("TargetMongoConnectionHost")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionHost = (string) content.GetValueForProperty("TargetMongoConnectionHost",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionHost, global::System.Convert.ToString); - } - if (content.Contains("TargetMongoConnectionPort")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionPort = (int?) content.GetValueForProperty("TargetMongoConnectionPort",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("TargetMongoConnectionUserName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionUserName = (string) content.GetValueForProperty("TargetMongoConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionUserName, global::System.Convert.ToString); - } - if (content.Contains("TargetMongoConnectionPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("TargetMongoConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionPassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("TargetMongoConnectionUseSsl")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionUseSsl = (bool?) content.GetValueForProperty("TargetMongoConnectionUseSsl",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionUseSsl, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("TargetMongoConnectionString")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionString = (string) content.GetValueForProperty("TargetMongoConnectionString",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionString, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongo DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DatabaseMigrationPropertiesCosmosDbMongo(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DatabaseMigrationPropertiesCosmosDbMongo(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json - /// string. - /// - /// a string containing a JSON serialized instance of this model. - /// - /// an instance of the model class. - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Database Migration Resource properties for CosmosDb for Mongo. - [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationPropertiesCosmosDbMongoTypeConverter))] - public partial interface IDatabaseMigrationPropertiesCosmosDbMongo - - { - - } -} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlDb.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlDb.PowerShell.cs deleted file mode 100644 index 0146363149ba..000000000000 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlDb.PowerShell.cs +++ /dev/null @@ -1,426 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; - - /// Database Migration Resource properties for SQL database. - [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationPropertiesSqlDbTypeConverter))] - public partial class DatabaseMigrationPropertiesSqlDb - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DatabaseMigrationPropertiesSqlDb(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("MigrationStatusDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetails) content.GetValueForProperty("MigrationStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlDbMigrationStatusDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetSqlConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation) content.GetValueForProperty("TargetSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformationTypeConverter.ConvertFrom); - } - if (content.Contains("OfflineConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).OfflineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfiguration) content.GetValueForProperty("OfflineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).OfflineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlDbOfflineConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("TableList")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TableList = (string[]) content.GetValueForProperty("TableList",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TableList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("MigrationFailureErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfoTypeConverter.ConvertFrom); - } - if (content.Contains("Kind")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); - } - if (content.Contains("Scope")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Scope, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("MigrationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus, global::System.Convert.ToString); - } - if (content.Contains("StartedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MigrationService")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationService, global::System.Convert.ToString); - } - if (content.Contains("MigrationOperationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionDataSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionAuthentication")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionUserName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("SourceSqlConnectionEncryptConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SourceSqlConnectionTrustServerCertificate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SourceSqlConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformationTypeConverter.ConvertFrom); - } - if (content.Contains("SourceDatabaseName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName, global::System.Convert.ToString); - } - if (content.Contains("SourceServerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceServerName, global::System.Convert.ToString); - } - if (content.Contains("TargetDatabaseCollation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); - } - if (content.Contains("MigrationStatusDetailMigrationState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetailMigrationState = (string) content.GetValueForProperty("MigrationStatusDetailMigrationState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetailMigrationState, global::System.Convert.ToString); - } - if (content.Contains("MigrationStatusDetailSqlDataCopyError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetailSqlDataCopyError = (string[]) content.GetValueForProperty("MigrationStatusDetailSqlDataCopyError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetailSqlDataCopyError, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("MigrationStatusDetailListOfCopyProgressDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetailListOfCopyProgressDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails[]) content.GetValueForProperty("MigrationStatusDetailListOfCopyProgressDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetailListOfCopyProgressDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.CopyProgressDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("TargetSqlConnectionDataSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionDataSource = (string) content.GetValueForProperty("TargetSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionDataSource, global::System.Convert.ToString); - } - if (content.Contains("TargetSqlConnectionAuthentication")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionAuthentication = (string) content.GetValueForProperty("TargetSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionAuthentication, global::System.Convert.ToString); - } - if (content.Contains("TargetSqlConnectionUserName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionUserName = (string) content.GetValueForProperty("TargetSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionUserName, global::System.Convert.ToString); - } - if (content.Contains("TargetSqlConnectionPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("TargetSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("TargetSqlConnectionEncryptConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("TargetSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("TargetSqlConnectionTrustServerCertificate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("TargetSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("OfflineConfigurationOffline")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).OfflineConfigurationOffline = (bool?) content.GetValueForProperty("OfflineConfigurationOffline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).OfflineConfigurationOffline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal DatabaseMigrationPropertiesSqlDb(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("MigrationStatusDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetails) content.GetValueForProperty("MigrationStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlDbMigrationStatusDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetSqlConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation) content.GetValueForProperty("TargetSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformationTypeConverter.ConvertFrom); - } - if (content.Contains("OfflineConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).OfflineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfiguration) content.GetValueForProperty("OfflineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).OfflineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlDbOfflineConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("TableList")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TableList = (string[]) content.GetValueForProperty("TableList",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TableList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("MigrationFailureErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfoTypeConverter.ConvertFrom); - } - if (content.Contains("Kind")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); - } - if (content.Contains("Scope")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Scope, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("MigrationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus, global::System.Convert.ToString); - } - if (content.Contains("StartedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MigrationService")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationService, global::System.Convert.ToString); - } - if (content.Contains("MigrationOperationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionDataSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionAuthentication")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionUserName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("SourceSqlConnectionEncryptConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SourceSqlConnectionTrustServerCertificate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SourceSqlConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformationTypeConverter.ConvertFrom); - } - if (content.Contains("SourceDatabaseName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName, global::System.Convert.ToString); - } - if (content.Contains("SourceServerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceServerName, global::System.Convert.ToString); - } - if (content.Contains("TargetDatabaseCollation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); - } - if (content.Contains("MigrationStatusDetailMigrationState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetailMigrationState = (string) content.GetValueForProperty("MigrationStatusDetailMigrationState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetailMigrationState, global::System.Convert.ToString); - } - if (content.Contains("MigrationStatusDetailSqlDataCopyError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetailSqlDataCopyError = (string[]) content.GetValueForProperty("MigrationStatusDetailSqlDataCopyError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetailSqlDataCopyError, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("MigrationStatusDetailListOfCopyProgressDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetailListOfCopyProgressDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails[]) content.GetValueForProperty("MigrationStatusDetailListOfCopyProgressDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetailListOfCopyProgressDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.CopyProgressDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("TargetSqlConnectionDataSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionDataSource = (string) content.GetValueForProperty("TargetSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionDataSource, global::System.Convert.ToString); - } - if (content.Contains("TargetSqlConnectionAuthentication")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionAuthentication = (string) content.GetValueForProperty("TargetSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionAuthentication, global::System.Convert.ToString); - } - if (content.Contains("TargetSqlConnectionUserName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionUserName = (string) content.GetValueForProperty("TargetSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionUserName, global::System.Convert.ToString); - } - if (content.Contains("TargetSqlConnectionPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("TargetSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("TargetSqlConnectionEncryptConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("TargetSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("TargetSqlConnectionTrustServerCertificate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("TargetSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("OfflineConfigurationOffline")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).OfflineConfigurationOffline = (bool?) content.GetValueForProperty("OfflineConfigurationOffline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)this).OfflineConfigurationOffline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDb DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DatabaseMigrationPropertiesSqlDb(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDb DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DatabaseMigrationPropertiesSqlDb(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDb FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Database Migration Resource properties for SQL database. - [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationPropertiesSqlDbTypeConverter))] - public partial interface IDatabaseMigrationPropertiesSqlDb - - { - - } -} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlMi.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlMi.PowerShell.cs deleted file mode 100644 index 9e8362aa3e3f..000000000000 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlMi.PowerShell.cs +++ /dev/null @@ -1,506 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; - - /// Database Migration Resource properties for SQL Managed Instance. - [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationPropertiesSqlMiTypeConverter))] - public partial class DatabaseMigrationPropertiesSqlMi - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DatabaseMigrationPropertiesSqlMi(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("BackupConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).BackupConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration) content.GetValueForProperty("BackupConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).BackupConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.BackupConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("OfflineConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).OfflineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration) content.GetValueForProperty("OfflineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).OfflineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OfflineConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("MigrationStatusDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).MigrationStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails) content.GetValueForProperty("MigrationStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).MigrationStatusDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationStatusDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("MigrationFailureErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfoTypeConverter.ConvertFrom); - } - if (content.Contains("Kind")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); - } - if (content.Contains("Scope")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Scope, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("MigrationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus, global::System.Convert.ToString); - } - if (content.Contains("StartedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MigrationService")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationService, global::System.Convert.ToString); - } - if (content.Contains("MigrationOperationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionDataSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionAuthentication")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionUserName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("SourceSqlConnectionEncryptConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SourceSqlConnectionTrustServerCertificate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SourceSqlConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformationTypeConverter.ConvertFrom); - } - if (content.Contains("SourceDatabaseName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName, global::System.Convert.ToString); - } - if (content.Contains("SourceServerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceServerName, global::System.Convert.ToString); - } - if (content.Contains("TargetDatabaseCollation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); - } - if (content.Contains("BackupConfigurationSourceLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).BackupConfigurationSourceLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation) content.GetValueForProperty("BackupConfigurationSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).BackupConfigurationSourceLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SourceLocationTypeConverter.ConvertFrom); - } - if (content.Contains("BackupConfigurationTargetLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).BackupConfigurationTargetLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation) content.GetValueForProperty("BackupConfigurationTargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).BackupConfigurationTargetLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.TargetLocationTypeConverter.ConvertFrom); - } - if (content.Contains("SourceLocationAzureBlob")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).SourceLocationAzureBlob = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob) content.GetValueForProperty("SourceLocationAzureBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).SourceLocationAzureBlob, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.AzureBlobTypeConverter.ConvertFrom); - } - if (content.Contains("TargetLocationAccountKey")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).TargetLocationAccountKey = (string) content.GetValueForProperty("TargetLocationAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).TargetLocationAccountKey, global::System.Convert.ToString); - } - if (content.Contains("OfflineConfigurationOffline")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).OfflineConfigurationOffline = (bool?) content.GetValueForProperty("OfflineConfigurationOffline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).OfflineConfigurationOffline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("OfflineConfigurationLastBackupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).OfflineConfigurationLastBackupName = (string) content.GetValueForProperty("OfflineConfigurationLastBackupName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).OfflineConfigurationLastBackupName, global::System.Convert.ToString); - } - if (content.Contains("SourceLocationFileShare")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).SourceLocationFileShare = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare) content.GetValueForProperty("SourceLocationFileShare",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).SourceLocationFileShare, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlFileShareTypeConverter.ConvertFrom); - } - if (content.Contains("SourceLocationFileStorageType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).SourceLocationFileStorageType = (string) content.GetValueForProperty("SourceLocationFileStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).SourceLocationFileStorageType, global::System.Convert.ToString); - } - if (content.Contains("AzureBlobAuthType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobAuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AzureBlobAuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobAuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); - } - if (content.Contains("AzureBlobAccountKey")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobAccountKey = (string) content.GetValueForProperty("AzureBlobAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobAccountKey, global::System.Convert.ToString); - } - if (content.Contains("TargetLocationStorageAccountResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).TargetLocationStorageAccountResourceId = (string) content.GetValueForProperty("TargetLocationStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).TargetLocationStorageAccountResourceId, global::System.Convert.ToString); - } - if (content.Contains("FileSharePath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).FileSharePath = (string) content.GetValueForProperty("FileSharePath",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).FileSharePath, global::System.Convert.ToString); - } - if (content.Contains("FileShareUsername")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).FileShareUsername = (string) content.GetValueForProperty("FileShareUsername",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).FileShareUsername, global::System.Convert.ToString); - } - if (content.Contains("FileSharePassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).FileSharePassword = (System.Security.SecureString) content.GetValueForProperty("FileSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).FileSharePassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("AzureBlobIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("AzureBlobIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("AzureBlobStorageAccountResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobStorageAccountResourceId = (string) content.GetValueForProperty("AzureBlobStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobStorageAccountResourceId, global::System.Convert.ToString); - } - if (content.Contains("AzureBlobContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobContainerName = (string) content.GetValueForProperty("AzureBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobContainerName, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal DatabaseMigrationPropertiesSqlMi(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("BackupConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).BackupConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration) content.GetValueForProperty("BackupConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).BackupConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.BackupConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("OfflineConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).OfflineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration) content.GetValueForProperty("OfflineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).OfflineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OfflineConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("MigrationStatusDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).MigrationStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails) content.GetValueForProperty("MigrationStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).MigrationStatusDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationStatusDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("MigrationFailureErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfoTypeConverter.ConvertFrom); - } - if (content.Contains("Kind")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); - } - if (content.Contains("Scope")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Scope, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("MigrationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus, global::System.Convert.ToString); - } - if (content.Contains("StartedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MigrationService")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationService, global::System.Convert.ToString); - } - if (content.Contains("MigrationOperationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionDataSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionAuthentication")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionUserName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("SourceSqlConnectionEncryptConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SourceSqlConnectionTrustServerCertificate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SourceSqlConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformationTypeConverter.ConvertFrom); - } - if (content.Contains("SourceDatabaseName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName, global::System.Convert.ToString); - } - if (content.Contains("SourceServerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceServerName, global::System.Convert.ToString); - } - if (content.Contains("TargetDatabaseCollation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); - } - if (content.Contains("BackupConfigurationSourceLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).BackupConfigurationSourceLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation) content.GetValueForProperty("BackupConfigurationSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).BackupConfigurationSourceLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SourceLocationTypeConverter.ConvertFrom); - } - if (content.Contains("BackupConfigurationTargetLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).BackupConfigurationTargetLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation) content.GetValueForProperty("BackupConfigurationTargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).BackupConfigurationTargetLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.TargetLocationTypeConverter.ConvertFrom); - } - if (content.Contains("SourceLocationAzureBlob")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).SourceLocationAzureBlob = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob) content.GetValueForProperty("SourceLocationAzureBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).SourceLocationAzureBlob, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.AzureBlobTypeConverter.ConvertFrom); - } - if (content.Contains("TargetLocationAccountKey")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).TargetLocationAccountKey = (string) content.GetValueForProperty("TargetLocationAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).TargetLocationAccountKey, global::System.Convert.ToString); - } - if (content.Contains("OfflineConfigurationOffline")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).OfflineConfigurationOffline = (bool?) content.GetValueForProperty("OfflineConfigurationOffline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).OfflineConfigurationOffline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("OfflineConfigurationLastBackupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).OfflineConfigurationLastBackupName = (string) content.GetValueForProperty("OfflineConfigurationLastBackupName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).OfflineConfigurationLastBackupName, global::System.Convert.ToString); - } - if (content.Contains("SourceLocationFileShare")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).SourceLocationFileShare = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare) content.GetValueForProperty("SourceLocationFileShare",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).SourceLocationFileShare, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlFileShareTypeConverter.ConvertFrom); - } - if (content.Contains("SourceLocationFileStorageType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).SourceLocationFileStorageType = (string) content.GetValueForProperty("SourceLocationFileStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).SourceLocationFileStorageType, global::System.Convert.ToString); - } - if (content.Contains("AzureBlobAuthType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobAuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AzureBlobAuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobAuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); - } - if (content.Contains("AzureBlobAccountKey")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobAccountKey = (string) content.GetValueForProperty("AzureBlobAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobAccountKey, global::System.Convert.ToString); - } - if (content.Contains("TargetLocationStorageAccountResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).TargetLocationStorageAccountResourceId = (string) content.GetValueForProperty("TargetLocationStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).TargetLocationStorageAccountResourceId, global::System.Convert.ToString); - } - if (content.Contains("FileSharePath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).FileSharePath = (string) content.GetValueForProperty("FileSharePath",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).FileSharePath, global::System.Convert.ToString); - } - if (content.Contains("FileShareUsername")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).FileShareUsername = (string) content.GetValueForProperty("FileShareUsername",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).FileShareUsername, global::System.Convert.ToString); - } - if (content.Contains("FileSharePassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).FileSharePassword = (System.Security.SecureString) content.GetValueForProperty("FileSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).FileSharePassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("AzureBlobIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("AzureBlobIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("AzureBlobStorageAccountResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobStorageAccountResourceId = (string) content.GetValueForProperty("AzureBlobStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobStorageAccountResourceId, global::System.Convert.ToString); - } - if (content.Contains("AzureBlobContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobContainerName = (string) content.GetValueForProperty("AzureBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobContainerName, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMi DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DatabaseMigrationPropertiesSqlMi(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMi DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DatabaseMigrationPropertiesSqlMi(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMi FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Database Migration Resource properties for SQL Managed Instance. - [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationPropertiesSqlMiTypeConverter))] - public partial interface IDatabaseMigrationPropertiesSqlMi - - { - - } -} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlVM.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlVM.PowerShell.cs deleted file mode 100644 index e142a3191f61..000000000000 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlVM.PowerShell.cs +++ /dev/null @@ -1,506 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; - - /// Database Migration Resource properties for SQL Virtual Machine. - [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationPropertiesSqlVMTypeConverter))] - public partial class DatabaseMigrationPropertiesSqlVM - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DatabaseMigrationPropertiesSqlVM(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("BackupConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).BackupConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration) content.GetValueForProperty("BackupConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).BackupConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.BackupConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("OfflineConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).OfflineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration) content.GetValueForProperty("OfflineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).OfflineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OfflineConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("MigrationStatusDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).MigrationStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails) content.GetValueForProperty("MigrationStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).MigrationStatusDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationStatusDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("MigrationFailureErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfoTypeConverter.ConvertFrom); - } - if (content.Contains("Kind")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); - } - if (content.Contains("Scope")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Scope, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("MigrationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus, global::System.Convert.ToString); - } - if (content.Contains("StartedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MigrationService")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationService, global::System.Convert.ToString); - } - if (content.Contains("MigrationOperationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionDataSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionAuthentication")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionUserName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("SourceSqlConnectionEncryptConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SourceSqlConnectionTrustServerCertificate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SourceSqlConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformationTypeConverter.ConvertFrom); - } - if (content.Contains("SourceDatabaseName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName, global::System.Convert.ToString); - } - if (content.Contains("SourceServerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceServerName, global::System.Convert.ToString); - } - if (content.Contains("TargetDatabaseCollation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); - } - if (content.Contains("BackupConfigurationSourceLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).BackupConfigurationSourceLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation) content.GetValueForProperty("BackupConfigurationSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).BackupConfigurationSourceLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SourceLocationTypeConverter.ConvertFrom); - } - if (content.Contains("BackupConfigurationTargetLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).BackupConfigurationTargetLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation) content.GetValueForProperty("BackupConfigurationTargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).BackupConfigurationTargetLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.TargetLocationTypeConverter.ConvertFrom); - } - if (content.Contains("SourceLocationAzureBlob")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).SourceLocationAzureBlob = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob) content.GetValueForProperty("SourceLocationAzureBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).SourceLocationAzureBlob, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.AzureBlobTypeConverter.ConvertFrom); - } - if (content.Contains("TargetLocationAccountKey")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).TargetLocationAccountKey = (string) content.GetValueForProperty("TargetLocationAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).TargetLocationAccountKey, global::System.Convert.ToString); - } - if (content.Contains("OfflineConfigurationOffline")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).OfflineConfigurationOffline = (bool?) content.GetValueForProperty("OfflineConfigurationOffline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).OfflineConfigurationOffline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("OfflineConfigurationLastBackupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).OfflineConfigurationLastBackupName = (string) content.GetValueForProperty("OfflineConfigurationLastBackupName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).OfflineConfigurationLastBackupName, global::System.Convert.ToString); - } - if (content.Contains("SourceLocationFileShare")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).SourceLocationFileShare = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare) content.GetValueForProperty("SourceLocationFileShare",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).SourceLocationFileShare, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlFileShareTypeConverter.ConvertFrom); - } - if (content.Contains("SourceLocationFileStorageType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).SourceLocationFileStorageType = (string) content.GetValueForProperty("SourceLocationFileStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).SourceLocationFileStorageType, global::System.Convert.ToString); - } - if (content.Contains("AzureBlobAuthType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobAuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AzureBlobAuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobAuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); - } - if (content.Contains("AzureBlobAccountKey")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobAccountKey = (string) content.GetValueForProperty("AzureBlobAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobAccountKey, global::System.Convert.ToString); - } - if (content.Contains("TargetLocationStorageAccountResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).TargetLocationStorageAccountResourceId = (string) content.GetValueForProperty("TargetLocationStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).TargetLocationStorageAccountResourceId, global::System.Convert.ToString); - } - if (content.Contains("FileSharePath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).FileSharePath = (string) content.GetValueForProperty("FileSharePath",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).FileSharePath, global::System.Convert.ToString); - } - if (content.Contains("FileShareUsername")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).FileShareUsername = (string) content.GetValueForProperty("FileShareUsername",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).FileShareUsername, global::System.Convert.ToString); - } - if (content.Contains("FileSharePassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).FileSharePassword = (System.Security.SecureString) content.GetValueForProperty("FileSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).FileSharePassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("AzureBlobIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("AzureBlobIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("AzureBlobStorageAccountResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobStorageAccountResourceId = (string) content.GetValueForProperty("AzureBlobStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobStorageAccountResourceId, global::System.Convert.ToString); - } - if (content.Contains("AzureBlobContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobContainerName = (string) content.GetValueForProperty("AzureBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobContainerName, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal DatabaseMigrationPropertiesSqlVM(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("BackupConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).BackupConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration) content.GetValueForProperty("BackupConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).BackupConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.BackupConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("OfflineConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).OfflineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration) content.GetValueForProperty("OfflineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).OfflineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OfflineConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("MigrationStatusDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).MigrationStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails) content.GetValueForProperty("MigrationStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).MigrationStatusDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationStatusDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("MigrationFailureErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfoTypeConverter.ConvertFrom); - } - if (content.Contains("Kind")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); - } - if (content.Contains("Scope")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Scope, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("MigrationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus, global::System.Convert.ToString); - } - if (content.Contains("StartedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MigrationService")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationService, global::System.Convert.ToString); - } - if (content.Contains("MigrationOperationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionDataSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionAuthentication")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionUserName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("SourceSqlConnectionEncryptConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SourceSqlConnectionTrustServerCertificate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SourceSqlConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformationTypeConverter.ConvertFrom); - } - if (content.Contains("SourceDatabaseName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName, global::System.Convert.ToString); - } - if (content.Contains("SourceServerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).SourceServerName, global::System.Convert.ToString); - } - if (content.Contains("TargetDatabaseCollation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); - } - if (content.Contains("BackupConfigurationSourceLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).BackupConfigurationSourceLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation) content.GetValueForProperty("BackupConfigurationSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).BackupConfigurationSourceLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SourceLocationTypeConverter.ConvertFrom); - } - if (content.Contains("BackupConfigurationTargetLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).BackupConfigurationTargetLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation) content.GetValueForProperty("BackupConfigurationTargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).BackupConfigurationTargetLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.TargetLocationTypeConverter.ConvertFrom); - } - if (content.Contains("SourceLocationAzureBlob")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).SourceLocationAzureBlob = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob) content.GetValueForProperty("SourceLocationAzureBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).SourceLocationAzureBlob, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.AzureBlobTypeConverter.ConvertFrom); - } - if (content.Contains("TargetLocationAccountKey")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).TargetLocationAccountKey = (string) content.GetValueForProperty("TargetLocationAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).TargetLocationAccountKey, global::System.Convert.ToString); - } - if (content.Contains("OfflineConfigurationOffline")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).OfflineConfigurationOffline = (bool?) content.GetValueForProperty("OfflineConfigurationOffline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).OfflineConfigurationOffline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("OfflineConfigurationLastBackupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).OfflineConfigurationLastBackupName = (string) content.GetValueForProperty("OfflineConfigurationLastBackupName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).OfflineConfigurationLastBackupName, global::System.Convert.ToString); - } - if (content.Contains("SourceLocationFileShare")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).SourceLocationFileShare = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare) content.GetValueForProperty("SourceLocationFileShare",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).SourceLocationFileShare, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlFileShareTypeConverter.ConvertFrom); - } - if (content.Contains("SourceLocationFileStorageType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).SourceLocationFileStorageType = (string) content.GetValueForProperty("SourceLocationFileStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).SourceLocationFileStorageType, global::System.Convert.ToString); - } - if (content.Contains("AzureBlobAuthType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobAuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AzureBlobAuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobAuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); - } - if (content.Contains("AzureBlobAccountKey")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobAccountKey = (string) content.GetValueForProperty("AzureBlobAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobAccountKey, global::System.Convert.ToString); - } - if (content.Contains("TargetLocationStorageAccountResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).TargetLocationStorageAccountResourceId = (string) content.GetValueForProperty("TargetLocationStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).TargetLocationStorageAccountResourceId, global::System.Convert.ToString); - } - if (content.Contains("FileSharePath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).FileSharePath = (string) content.GetValueForProperty("FileSharePath",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).FileSharePath, global::System.Convert.ToString); - } - if (content.Contains("FileShareUsername")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).FileShareUsername = (string) content.GetValueForProperty("FileShareUsername",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).FileShareUsername, global::System.Convert.ToString); - } - if (content.Contains("FileSharePassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).FileSharePassword = (System.Security.SecureString) content.GetValueForProperty("FileSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).FileSharePassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("AzureBlobIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("AzureBlobIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("AzureBlobStorageAccountResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobStorageAccountResourceId = (string) content.GetValueForProperty("AzureBlobStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobStorageAccountResourceId, global::System.Convert.ToString); - } - if (content.Contains("AzureBlobContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobContainerName = (string) content.GetValueForProperty("AzureBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobContainerName, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVM DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DatabaseMigrationPropertiesSqlVM(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVM DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DatabaseMigrationPropertiesSqlVM(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVM FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Database Migration Resource properties for SQL Virtual Machine. - [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationPropertiesSqlVMTypeConverter))] - public partial interface IDatabaseMigrationPropertiesSqlVM - - { - - } -} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlDb.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlDb.PowerShell.cs deleted file mode 100644 index 268fc63c1a94..000000000000 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlDb.PowerShell.cs +++ /dev/null @@ -1,514 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; - - /// Database Migration Resource for SQL Database. - [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationSqlDbTypeConverter))] - public partial class DatabaseMigrationSqlDb - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DatabaseMigrationSqlDb(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDb) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlDbTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SystemDataCreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SystemData")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SystemDataAutoGeneratedTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("MigrationFailureError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfoTypeConverter.ConvertFrom); - } - if (content.Contains("Kind")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); - } - if (content.Contains("Scope")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).Scope, global::System.Convert.ToString); - } - if (content.Contains("MigrationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationStatus, global::System.Convert.ToString); - } - if (content.Contains("StartedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MigrationService")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationService, global::System.Convert.ToString); - } - if (content.Contains("MigrationOperationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationOperationId, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).ProvisioningError, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformationTypeConverter.ConvertFrom); - } - if (content.Contains("SourceDatabaseName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceDatabaseName, global::System.Convert.ToString); - } - if (content.Contains("SourceServerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceServerName, global::System.Convert.ToString); - } - if (content.Contains("TargetDatabaseCollation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); - } - if (content.Contains("MigrationStatusDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetails) content.GetValueForProperty("MigrationStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlDbMigrationStatusDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetSqlConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation) content.GetValueForProperty("TargetSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformationTypeConverter.ConvertFrom); - } - if (content.Contains("OfflineConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).OfflineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfiguration) content.GetValueForProperty("OfflineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).OfflineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlDbOfflineConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("TableList")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TableList = (string[]) content.GetValueForProperty("TableList",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TableList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("MigrationFailureErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionDataSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionAuthentication")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionUserName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("SourceSqlConnectionEncryptConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SourceSqlConnectionTrustServerCertificate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("MigrationStatusDetailMigrationState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetailMigrationState = (string) content.GetValueForProperty("MigrationStatusDetailMigrationState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetailMigrationState, global::System.Convert.ToString); - } - if (content.Contains("MigrationStatusDetailSqlDataCopyError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetailSqlDataCopyError = (string[]) content.GetValueForProperty("MigrationStatusDetailSqlDataCopyError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetailSqlDataCopyError, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("MigrationStatusDetailListOfCopyProgressDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetailListOfCopyProgressDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails[]) content.GetValueForProperty("MigrationStatusDetailListOfCopyProgressDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetailListOfCopyProgressDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.CopyProgressDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("TargetSqlConnectionDataSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionDataSource = (string) content.GetValueForProperty("TargetSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionDataSource, global::System.Convert.ToString); - } - if (content.Contains("TargetSqlConnectionAuthentication")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionAuthentication = (string) content.GetValueForProperty("TargetSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionAuthentication, global::System.Convert.ToString); - } - if (content.Contains("TargetSqlConnectionUserName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionUserName = (string) content.GetValueForProperty("TargetSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionUserName, global::System.Convert.ToString); - } - if (content.Contains("TargetSqlConnectionPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("TargetSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("TargetSqlConnectionEncryptConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("TargetSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("TargetSqlConnectionTrustServerCertificate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("TargetSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("OfflineConfigurationOffline")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).OfflineConfigurationOffline = (bool?) content.GetValueForProperty("OfflineConfigurationOffline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).OfflineConfigurationOffline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal DatabaseMigrationSqlDb(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDb) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlDbTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SystemDataCreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SystemData")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SystemDataAutoGeneratedTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("MigrationFailureError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfoTypeConverter.ConvertFrom); - } - if (content.Contains("Kind")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); - } - if (content.Contains("Scope")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).Scope, global::System.Convert.ToString); - } - if (content.Contains("MigrationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationStatus, global::System.Convert.ToString); - } - if (content.Contains("StartedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MigrationService")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationService, global::System.Convert.ToString); - } - if (content.Contains("MigrationOperationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationOperationId, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).ProvisioningError, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformationTypeConverter.ConvertFrom); - } - if (content.Contains("SourceDatabaseName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceDatabaseName, global::System.Convert.ToString); - } - if (content.Contains("SourceServerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceServerName, global::System.Convert.ToString); - } - if (content.Contains("TargetDatabaseCollation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); - } - if (content.Contains("MigrationStatusDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetails) content.GetValueForProperty("MigrationStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlDbMigrationStatusDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("TargetSqlConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation) content.GetValueForProperty("TargetSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformationTypeConverter.ConvertFrom); - } - if (content.Contains("OfflineConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).OfflineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfiguration) content.GetValueForProperty("OfflineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).OfflineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlDbOfflineConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("TableList")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TableList = (string[]) content.GetValueForProperty("TableList",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TableList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("MigrationFailureErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionDataSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionAuthentication")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionUserName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("SourceSqlConnectionEncryptConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SourceSqlConnectionTrustServerCertificate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("MigrationStatusDetailMigrationState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetailMigrationState = (string) content.GetValueForProperty("MigrationStatusDetailMigrationState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetailMigrationState, global::System.Convert.ToString); - } - if (content.Contains("MigrationStatusDetailSqlDataCopyError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetailSqlDataCopyError = (string[]) content.GetValueForProperty("MigrationStatusDetailSqlDataCopyError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetailSqlDataCopyError, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("MigrationStatusDetailListOfCopyProgressDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetailListOfCopyProgressDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails[]) content.GetValueForProperty("MigrationStatusDetailListOfCopyProgressDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetailListOfCopyProgressDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.CopyProgressDetailsTypeConverter.ConvertFrom)); - } - if (content.Contains("TargetSqlConnectionDataSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionDataSource = (string) content.GetValueForProperty("TargetSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionDataSource, global::System.Convert.ToString); - } - if (content.Contains("TargetSqlConnectionAuthentication")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionAuthentication = (string) content.GetValueForProperty("TargetSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionAuthentication, global::System.Convert.ToString); - } - if (content.Contains("TargetSqlConnectionUserName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionUserName = (string) content.GetValueForProperty("TargetSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionUserName, global::System.Convert.ToString); - } - if (content.Contains("TargetSqlConnectionPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("TargetSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("TargetSqlConnectionEncryptConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("TargetSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("TargetSqlConnectionTrustServerCertificate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("TargetSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("OfflineConfigurationOffline")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).OfflineConfigurationOffline = (bool?) content.GetValueForProperty("OfflineConfigurationOffline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal)this).OfflineConfigurationOffline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DatabaseMigrationSqlDb(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DatabaseMigrationSqlDb(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Database Migration Resource for SQL Database. - [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationSqlDbTypeConverter))] - public partial interface IDatabaseMigrationSqlDb - - { - - } -} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlMi.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlMi.PowerShell.cs deleted file mode 100644 index 07cf60b8eac9..000000000000 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlMi.PowerShell.cs +++ /dev/null @@ -1,594 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; - - /// Database Migration Resource for SQL Managed Instance. - [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationSqlMiTypeConverter))] - public partial class DatabaseMigrationSqlMi - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DatabaseMigrationSqlMi(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMi) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlMiTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SystemDataCreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SystemData")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SystemDataAutoGeneratedTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("BackupConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).BackupConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration) content.GetValueForProperty("BackupConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).BackupConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.BackupConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("OfflineConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).OfflineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration) content.GetValueForProperty("OfflineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).OfflineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OfflineConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("MigrationFailureError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfoTypeConverter.ConvertFrom); - } - if (content.Contains("Kind")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); - } - if (content.Contains("Scope")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).Scope, global::System.Convert.ToString); - } - if (content.Contains("MigrationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationStatus, global::System.Convert.ToString); - } - if (content.Contains("StartedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MigrationService")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationService, global::System.Convert.ToString); - } - if (content.Contains("MigrationOperationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationOperationId, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).ProvisioningError, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformationTypeConverter.ConvertFrom); - } - if (content.Contains("SourceDatabaseName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceDatabaseName, global::System.Convert.ToString); - } - if (content.Contains("SourceServerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceServerName, global::System.Convert.ToString); - } - if (content.Contains("TargetDatabaseCollation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); - } - if (content.Contains("MigrationStatusDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails) content.GetValueForProperty("MigrationStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationStatusDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationStatusDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("BackupConfigurationSourceLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).BackupConfigurationSourceLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation) content.GetValueForProperty("BackupConfigurationSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).BackupConfigurationSourceLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SourceLocationTypeConverter.ConvertFrom); - } - if (content.Contains("BackupConfigurationTargetLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).BackupConfigurationTargetLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation) content.GetValueForProperty("BackupConfigurationTargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).BackupConfigurationTargetLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.TargetLocationTypeConverter.ConvertFrom); - } - if (content.Contains("MigrationFailureErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionDataSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionAuthentication")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionUserName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("SourceSqlConnectionEncryptConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SourceSqlConnectionTrustServerCertificate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SourceLocationAzureBlob")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceLocationAzureBlob = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob) content.GetValueForProperty("SourceLocationAzureBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceLocationAzureBlob, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.AzureBlobTypeConverter.ConvertFrom); - } - if (content.Contains("TargetLocationAccountKey")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).TargetLocationAccountKey = (string) content.GetValueForProperty("TargetLocationAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).TargetLocationAccountKey, global::System.Convert.ToString); - } - if (content.Contains("OfflineConfigurationOffline")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).OfflineConfigurationOffline = (bool?) content.GetValueForProperty("OfflineConfigurationOffline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).OfflineConfigurationOffline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("OfflineConfigurationLastBackupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).OfflineConfigurationLastBackupName = (string) content.GetValueForProperty("OfflineConfigurationLastBackupName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).OfflineConfigurationLastBackupName, global::System.Convert.ToString); - } - if (content.Contains("SourceLocationFileShare")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceLocationFileShare = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare) content.GetValueForProperty("SourceLocationFileShare",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceLocationFileShare, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlFileShareTypeConverter.ConvertFrom); - } - if (content.Contains("SourceLocationFileStorageType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceLocationFileStorageType = (string) content.GetValueForProperty("SourceLocationFileStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceLocationFileStorageType, global::System.Convert.ToString); - } - if (content.Contains("AzureBlobAuthType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).AzureBlobAuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AzureBlobAuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).AzureBlobAuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); - } - if (content.Contains("AzureBlobAccountKey")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).AzureBlobAccountKey = (string) content.GetValueForProperty("AzureBlobAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).AzureBlobAccountKey, global::System.Convert.ToString); - } - if (content.Contains("TargetLocationStorageAccountResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).TargetLocationStorageAccountResourceId = (string) content.GetValueForProperty("TargetLocationStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).TargetLocationStorageAccountResourceId, global::System.Convert.ToString); - } - if (content.Contains("FileSharePath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).FileSharePath = (string) content.GetValueForProperty("FileSharePath",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).FileSharePath, global::System.Convert.ToString); - } - if (content.Contains("FileShareUsername")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).FileShareUsername = (string) content.GetValueForProperty("FileShareUsername",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).FileShareUsername, global::System.Convert.ToString); - } - if (content.Contains("FileSharePassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).FileSharePassword = (System.Security.SecureString) content.GetValueForProperty("FileSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).FileSharePassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("AzureBlobIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).AzureBlobIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("AzureBlobIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).AzureBlobIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("AzureBlobStorageAccountResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).AzureBlobStorageAccountResourceId = (string) content.GetValueForProperty("AzureBlobStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).AzureBlobStorageAccountResourceId, global::System.Convert.ToString); - } - if (content.Contains("AzureBlobContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).AzureBlobContainerName = (string) content.GetValueForProperty("AzureBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).AzureBlobContainerName, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal DatabaseMigrationSqlMi(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMi) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlMiTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SystemDataCreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SystemData")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SystemDataAutoGeneratedTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("BackupConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).BackupConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration) content.GetValueForProperty("BackupConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).BackupConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.BackupConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("OfflineConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).OfflineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration) content.GetValueForProperty("OfflineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).OfflineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OfflineConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("MigrationFailureError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfoTypeConverter.ConvertFrom); - } - if (content.Contains("Kind")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); - } - if (content.Contains("Scope")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).Scope, global::System.Convert.ToString); - } - if (content.Contains("MigrationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationStatus, global::System.Convert.ToString); - } - if (content.Contains("StartedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MigrationService")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationService, global::System.Convert.ToString); - } - if (content.Contains("MigrationOperationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationOperationId, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).ProvisioningError, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformationTypeConverter.ConvertFrom); - } - if (content.Contains("SourceDatabaseName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceDatabaseName, global::System.Convert.ToString); - } - if (content.Contains("SourceServerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceServerName, global::System.Convert.ToString); - } - if (content.Contains("TargetDatabaseCollation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); - } - if (content.Contains("MigrationStatusDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails) content.GetValueForProperty("MigrationStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationStatusDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationStatusDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("BackupConfigurationSourceLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).BackupConfigurationSourceLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation) content.GetValueForProperty("BackupConfigurationSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).BackupConfigurationSourceLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SourceLocationTypeConverter.ConvertFrom); - } - if (content.Contains("BackupConfigurationTargetLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).BackupConfigurationTargetLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation) content.GetValueForProperty("BackupConfigurationTargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).BackupConfigurationTargetLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.TargetLocationTypeConverter.ConvertFrom); - } - if (content.Contains("MigrationFailureErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionDataSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionAuthentication")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionUserName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("SourceSqlConnectionEncryptConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SourceSqlConnectionTrustServerCertificate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SourceLocationAzureBlob")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceLocationAzureBlob = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob) content.GetValueForProperty("SourceLocationAzureBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceLocationAzureBlob, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.AzureBlobTypeConverter.ConvertFrom); - } - if (content.Contains("TargetLocationAccountKey")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).TargetLocationAccountKey = (string) content.GetValueForProperty("TargetLocationAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).TargetLocationAccountKey, global::System.Convert.ToString); - } - if (content.Contains("OfflineConfigurationOffline")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).OfflineConfigurationOffline = (bool?) content.GetValueForProperty("OfflineConfigurationOffline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).OfflineConfigurationOffline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("OfflineConfigurationLastBackupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).OfflineConfigurationLastBackupName = (string) content.GetValueForProperty("OfflineConfigurationLastBackupName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).OfflineConfigurationLastBackupName, global::System.Convert.ToString); - } - if (content.Contains("SourceLocationFileShare")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceLocationFileShare = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare) content.GetValueForProperty("SourceLocationFileShare",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceLocationFileShare, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlFileShareTypeConverter.ConvertFrom); - } - if (content.Contains("SourceLocationFileStorageType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceLocationFileStorageType = (string) content.GetValueForProperty("SourceLocationFileStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).SourceLocationFileStorageType, global::System.Convert.ToString); - } - if (content.Contains("AzureBlobAuthType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).AzureBlobAuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AzureBlobAuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).AzureBlobAuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); - } - if (content.Contains("AzureBlobAccountKey")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).AzureBlobAccountKey = (string) content.GetValueForProperty("AzureBlobAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).AzureBlobAccountKey, global::System.Convert.ToString); - } - if (content.Contains("TargetLocationStorageAccountResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).TargetLocationStorageAccountResourceId = (string) content.GetValueForProperty("TargetLocationStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).TargetLocationStorageAccountResourceId, global::System.Convert.ToString); - } - if (content.Contains("FileSharePath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).FileSharePath = (string) content.GetValueForProperty("FileSharePath",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).FileSharePath, global::System.Convert.ToString); - } - if (content.Contains("FileShareUsername")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).FileShareUsername = (string) content.GetValueForProperty("FileShareUsername",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).FileShareUsername, global::System.Convert.ToString); - } - if (content.Contains("FileSharePassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).FileSharePassword = (System.Security.SecureString) content.GetValueForProperty("FileSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).FileSharePassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("AzureBlobIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).AzureBlobIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("AzureBlobIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).AzureBlobIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("AzureBlobStorageAccountResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).AzureBlobStorageAccountResourceId = (string) content.GetValueForProperty("AzureBlobStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).AzureBlobStorageAccountResourceId, global::System.Convert.ToString); - } - if (content.Contains("AzureBlobContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).AzureBlobContainerName = (string) content.GetValueForProperty("AzureBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).AzureBlobContainerName, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DatabaseMigrationSqlMi(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DatabaseMigrationSqlMi(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Database Migration Resource for SQL Managed Instance. - [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationSqlMiTypeConverter))] - public partial interface IDatabaseMigrationSqlMi - - { - - } -} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlVM.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlVM.PowerShell.cs deleted file mode 100644 index dc0902f842ef..000000000000 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlVM.PowerShell.cs +++ /dev/null @@ -1,594 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; - - /// Database Migration Resource for SQL Virtual Machine. - [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationSqlVMTypeConverter))] - public partial class DatabaseMigrationSqlVM - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal DatabaseMigrationSqlVM(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVM) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlVMTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SystemDataCreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SystemData")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SystemDataAutoGeneratedTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("BackupConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).BackupConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration) content.GetValueForProperty("BackupConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).BackupConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.BackupConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("OfflineConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).OfflineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration) content.GetValueForProperty("OfflineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).OfflineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OfflineConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("MigrationFailureError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfoTypeConverter.ConvertFrom); - } - if (content.Contains("Kind")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); - } - if (content.Contains("Scope")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).Scope, global::System.Convert.ToString); - } - if (content.Contains("MigrationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationStatus, global::System.Convert.ToString); - } - if (content.Contains("StartedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MigrationService")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationService, global::System.Convert.ToString); - } - if (content.Contains("MigrationOperationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationOperationId, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).ProvisioningError, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformationTypeConverter.ConvertFrom); - } - if (content.Contains("SourceDatabaseName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceDatabaseName, global::System.Convert.ToString); - } - if (content.Contains("SourceServerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceServerName, global::System.Convert.ToString); - } - if (content.Contains("TargetDatabaseCollation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); - } - if (content.Contains("MigrationStatusDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails) content.GetValueForProperty("MigrationStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationStatusDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationStatusDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("BackupConfigurationSourceLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).BackupConfigurationSourceLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation) content.GetValueForProperty("BackupConfigurationSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).BackupConfigurationSourceLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SourceLocationTypeConverter.ConvertFrom); - } - if (content.Contains("BackupConfigurationTargetLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).BackupConfigurationTargetLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation) content.GetValueForProperty("BackupConfigurationTargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).BackupConfigurationTargetLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.TargetLocationTypeConverter.ConvertFrom); - } - if (content.Contains("MigrationFailureErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionDataSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionAuthentication")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionUserName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("SourceSqlConnectionEncryptConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SourceSqlConnectionTrustServerCertificate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SourceLocationAzureBlob")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceLocationAzureBlob = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob) content.GetValueForProperty("SourceLocationAzureBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceLocationAzureBlob, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.AzureBlobTypeConverter.ConvertFrom); - } - if (content.Contains("TargetLocationAccountKey")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).TargetLocationAccountKey = (string) content.GetValueForProperty("TargetLocationAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).TargetLocationAccountKey, global::System.Convert.ToString); - } - if (content.Contains("OfflineConfigurationOffline")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).OfflineConfigurationOffline = (bool?) content.GetValueForProperty("OfflineConfigurationOffline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).OfflineConfigurationOffline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("OfflineConfigurationLastBackupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).OfflineConfigurationLastBackupName = (string) content.GetValueForProperty("OfflineConfigurationLastBackupName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).OfflineConfigurationLastBackupName, global::System.Convert.ToString); - } - if (content.Contains("SourceLocationFileShare")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceLocationFileShare = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare) content.GetValueForProperty("SourceLocationFileShare",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceLocationFileShare, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlFileShareTypeConverter.ConvertFrom); - } - if (content.Contains("SourceLocationFileStorageType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceLocationFileStorageType = (string) content.GetValueForProperty("SourceLocationFileStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceLocationFileStorageType, global::System.Convert.ToString); - } - if (content.Contains("AzureBlobAuthType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).AzureBlobAuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AzureBlobAuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).AzureBlobAuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); - } - if (content.Contains("AzureBlobAccountKey")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).AzureBlobAccountKey = (string) content.GetValueForProperty("AzureBlobAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).AzureBlobAccountKey, global::System.Convert.ToString); - } - if (content.Contains("TargetLocationStorageAccountResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).TargetLocationStorageAccountResourceId = (string) content.GetValueForProperty("TargetLocationStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).TargetLocationStorageAccountResourceId, global::System.Convert.ToString); - } - if (content.Contains("FileSharePath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).FileSharePath = (string) content.GetValueForProperty("FileSharePath",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).FileSharePath, global::System.Convert.ToString); - } - if (content.Contains("FileShareUsername")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).FileShareUsername = (string) content.GetValueForProperty("FileShareUsername",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).FileShareUsername, global::System.Convert.ToString); - } - if (content.Contains("FileSharePassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).FileSharePassword = (System.Security.SecureString) content.GetValueForProperty("FileSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).FileSharePassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("AzureBlobIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).AzureBlobIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("AzureBlobIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).AzureBlobIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("AzureBlobStorageAccountResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).AzureBlobStorageAccountResourceId = (string) content.GetValueForProperty("AzureBlobStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).AzureBlobStorageAccountResourceId, global::System.Convert.ToString); - } - if (content.Contains("AzureBlobContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).AzureBlobContainerName = (string) content.GetValueForProperty("AzureBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).AzureBlobContainerName, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal DatabaseMigrationSqlVM(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVM) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlVMTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SystemDataCreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SystemData")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SystemDataAutoGeneratedTypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); - } - if (content.Contains("BackupConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).BackupConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration) content.GetValueForProperty("BackupConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).BackupConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.BackupConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("OfflineConfiguration")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).OfflineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration) content.GetValueForProperty("OfflineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).OfflineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OfflineConfigurationTypeConverter.ConvertFrom); - } - if (content.Contains("MigrationFailureError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfoTypeConverter.ConvertFrom); - } - if (content.Contains("Kind")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); - } - if (content.Contains("Scope")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).Scope, global::System.Convert.ToString); - } - if (content.Contains("MigrationStatus")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationStatus, global::System.Convert.ToString); - } - if (content.Contains("StartedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("EndedOn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("MigrationService")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationService, global::System.Convert.ToString); - } - if (content.Contains("MigrationOperationId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationOperationId, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).ProvisioningError, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformationTypeConverter.ConvertFrom); - } - if (content.Contains("SourceDatabaseName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceDatabaseName, global::System.Convert.ToString); - } - if (content.Contains("SourceServerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceServerName, global::System.Convert.ToString); - } - if (content.Contains("TargetDatabaseCollation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); - } - if (content.Contains("MigrationStatusDetail")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails) content.GetValueForProperty("MigrationStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationStatusDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationStatusDetailsTypeConverter.ConvertFrom); - } - if (content.Contains("BackupConfigurationSourceLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).BackupConfigurationSourceLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation) content.GetValueForProperty("BackupConfigurationSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).BackupConfigurationSourceLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SourceLocationTypeConverter.ConvertFrom); - } - if (content.Contains("BackupConfigurationTargetLocation")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).BackupConfigurationTargetLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation) content.GetValueForProperty("BackupConfigurationTargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).BackupConfigurationTargetLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.TargetLocationTypeConverter.ConvertFrom); - } - if (content.Contains("MigrationFailureErrorCode")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); - } - if (content.Contains("MigrationFailureErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionDataSource")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionAuthentication")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionUserName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); - } - if (content.Contains("SourceSqlConnectionPassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("SourceSqlConnectionEncryptConnection")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SourceSqlConnectionTrustServerCertificate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("SourceLocationAzureBlob")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceLocationAzureBlob = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob) content.GetValueForProperty("SourceLocationAzureBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceLocationAzureBlob, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.AzureBlobTypeConverter.ConvertFrom); - } - if (content.Contains("TargetLocationAccountKey")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).TargetLocationAccountKey = (string) content.GetValueForProperty("TargetLocationAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).TargetLocationAccountKey, global::System.Convert.ToString); - } - if (content.Contains("OfflineConfigurationOffline")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).OfflineConfigurationOffline = (bool?) content.GetValueForProperty("OfflineConfigurationOffline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).OfflineConfigurationOffline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("OfflineConfigurationLastBackupName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).OfflineConfigurationLastBackupName = (string) content.GetValueForProperty("OfflineConfigurationLastBackupName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).OfflineConfigurationLastBackupName, global::System.Convert.ToString); - } - if (content.Contains("SourceLocationFileShare")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceLocationFileShare = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare) content.GetValueForProperty("SourceLocationFileShare",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceLocationFileShare, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlFileShareTypeConverter.ConvertFrom); - } - if (content.Contains("SourceLocationFileStorageType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceLocationFileStorageType = (string) content.GetValueForProperty("SourceLocationFileStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).SourceLocationFileStorageType, global::System.Convert.ToString); - } - if (content.Contains("AzureBlobAuthType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).AzureBlobAuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AzureBlobAuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).AzureBlobAuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); - } - if (content.Contains("AzureBlobAccountKey")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).AzureBlobAccountKey = (string) content.GetValueForProperty("AzureBlobAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).AzureBlobAccountKey, global::System.Convert.ToString); - } - if (content.Contains("TargetLocationStorageAccountResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).TargetLocationStorageAccountResourceId = (string) content.GetValueForProperty("TargetLocationStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).TargetLocationStorageAccountResourceId, global::System.Convert.ToString); - } - if (content.Contains("FileSharePath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).FileSharePath = (string) content.GetValueForProperty("FileSharePath",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).FileSharePath, global::System.Convert.ToString); - } - if (content.Contains("FileShareUsername")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).FileShareUsername = (string) content.GetValueForProperty("FileShareUsername",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).FileShareUsername, global::System.Convert.ToString); - } - if (content.Contains("FileSharePassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).FileSharePassword = (System.Security.SecureString) content.GetValueForProperty("FileSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).FileSharePassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("AzureBlobIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).AzureBlobIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("AzureBlobIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).AzureBlobIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("AzureBlobStorageAccountResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).AzureBlobStorageAccountResourceId = (string) content.GetValueForProperty("AzureBlobStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).AzureBlobStorageAccountResourceId, global::System.Convert.ToString); - } - if (content.Contains("AzureBlobContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).AzureBlobContainerName = (string) content.GetValueForProperty("AzureBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).AzureBlobContainerName, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); - } - AfterDeserializePSObject(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new DatabaseMigrationSqlVM(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new DatabaseMigrationSqlVM(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Database Migration Resource for SQL Virtual Machine. - [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationSqlVMTypeConverter))] - public partial interface IDatabaseMigrationSqlVM - - { - - } -} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationStatusDetails.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationStatusDetails.PowerShell.cs deleted file mode 100644 index 041a25e7e8b4..000000000000 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationStatusDetails.PowerShell.cs +++ /dev/null @@ -1,418 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; - - /// Detailed status of current migration. - [System.ComponentModel.TypeConverter(typeof(MigrationStatusDetailsTypeConverter))] - public partial class MigrationStatusDetails - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new MigrationStatusDetails(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new MigrationStatusDetails(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal MigrationStatusDetails(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FullBackupSetInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo) content.GetValueForProperty("FullBackupSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupSetInfoTypeConverter.ConvertFrom); - } - if (content.Contains("LastRestoredBackupSetInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo) content.GetValueForProperty("LastRestoredBackupSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupSetInfoTypeConverter.ConvertFrom); - } - if (content.Contains("MigrationState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).MigrationState = (string) content.GetValueForProperty("MigrationState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).MigrationState, global::System.Convert.ToString); - } - if (content.Contains("ActiveBackupSet")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).ActiveBackupSet = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo[]) content.GetValueForProperty("ActiveBackupSet",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).ActiveBackupSet, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupSetInfoTypeConverter.ConvertFrom)); - } - if (content.Contains("InvalidFile")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).InvalidFile = (string[]) content.GetValueForProperty("InvalidFile",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).InvalidFile, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("BlobContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).BlobContainerName = (string) content.GetValueForProperty("BlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).BlobContainerName, global::System.Convert.ToString); - } - if (content.Contains("IsFullBackupRestored")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).IsFullBackupRestored = (bool?) content.GetValueForProperty("IsFullBackupRestored",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).IsFullBackupRestored, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("RestoreBlockingReason")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).RestoreBlockingReason = (string) content.GetValueForProperty("RestoreBlockingReason",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).RestoreBlockingReason, global::System.Convert.ToString); - } - if (content.Contains("CompleteRestoreErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).CompleteRestoreErrorMessage = (string) content.GetValueForProperty("CompleteRestoreErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).CompleteRestoreErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("FileUploadBlockingError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FileUploadBlockingError = (string[]) content.GetValueForProperty("FileUploadBlockingError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FileUploadBlockingError, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("CurrentRestoringFilename")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).CurrentRestoringFilename = (string) content.GetValueForProperty("CurrentRestoringFilename",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).CurrentRestoringFilename, global::System.Convert.ToString); - } - if (content.Contains("LastRestoredFilename")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredFilename = (string) content.GetValueForProperty("LastRestoredFilename",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredFilename, global::System.Convert.ToString); - } - if (content.Contains("PendingLogBackupsCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).PendingLogBackupsCount = (int?) content.GetValueForProperty("PendingLogBackupsCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).PendingLogBackupsCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("FullBackupSetInfoBackupSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupSetId = (string) content.GetValueForProperty("FullBackupSetInfoBackupSetId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupSetId, global::System.Convert.ToString); - } - if (content.Contains("FullBackupSetInfoFirstLsn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoFirstLsn = (string) content.GetValueForProperty("FullBackupSetInfoFirstLsn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoFirstLsn, global::System.Convert.ToString); - } - if (content.Contains("FullBackupSetInfoLastLsn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoLastLsn = (string) content.GetValueForProperty("FullBackupSetInfoLastLsn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoLastLsn, global::System.Convert.ToString); - } - if (content.Contains("FullBackupSetInfoBackupType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupType = (string) content.GetValueForProperty("FullBackupSetInfoBackupType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupType, global::System.Convert.ToString); - } - if (content.Contains("FullBackupSetInfoListOfBackupFile")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoListOfBackupFile = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo[]) content.GetValueForProperty("FullBackupSetInfoListOfBackupFile",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoListOfBackupFile, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupFileInfoTypeConverter.ConvertFrom)); - } - if (content.Contains("FullBackupSetInfoBackupStartDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupStartDate = (global::System.DateTime?) content.GetValueForProperty("FullBackupSetInfoBackupStartDate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupStartDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("FullBackupSetInfoBackupFinishDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupFinishDate = (global::System.DateTime?) content.GetValueForProperty("FullBackupSetInfoBackupFinishDate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupFinishDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("FullBackupSetInfoIsBackupRestored")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoIsBackupRestored = (bool?) content.GetValueForProperty("FullBackupSetInfoIsBackupRestored",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoIsBackupRestored, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("FullBackupSetInfoHasBackupChecksum")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoHasBackupChecksum = (bool?) content.GetValueForProperty("FullBackupSetInfoHasBackupChecksum",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoHasBackupChecksum, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("FullBackupSetInfoFamilyCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoFamilyCount = (int?) content.GetValueForProperty("FullBackupSetInfoFamilyCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoFamilyCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("FullBackupSetInfoIgnoreReason")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoIgnoreReason = (string[]) content.GetValueForProperty("FullBackupSetInfoIgnoreReason",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoIgnoreReason, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("LastRestoredBackupSetInfoBackupSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupSetId = (string) content.GetValueForProperty("LastRestoredBackupSetInfoBackupSetId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupSetId, global::System.Convert.ToString); - } - if (content.Contains("LastRestoredBackupSetInfoFirstLsn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoFirstLsn = (string) content.GetValueForProperty("LastRestoredBackupSetInfoFirstLsn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoFirstLsn, global::System.Convert.ToString); - } - if (content.Contains("LastRestoredBackupSetInfoLastLsn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoLastLsn = (string) content.GetValueForProperty("LastRestoredBackupSetInfoLastLsn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoLastLsn, global::System.Convert.ToString); - } - if (content.Contains("LastRestoredBackupSetInfoBackupType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupType = (string) content.GetValueForProperty("LastRestoredBackupSetInfoBackupType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupType, global::System.Convert.ToString); - } - if (content.Contains("LastRestoredBackupSetInfoListOfBackupFile")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoListOfBackupFile = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo[]) content.GetValueForProperty("LastRestoredBackupSetInfoListOfBackupFile",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoListOfBackupFile, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupFileInfoTypeConverter.ConvertFrom)); - } - if (content.Contains("LastRestoredBackupSetInfoBackupStartDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupStartDate = (global::System.DateTime?) content.GetValueForProperty("LastRestoredBackupSetInfoBackupStartDate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupStartDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastRestoredBackupSetInfoBackupFinishDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupFinishDate = (global::System.DateTime?) content.GetValueForProperty("LastRestoredBackupSetInfoBackupFinishDate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupFinishDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastRestoredBackupSetInfoIsBackupRestored")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoIsBackupRestored = (bool?) content.GetValueForProperty("LastRestoredBackupSetInfoIsBackupRestored",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoIsBackupRestored, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("LastRestoredBackupSetInfoHasBackupChecksum")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoHasBackupChecksum = (bool?) content.GetValueForProperty("LastRestoredBackupSetInfoHasBackupChecksum",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoHasBackupChecksum, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("LastRestoredBackupSetInfoFamilyCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoFamilyCount = (int?) content.GetValueForProperty("LastRestoredBackupSetInfoFamilyCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoFamilyCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("LastRestoredBackupSetInfoIgnoreReason")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoIgnoreReason = (string[]) content.GetValueForProperty("LastRestoredBackupSetInfoIgnoreReason",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoIgnoreReason, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal MigrationStatusDetails(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FullBackupSetInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo) content.GetValueForProperty("FullBackupSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupSetInfoTypeConverter.ConvertFrom); - } - if (content.Contains("LastRestoredBackupSetInfo")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo) content.GetValueForProperty("LastRestoredBackupSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupSetInfoTypeConverter.ConvertFrom); - } - if (content.Contains("MigrationState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).MigrationState = (string) content.GetValueForProperty("MigrationState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).MigrationState, global::System.Convert.ToString); - } - if (content.Contains("ActiveBackupSet")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).ActiveBackupSet = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo[]) content.GetValueForProperty("ActiveBackupSet",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).ActiveBackupSet, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupSetInfoTypeConverter.ConvertFrom)); - } - if (content.Contains("InvalidFile")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).InvalidFile = (string[]) content.GetValueForProperty("InvalidFile",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).InvalidFile, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("BlobContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).BlobContainerName = (string) content.GetValueForProperty("BlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).BlobContainerName, global::System.Convert.ToString); - } - if (content.Contains("IsFullBackupRestored")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).IsFullBackupRestored = (bool?) content.GetValueForProperty("IsFullBackupRestored",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).IsFullBackupRestored, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("RestoreBlockingReason")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).RestoreBlockingReason = (string) content.GetValueForProperty("RestoreBlockingReason",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).RestoreBlockingReason, global::System.Convert.ToString); - } - if (content.Contains("CompleteRestoreErrorMessage")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).CompleteRestoreErrorMessage = (string) content.GetValueForProperty("CompleteRestoreErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).CompleteRestoreErrorMessage, global::System.Convert.ToString); - } - if (content.Contains("FileUploadBlockingError")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FileUploadBlockingError = (string[]) content.GetValueForProperty("FileUploadBlockingError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FileUploadBlockingError, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("CurrentRestoringFilename")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).CurrentRestoringFilename = (string) content.GetValueForProperty("CurrentRestoringFilename",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).CurrentRestoringFilename, global::System.Convert.ToString); - } - if (content.Contains("LastRestoredFilename")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredFilename = (string) content.GetValueForProperty("LastRestoredFilename",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredFilename, global::System.Convert.ToString); - } - if (content.Contains("PendingLogBackupsCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).PendingLogBackupsCount = (int?) content.GetValueForProperty("PendingLogBackupsCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).PendingLogBackupsCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("FullBackupSetInfoBackupSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupSetId = (string) content.GetValueForProperty("FullBackupSetInfoBackupSetId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupSetId, global::System.Convert.ToString); - } - if (content.Contains("FullBackupSetInfoFirstLsn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoFirstLsn = (string) content.GetValueForProperty("FullBackupSetInfoFirstLsn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoFirstLsn, global::System.Convert.ToString); - } - if (content.Contains("FullBackupSetInfoLastLsn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoLastLsn = (string) content.GetValueForProperty("FullBackupSetInfoLastLsn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoLastLsn, global::System.Convert.ToString); - } - if (content.Contains("FullBackupSetInfoBackupType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupType = (string) content.GetValueForProperty("FullBackupSetInfoBackupType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupType, global::System.Convert.ToString); - } - if (content.Contains("FullBackupSetInfoListOfBackupFile")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoListOfBackupFile = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo[]) content.GetValueForProperty("FullBackupSetInfoListOfBackupFile",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoListOfBackupFile, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupFileInfoTypeConverter.ConvertFrom)); - } - if (content.Contains("FullBackupSetInfoBackupStartDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupStartDate = (global::System.DateTime?) content.GetValueForProperty("FullBackupSetInfoBackupStartDate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupStartDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("FullBackupSetInfoBackupFinishDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupFinishDate = (global::System.DateTime?) content.GetValueForProperty("FullBackupSetInfoBackupFinishDate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupFinishDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("FullBackupSetInfoIsBackupRestored")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoIsBackupRestored = (bool?) content.GetValueForProperty("FullBackupSetInfoIsBackupRestored",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoIsBackupRestored, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("FullBackupSetInfoHasBackupChecksum")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoHasBackupChecksum = (bool?) content.GetValueForProperty("FullBackupSetInfoHasBackupChecksum",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoHasBackupChecksum, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("FullBackupSetInfoFamilyCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoFamilyCount = (int?) content.GetValueForProperty("FullBackupSetInfoFamilyCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoFamilyCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("FullBackupSetInfoIgnoreReason")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoIgnoreReason = (string[]) content.GetValueForProperty("FullBackupSetInfoIgnoreReason",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).FullBackupSetInfoIgnoreReason, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - if (content.Contains("LastRestoredBackupSetInfoBackupSetId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupSetId = (string) content.GetValueForProperty("LastRestoredBackupSetInfoBackupSetId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupSetId, global::System.Convert.ToString); - } - if (content.Contains("LastRestoredBackupSetInfoFirstLsn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoFirstLsn = (string) content.GetValueForProperty("LastRestoredBackupSetInfoFirstLsn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoFirstLsn, global::System.Convert.ToString); - } - if (content.Contains("LastRestoredBackupSetInfoLastLsn")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoLastLsn = (string) content.GetValueForProperty("LastRestoredBackupSetInfoLastLsn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoLastLsn, global::System.Convert.ToString); - } - if (content.Contains("LastRestoredBackupSetInfoBackupType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupType = (string) content.GetValueForProperty("LastRestoredBackupSetInfoBackupType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupType, global::System.Convert.ToString); - } - if (content.Contains("LastRestoredBackupSetInfoListOfBackupFile")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoListOfBackupFile = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo[]) content.GetValueForProperty("LastRestoredBackupSetInfoListOfBackupFile",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoListOfBackupFile, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupFileInfoTypeConverter.ConvertFrom)); - } - if (content.Contains("LastRestoredBackupSetInfoBackupStartDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupStartDate = (global::System.DateTime?) content.GetValueForProperty("LastRestoredBackupSetInfoBackupStartDate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupStartDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastRestoredBackupSetInfoBackupFinishDate")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupFinishDate = (global::System.DateTime?) content.GetValueForProperty("LastRestoredBackupSetInfoBackupFinishDate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupFinishDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("LastRestoredBackupSetInfoIsBackupRestored")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoIsBackupRestored = (bool?) content.GetValueForProperty("LastRestoredBackupSetInfoIsBackupRestored",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoIsBackupRestored, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("LastRestoredBackupSetInfoHasBackupChecksum")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoHasBackupChecksum = (bool?) content.GetValueForProperty("LastRestoredBackupSetInfoHasBackupChecksum",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoHasBackupChecksum, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); - } - if (content.Contains("LastRestoredBackupSetInfoFamilyCount")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoFamilyCount = (int?) content.GetValueForProperty("LastRestoredBackupSetInfoFamilyCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoFamilyCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); - } - if (content.Contains("LastRestoredBackupSetInfoIgnoreReason")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoIgnoreReason = (string[]) content.GetValueForProperty("LastRestoredBackupSetInfoIgnoreReason",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoIgnoreReason, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Detailed status of current migration. - [System.ComponentModel.TypeConverter(typeof(MigrationStatusDetailsTypeConverter))] - public partial interface IMigrationStatusDetails - - { - - } -} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SourceLocation.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SourceLocation.PowerShell.cs deleted file mode 100644 index 42df73d0a013..000000000000 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SourceLocation.PowerShell.cs +++ /dev/null @@ -1,258 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; - - /// Source Location details of backups. - [System.ComponentModel.TypeConverter(typeof(SourceLocationTypeConverter))] - public partial class SourceLocation - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new SourceLocation(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new SourceLocation(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal SourceLocation(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FileShare")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).FileShare = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare) content.GetValueForProperty("FileShare",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).FileShare, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlFileShareTypeConverter.ConvertFrom); - } - if (content.Contains("AzureBlob")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).AzureBlob = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob) content.GetValueForProperty("AzureBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).AzureBlob, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.AzureBlobTypeConverter.ConvertFrom); - } - if (content.Contains("FileStorageType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).FileStorageType = (string) content.GetValueForProperty("FileStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).FileStorageType, global::System.Convert.ToString); - } - if (content.Contains("AzureBlobAuthType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).AzureBlobAuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AzureBlobAuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).AzureBlobAuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); - } - if (content.Contains("AzureBlobAccountKey")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).AzureBlobAccountKey = (string) content.GetValueForProperty("AzureBlobAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).AzureBlobAccountKey, global::System.Convert.ToString); - } - if (content.Contains("FileSharePath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).FileSharePath = (string) content.GetValueForProperty("FileSharePath",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).FileSharePath, global::System.Convert.ToString); - } - if (content.Contains("FileShareUsername")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).FileShareUsername = (string) content.GetValueForProperty("FileShareUsername",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).FileShareUsername, global::System.Convert.ToString); - } - if (content.Contains("FileSharePassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).FileSharePassword = (System.Security.SecureString) content.GetValueForProperty("FileSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).FileSharePassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("AzureBlobIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).AzureBlobIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("AzureBlobIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).AzureBlobIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("AzureBlobStorageAccountResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).AzureBlobStorageAccountResourceId = (string) content.GetValueForProperty("AzureBlobStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).AzureBlobStorageAccountResourceId, global::System.Convert.ToString); - } - if (content.Contains("AzureBlobContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).AzureBlobContainerName = (string) content.GetValueForProperty("AzureBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).AzureBlobContainerName, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal SourceLocation(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("FileShare")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).FileShare = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare) content.GetValueForProperty("FileShare",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).FileShare, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlFileShareTypeConverter.ConvertFrom); - } - if (content.Contains("AzureBlob")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).AzureBlob = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob) content.GetValueForProperty("AzureBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).AzureBlob, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.AzureBlobTypeConverter.ConvertFrom); - } - if (content.Contains("FileStorageType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).FileStorageType = (string) content.GetValueForProperty("FileStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).FileStorageType, global::System.Convert.ToString); - } - if (content.Contains("AzureBlobAuthType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).AzureBlobAuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AzureBlobAuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).AzureBlobAuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); - } - if (content.Contains("AzureBlobAccountKey")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).AzureBlobAccountKey = (string) content.GetValueForProperty("AzureBlobAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).AzureBlobAccountKey, global::System.Convert.ToString); - } - if (content.Contains("FileSharePath")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).FileSharePath = (string) content.GetValueForProperty("FileSharePath",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).FileSharePath, global::System.Convert.ToString); - } - if (content.Contains("FileShareUsername")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).FileShareUsername = (string) content.GetValueForProperty("FileShareUsername",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).FileShareUsername, global::System.Convert.ToString); - } - if (content.Contains("FileSharePassword")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).FileSharePassword = (System.Security.SecureString) content.GetValueForProperty("FileSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).FileSharePassword, (object ss) => (System.Security.SecureString)ss); - } - if (content.Contains("AzureBlobIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).AzureBlobIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("AzureBlobIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).AzureBlobIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); - } - if (content.Contains("AzureBlobStorageAccountResourceId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).AzureBlobStorageAccountResourceId = (string) content.GetValueForProperty("AzureBlobStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).AzureBlobStorageAccountResourceId, global::System.Convert.ToString); - } - if (content.Contains("AzureBlobContainerName")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).AzureBlobContainerName = (string) content.GetValueForProperty("AzureBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).AzureBlobContainerName, global::System.Convert.ToString); - } - if (content.Contains("IdentityPrincipalId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).IdentityPrincipalId, global::System.Convert.ToString); - } - if (content.Contains("IdentityTenantId")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).IdentityTenantId, global::System.Convert.ToString); - } - if (content.Contains("IdentityType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); - } - if (content.Contains("IdentityUserAssignedIdentity")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// Source Location details of backups. - [System.ComponentModel.TypeConverter(typeof(SourceLocationTypeConverter))] - public partial interface ISourceLocation - - { - - } -} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationService.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationService.PowerShell.cs deleted file mode 100644 index 34e45b08a755..000000000000 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationService.PowerShell.cs +++ /dev/null @@ -1,258 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview -{ - using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; - - /// A SQL Migration Service. - [System.ComponentModel.TypeConverter(typeof(SqlMigrationServiceTypeConverter))] - public partial class SqlMigrationService - { - - /// - /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the - /// object before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Collections.IDictionary content that should be used. - - partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); - - /// - /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object - /// before it is returned. Implement this method in a partial class to enable this behavior - /// - /// The global::System.Management.Automation.PSObject content that should be used. - - partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); - - /// - /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Collections.IDictionary content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); - - /// - /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization - /// of the object before it is deserialized. - /// If you wish to disable the default deserialization entirely, return true in the output - /// parameter. - /// Implement this method in a partial class to enable this behavior. - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// Determines if the rest of the serialization should be processed, or if the method should return - /// instantly. - - partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService DeserializeFromDictionary(global::System.Collections.IDictionary content) - { - return new SqlMigrationService(content); - } - - /// - /// Deserializes a into an instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - /// - /// an instance of . - /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService DeserializeFromPSObject(global::System.Management.Automation.PSObject content) - { - return new SqlMigrationService(content); - } - - /// - /// Creates a new instance of , deserializing the content from a json string. - /// - /// a string containing a JSON serialized instance of this model. - /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Collections.IDictionary content that should be used. - internal SqlMigrationService(global::System.Collections.IDictionary content) - { - bool returnNow = false; - BeforeDeserializeDictionary(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationServicePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SystemDataCreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SystemData")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SystemDataAutoGeneratedTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.ITrackedResourceTags1) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.TrackedResourceTags1TypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("IntegrationRuntimeState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceInternal)this).IntegrationRuntimeState = (string) content.GetValueForProperty("IntegrationRuntimeState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceInternal)this).IntegrationRuntimeState, global::System.Convert.ToString); - } - AfterDeserializeDictionary(content); - } - - /// - /// Deserializes a into a new instance of . - /// - /// The global::System.Management.Automation.PSObject content that should be used. - internal SqlMigrationService(global::System.Management.Automation.PSObject content) - { - bool returnNow = false; - BeforeDeserializePSObject(content, ref returnNow); - if (returnNow) - { - return; - } - // actually deserialize - if (content.Contains("Property")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationServicePropertiesTypeConverter.ConvertFrom); - } - if (content.Contains("SystemDataCreatedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataCreatedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SystemDataCreatedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedBy")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); - } - if (content.Contains("SystemDataLastModifiedByType")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); - } - if (content.Contains("SystemDataLastModifiedAt")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); - } - if (content.Contains("SystemData")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SystemDataAutoGeneratedTypeConverter.ConvertFrom); - } - if (content.Contains("Location")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Location, global::System.Convert.ToString); - } - if (content.Contains("Tag")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.ITrackedResourceTags1) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.TrackedResourceTags1TypeConverter.ConvertFrom); - } - if (content.Contains("Id")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); - } - if (content.Contains("Name")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); - } - if (content.Contains("Type")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); - } - if (content.Contains("ProvisioningState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceInternal)this).ProvisioningState, global::System.Convert.ToString); - } - if (content.Contains("IntegrationRuntimeState")) - { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceInternal)this).IntegrationRuntimeState = (string) content.GetValueForProperty("IntegrationRuntimeState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceInternal)this).IntegrationRuntimeState, global::System.Convert.ToString); - } - AfterDeserializePSObject(content); - } - - /// Serializes this instance to a json string. - - /// a containing this model serialized to JSON text. - public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SerializationMode.IncludeAll)?.ToString(); - } - /// A SQL Migration Service. - [System.ComponentModel.TypeConverter(typeof(SqlMigrationServiceTypeConverter))] - public partial interface ISqlMigrationService - - { - - } -} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/AuthenticationKeys.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/AuthenticationKeys.PowerShell.cs similarity index 78% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/AuthenticationKeys.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/AuthenticationKeys.PowerShell.cs index aa0331acc9d7..cabbbe1a870d 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/AuthenticationKeys.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/AuthenticationKeys.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class AuthenticationKeys partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,17 +70,17 @@ internal AuthenticationKeys(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("AuthKey1")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeysInternal)this).AuthKey1 = (string) content.GetValueForProperty("AuthKey1",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeysInternal)this).AuthKey1, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeysInternal)this).AuthKey1 = (string) content.GetValueForProperty("AuthKey1",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeysInternal)this).AuthKey1, global::System.Convert.ToString); } if (content.Contains("AuthKey2")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeysInternal)this).AuthKey2 = (string) content.GetValueForProperty("AuthKey2",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeysInternal)this).AuthKey2, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeysInternal)this).AuthKey2 = (string) content.GetValueForProperty("AuthKey2",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeysInternal)this).AuthKey2, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -95,39 +95,37 @@ internal AuthenticationKeys(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("AuthKey1")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeysInternal)this).AuthKey1 = (string) content.GetValueForProperty("AuthKey1",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeysInternal)this).AuthKey1, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeysInternal)this).AuthKey1 = (string) content.GetValueForProperty("AuthKey1",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeysInternal)this).AuthKey1, global::System.Convert.ToString); } if (content.Contains("AuthKey2")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeysInternal)this).AuthKey2 = (string) content.GetValueForProperty("AuthKey2",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeysInternal)this).AuthKey2, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeysInternal)this).AuthKey2 = (string) content.GetValueForProperty("AuthKey2",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeysInternal)this).AuthKey2, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeys DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeys DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AuthenticationKeys(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeys DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeys DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AuthenticationKeys(content); } @@ -137,7 +135,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeys FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.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/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/AuthenticationKeys.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/AuthenticationKeys.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/AuthenticationKeys.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/AuthenticationKeys.TypeConverter.cs index 3a607ac2ee6e..d05fd837c686 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/AuthenticationKeys.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/AuthenticationKeys.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeys ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeys ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeys).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeys).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/AuthenticationKeys.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/AuthenticationKeys.cs similarity index 96% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/AuthenticationKeys.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/AuthenticationKeys.cs index fa44f39248db..7b345bf1912d 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/AuthenticationKeys.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/AuthenticationKeys.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// An authentication key. public partial class AuthenticationKeys : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeys, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeysInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeys, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeysInternal { /// Backing field for property. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/AuthenticationKeys.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/AuthenticationKeys.json.cs similarity index 96% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/AuthenticationKeys.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/AuthenticationKeys.json.cs index b70659b42121..79490d42aae1 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/AuthenticationKeys.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/AuthenticationKeys.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -71,13 +71,13 @@ internal AuthenticationKeys(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Run } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeys. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeys. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeys. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeys. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeys FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeys FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new AuthenticationKeys(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/AzureBlob.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/AzureBlob.PowerShell.cs similarity index 57% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/AzureBlob.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/AzureBlob.PowerShell.cs index 90b8bead23cf..5a0a9d3abd5a 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/AzureBlob.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/AzureBlob.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class AzureBlob partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,45 +70,45 @@ internal AzureBlob(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); } if (content.Contains("AuthType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); } if (content.Contains("StorageAccountResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).StorageAccountResourceId = (string) content.GetValueForProperty("StorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).StorageAccountResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).StorageAccountResourceId = (string) content.GetValueForProperty("StorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).StorageAccountResourceId, global::System.Convert.ToString); } if (content.Contains("AccountKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).AccountKey = (string) content.GetValueForProperty("AccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).AccountKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).AccountKey = (string) content.GetValueForProperty("AccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).AccountKey, global::System.Convert.ToString); } if (content.Contains("BlobContainerName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).BlobContainerName = (string) content.GetValueForProperty("BlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).BlobContainerName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).BlobContainerName = (string) content.GetValueForProperty("BlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).BlobContainerName, global::System.Convert.ToString); } if (content.Contains("IdentityPrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).IdentityPrincipalId, global::System.Convert.ToString); } if (content.Contains("IdentityTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).IdentityTenantId, global::System.Convert.ToString); } if (content.Contains("IdentityType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); } if (content.Contains("IdentityUserAssignedIdentity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -123,65 +123,65 @@ internal AzureBlob(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); } if (content.Contains("AuthType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).AuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).AuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); } if (content.Contains("StorageAccountResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).StorageAccountResourceId = (string) content.GetValueForProperty("StorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).StorageAccountResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).StorageAccountResourceId = (string) content.GetValueForProperty("StorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).StorageAccountResourceId, global::System.Convert.ToString); } if (content.Contains("AccountKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).AccountKey = (string) content.GetValueForProperty("AccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).AccountKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).AccountKey = (string) content.GetValueForProperty("AccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).AccountKey, global::System.Convert.ToString); } if (content.Contains("BlobContainerName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).BlobContainerName = (string) content.GetValueForProperty("BlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).BlobContainerName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).BlobContainerName = (string) content.GetValueForProperty("BlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).BlobContainerName, global::System.Convert.ToString); } if (content.Contains("IdentityPrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).IdentityPrincipalId, global::System.Convert.ToString); } if (content.Contains("IdentityTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).IdentityTenantId, global::System.Convert.ToString); } if (content.Contains("IdentityType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); } if (content.Contains("IdentityUserAssignedIdentity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureBlob(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureBlob(content); } @@ -191,7 +191,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.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/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/AzureBlob.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/AzureBlob.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/AzureBlob.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/AzureBlob.TypeConverter.cs index aea9831063c9..2cd903635315 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/AzureBlob.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/AzureBlob.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/AzureBlob.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/AzureBlob.cs similarity index 93% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/AzureBlob.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/AzureBlob.cs index 92a714588cc8..b132739fd078 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/AzureBlob.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/AzureBlob.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Azure Blob Details public partial class AzureBlob : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal { /// Backing field for property. @@ -68,13 +68,13 @@ public partial class AzureBlob : public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; } /// Internal Acessors for Identity - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentity()); set { {_identity = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityInternal)Identity).PrincipalId = value; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityInternal)Identity).TenantId = value; } /// Backing field for property. private string _storageAccountResourceId; diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/AzureBlob.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/AzureBlob.json.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/AzureBlob.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/AzureBlob.json.cs index 350fa8a2504e..f920682e6416 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/AzureBlob.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/AzureBlob.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -74,13 +74,13 @@ internal AzureBlob(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new AzureBlob(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/BackupConfiguration.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/BackupConfiguration.PowerShell.cs new file mode 100644 index 000000000000..52ed136c068b --- /dev/null +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/BackupConfiguration.PowerShell.cs @@ -0,0 +1,288 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; + + /// Backup Configuration + [System.ComponentModel.TypeConverter(typeof(BackupConfigurationTypeConverter))] + public partial class BackupConfiguration + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal BackupConfiguration(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SourceLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).SourceLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation) content.GetValueForProperty("SourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).SourceLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SourceLocationTypeConverter.ConvertFrom); + } + if (content.Contains("TargetLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).TargetLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation) content.GetValueForProperty("TargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).TargetLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.TargetLocationTypeConverter.ConvertFrom); + } + if (content.Contains("SourceLocationAzureBlob")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).SourceLocationAzureBlob = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob) content.GetValueForProperty("SourceLocationAzureBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).SourceLocationAzureBlob, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.AzureBlobTypeConverter.ConvertFrom); + } + if (content.Contains("TargetLocationAccountKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).TargetLocationAccountKey = (string) content.GetValueForProperty("TargetLocationAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).TargetLocationAccountKey, global::System.Convert.ToString); + } + if (content.Contains("SourceLocationFileShare")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).SourceLocationFileShare = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare) content.GetValueForProperty("SourceLocationFileShare",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).SourceLocationFileShare, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlFileShareTypeConverter.ConvertFrom); + } + if (content.Contains("SourceLocationFileStorageType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).SourceLocationFileStorageType = (string) content.GetValueForProperty("SourceLocationFileStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).SourceLocationFileStorageType, global::System.Convert.ToString); + } + if (content.Contains("AzureBlobAuthType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).AzureBlobAuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AzureBlobAuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).AzureBlobAuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); + } + if (content.Contains("AzureBlobAccountKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).AzureBlobAccountKey = (string) content.GetValueForProperty("AzureBlobAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).AzureBlobAccountKey, global::System.Convert.ToString); + } + if (content.Contains("TargetLocationStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).TargetLocationStorageAccountResourceId = (string) content.GetValueForProperty("TargetLocationStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).TargetLocationStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("FileSharePath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).FileSharePath = (string) content.GetValueForProperty("FileSharePath",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).FileSharePath, global::System.Convert.ToString); + } + if (content.Contains("FileShareUsername")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).FileShareUsername = (string) content.GetValueForProperty("FileShareUsername",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).FileShareUsername, global::System.Convert.ToString); + } + if (content.Contains("FileSharePassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).FileSharePassword = (System.Security.SecureString) content.GetValueForProperty("FileSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).FileSharePassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("AzureBlobIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).AzureBlobIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("AzureBlobIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).AzureBlobIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("AzureBlobStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).AzureBlobStorageAccountResourceId = (string) content.GetValueForProperty("AzureBlobStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).AzureBlobStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("AzureBlobContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).AzureBlobContainerName = (string) content.GetValueForProperty("AzureBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).AzureBlobContainerName, global::System.Convert.ToString); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal BackupConfiguration(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SourceLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).SourceLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation) content.GetValueForProperty("SourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).SourceLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SourceLocationTypeConverter.ConvertFrom); + } + if (content.Contains("TargetLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).TargetLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation) content.GetValueForProperty("TargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).TargetLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.TargetLocationTypeConverter.ConvertFrom); + } + if (content.Contains("SourceLocationAzureBlob")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).SourceLocationAzureBlob = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob) content.GetValueForProperty("SourceLocationAzureBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).SourceLocationAzureBlob, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.AzureBlobTypeConverter.ConvertFrom); + } + if (content.Contains("TargetLocationAccountKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).TargetLocationAccountKey = (string) content.GetValueForProperty("TargetLocationAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).TargetLocationAccountKey, global::System.Convert.ToString); + } + if (content.Contains("SourceLocationFileShare")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).SourceLocationFileShare = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare) content.GetValueForProperty("SourceLocationFileShare",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).SourceLocationFileShare, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlFileShareTypeConverter.ConvertFrom); + } + if (content.Contains("SourceLocationFileStorageType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).SourceLocationFileStorageType = (string) content.GetValueForProperty("SourceLocationFileStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).SourceLocationFileStorageType, global::System.Convert.ToString); + } + if (content.Contains("AzureBlobAuthType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).AzureBlobAuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AzureBlobAuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).AzureBlobAuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); + } + if (content.Contains("AzureBlobAccountKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).AzureBlobAccountKey = (string) content.GetValueForProperty("AzureBlobAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).AzureBlobAccountKey, global::System.Convert.ToString); + } + if (content.Contains("TargetLocationStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).TargetLocationStorageAccountResourceId = (string) content.GetValueForProperty("TargetLocationStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).TargetLocationStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("FileSharePath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).FileSharePath = (string) content.GetValueForProperty("FileSharePath",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).FileSharePath, global::System.Convert.ToString); + } + if (content.Contains("FileShareUsername")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).FileShareUsername = (string) content.GetValueForProperty("FileShareUsername",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).FileShareUsername, global::System.Convert.ToString); + } + if (content.Contains("FileSharePassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).FileSharePassword = (System.Security.SecureString) content.GetValueForProperty("FileSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).FileSharePassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("AzureBlobIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).AzureBlobIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("AzureBlobIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).AzureBlobIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("AzureBlobStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).AzureBlobStorageAccountResourceId = (string) content.GetValueForProperty("AzureBlobStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).AzureBlobStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("AzureBlobContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).AzureBlobContainerName = (string) content.GetValueForProperty("AzureBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).AzureBlobContainerName, global::System.Convert.ToString); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new BackupConfiguration(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new BackupConfiguration(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Backup Configuration + [System.ComponentModel.TypeConverter(typeof(BackupConfigurationTypeConverter))] + public partial interface IBackupConfiguration + + { + + } +} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/BackupConfiguration.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/BackupConfiguration.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/BackupConfiguration.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/BackupConfiguration.TypeConverter.cs index 39ec4c40cae1..2bbf286ba5bb 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/BackupConfiguration.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/BackupConfiguration.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/BackupConfiguration.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/BackupConfiguration.cs similarity index 71% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/BackupConfiguration.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/BackupConfiguration.cs index 67af5914ddc8..dd1c36bdeb57 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/BackupConfiguration.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/BackupConfiguration.cs @@ -3,61 +3,61 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Backup Configuration public partial class BackupConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal { /// Storage Account Key. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string AzureBlobAccountKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).AzureBlobAccountKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).AzureBlobAccountKey = value ?? null; } + public string AzureBlobAccountKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).AzureBlobAccountKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).AzureBlobAccountKey = value ?? null; } /// Authentication type used for accessing Azure Blob Storage. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType? AzureBlobAuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).AzureBlobAuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).AzureBlobAuthType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType? AzureBlobAuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).AzureBlobAuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).AzureBlobAuthType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType)""); } /// Blob container name where backups are stored. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string AzureBlobContainerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).AzureBlobContainerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).AzureBlobContainerName = value ?? null; } + public string AzureBlobContainerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).AzureBlobContainerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).AzureBlobContainerName = value ?? null; } /// Resource Id of the storage account where backups are stored. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string AzureBlobStorageAccountResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).AzureBlobStorageAccountResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).AzureBlobStorageAccountResourceId = value ?? null; } + public string AzureBlobStorageAccountResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).AzureBlobStorageAccountResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).AzureBlobStorageAccountResourceId = value ?? null; } /// Password for username to access file share location. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public System.Security.SecureString FileSharePassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).FileSharePassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).FileSharePassword = value ?? null; } + public System.Security.SecureString FileSharePassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).FileSharePassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).FileSharePassword = value ?? null; } /// Location as SMB share or local drive where backups are placed. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string FileSharePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).FileSharePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).FileSharePath = value ?? null; } + public string FileSharePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).FileSharePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).FileSharePath = value ?? null; } /// Username to access the file share location for backups. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string FileShareUsername { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).FileShareUsername; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).FileShareUsername = value ?? null; } + public string FileShareUsername { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).FileShareUsername; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).FileShareUsername = value ?? null; } /// /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).IdentityPrincipalId; } + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).IdentityPrincipalId; } /// /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).IdentityTenantId; } + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).IdentityTenantId; } /// /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).IdentityType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).IdentityType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType)""); } /// /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM @@ -65,57 +65,57 @@ public partial class BackupConfiguration : /// The dictionary values can be empty objects ({}) in requests. /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).IdentityUserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).IdentityUserAssignedIdentity = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).IdentityUserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).IdentityUserAssignedIdentity = value ?? null /* model class */; } /// Internal Acessors for AzureBlobIdentity - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal.AzureBlobIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).AzureBlobIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).AzureBlobIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal.AzureBlobIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).AzureBlobIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).AzureBlobIdentity = value; } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).IdentityPrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).IdentityPrincipalId = value; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).IdentityTenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).IdentityTenantId = value; } /// Internal Acessors for SourceLocation - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal.SourceLocation { get => (this._sourceLocation = this._sourceLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SourceLocation()); set { {_sourceLocation = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal.SourceLocation { get => (this._sourceLocation = this._sourceLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SourceLocation()); set { {_sourceLocation = value;} } } /// Internal Acessors for SourceLocationAzureBlob - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal.SourceLocationAzureBlob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).AzureBlob; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).AzureBlob = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal.SourceLocationAzureBlob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).AzureBlob; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).AzureBlob = value; } /// Internal Acessors for SourceLocationFileShare - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal.SourceLocationFileShare { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).FileShare; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).FileShare = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal.SourceLocationFileShare { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).FileShare; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).FileShare = value; } /// Internal Acessors for SourceLocationFileStorageType - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal.SourceLocationFileStorageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).FileStorageType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).FileStorageType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal.SourceLocationFileStorageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).FileStorageType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).FileStorageType = value; } /// Internal Acessors for TargetLocation - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal.TargetLocation { get => (this._targetLocation = this._targetLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.TargetLocation()); set { {_targetLocation = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal.TargetLocation { get => (this._targetLocation = this._targetLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.TargetLocation()); set { {_targetLocation = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation _sourceLocation; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation _sourceLocation; /// Source location of backups. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation SourceLocation { get => (this._sourceLocation = this._sourceLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SourceLocation()); set => this._sourceLocation = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation SourceLocation { get => (this._sourceLocation = this._sourceLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SourceLocation()); set => this._sourceLocation = value; } /// Backup storage Type. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string SourceLocationFileStorageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal)SourceLocation).FileStorageType; } + public string SourceLocationFileStorageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)SourceLocation).FileStorageType; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation _targetLocation; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation _targetLocation; /// Target location for copying backups. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation TargetLocation { get => (this._targetLocation = this._targetLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.TargetLocation()); set => this._targetLocation = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation TargetLocation { get => (this._targetLocation = this._targetLocation ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.TargetLocation()); set => this._targetLocation = value; } /// Storage Account Key. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string TargetLocationAccountKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocationInternal)TargetLocation).AccountKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocationInternal)TargetLocation).AccountKey = value ?? null; } + public string TargetLocationAccountKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocationInternal)TargetLocation).AccountKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocationInternal)TargetLocation).AccountKey = value ?? null; } /// Resource Id of the storage account copying backups. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string TargetLocationStorageAccountResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocationInternal)TargetLocation).StorageAccountResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocationInternal)TargetLocation).StorageAccountResourceId = value ?? null; } + public string TargetLocationStorageAccountResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocationInternal)TargetLocation).StorageAccountResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocationInternal)TargetLocation).StorageAccountResourceId = value ?? null; } /// Creates an new instance. public BackupConfiguration() @@ -290,15 +290,15 @@ internal partial interface IBackupConfigurationInternal /// Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } /// Source location of backups. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation SourceLocation { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation SourceLocation { get; set; } /// Source Azure Blob. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob SourceLocationAzureBlob { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob SourceLocationAzureBlob { get; set; } /// Source File share. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare SourceLocationFileShare { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare SourceLocationFileShare { get; set; } /// Backup storage Type. string SourceLocationFileStorageType { get; set; } /// Target location for copying backups. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation TargetLocation { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation TargetLocation { get; set; } /// Storage Account Key. string TargetLocationAccountKey { get; set; } /// Resource Id of the storage account copying backups. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/BackupConfiguration.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/BackupConfiguration.json.cs similarity index 93% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/BackupConfiguration.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/BackupConfiguration.json.cs index d1ffb8b4cd94..8bee6416502e 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/BackupConfiguration.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/BackupConfiguration.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -65,19 +65,19 @@ internal BackupConfiguration(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Ru { return; } - {_sourceLocation = If( json?.PropertyT("sourceLocation"), out var __jsonSourceLocation) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SourceLocation.FromJson(__jsonSourceLocation) : SourceLocation;} - {_targetLocation = If( json?.PropertyT("targetLocation"), out var __jsonTargetLocation) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.TargetLocation.FromJson(__jsonTargetLocation) : TargetLocation;} + {_sourceLocation = If( json?.PropertyT("sourceLocation"), out var __jsonSourceLocation) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SourceLocation.FromJson(__jsonSourceLocation) : SourceLocation;} + {_targetLocation = If( json?.PropertyT("targetLocation"), out var __jsonTargetLocation) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.TargetLocation.FromJson(__jsonTargetLocation) : TargetLocation;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new BackupConfiguration(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/CopyProgressDetails.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/CopyProgressDetails.PowerShell.cs similarity index 56% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/CopyProgressDetails.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/CopyProgressDetails.PowerShell.cs index c7d1ab18067b..e8f54ad2e6ad 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/CopyProgressDetails.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/CopyProgressDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class CopyProgressDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,53 +70,53 @@ internal CopyProgressDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("TableName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).TableName = (string) content.GetValueForProperty("TableName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).TableName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).TableName = (string) content.GetValueForProperty("TableName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).TableName, global::System.Convert.ToString); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).Status, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).Status, global::System.Convert.ToString); } if (content.Contains("ParallelCopyType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).ParallelCopyType = (string) content.GetValueForProperty("ParallelCopyType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).ParallelCopyType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).ParallelCopyType = (string) content.GetValueForProperty("ParallelCopyType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).ParallelCopyType, global::System.Convert.ToString); } if (content.Contains("UsedParallelCopy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).UsedParallelCopy = (int?) content.GetValueForProperty("UsedParallelCopy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).UsedParallelCopy, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).UsedParallelCopy = (int?) content.GetValueForProperty("UsedParallelCopy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).UsedParallelCopy, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("DataRead")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).DataRead = (long?) content.GetValueForProperty("DataRead",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).DataRead, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).DataRead = (long?) content.GetValueForProperty("DataRead",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).DataRead, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("DataWritten")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).DataWritten = (long?) content.GetValueForProperty("DataWritten",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).DataWritten, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).DataWritten = (long?) content.GetValueForProperty("DataWritten",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).DataWritten, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("RowsRead")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).RowsRead = (long?) content.GetValueForProperty("RowsRead",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).RowsRead, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).RowsRead = (long?) content.GetValueForProperty("RowsRead",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).RowsRead, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("RowsCopied")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).RowsCopied = (long?) content.GetValueForProperty("RowsCopied",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).RowsCopied, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).RowsCopied = (long?) content.GetValueForProperty("RowsCopied",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).RowsCopied, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("CopyStart")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).CopyStart = (global::System.DateTime?) content.GetValueForProperty("CopyStart",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).CopyStart, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).CopyStart = (global::System.DateTime?) content.GetValueForProperty("CopyStart",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).CopyStart, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CopyThroughput")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).CopyThroughput = (double?) content.GetValueForProperty("CopyThroughput",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).CopyThroughput, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).CopyThroughput = (double?) content.GetValueForProperty("CopyThroughput",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).CopyThroughput, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("CopyDuration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).CopyDuration = (int?) content.GetValueForProperty("CopyDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).CopyDuration, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).CopyDuration = (int?) content.GetValueForProperty("CopyDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).CopyDuration, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -131,75 +131,73 @@ internal CopyProgressDetails(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("TableName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).TableName = (string) content.GetValueForProperty("TableName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).TableName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).TableName = (string) content.GetValueForProperty("TableName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).TableName, global::System.Convert.ToString); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).Status, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).Status, global::System.Convert.ToString); } if (content.Contains("ParallelCopyType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).ParallelCopyType = (string) content.GetValueForProperty("ParallelCopyType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).ParallelCopyType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).ParallelCopyType = (string) content.GetValueForProperty("ParallelCopyType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).ParallelCopyType, global::System.Convert.ToString); } if (content.Contains("UsedParallelCopy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).UsedParallelCopy = (int?) content.GetValueForProperty("UsedParallelCopy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).UsedParallelCopy, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).UsedParallelCopy = (int?) content.GetValueForProperty("UsedParallelCopy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).UsedParallelCopy, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("DataRead")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).DataRead = (long?) content.GetValueForProperty("DataRead",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).DataRead, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).DataRead = (long?) content.GetValueForProperty("DataRead",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).DataRead, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("DataWritten")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).DataWritten = (long?) content.GetValueForProperty("DataWritten",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).DataWritten, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).DataWritten = (long?) content.GetValueForProperty("DataWritten",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).DataWritten, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("RowsRead")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).RowsRead = (long?) content.GetValueForProperty("RowsRead",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).RowsRead, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).RowsRead = (long?) content.GetValueForProperty("RowsRead",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).RowsRead, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("RowsCopied")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).RowsCopied = (long?) content.GetValueForProperty("RowsCopied",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).RowsCopied, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).RowsCopied = (long?) content.GetValueForProperty("RowsCopied",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).RowsCopied, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("CopyStart")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).CopyStart = (global::System.DateTime?) content.GetValueForProperty("CopyStart",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).CopyStart, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).CopyStart = (global::System.DateTime?) content.GetValueForProperty("CopyStart",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).CopyStart, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("CopyThroughput")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).CopyThroughput = (double?) content.GetValueForProperty("CopyThroughput",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).CopyThroughput, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).CopyThroughput = (double?) content.GetValueForProperty("CopyThroughput",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).CopyThroughput, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("CopyDuration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).CopyDuration = (int?) content.GetValueForProperty("CopyDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal)this).CopyDuration, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).CopyDuration = (int?) content.GetValueForProperty("CopyDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal)this).CopyDuration, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CopyProgressDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CopyProgressDetails(content); } @@ -209,7 +207,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.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/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/CopyProgressDetails.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/CopyProgressDetails.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/CopyProgressDetails.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/CopyProgressDetails.TypeConverter.cs index 27f3ab668987..6b649435093b 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/CopyProgressDetails.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/CopyProgressDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/CopyProgressDetails.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/CopyProgressDetails.cs similarity index 88% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/CopyProgressDetails.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/CopyProgressDetails.cs index d24f45a3281e..c705bca3a28f 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/CopyProgressDetails.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/CopyProgressDetails.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Details on progress of ADF copy activity public partial class CopyProgressDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal { /// Backing field for property. @@ -49,37 +49,37 @@ public partial class CopyProgressDetails : public long? DataWritten { get => this._dataWritten; } /// Internal Acessors for CopyDuration - int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal.CopyDuration { get => this._copyDuration; set { {_copyDuration = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal.CopyDuration { get => this._copyDuration; set { {_copyDuration = value;} } } /// Internal Acessors for CopyStart - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal.CopyStart { get => this._copyStart; set { {_copyStart = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal.CopyStart { get => this._copyStart; set { {_copyStart = value;} } } /// Internal Acessors for CopyThroughput - double? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal.CopyThroughput { get => this._copyThroughput; set { {_copyThroughput = value;} } } + double? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal.CopyThroughput { get => this._copyThroughput; set { {_copyThroughput = value;} } } /// Internal Acessors for DataRead - long? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal.DataRead { get => this._dataRead; set { {_dataRead = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal.DataRead { get => this._dataRead; set { {_dataRead = value;} } } /// Internal Acessors for DataWritten - long? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal.DataWritten { get => this._dataWritten; set { {_dataWritten = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal.DataWritten { get => this._dataWritten; set { {_dataWritten = value;} } } /// Internal Acessors for ParallelCopyType - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal.ParallelCopyType { get => this._parallelCopyType; set { {_parallelCopyType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal.ParallelCopyType { get => this._parallelCopyType; set { {_parallelCopyType = value;} } } /// Internal Acessors for RowsCopied - long? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal.RowsCopied { get => this._rowsCopied; set { {_rowsCopied = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal.RowsCopied { get => this._rowsCopied; set { {_rowsCopied = value;} } } /// Internal Acessors for RowsRead - long? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal.RowsRead { get => this._rowsRead; set { {_rowsRead = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal.RowsRead { get => this._rowsRead; set { {_rowsRead = value;} } } /// Internal Acessors for Status - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal.Status { get => this._status; set { {_status = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal.Status { get => this._status; set { {_status = value;} } } /// Internal Acessors for TableName - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal.TableName { get => this._tableName; set { {_tableName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal.TableName { get => this._tableName; set { {_tableName = value;} } } /// Internal Acessors for UsedParallelCopy - int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetailsInternal.UsedParallelCopy { get => this._usedParallelCopy; set { {_usedParallelCopy = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetailsInternal.UsedParallelCopy { get => this._usedParallelCopy; set { {_usedParallelCopy = value;} } } /// Backing field for property. private string _parallelCopyType; diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/CopyProgressDetails.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/CopyProgressDetails.json.cs similarity index 98% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/CopyProgressDetails.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/CopyProgressDetails.json.cs index 18c1844826b3..6449c1706fc8 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/CopyProgressDetails.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/CopyProgressDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -80,13 +80,13 @@ internal CopyProgressDetails(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Ru } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new CopyProgressDetails(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigration.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigration.PowerShell.cs similarity index 56% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigration.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigration.PowerShell.cs index cdd57a4d89e6..25316a30bfe7 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigration.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigration.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DatabaseMigration partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,7 +70,7 @@ internal DatabaseMigration(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -114,97 +114,97 @@ internal DatabaseMigration(global::System.Collections.IDictionary content) } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); } if (content.Contains("MigrationFailureError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfoTypeConverter.ConvertFrom); } if (content.Contains("Kind")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); } if (content.Contains("Scope")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).Scope, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).Scope, global::System.Convert.ToString); } if (content.Contains("MigrationStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).MigrationStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).MigrationStatus, global::System.Convert.ToString); } if (content.Contains("StartedOn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("EndedOn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("MigrationService")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).MigrationService, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).MigrationService, global::System.Convert.ToString); } if (content.Contains("MigrationOperationId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).MigrationOperationId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).MigrationOperationId, global::System.Convert.ToString); } if (content.Contains("ProvisioningError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).ProvisioningError, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).ProvisioningError, global::System.Convert.ToString); } if (content.Contains("SourceSqlConnection")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformationTypeConverter.ConvertFrom); } if (content.Contains("SourceDatabaseName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceDatabaseName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceDatabaseName, global::System.Convert.ToString); } if (content.Contains("SourceServerName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceServerName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceServerName, global::System.Convert.ToString); } if (content.Contains("TargetDatabaseCollation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); } if (content.Contains("MigrationFailureErrorCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); } if (content.Contains("MigrationFailureErrorMessage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); } if (content.Contains("SourceSqlConnectionDataSource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); } if (content.Contains("SourceSqlConnectionAuthentication")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); } if (content.Contains("SourceSqlConnectionUserName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); } if (content.Contains("SourceSqlConnectionPassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); } if (content.Contains("SourceSqlConnectionEncryptConnection")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("SourceSqlConnectionTrustServerCertificate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -219,7 +219,7 @@ internal DatabaseMigration(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -263,119 +263,117 @@ internal DatabaseMigration(global::System.Management.Automation.PSObject content } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); } if (content.Contains("MigrationFailureError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfoTypeConverter.ConvertFrom); } if (content.Contains("Kind")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); } if (content.Contains("Scope")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).Scope, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).Scope, global::System.Convert.ToString); } if (content.Contains("MigrationStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).MigrationStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).MigrationStatus, global::System.Convert.ToString); } if (content.Contains("StartedOn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("EndedOn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("MigrationService")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).MigrationService, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).MigrationService, global::System.Convert.ToString); } if (content.Contains("MigrationOperationId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).MigrationOperationId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).MigrationOperationId, global::System.Convert.ToString); } if (content.Contains("ProvisioningError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).ProvisioningError, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).ProvisioningError, global::System.Convert.ToString); } if (content.Contains("SourceSqlConnection")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformationTypeConverter.ConvertFrom); } if (content.Contains("SourceDatabaseName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceDatabaseName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceDatabaseName, global::System.Convert.ToString); } if (content.Contains("SourceServerName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceServerName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceServerName, global::System.Convert.ToString); } if (content.Contains("TargetDatabaseCollation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); } if (content.Contains("MigrationFailureErrorCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); } if (content.Contains("MigrationFailureErrorMessage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); } if (content.Contains("SourceSqlConnectionDataSource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); } if (content.Contains("SourceSqlConnectionAuthentication")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); } if (content.Contains("SourceSqlConnectionUserName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); } if (content.Contains("SourceSqlConnectionPassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); } if (content.Contains("SourceSqlConnectionEncryptConnection")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("SourceSqlConnectionTrustServerCertificate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DatabaseMigration(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DatabaseMigration(content); } @@ -385,7 +383,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.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/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigration.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigration.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigration.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigration.TypeConverter.cs index d45cf391c7fe..ea75e39596b9 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigration.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigration.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigration.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigration.cs similarity index 76% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigration.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigration.cs index c9fe47016689..e0941d7033df 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigration.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigration.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Database Migration Resource. public partial class DatabaseMigration : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IValidates { /// @@ -22,7 +22,7 @@ public partial class DatabaseMigration : /// Database migration end time. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public global::System.DateTime? EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn; } + public global::System.DateTime? EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn; } /// /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" @@ -33,37 +33,37 @@ public partial class DatabaseMigration : [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.FormatTable(Index = 2)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType? Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).Kind = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType? Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).Kind = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType)""); } /// Internal Acessors for EndedOn - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal.EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal.EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn = value; } /// Internal Acessors for MigrationFailureError - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal.MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureError = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal.MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureError = value; } /// Internal Acessors for MigrationFailureErrorCode - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal.MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal.MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode = value; } /// Internal Acessors for MigrationFailureErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal.MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal.MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage = value; } /// Internal Acessors for MigrationStatus - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal.MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal.MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationProperties Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationProperties Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for SourceServerName - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal.SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceServerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceServerName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal.SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceServerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceServerName = value; } /// Internal Acessors for SourceSqlConnection - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal.SourceSqlConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnection = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal.SourceSqlConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnection = value; } /// Internal Acessors for StartedOn - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationInternal.StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationInternal.StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn = value; } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.IResourceInternal)__resource).Id = value; } @@ -80,27 +80,27 @@ public partial class DatabaseMigration : /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode; } + public string MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode; } /// Error message. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage; } + public string MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage; } /// ID for current migration operation. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string MigrationOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationOperationId = value ?? null; } + public string MigrationOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationOperationId = value ?? null; } /// Resource Id of the Migration Service. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string MigrationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationService = value ?? null; } + public string MigrationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationService = value ?? null; } /// Migration status. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.FormatTable(Index = 4)] - public string MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus; } + public string MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] @@ -108,17 +108,17 @@ public partial class DatabaseMigration : public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.IResourceInternal)__resource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationProperties _property; /// Database Migration Resource properties. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationProperties()); set => this._property = value; } /// Error message for migration provisioning failure, if any. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string ProvisioningError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningError = value ?? null; } + public string ProvisioningError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningError = value ?? null; } /// /// Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration @@ -126,57 +126,57 @@ public partial class DatabaseMigration : /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.FormatTable(Index = 3)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState; } /// Resource Id of the target resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).Scope = value ?? null; } + public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).Scope = value ?? null; } /// Name of the source database. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SourceDatabaseName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceDatabaseName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceDatabaseName = value ?? null; } + public string SourceDatabaseName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceDatabaseName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceDatabaseName = value ?? null; } /// Name of the source sql server. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceServerName; } + public string SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceServerName; } /// Authentication type. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SourceSqlConnectionAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionAuthentication = value ?? null; } + public string SourceSqlConnectionAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionAuthentication = value ?? null; } /// Data source. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SourceSqlConnectionDataSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionDataSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionDataSource = value ?? null; } + public string SourceSqlConnectionDataSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionDataSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionDataSource = value ?? null; } /// Whether to encrypt connection or not. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public bool? SourceSqlConnectionEncryptConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionEncryptConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionEncryptConnection = value ?? default(bool); } + public bool? SourceSqlConnectionEncryptConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionEncryptConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionEncryptConnection = value ?? default(bool); } /// Password to connect to source SQL. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public System.Security.SecureString SourceSqlConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionPassword = value ?? null; } + public System.Security.SecureString SourceSqlConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionPassword = value ?? null; } /// Whether to trust server certificate or not. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public bool? SourceSqlConnectionTrustServerCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionTrustServerCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionTrustServerCertificate = value ?? default(bool); } + public bool? SourceSqlConnectionTrustServerCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionTrustServerCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionTrustServerCertificate = value ?? default(bool); } /// User name to connect to source SQL. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SourceSqlConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionUserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionUserName = value ?? null; } + public string SourceSqlConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionUserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionUserName = value ?? null; } /// Database migration start time. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public global::System.DateTime? StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn; } + public global::System.DateTime? StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -218,7 +218,7 @@ public partial class DatabaseMigration : /// Database collation to be used for the target database. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string TargetDatabaseCollation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).TargetDatabaseCollation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).TargetDatabaseCollation = value ?? null; } + public string TargetDatabaseCollation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).TargetDatabaseCollation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).TargetDatabaseCollation = value ?? null; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" @@ -424,7 +424,7 @@ internal partial interface IDatabaseMigrationInternal : Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType? Kind { get; set; } /// Error details in case of migration failure. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo MigrationFailureError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo MigrationFailureError { get; set; } /// Error code. string MigrationFailureErrorCode { get; set; } /// Error message. @@ -436,7 +436,7 @@ internal partial interface IDatabaseMigrationInternal : /// Migration status. string MigrationStatus { get; set; } /// Database Migration Resource properties. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationProperties Property { get; set; } /// Error message for migration provisioning failure, if any. string ProvisioningError { get; set; } /// @@ -451,7 +451,7 @@ internal partial interface IDatabaseMigrationInternal : /// Name of the source sql server. string SourceServerName { get; set; } /// Source SQL Server connection details. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation SourceSqlConnection { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation SourceSqlConnection { get; set; } /// Authentication type. string SourceSqlConnectionAuthentication { get; set; } /// Data source. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigration.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigration.json.cs similarity index 94% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigration.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigration.json.cs index 3dcc93ccf047..f9473ffb363b 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigration.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigration.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -66,18 +66,18 @@ internal DatabaseMigration(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runt return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new DatabaseMigration(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBase.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBase.PowerShell.cs similarity index 65% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBase.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBase.PowerShell.cs index 6c6b6df0e1e3..4b4ea965aea7 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBase.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBase.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DatabaseMigrationBase partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,7 +70,7 @@ internal DatabaseMigrationBase(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationBasePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationBasePropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -114,57 +114,57 @@ internal DatabaseMigrationBase(global::System.Collections.IDictionary content) } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); } if (content.Contains("MigrationFailureError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfoTypeConverter.ConvertFrom); } if (content.Contains("Kind")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); } if (content.Contains("Scope")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).Scope, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).Scope, global::System.Convert.ToString); } if (content.Contains("MigrationStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).MigrationStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).MigrationStatus, global::System.Convert.ToString); } if (content.Contains("StartedOn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("EndedOn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("MigrationService")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).MigrationService, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).MigrationService, global::System.Convert.ToString); } if (content.Contains("MigrationOperationId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).MigrationOperationId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).MigrationOperationId, global::System.Convert.ToString); } if (content.Contains("ProvisioningError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).ProvisioningError, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).ProvisioningError, global::System.Convert.ToString); } if (content.Contains("MigrationFailureErrorCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); } if (content.Contains("MigrationFailureErrorMessage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -179,7 +179,7 @@ internal DatabaseMigrationBase(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationBasePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationBasePropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -223,79 +223,79 @@ internal DatabaseMigrationBase(global::System.Management.Automation.PSObject con } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); } if (content.Contains("MigrationFailureError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfoTypeConverter.ConvertFrom); } if (content.Contains("Kind")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); } if (content.Contains("Scope")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).Scope, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).Scope, global::System.Convert.ToString); } if (content.Contains("MigrationStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).MigrationStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).MigrationStatus, global::System.Convert.ToString); } if (content.Contains("StartedOn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("EndedOn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("MigrationService")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).MigrationService, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).MigrationService, global::System.Convert.ToString); } if (content.Contains("MigrationOperationId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).MigrationOperationId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).MigrationOperationId, global::System.Convert.ToString); } if (content.Contains("ProvisioningError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).ProvisioningError, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).ProvisioningError, global::System.Convert.ToString); } if (content.Contains("MigrationFailureErrorCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); } if (content.Contains("MigrationFailureErrorMessage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBase DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBase DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DatabaseMigrationBase(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBase DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DatabaseMigrationBase(content); } @@ -305,7 +305,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBase FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBase.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBase.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBase.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBase.TypeConverter.cs index 2d9d947b5e90..01db33732564 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBase.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBase.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBase ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBase ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBase).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBase).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBase.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBase.cs similarity index 77% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBase.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBase.cs index 7d4f57608894..c717baca0069 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBase.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBase.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Database Migration Resource. public partial class DatabaseMigrationBase : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBase, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBase, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IValidates { /// @@ -21,7 +21,7 @@ public partial class DatabaseMigrationBase : /// Database migration end time. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public global::System.DateTime? EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn; } + public global::System.DateTime? EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn; } /// /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" @@ -30,31 +30,31 @@ public partial class DatabaseMigrationBase : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.IResourceInternal)__resource).Id; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType? Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).Kind = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType? Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).Kind = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType)""); } /// Internal Acessors for EndedOn - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal.EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal.EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn = value; } /// Internal Acessors for MigrationFailureError - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal.MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureError = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal.MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureError = value; } /// Internal Acessors for MigrationFailureErrorCode - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal.MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal.MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode = value; } /// Internal Acessors for MigrationFailureErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal.MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal.MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage = value; } /// Internal Acessors for MigrationStatus - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal.MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal.MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseProperties Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationBaseProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseProperties Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationBaseProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for StartedOn - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseInternal.StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseInternal.StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn = value; } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.IResourceInternal)__resource).Id = value; } @@ -70,53 +70,53 @@ public partial class DatabaseMigrationBase : /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode; } + public string MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode; } /// Error message. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage; } + public string MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage; } /// ID for current migration operation. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string MigrationOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationOperationId = value ?? null; } + public string MigrationOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationOperationId = value ?? null; } /// Resource Id of the Migration Service. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string MigrationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationService = value ?? null; } + public string MigrationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationService = value ?? null; } /// Migration status. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus; } + public string MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.IResourceInternal)__resource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseProperties _property; /// Database Migration Base Resource properties. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationBaseProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationBaseProperties()); set => this._property = value; } /// Error message for migration provisioning failure, if any. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string ProvisioningError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningError = value ?? null; } + public string ProvisioningError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningError = value ?? null; } /// /// Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration /// has started. /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState; } /// Resource Id of the target resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).Scope = value ?? null; } + public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).Scope = value ?? null; } /// Database migration start time. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public global::System.DateTime? StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn; } + public global::System.DateTime? StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -279,7 +279,7 @@ internal partial interface IDatabaseMigrationBaseInternal : Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType? Kind { get; set; } /// Error details in case of migration failure. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo MigrationFailureError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo MigrationFailureError { get; set; } /// Error code. string MigrationFailureErrorCode { get; set; } /// Error message. @@ -291,7 +291,7 @@ internal partial interface IDatabaseMigrationBaseInternal : /// Migration status. string MigrationStatus { get; set; } /// Database Migration Base Resource properties. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseProperties Property { get; set; } /// Error message for migration provisioning failure, if any. string ProvisioningError { get; set; } /// diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBase.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBase.json.cs similarity index 94% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBase.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBase.json.cs index ab05ccd667ea..1e649f9a362d 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBase.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBase.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -66,18 +66,18 @@ internal DatabaseMigrationBase(Microsoft.Azure.PowerShell.Cmdlets.DataMigration. return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationBaseProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationBaseProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBase. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBase. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBase. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBase. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBase FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new DatabaseMigrationBase(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBaseListResult.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBaseListResult.PowerShell.cs similarity index 72% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBaseListResult.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBaseListResult.PowerShell.cs index 966e003c0d5d..2d324c1300eb 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBaseListResult.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBaseListResult.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DatabaseMigrationBaseListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,17 +70,17 @@ internal DatabaseMigrationBaseListResult(global::System.Collections.IDictionary // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBase[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationBaseTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBase[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationBaseTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -95,39 +95,39 @@ internal DatabaseMigrationBaseListResult(global::System.Management.Automation.PS // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBase[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationBaseTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBase[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationBaseTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DatabaseMigrationBaseListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DatabaseMigrationBaseListResult(content); } @@ -137,7 +137,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBaseListResult.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBaseListResult.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBaseListResult.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBaseListResult.TypeConverter.cs index 15cdf7418167..ea6aaf15367d 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBaseListResult.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBaseListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBaseListResult.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBaseListResult.cs similarity index 77% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBaseListResult.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBaseListResult.cs index 4b7ec48bbc94..22cdd91f5147 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBaseListResult.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBaseListResult.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// A list of Database Migrations. public partial class DatabaseMigrationBaseListResult : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseListResult, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseListResult, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBase[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseListResultInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBase[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseListResultInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -26,10 +26,10 @@ public partial class DatabaseMigrationBaseListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBase[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBase[] _value; [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBase[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBase[] Value { get => this._value; } /// Creates an new instance. public DatabaseMigrationBaseListResult() @@ -54,8 +54,8 @@ public partial interface IDatabaseMigrationBaseListResult : ReadOnly = true, Description = @"", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBase) })] - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBase[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBase) })] + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBase[] Value { get; } } /// A list of Database Migrations. @@ -64,7 +64,7 @@ internal partial interface IDatabaseMigrationBaseListResultInternal { string NextLink { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBase[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBase[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBaseListResult.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBaseListResult.json.cs similarity index 92% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBaseListResult.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBaseListResult.json.cs index 4899f641c725..408d2fb89cdd 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBaseListResult.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBaseListResult.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DatabaseMigrationBaseListResult(Microsoft.Azure.PowerShell.Cmdlets.Data { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBase) (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationBase.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBase) (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationBase.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new DatabaseMigrationBaseListResult(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBaseProperties.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBaseProperties.PowerShell.cs similarity index 50% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBaseProperties.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBaseProperties.PowerShell.cs index ff5b701fd430..f935fbe51724 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBaseProperties.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBaseProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DatabaseMigrationBaseProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,57 +70,57 @@ internal DatabaseMigrationBaseProperties(global::System.Collections.IDictionary // actually deserialize if (content.Contains("MigrationFailureError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfoTypeConverter.ConvertFrom); } if (content.Contains("Kind")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); } if (content.Contains("Scope")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Scope, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Scope, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); } if (content.Contains("MigrationStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus, global::System.Convert.ToString); } if (content.Contains("StartedOn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("EndedOn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("MigrationService")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationService, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationService, global::System.Convert.ToString); } if (content.Contains("MigrationOperationId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId, global::System.Convert.ToString); } if (content.Contains("ProvisioningError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError, global::System.Convert.ToString); } if (content.Contains("MigrationFailureErrorCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); } if (content.Contains("MigrationFailureErrorMessage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -135,79 +135,79 @@ internal DatabaseMigrationBaseProperties(global::System.Management.Automation.PS // actually deserialize if (content.Contains("MigrationFailureError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfoTypeConverter.ConvertFrom); } if (content.Contains("Kind")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); } if (content.Contains("Scope")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).Scope, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Scope, global::System.Convert.ToString); } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); } if (content.Contains("MigrationStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus, global::System.Convert.ToString); } if (content.Contains("StartedOn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("EndedOn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("MigrationService")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationService, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationService, global::System.Convert.ToString); } if (content.Contains("MigrationOperationId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId, global::System.Convert.ToString); } if (content.Contains("ProvisioningError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError, global::System.Convert.ToString); } if (content.Contains("MigrationFailureErrorCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); } if (content.Contains("MigrationFailureErrorMessage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DatabaseMigrationBaseProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DatabaseMigrationBaseProperties(content); } @@ -217,7 +217,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBaseProperties.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBaseProperties.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBaseProperties.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBaseProperties.TypeConverter.cs index d1290c94c3f4..7a57ac8d4d99 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBaseProperties.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBaseProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBaseProperties.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBaseProperties.cs similarity index 84% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBaseProperties.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBaseProperties.cs index 300706ffabbc..e5c95f72ee28 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBaseProperties.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBaseProperties.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Database Migration Base Resource properties. public partial class DatabaseMigrationBaseProperties : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseProperties, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseProperties, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal { /// Backing field for property. @@ -27,40 +27,40 @@ public partial class DatabaseMigrationBaseProperties : public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType Kind { get => this._kind; set => this._kind = value; } /// Internal Acessors for EndedOn - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.EndedOn { get => this._endedOn; set { {_endedOn = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.EndedOn { get => this._endedOn; set { {_endedOn = value;} } } /// Internal Acessors for MigrationFailureError - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.MigrationFailureError { get => (this._migrationFailureError = this._migrationFailureError ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfo()); set { {_migrationFailureError = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.MigrationFailureError { get => (this._migrationFailureError = this._migrationFailureError ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfo()); set { {_migrationFailureError = value;} } } /// Internal Acessors for MigrationFailureErrorCode - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfoInternal)MigrationFailureError).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfoInternal)MigrationFailureError).Code = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfoInternal)MigrationFailureError).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfoInternal)MigrationFailureError).Code = value; } /// Internal Acessors for MigrationFailureErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfoInternal)MigrationFailureError).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfoInternal)MigrationFailureError).Message = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfoInternal)MigrationFailureError).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfoInternal)MigrationFailureError).Message = value; } /// Internal Acessors for MigrationStatus - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.MigrationStatus { get => this._migrationStatus; set { {_migrationStatus = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.MigrationStatus { get => this._migrationStatus; set { {_migrationStatus = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Internal Acessors for StartedOn - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.StartedOn { get => this._startedOn; set { {_startedOn = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.StartedOn { get => this._startedOn; set { {_startedOn = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo _migrationFailureError; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo _migrationFailureError; /// Error details in case of migration failure. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo MigrationFailureError { get => (this._migrationFailureError = this._migrationFailureError ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfo()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo MigrationFailureError { get => (this._migrationFailureError = this._migrationFailureError ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfo()); } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfoInternal)MigrationFailureError).Code; } + public string MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfoInternal)MigrationFailureError).Code; } /// Error message. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfoInternal)MigrationFailureError).Message; } + public string MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfoInternal)MigrationFailureError).Message; } /// Backing field for property. private string _migrationOperationId; @@ -226,7 +226,7 @@ internal partial interface IDatabaseMigrationBasePropertiesInternal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType Kind { get; set; } /// Error details in case of migration failure. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo MigrationFailureError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo MigrationFailureError { get; set; } /// Error code. string MigrationFailureErrorCode { get; set; } /// Error message. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBaseProperties.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBaseProperties.json.cs similarity index 95% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBaseProperties.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBaseProperties.json.cs index 07b510140535..3bab4743002d 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationBaseProperties.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationBaseProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -65,7 +65,7 @@ internal DatabaseMigrationBaseProperties(Microsoft.Azure.PowerShell.Cmdlets.Data { return; } - {_migrationFailureError = If( json?.PropertyT("migrationFailureError"), out var __jsonMigrationFailureError) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfo.FromJson(__jsonMigrationFailureError) : MigrationFailureError;} + {_migrationFailureError = If( json?.PropertyT("migrationFailureError"), out var __jsonMigrationFailureError) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfo.FromJson(__jsonMigrationFailureError) : MigrationFailureError;} {_kind = If( json?.PropertyT("kind"), out var __jsonKind) ? (string)__jsonKind : (string)Kind;} {_scope = If( json?.PropertyT("scope"), out var __jsonScope) ? (string)__jsonScope : (string)Scope;} {_provisioningState = If( json?.PropertyT("provisioningState"), out var __jsonProvisioningState) ? (string)__jsonProvisioningState : (string)ProvisioningState;} @@ -79,16 +79,15 @@ internal DatabaseMigrationBaseProperties(Microsoft.Azure.PowerShell.Cmdlets.Data } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseProperties. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseProperties - /// interface is polymorphic, and the precise model class that will get deserialized is determined at runtime based on the - /// payload. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseProperties. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseProperties interface + /// is polymorphic, and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json)) { diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationCosmosDbMongo.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationCosmosDbMongo.PowerShell.cs similarity index 51% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationCosmosDbMongo.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationCosmosDbMongo.PowerShell.cs index 1c282e0df443..6eb5160892e3 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationCosmosDbMongo.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationCosmosDbMongo.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DatabaseMigrationCosmosDbMongo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,7 +70,7 @@ internal DatabaseMigrationCosmosDbMongo(global::System.Collections.IDictionary c // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongo) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesCosmosDbMongoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongo) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesCosmosDbMongoTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -114,117 +114,117 @@ internal DatabaseMigrationCosmosDbMongo(global::System.Collections.IDictionary c } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); } if (content.Contains("MigrationFailureError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfoTypeConverter.ConvertFrom); } if (content.Contains("Kind")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); } if (content.Contains("Scope")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).Scope, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).Scope, global::System.Convert.ToString); } if (content.Contains("MigrationStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationStatus, global::System.Convert.ToString); } if (content.Contains("StartedOn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("EndedOn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("MigrationService")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationService, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationService, global::System.Convert.ToString); } if (content.Contains("MigrationOperationId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationOperationId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationOperationId, global::System.Convert.ToString); } if (content.Contains("ProvisioningError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).ProvisioningError, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).ProvisioningError, global::System.Convert.ToString); } if (content.Contains("SourceMongoConnection")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation) content.GetValueForProperty("SourceMongoConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoConnectionInformationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation) content.GetValueForProperty("SourceMongoConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoConnectionInformationTypeConverter.ConvertFrom); } if (content.Contains("TargetMongoConnection")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation) content.GetValueForProperty("TargetMongoConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoConnectionInformationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation) content.GetValueForProperty("TargetMongoConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoConnectionInformationTypeConverter.ConvertFrom); } if (content.Contains("CollectionList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).CollectionList = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollection[]) content.GetValueForProperty("CollectionList",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).CollectionList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoMigrationCollectionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).CollectionList = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollection[]) content.GetValueForProperty("CollectionList",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).CollectionList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoMigrationCollectionTypeConverter.ConvertFrom)); } if (content.Contains("MigrationFailureErrorCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); } if (content.Contains("MigrationFailureErrorMessage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); } if (content.Contains("SourceMongoConnectionHost")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionHost = (string) content.GetValueForProperty("SourceMongoConnectionHost",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionHost, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionHost = (string) content.GetValueForProperty("SourceMongoConnectionHost",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionHost, global::System.Convert.ToString); } if (content.Contains("SourceMongoConnectionPort")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionPort = (int?) content.GetValueForProperty("SourceMongoConnectionPort",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionPort = (int?) content.GetValueForProperty("SourceMongoConnectionPort",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("SourceMongoConnectionUserName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionUserName = (string) content.GetValueForProperty("SourceMongoConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionUserName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionUserName = (string) content.GetValueForProperty("SourceMongoConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionUserName, global::System.Convert.ToString); } if (content.Contains("SourceMongoConnectionPassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceMongoConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionPassword, (object ss) => (System.Security.SecureString)ss); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceMongoConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionPassword, (object ss) => (System.Security.SecureString)ss); } if (content.Contains("SourceMongoConnectionUseSsl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionUseSsl = (bool?) content.GetValueForProperty("SourceMongoConnectionUseSsl",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionUseSsl, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionUseSsl = (bool?) content.GetValueForProperty("SourceMongoConnectionUseSsl",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionUseSsl, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("SourceMongoConnectionString")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionString = (string) content.GetValueForProperty("SourceMongoConnectionString",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionString, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionString = (string) content.GetValueForProperty("SourceMongoConnectionString",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionString, global::System.Convert.ToString); } if (content.Contains("TargetMongoConnectionHost")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionHost = (string) content.GetValueForProperty("TargetMongoConnectionHost",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionHost, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionHost = (string) content.GetValueForProperty("TargetMongoConnectionHost",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionHost, global::System.Convert.ToString); } if (content.Contains("TargetMongoConnectionPort")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionPort = (int?) content.GetValueForProperty("TargetMongoConnectionPort",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionPort = (int?) content.GetValueForProperty("TargetMongoConnectionPort",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("TargetMongoConnectionUserName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionUserName = (string) content.GetValueForProperty("TargetMongoConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionUserName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionUserName = (string) content.GetValueForProperty("TargetMongoConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionUserName, global::System.Convert.ToString); } if (content.Contains("TargetMongoConnectionPassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("TargetMongoConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionPassword, (object ss) => (System.Security.SecureString)ss); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("TargetMongoConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionPassword, (object ss) => (System.Security.SecureString)ss); } if (content.Contains("TargetMongoConnectionUseSsl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionUseSsl = (bool?) content.GetValueForProperty("TargetMongoConnectionUseSsl",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionUseSsl, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionUseSsl = (bool?) content.GetValueForProperty("TargetMongoConnectionUseSsl",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionUseSsl, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("TargetMongoConnectionString")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionString = (string) content.GetValueForProperty("TargetMongoConnectionString",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionString, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionString = (string) content.GetValueForProperty("TargetMongoConnectionString",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionString, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -239,7 +239,7 @@ internal DatabaseMigrationCosmosDbMongo(global::System.Management.Automation.PSO // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongo) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesCosmosDbMongoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongo) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesCosmosDbMongoTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -283,139 +283,139 @@ internal DatabaseMigrationCosmosDbMongo(global::System.Management.Automation.PSO } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); } if (content.Contains("MigrationFailureError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ErrorInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfoTypeConverter.ConvertFrom); } if (content.Contains("Kind")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); } if (content.Contains("Scope")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).Scope, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).Scope, global::System.Convert.ToString); } if (content.Contains("MigrationStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationStatus, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationStatus, global::System.Convert.ToString); } if (content.Contains("StartedOn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("EndedOn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("MigrationService")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationService, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationService, global::System.Convert.ToString); } if (content.Contains("MigrationOperationId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationOperationId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationOperationId, global::System.Convert.ToString); } if (content.Contains("ProvisioningError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).ProvisioningError, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).ProvisioningError, global::System.Convert.ToString); } if (content.Contains("SourceMongoConnection")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation) content.GetValueForProperty("SourceMongoConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoConnectionInformationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation) content.GetValueForProperty("SourceMongoConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoConnectionInformationTypeConverter.ConvertFrom); } if (content.Contains("TargetMongoConnection")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation) content.GetValueForProperty("TargetMongoConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoConnectionInformationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation) content.GetValueForProperty("TargetMongoConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoConnectionInformationTypeConverter.ConvertFrom); } if (content.Contains("CollectionList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).CollectionList = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollection[]) content.GetValueForProperty("CollectionList",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).CollectionList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoMigrationCollectionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).CollectionList = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollection[]) content.GetValueForProperty("CollectionList",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).CollectionList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoMigrationCollectionTypeConverter.ConvertFrom)); } if (content.Contains("MigrationFailureErrorCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); } if (content.Contains("MigrationFailureErrorMessage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); } if (content.Contains("SourceMongoConnectionHost")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionHost = (string) content.GetValueForProperty("SourceMongoConnectionHost",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionHost, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionHost = (string) content.GetValueForProperty("SourceMongoConnectionHost",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionHost, global::System.Convert.ToString); } if (content.Contains("SourceMongoConnectionPort")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionPort = (int?) content.GetValueForProperty("SourceMongoConnectionPort",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionPort = (int?) content.GetValueForProperty("SourceMongoConnectionPort",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("SourceMongoConnectionUserName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionUserName = (string) content.GetValueForProperty("SourceMongoConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionUserName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionUserName = (string) content.GetValueForProperty("SourceMongoConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionUserName, global::System.Convert.ToString); } if (content.Contains("SourceMongoConnectionPassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceMongoConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionPassword, (object ss) => (System.Security.SecureString)ss); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceMongoConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionPassword, (object ss) => (System.Security.SecureString)ss); } if (content.Contains("SourceMongoConnectionUseSsl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionUseSsl = (bool?) content.GetValueForProperty("SourceMongoConnectionUseSsl",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionUseSsl, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionUseSsl = (bool?) content.GetValueForProperty("SourceMongoConnectionUseSsl",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionUseSsl, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("SourceMongoConnectionString")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionString = (string) content.GetValueForProperty("SourceMongoConnectionString",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionString, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionString = (string) content.GetValueForProperty("SourceMongoConnectionString",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).SourceMongoConnectionString, global::System.Convert.ToString); } if (content.Contains("TargetMongoConnectionHost")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionHost = (string) content.GetValueForProperty("TargetMongoConnectionHost",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionHost, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionHost = (string) content.GetValueForProperty("TargetMongoConnectionHost",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionHost, global::System.Convert.ToString); } if (content.Contains("TargetMongoConnectionPort")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionPort = (int?) content.GetValueForProperty("TargetMongoConnectionPort",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionPort = (int?) content.GetValueForProperty("TargetMongoConnectionPort",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("TargetMongoConnectionUserName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionUserName = (string) content.GetValueForProperty("TargetMongoConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionUserName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionUserName = (string) content.GetValueForProperty("TargetMongoConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionUserName, global::System.Convert.ToString); } if (content.Contains("TargetMongoConnectionPassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("TargetMongoConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionPassword, (object ss) => (System.Security.SecureString)ss); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("TargetMongoConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionPassword, (object ss) => (System.Security.SecureString)ss); } if (content.Contains("TargetMongoConnectionUseSsl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionUseSsl = (bool?) content.GetValueForProperty("TargetMongoConnectionUseSsl",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionUseSsl, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionUseSsl = (bool?) content.GetValueForProperty("TargetMongoConnectionUseSsl",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionUseSsl, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("TargetMongoConnectionString")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionString = (string) content.GetValueForProperty("TargetMongoConnectionString",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionString, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionString = (string) content.GetValueForProperty("TargetMongoConnectionString",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal)this).TargetMongoConnectionString, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DatabaseMigrationCosmosDbMongo(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DatabaseMigrationCosmosDbMongo(content); } @@ -425,7 +425,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationCosmosDbMongo.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationCosmosDbMongo.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationCosmosDbMongo.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationCosmosDbMongo.TypeConverter.cs index cedff790483a..ee078a714354 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationCosmosDbMongo.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationCosmosDbMongo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationCosmosDbMongo.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationCosmosDbMongo.cs similarity index 72% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationCosmosDbMongo.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationCosmosDbMongo.cs index 5fa24fdd48f7..82c5cc656a6c 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationCosmosDbMongo.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationCosmosDbMongo.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Database Migration Resource for Mongo to CosmosDb. public partial class DatabaseMigrationCosmosDbMongo : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IValidates { /// @@ -21,11 +21,11 @@ public partial class DatabaseMigrationCosmosDbMongo : /// List of Mongo Collections to be migrated. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollection[] CollectionList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).CollectionList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).CollectionList = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollection[] CollectionList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).CollectionList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).CollectionList = value ?? null /* arrayOf */; } /// Database migration end time. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public global::System.DateTime? EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn; } + public global::System.DateTime? EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn; } /// /// Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" @@ -34,37 +34,37 @@ public partial class DatabaseMigrationCosmosDbMongo : public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.IResourceInternal)__resource).Id; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType? Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).Kind = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType? Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).Kind = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType)""); } /// Internal Acessors for EndedOn - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal.EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal.EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn = value; } /// Internal Acessors for MigrationFailureError - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal.MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureError = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal.MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureError = value; } /// Internal Acessors for MigrationFailureErrorCode - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal.MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal.MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode = value; } /// Internal Acessors for MigrationFailureErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal.MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal.MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage = value; } /// Internal Acessors for MigrationStatus - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal.MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal.MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesCosmosDbMongo()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesCosmosDbMongo()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for SourceMongoConnection - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal.SourceMongoConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnection = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal.SourceMongoConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnection = value; } /// Internal Acessors for StartedOn - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal.StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal.StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn = value; } /// Internal Acessors for TargetMongoConnection - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoInternal.TargetMongoConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnection = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoInternal.TargetMongoConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnection = value; } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.IResourceInternal)__resource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.IResourceInternal)__resource).Id = value; } @@ -80,77 +80,77 @@ public partial class DatabaseMigrationCosmosDbMongo : /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode; } + public string MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode; } /// Error message. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage; } + public string MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage; } /// ID for current migration operation. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string MigrationOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationOperationId = value ?? null; } + public string MigrationOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationOperationId = value ?? null; } /// Resource Id of the Migration Service. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string MigrationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationService = value ?? null; } + public string MigrationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationService = value ?? null; } /// Migration status. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus; } + public string MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus; } /// The name of the resource [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.IResourceInternal)__resource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongo _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongo _property; /// Database Migration Resource properties for CosmosDb for Mongo. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongo Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesCosmosDbMongo()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongo Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesCosmosDbMongo()); set => this._property = value; } /// Error message for migration provisioning failure, if any. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string ProvisioningError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningError = value ?? null; } + public string ProvisioningError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningError = value ?? null; } /// /// Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration /// has started. /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState; } /// Resource Id of the target resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).Scope = value ?? null; } + public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).Scope = value ?? null; } /// Host of mongo connection. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string SourceMongoConnectionHost { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnectionHost; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnectionHost = value ?? null; } + public string SourceMongoConnectionHost { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnectionHost; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnectionHost = value ?? null; } /// Password to connect to Mongo. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public System.Security.SecureString SourceMongoConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnectionPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnectionPassword = value ?? null; } + public System.Security.SecureString SourceMongoConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnectionPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnectionPassword = value ?? null; } /// Port of mongo connection. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public int? SourceMongoConnectionPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnectionPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnectionPort = value ?? default(int); } + public int? SourceMongoConnectionPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnectionPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnectionPort = value ?? default(int); } /// ConnectionString to connect to Mongo. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string SourceMongoConnectionString { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnectionString; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnectionString = value ?? null; } + public string SourceMongoConnectionString { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnectionString; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnectionString = value ?? null; } /// Whether to UseSsl or UseTls to connect to Mongo. Default is true. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public bool? SourceMongoConnectionUseSsl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnectionUseSsl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnectionUseSsl = value ?? default(bool); } + public bool? SourceMongoConnectionUseSsl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnectionUseSsl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnectionUseSsl = value ?? default(bool); } /// User name to connect to Mongo. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string SourceMongoConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnectionUserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnectionUserName = value ?? null; } + public string SourceMongoConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnectionUserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).SourceMongoConnectionUserName = value ?? null; } /// Database migration start time. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public global::System.DateTime? StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn; } + public global::System.DateTime? StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -184,27 +184,27 @@ public partial class DatabaseMigrationCosmosDbMongo : /// Host of mongo connection. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string TargetMongoConnectionHost { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnectionHost; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnectionHost = value ?? null; } + public string TargetMongoConnectionHost { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnectionHost; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnectionHost = value ?? null; } /// Password to connect to Mongo. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public System.Security.SecureString TargetMongoConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnectionPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnectionPassword = value ?? null; } + public System.Security.SecureString TargetMongoConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnectionPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnectionPassword = value ?? null; } /// Port of mongo connection. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public int? TargetMongoConnectionPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnectionPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnectionPort = value ?? default(int); } + public int? TargetMongoConnectionPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnectionPort; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnectionPort = value ?? default(int); } /// ConnectionString to connect to Mongo. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string TargetMongoConnectionString { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnectionString; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnectionString = value ?? null; } + public string TargetMongoConnectionString { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnectionString; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnectionString = value ?? null; } /// Whether to UseSsl or UseTls to connect to Mongo. Default is true. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public bool? TargetMongoConnectionUseSsl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnectionUseSsl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnectionUseSsl = value ?? default(bool); } + public bool? TargetMongoConnectionUseSsl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnectionUseSsl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnectionUseSsl = value ?? default(bool); } /// User name to connect to Mongo. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string TargetMongoConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnectionUserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnectionUserName = value ?? null; } + public string TargetMongoConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnectionUserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)Property).TargetMongoConnectionUserName = value ?? null; } /// /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" @@ -241,8 +241,8 @@ public partial interface IDatabaseMigrationCosmosDbMongo : ReadOnly = false, Description = @"List of Mongo Collections to be migrated.", SerializedName = @"collectionList", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollection) })] - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollection[] CollectionList { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollection) })] + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollection[] CollectionList { get; set; } /// Database migration end time. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( Required = false, @@ -437,13 +437,13 @@ internal partial interface IDatabaseMigrationCosmosDbMongoInternal : Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.IResourceInternal { /// List of Mongo Collections to be migrated. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollection[] CollectionList { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollection[] CollectionList { get; set; } /// Database migration end time. global::System.DateTime? EndedOn { get; set; } Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType? Kind { get; set; } /// Error details in case of migration failure. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo MigrationFailureError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo MigrationFailureError { get; set; } /// Error code. string MigrationFailureErrorCode { get; set; } /// Error message. @@ -455,7 +455,7 @@ internal partial interface IDatabaseMigrationCosmosDbMongoInternal : /// Migration status. string MigrationStatus { get; set; } /// Database Migration Resource properties for CosmosDb for Mongo. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongo Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongo Property { get; set; } /// Error message for migration provisioning failure, if any. string ProvisioningError { get; set; } /// @@ -466,7 +466,7 @@ internal partial interface IDatabaseMigrationCosmosDbMongoInternal : /// Resource Id of the target resource. string Scope { get; set; } /// Source Mongo connection details. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation SourceMongoConnection { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation SourceMongoConnection { get; set; } /// Host of mongo connection. string SourceMongoConnectionHost { get; set; } /// Password to connect to Mongo. @@ -482,7 +482,7 @@ internal partial interface IDatabaseMigrationCosmosDbMongoInternal : /// Database migration start time. global::System.DateTime? StartedOn { get; set; } /// Target Cosmos DB Mongo connection details. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation TargetMongoConnection { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation TargetMongoConnection { get; set; } /// Host of mongo connection. string TargetMongoConnectionHost { get; set; } /// Password to connect to Mongo. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationCosmosDbMongo.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationCosmosDbMongo.json.cs similarity index 94% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationCosmosDbMongo.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationCosmosDbMongo.json.cs index c768592672bd..12008e564fec 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationCosmosDbMongo.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationCosmosDbMongo.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -66,18 +66,18 @@ internal DatabaseMigrationCosmosDbMongo(Microsoft.Azure.PowerShell.Cmdlets.DataM return; } __resource = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesCosmosDbMongo.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesCosmosDbMongo.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new DatabaseMigrationCosmosDbMongo(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationCosmosDbMongoListResult.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationCosmosDbMongoListResult.PowerShell.cs similarity index 71% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationCosmosDbMongoListResult.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationCosmosDbMongoListResult.PowerShell.cs index cbe739159ff5..90537305a5e5 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationCosmosDbMongoListResult.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationCosmosDbMongoListResult.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DatabaseMigrationCosmosDbMongoListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,17 +70,17 @@ internal DatabaseMigrationCosmosDbMongoListResult(global::System.Collections.IDi // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationCosmosDbMongoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationCosmosDbMongoTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -95,39 +95,39 @@ internal DatabaseMigrationCosmosDbMongoListResult(global::System.Management.Auto // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationCosmosDbMongoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationCosmosDbMongoTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DatabaseMigrationCosmosDbMongoListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DatabaseMigrationCosmosDbMongoListResult(content); } @@ -140,7 +140,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationCosmosDbMongoListResult.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationCosmosDbMongoListResult.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationCosmosDbMongoListResult.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationCosmosDbMongoListResult.TypeConverter.cs index fd864ca665d6..618df07723b6 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationCosmosDbMongoListResult.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationCosmosDbMongoListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationCosmosDbMongoListResult.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationCosmosDbMongoListResult.cs similarity index 75% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationCosmosDbMongoListResult.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationCosmosDbMongoListResult.cs index 5f71fbe506b8..673d63ba61a4 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationCosmosDbMongoListResult.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationCosmosDbMongoListResult.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// A list of Database Migrations. public partial class DatabaseMigrationCosmosDbMongoListResult : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoListResult, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoListResult, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoListResultInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoListResultInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -26,10 +26,10 @@ public partial class DatabaseMigrationCosmosDbMongoListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo[] _value; [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo[] Value { get => this._value; } /// /// Creates an new instance. @@ -56,8 +56,8 @@ public partial interface IDatabaseMigrationCosmosDbMongoListResult : ReadOnly = true, Description = @"", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo[] Value { get; } } /// A list of Database Migrations. @@ -66,7 +66,7 @@ internal partial interface IDatabaseMigrationCosmosDbMongoListResultInternal { string NextLink { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationCosmosDbMongoListResult.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationCosmosDbMongoListResult.json.cs similarity index 91% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationCosmosDbMongoListResult.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationCosmosDbMongoListResult.json.cs index 0c08cfed5259..7b368107ef67 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationCosmosDbMongoListResult.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationCosmosDbMongoListResult.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DatabaseMigrationCosmosDbMongoListResult(Microsoft.Azure.PowerShell.Cmd { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongo) (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationCosmosDbMongo.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongo) (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationCosmosDbMongo.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationCosmosDbMongoListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationCosmosDbMongoListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new DatabaseMigrationCosmosDbMongoListResult(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationListResult.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationListResult.PowerShell.cs similarity index 73% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationListResult.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationListResult.PowerShell.cs index 901d5c0ff195..0efc52483715 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationListResult.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationListResult.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DatabaseMigrationListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,17 +70,17 @@ internal DatabaseMigrationListResult(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -95,39 +95,39 @@ internal DatabaseMigrationListResult(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DatabaseMigrationListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DatabaseMigrationListResult(content); } @@ -137,7 +137,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.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/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationListResult.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationListResult.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationListResult.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationListResult.TypeConverter.cs index 5b63c6daf77d..2abfa9b4fc42 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationListResult.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationListResult.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationListResult.cs similarity index 78% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationListResult.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationListResult.cs index 9d6efea6f438..7f3621c77004 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationListResult.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationListResult.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// A list of Database Migrations. public partial class DatabaseMigrationListResult : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationListResult, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationListResult, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationListResultInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationListResultInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -26,10 +26,10 @@ public partial class DatabaseMigrationListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration[] _value; [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration[] Value { get => this._value; } /// Creates an new instance. public DatabaseMigrationListResult() @@ -54,8 +54,8 @@ public partial interface IDatabaseMigrationListResult : ReadOnly = true, Description = @"", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration) })] - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration) })] + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration[] Value { get; } } /// A list of Database Migrations. @@ -64,7 +64,7 @@ internal partial interface IDatabaseMigrationListResultInternal { string NextLink { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationListResult.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationListResult.json.cs similarity index 92% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationListResult.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationListResult.json.cs index 4cbd3aa0b9de..a8a53630f1a7 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationListResult.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationListResult.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DatabaseMigrationListResult(Microsoft.Azure.PowerShell.Cmdlets.DataMigr { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration) (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigration.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration) (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigration.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new DatabaseMigrationListResult(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationProperties.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationProperties.PowerShell.cs new file mode 100644 index 000000000000..d1a7a17ff796 --- /dev/null +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationProperties.PowerShell.cs @@ -0,0 +1,314 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; + + /// Database Migration Resource properties. + [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationPropertiesTypeConverter))] + public partial class DatabaseMigrationProperties + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DatabaseMigrationProperties(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SourceSqlConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformationTypeConverter.ConvertFrom); + } + if (content.Contains("SourceDatabaseName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName, global::System.Convert.ToString); + } + if (content.Contains("SourceServerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceServerName, global::System.Convert.ToString); + } + if (content.Contains("TargetDatabaseCollation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfoTypeConverter.ConvertFrom); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Scope, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("MigrationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus, global::System.Convert.ToString); + } + if (content.Contains("StartedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MigrationService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationService, global::System.Convert.ToString); + } + if (content.Contains("MigrationOperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionDataSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionAuthentication")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionUserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("SourceSqlConnectionEncryptConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SourceSqlConnectionTrustServerCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DatabaseMigrationProperties(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SourceSqlConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformationTypeConverter.ConvertFrom); + } + if (content.Contains("SourceDatabaseName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName, global::System.Convert.ToString); + } + if (content.Contains("SourceServerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceServerName, global::System.Convert.ToString); + } + if (content.Contains("TargetDatabaseCollation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfoTypeConverter.ConvertFrom); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Scope, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("MigrationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus, global::System.Convert.ToString); + } + if (content.Contains("StartedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MigrationService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationService, global::System.Convert.ToString); + } + if (content.Contains("MigrationOperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionDataSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionAuthentication")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionUserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("SourceSqlConnectionEncryptConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SourceSqlConnectionTrustServerCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DatabaseMigrationProperties(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DatabaseMigrationProperties(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Database Migration Resource properties. + [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationPropertiesTypeConverter))] + public partial interface IDatabaseMigrationProperties + + { + + } +} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationProperties.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationProperties.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationProperties.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationProperties.TypeConverter.cs index 4cc66910885a..20681fa31236 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationProperties.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationProperties.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationProperties.cs similarity index 63% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationProperties.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationProperties.cs index 36b32100cd79..40a1eb86eb2c 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationProperties.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationProperties.cs @@ -3,94 +3,94 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Database Migration Resource properties. public partial class DatabaseMigrationProperties : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationProperties, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationProperties, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseProperties __databaseMigrationBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationBaseProperties(); + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseProperties __databaseMigrationBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationBaseProperties(); /// Database migration end time. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public global::System.DateTime? EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).EndedOn; } + public global::System.DateTime? EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).EndedOn; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).Kind = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).Kind = value ; } /// Internal Acessors for EndedOn - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).EndedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).EndedOn = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).EndedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).EndedOn = value; } /// Internal Acessors for MigrationFailureError - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureError = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureError = value; } /// Internal Acessors for MigrationFailureErrorCode - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureErrorCode = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureErrorCode = value; } /// Internal Acessors for MigrationFailureErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureErrorMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureErrorMessage = value; } /// Internal Acessors for MigrationStatus - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationStatus = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).ProvisioningState = value; } /// Internal Acessors for StartedOn - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).StartedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).StartedOn = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).StartedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).StartedOn = value; } /// Internal Acessors for SourceServerName - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal.SourceServerName { get => this._sourceServerName; set { {_sourceServerName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal.SourceServerName { get => this._sourceServerName; set { {_sourceServerName = value;} } } /// Internal Acessors for SourceSqlConnection - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal.SourceSqlConnection { get => (this._sourceSqlConnection = this._sourceSqlConnection ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformation()); set { {_sourceSqlConnection = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal.SourceSqlConnection { get => (this._sourceSqlConnection = this._sourceSqlConnection ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformation()); set { {_sourceSqlConnection = value;} } } /// Error details in case of migration failure. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureError; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureError; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureErrorCode; } + public string MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureErrorCode; } /// Error message. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureErrorMessage; } + public string MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureErrorMessage; } /// ID for current migration operation. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string MigrationOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationOperationId = value ?? null; } + public string MigrationOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationOperationId = value ?? null; } /// Resource Id of the Migration Service. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string MigrationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationService = value ?? null; } + public string MigrationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationService = value ?? null; } /// Migration status. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationStatus; } + public string MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationStatus; } /// Error message for migration provisioning failure, if any. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string ProvisioningError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).ProvisioningError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).ProvisioningError = value ?? null; } + public string ProvisioningError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).ProvisioningError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).ProvisioningError = value ?? null; } /// /// Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration /// has started. /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).ProvisioningState; } /// Resource Id of the target resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).Scope = value ?? null; } + public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).Scope = value ?? null; } /// Backing field for property. private string _sourceDatabaseName; @@ -107,39 +107,39 @@ public partial class DatabaseMigrationProperties : public string SourceServerName { get => this._sourceServerName; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation _sourceSqlConnection; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation _sourceSqlConnection; /// Source SQL Server connection details. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation SourceSqlConnection { get => (this._sourceSqlConnection = this._sourceSqlConnection ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformation()); set => this._sourceSqlConnection = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation SourceSqlConnection { get => (this._sourceSqlConnection = this._sourceSqlConnection ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformation()); set => this._sourceSqlConnection = value; } /// Authentication type. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string SourceSqlConnectionAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)SourceSqlConnection).Authentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)SourceSqlConnection).Authentication = value ?? null; } + public string SourceSqlConnectionAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)SourceSqlConnection).Authentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)SourceSqlConnection).Authentication = value ?? null; } /// Data source. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string SourceSqlConnectionDataSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)SourceSqlConnection).DataSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)SourceSqlConnection).DataSource = value ?? null; } + public string SourceSqlConnectionDataSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)SourceSqlConnection).DataSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)SourceSqlConnection).DataSource = value ?? null; } /// Whether to encrypt connection or not. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public bool? SourceSqlConnectionEncryptConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)SourceSqlConnection).EncryptConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)SourceSqlConnection).EncryptConnection = value ?? default(bool); } + public bool? SourceSqlConnectionEncryptConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)SourceSqlConnection).EncryptConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)SourceSqlConnection).EncryptConnection = value ?? default(bool); } /// Password to connect to source SQL. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public System.Security.SecureString SourceSqlConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)SourceSqlConnection).Password; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)SourceSqlConnection).Password = value ?? null; } + public System.Security.SecureString SourceSqlConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)SourceSqlConnection).Password; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)SourceSqlConnection).Password = value ?? null; } /// Whether to trust server certificate or not. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public bool? SourceSqlConnectionTrustServerCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)SourceSqlConnection).TrustServerCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)SourceSqlConnection).TrustServerCertificate = value ?? default(bool); } + public bool? SourceSqlConnectionTrustServerCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)SourceSqlConnection).TrustServerCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)SourceSqlConnection).TrustServerCertificate = value ?? default(bool); } /// User name to connect to source SQL. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string SourceSqlConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)SourceSqlConnection).UserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)SourceSqlConnection).UserName = value ?? null; } + public string SourceSqlConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)SourceSqlConnection).UserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)SourceSqlConnection).UserName = value ?? null; } /// Database migration start time. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public global::System.DateTime? StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).StartedOn; } + public global::System.DateTime? StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).StartedOn; } /// Backing field for property. private string _targetDatabaseCollation; @@ -169,7 +169,7 @@ public DatabaseMigrationProperties() /// Database Migration Resource properties. public partial interface IDatabaseMigrationProperties : Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseProperties + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseProperties { /// Name of the source database. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( @@ -247,14 +247,14 @@ public partial interface IDatabaseMigrationProperties : } /// Database Migration Resource properties. internal partial interface IDatabaseMigrationPropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal { /// Name of the source database. string SourceDatabaseName { get; set; } /// Name of the source sql server. string SourceServerName { get; set; } /// Source SQL Server connection details. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation SourceSqlConnection { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation SourceSqlConnection { get; set; } /// Authentication type. string SourceSqlConnectionAuthentication { get; set; } /// Data source. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationProperties.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationProperties.json.cs similarity index 92% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationProperties.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationProperties.json.cs index 0f6123736810..11c2aaa6de7b 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationProperties.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -65,8 +65,8 @@ internal DatabaseMigrationProperties(Microsoft.Azure.PowerShell.Cmdlets.DataMigr { return; } - __databaseMigrationBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationBaseProperties(json); - {_sourceSqlConnection = If( json?.PropertyT("sourceSqlConnection"), out var __jsonSourceSqlConnection) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformation.FromJson(__jsonSourceSqlConnection) : SourceSqlConnection;} + __databaseMigrationBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationBaseProperties(json); + {_sourceSqlConnection = If( json?.PropertyT("sourceSqlConnection"), out var __jsonSourceSqlConnection) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformation.FromJson(__jsonSourceSqlConnection) : SourceSqlConnection;} {_sourceDatabaseName = If( json?.PropertyT("sourceDatabaseName"), out var __jsonSourceDatabaseName) ? (string)__jsonSourceDatabaseName : (string)SourceDatabaseName;} {_sourceServerName = If( json?.PropertyT("sourceServerName"), out var __jsonSourceServerName) ? (string)__jsonSourceServerName : (string)SourceServerName;} {_targetDatabaseCollation = If( json?.PropertyT("targetDatabaseCollation"), out var __jsonTargetDatabaseCollation) ? (string)__jsonTargetDatabaseCollation : (string)TargetDatabaseCollation;} @@ -74,15 +74,15 @@ internal DatabaseMigrationProperties(Microsoft.Azure.PowerShell.Cmdlets.DataMigr } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationProperties. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationProperties interface - /// is polymorphic, and the precise model class that will get deserialized is determined at runtime based on the payload. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationProperties. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationProperties interface is + /// polymorphic, and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json)) { diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesCosmosDbMongo.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesCosmosDbMongo.PowerShell.cs new file mode 100644 index 000000000000..21a367b86abb --- /dev/null +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesCosmosDbMongo.PowerShell.cs @@ -0,0 +1,357 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; + + /// Database Migration Resource properties for CosmosDb for Mongo. + [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationPropertiesCosmosDbMongoTypeConverter))] + public partial class DatabaseMigrationPropertiesCosmosDbMongo + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DatabaseMigrationPropertiesCosmosDbMongo(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SourceMongoConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation) content.GetValueForProperty("SourceMongoConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoConnectionInformationTypeConverter.ConvertFrom); + } + if (content.Contains("TargetMongoConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation) content.GetValueForProperty("TargetMongoConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoConnectionInformationTypeConverter.ConvertFrom); + } + if (content.Contains("CollectionList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).CollectionList = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollection[]) content.GetValueForProperty("CollectionList",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).CollectionList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoMigrationCollectionTypeConverter.ConvertFrom)); + } + if (content.Contains("MigrationFailureErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfoTypeConverter.ConvertFrom); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Scope, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("MigrationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus, global::System.Convert.ToString); + } + if (content.Contains("StartedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MigrationService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationService, global::System.Convert.ToString); + } + if (content.Contains("MigrationOperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError, global::System.Convert.ToString); + } + if (content.Contains("SourceMongoConnectionHost")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionHost = (string) content.GetValueForProperty("SourceMongoConnectionHost",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionHost, global::System.Convert.ToString); + } + if (content.Contains("SourceMongoConnectionPort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionPort = (int?) content.GetValueForProperty("SourceMongoConnectionPort",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SourceMongoConnectionUserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionUserName = (string) content.GetValueForProperty("SourceMongoConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionUserName, global::System.Convert.ToString); + } + if (content.Contains("SourceMongoConnectionPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceMongoConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionPassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("SourceMongoConnectionUseSsl")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionUseSsl = (bool?) content.GetValueForProperty("SourceMongoConnectionUseSsl",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionUseSsl, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SourceMongoConnectionString")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionString = (string) content.GetValueForProperty("SourceMongoConnectionString",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionString, global::System.Convert.ToString); + } + if (content.Contains("TargetMongoConnectionHost")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionHost = (string) content.GetValueForProperty("TargetMongoConnectionHost",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionHost, global::System.Convert.ToString); + } + if (content.Contains("TargetMongoConnectionPort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionPort = (int?) content.GetValueForProperty("TargetMongoConnectionPort",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("TargetMongoConnectionUserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionUserName = (string) content.GetValueForProperty("TargetMongoConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionUserName, global::System.Convert.ToString); + } + if (content.Contains("TargetMongoConnectionPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("TargetMongoConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionPassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("TargetMongoConnectionUseSsl")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionUseSsl = (bool?) content.GetValueForProperty("TargetMongoConnectionUseSsl",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionUseSsl, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("TargetMongoConnectionString")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionString = (string) content.GetValueForProperty("TargetMongoConnectionString",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionString, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DatabaseMigrationPropertiesCosmosDbMongo(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SourceMongoConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation) content.GetValueForProperty("SourceMongoConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoConnectionInformationTypeConverter.ConvertFrom); + } + if (content.Contains("TargetMongoConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation) content.GetValueForProperty("TargetMongoConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoConnectionInformationTypeConverter.ConvertFrom); + } + if (content.Contains("CollectionList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).CollectionList = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollection[]) content.GetValueForProperty("CollectionList",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).CollectionList, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoMigrationCollectionTypeConverter.ConvertFrom)); + } + if (content.Contains("MigrationFailureErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfoTypeConverter.ConvertFrom); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Scope, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("MigrationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus, global::System.Convert.ToString); + } + if (content.Contains("StartedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MigrationService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationService, global::System.Convert.ToString); + } + if (content.Contains("MigrationOperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError, global::System.Convert.ToString); + } + if (content.Contains("SourceMongoConnectionHost")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionHost = (string) content.GetValueForProperty("SourceMongoConnectionHost",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionHost, global::System.Convert.ToString); + } + if (content.Contains("SourceMongoConnectionPort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionPort = (int?) content.GetValueForProperty("SourceMongoConnectionPort",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("SourceMongoConnectionUserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionUserName = (string) content.GetValueForProperty("SourceMongoConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionUserName, global::System.Convert.ToString); + } + if (content.Contains("SourceMongoConnectionPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceMongoConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionPassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("SourceMongoConnectionUseSsl")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionUseSsl = (bool?) content.GetValueForProperty("SourceMongoConnectionUseSsl",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionUseSsl, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SourceMongoConnectionString")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionString = (string) content.GetValueForProperty("SourceMongoConnectionString",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).SourceMongoConnectionString, global::System.Convert.ToString); + } + if (content.Contains("TargetMongoConnectionHost")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionHost = (string) content.GetValueForProperty("TargetMongoConnectionHost",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionHost, global::System.Convert.ToString); + } + if (content.Contains("TargetMongoConnectionPort")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionPort = (int?) content.GetValueForProperty("TargetMongoConnectionPort",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionPort, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("TargetMongoConnectionUserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionUserName = (string) content.GetValueForProperty("TargetMongoConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionUserName, global::System.Convert.ToString); + } + if (content.Contains("TargetMongoConnectionPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("TargetMongoConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionPassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("TargetMongoConnectionUseSsl")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionUseSsl = (bool?) content.GetValueForProperty("TargetMongoConnectionUseSsl",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionUseSsl, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("TargetMongoConnectionString")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionString = (string) content.GetValueForProperty("TargetMongoConnectionString",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal)this).TargetMongoConnectionString, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongo DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DatabaseMigrationPropertiesCosmosDbMongo(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DatabaseMigrationPropertiesCosmosDbMongo(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json + /// string. + /// + /// a string containing a JSON serialized instance of this model. + /// + /// an instance of the model class. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Database Migration Resource properties for CosmosDb for Mongo. + [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationPropertiesCosmosDbMongoTypeConverter))] + public partial interface IDatabaseMigrationPropertiesCosmosDbMongo + + { + + } +} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesCosmosDbMongo.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesCosmosDbMongo.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesCosmosDbMongo.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesCosmosDbMongo.TypeConverter.cs index 15f600cb1cdc..93a5a5b94ac6 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesCosmosDbMongo.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesCosmosDbMongo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesCosmosDbMongo.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesCosmosDbMongo.cs similarity index 61% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesCosmosDbMongo.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesCosmosDbMongo.cs index 1f2dc7018e88..991061f4fdcf 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesCosmosDbMongo.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesCosmosDbMongo.cs @@ -3,167 +3,167 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Database Migration Resource properties for CosmosDb for Mongo. public partial class DatabaseMigrationPropertiesCosmosDbMongo : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongo, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongo, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseProperties __databaseMigrationBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationBaseProperties(); + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseProperties __databaseMigrationBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationBaseProperties(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollection[] _collectionList; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollection[] _collectionList; /// List of Mongo Collections to be migrated. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollection[] CollectionList { get => this._collectionList; set => this._collectionList = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollection[] CollectionList { get => this._collectionList; set => this._collectionList = value; } /// Database migration end time. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public global::System.DateTime? EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).EndedOn; } + public global::System.DateTime? EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).EndedOn; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).Kind = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).Kind = value ; } /// Internal Acessors for EndedOn - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).EndedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).EndedOn = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).EndedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).EndedOn = value; } /// Internal Acessors for MigrationFailureError - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureError = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureError = value; } /// Internal Acessors for MigrationFailureErrorCode - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureErrorCode = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureErrorCode = value; } /// Internal Acessors for MigrationFailureErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureErrorMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureErrorMessage = value; } /// Internal Acessors for MigrationStatus - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationStatus = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).ProvisioningState = value; } /// Internal Acessors for StartedOn - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).StartedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).StartedOn = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).StartedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).StartedOn = value; } /// Internal Acessors for SourceMongoConnection - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal.SourceMongoConnection { get => (this._sourceMongoConnection = this._sourceMongoConnection ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoConnectionInformation()); set { {_sourceMongoConnection = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal.SourceMongoConnection { get => (this._sourceMongoConnection = this._sourceMongoConnection ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoConnectionInformation()); set { {_sourceMongoConnection = value;} } } /// Internal Acessors for TargetMongoConnection - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongoInternal.TargetMongoConnection { get => (this._targetMongoConnection = this._targetMongoConnection ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoConnectionInformation()); set { {_targetMongoConnection = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongoInternal.TargetMongoConnection { get => (this._targetMongoConnection = this._targetMongoConnection ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoConnectionInformation()); set { {_targetMongoConnection = value;} } } /// Error details in case of migration failure. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureError; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureError; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureErrorCode; } + public string MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureErrorCode; } /// Error message. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureErrorMessage; } + public string MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationFailureErrorMessage; } /// ID for current migration operation. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string MigrationOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationOperationId = value ?? null; } + public string MigrationOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationOperationId = value ?? null; } /// Resource Id of the Migration Service. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string MigrationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationService = value ?? null; } + public string MigrationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationService = value ?? null; } /// Migration status. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationStatus; } + public string MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).MigrationStatus; } /// Error message for migration provisioning failure, if any. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string ProvisioningError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).ProvisioningError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).ProvisioningError = value ?? null; } + public string ProvisioningError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).ProvisioningError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).ProvisioningError = value ?? null; } /// /// Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration /// has started. /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).ProvisioningState; } /// Resource Id of the target resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).Scope = value ?? null; } + public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).Scope = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation _sourceMongoConnection; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation _sourceMongoConnection; /// Source Mongo connection details. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation SourceMongoConnection { get => (this._sourceMongoConnection = this._sourceMongoConnection ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoConnectionInformation()); set => this._sourceMongoConnection = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation SourceMongoConnection { get => (this._sourceMongoConnection = this._sourceMongoConnection ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoConnectionInformation()); set => this._sourceMongoConnection = value; } /// Host of mongo connection. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string SourceMongoConnectionHost { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)SourceMongoConnection).Host; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)SourceMongoConnection).Host = value ?? null; } + public string SourceMongoConnectionHost { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)SourceMongoConnection).Host; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)SourceMongoConnection).Host = value ?? null; } /// Password to connect to Mongo. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public System.Security.SecureString SourceMongoConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)SourceMongoConnection).Password; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)SourceMongoConnection).Password = value ?? null; } + public System.Security.SecureString SourceMongoConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)SourceMongoConnection).Password; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)SourceMongoConnection).Password = value ?? null; } /// Port of mongo connection. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public int? SourceMongoConnectionPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)SourceMongoConnection).Port; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)SourceMongoConnection).Port = value ?? default(int); } + public int? SourceMongoConnectionPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)SourceMongoConnection).Port; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)SourceMongoConnection).Port = value ?? default(int); } /// ConnectionString to connect to Mongo. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string SourceMongoConnectionString { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)SourceMongoConnection).ConnectionString; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)SourceMongoConnection).ConnectionString = value ?? null; } + public string SourceMongoConnectionString { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)SourceMongoConnection).ConnectionString; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)SourceMongoConnection).ConnectionString = value ?? null; } /// Whether to UseSsl or UseTls to connect to Mongo. Default is true. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public bool? SourceMongoConnectionUseSsl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)SourceMongoConnection).UseSsl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)SourceMongoConnection).UseSsl = value ?? default(bool); } + public bool? SourceMongoConnectionUseSsl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)SourceMongoConnection).UseSsl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)SourceMongoConnection).UseSsl = value ?? default(bool); } /// User name to connect to Mongo. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string SourceMongoConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)SourceMongoConnection).UserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)SourceMongoConnection).UserName = value ?? null; } + public string SourceMongoConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)SourceMongoConnection).UserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)SourceMongoConnection).UserName = value ?? null; } /// Database migration start time. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public global::System.DateTime? StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).StartedOn; } + public global::System.DateTime? StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationBaseProperties).StartedOn; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation _targetMongoConnection; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation _targetMongoConnection; /// Target Cosmos DB Mongo connection details. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation TargetMongoConnection { get => (this._targetMongoConnection = this._targetMongoConnection ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoConnectionInformation()); set => this._targetMongoConnection = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation TargetMongoConnection { get => (this._targetMongoConnection = this._targetMongoConnection ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoConnectionInformation()); set => this._targetMongoConnection = value; } /// Host of mongo connection. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string TargetMongoConnectionHost { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)TargetMongoConnection).Host; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)TargetMongoConnection).Host = value ?? null; } + public string TargetMongoConnectionHost { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)TargetMongoConnection).Host; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)TargetMongoConnection).Host = value ?? null; } /// Password to connect to Mongo. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public System.Security.SecureString TargetMongoConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)TargetMongoConnection).Password; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)TargetMongoConnection).Password = value ?? null; } + public System.Security.SecureString TargetMongoConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)TargetMongoConnection).Password; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)TargetMongoConnection).Password = value ?? null; } /// Port of mongo connection. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public int? TargetMongoConnectionPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)TargetMongoConnection).Port; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)TargetMongoConnection).Port = value ?? default(int); } + public int? TargetMongoConnectionPort { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)TargetMongoConnection).Port; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)TargetMongoConnection).Port = value ?? default(int); } /// ConnectionString to connect to Mongo. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string TargetMongoConnectionString { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)TargetMongoConnection).ConnectionString; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)TargetMongoConnection).ConnectionString = value ?? null; } + public string TargetMongoConnectionString { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)TargetMongoConnection).ConnectionString; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)TargetMongoConnection).ConnectionString = value ?? null; } /// Whether to UseSsl or UseTls to connect to Mongo. Default is true. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public bool? TargetMongoConnectionUseSsl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)TargetMongoConnection).UseSsl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)TargetMongoConnection).UseSsl = value ?? default(bool); } + public bool? TargetMongoConnectionUseSsl { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)TargetMongoConnection).UseSsl; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)TargetMongoConnection).UseSsl = value ?? default(bool); } /// User name to connect to Mongo. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string TargetMongoConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)TargetMongoConnection).UserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)TargetMongoConnection).UserName = value ?? null; } + public string TargetMongoConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)TargetMongoConnection).UserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)TargetMongoConnection).UserName = value ?? null; } /// /// Creates an new instance. @@ -188,7 +188,7 @@ public DatabaseMigrationPropertiesCosmosDbMongo() /// Database Migration Resource properties for CosmosDb for Mongo. public partial interface IDatabaseMigrationPropertiesCosmosDbMongo : Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBaseProperties + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBaseProperties { /// List of Mongo Collections to be migrated. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( @@ -196,8 +196,8 @@ public partial interface IDatabaseMigrationPropertiesCosmosDbMongo : ReadOnly = false, Description = @"List of Mongo Collections to be migrated.", SerializedName = @"collectionList", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollection) })] - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollection[] CollectionList { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollection) })] + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollection[] CollectionList { get; set; } /// Host of mongo connection. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( Required = false, @@ -298,12 +298,12 @@ public partial interface IDatabaseMigrationPropertiesCosmosDbMongo : } /// Database Migration Resource properties for CosmosDb for Mongo. internal partial interface IDatabaseMigrationPropertiesCosmosDbMongoInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal { /// List of Mongo Collections to be migrated. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollection[] CollectionList { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollection[] CollectionList { get; set; } /// Source Mongo connection details. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation SourceMongoConnection { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation SourceMongoConnection { get; set; } /// Host of mongo connection. string SourceMongoConnectionHost { get; set; } /// Password to connect to Mongo. @@ -317,7 +317,7 @@ internal partial interface IDatabaseMigrationPropertiesCosmosDbMongoInternal : /// User name to connect to Mongo. string SourceMongoConnectionUserName { get; set; } /// Target Cosmos DB Mongo connection details. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation TargetMongoConnection { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation TargetMongoConnection { get; set; } /// Host of mongo connection. string TargetMongoConnectionHost { get; set; } /// Password to connect to Mongo. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesCosmosDbMongo.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesCosmosDbMongo.json.cs similarity index 88% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesCosmosDbMongo.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesCosmosDbMongo.json.cs index cf21fa1a4d87..f56858861d66 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesCosmosDbMongo.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesCosmosDbMongo.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -65,21 +65,21 @@ internal DatabaseMigrationPropertiesCosmosDbMongo(Microsoft.Azure.PowerShell.Cmd { return; } - __databaseMigrationBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationBaseProperties(json); - {_sourceMongoConnection = If( json?.PropertyT("sourceMongoConnection"), out var __jsonSourceMongoConnection) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoConnectionInformation.FromJson(__jsonSourceMongoConnection) : SourceMongoConnection;} - {_targetMongoConnection = If( json?.PropertyT("targetMongoConnection"), out var __jsonTargetMongoConnection) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoConnectionInformation.FromJson(__jsonTargetMongoConnection) : TargetMongoConnection;} - {_collectionList = If( json?.PropertyT("collectionList"), out var __jsonCollectionList) ? If( __jsonCollectionList as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollection) (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoMigrationCollection.FromJson(__u) )) ))() : null : CollectionList;} + __databaseMigrationBaseProperties = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationBaseProperties(json); + {_sourceMongoConnection = If( json?.PropertyT("sourceMongoConnection"), out var __jsonSourceMongoConnection) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoConnectionInformation.FromJson(__jsonSourceMongoConnection) : SourceMongoConnection;} + {_targetMongoConnection = If( json?.PropertyT("targetMongoConnection"), out var __jsonTargetMongoConnection) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoConnectionInformation.FromJson(__jsonTargetMongoConnection) : TargetMongoConnection;} + {_collectionList = If( json?.PropertyT("collectionList"), out var __jsonCollectionList) ? If( __jsonCollectionList as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollection) (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoMigrationCollection.FromJson(__u) )) ))() : null : CollectionList;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesCosmosDbMongo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesCosmosDbMongo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new DatabaseMigrationPropertiesCosmosDbMongo(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlDb.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlDb.PowerShell.cs new file mode 100644 index 000000000000..e596f04b897c --- /dev/null +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlDb.PowerShell.cs @@ -0,0 +1,426 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; + + /// Database Migration Resource properties for SQL database. + [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationPropertiesSqlDbTypeConverter))] + public partial class DatabaseMigrationPropertiesSqlDb + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DatabaseMigrationPropertiesSqlDb(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("MigrationStatusDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetails) content.GetValueForProperty("MigrationStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlDbMigrationStatusDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetSqlConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation) content.GetValueForProperty("TargetSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformationTypeConverter.ConvertFrom); + } + if (content.Contains("OfflineConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).OfflineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfiguration) content.GetValueForProperty("OfflineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).OfflineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlDbOfflineConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("TableList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TableList = (string[]) content.GetValueForProperty("TableList",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TableList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("MigrationFailureErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfoTypeConverter.ConvertFrom); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Scope, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("MigrationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus, global::System.Convert.ToString); + } + if (content.Contains("StartedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MigrationService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationService, global::System.Convert.ToString); + } + if (content.Contains("MigrationOperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionDataSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionAuthentication")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionUserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("SourceSqlConnectionEncryptConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SourceSqlConnectionTrustServerCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SourceSqlConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformationTypeConverter.ConvertFrom); + } + if (content.Contains("SourceDatabaseName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName, global::System.Convert.ToString); + } + if (content.Contains("SourceServerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceServerName, global::System.Convert.ToString); + } + if (content.Contains("TargetDatabaseCollation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); + } + if (content.Contains("MigrationStatusDetailMigrationState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetailMigrationState = (string) content.GetValueForProperty("MigrationStatusDetailMigrationState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetailMigrationState, global::System.Convert.ToString); + } + if (content.Contains("MigrationStatusDetailSqlDataCopyError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetailSqlDataCopyError = (string[]) content.GetValueForProperty("MigrationStatusDetailSqlDataCopyError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetailSqlDataCopyError, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("MigrationStatusDetailListOfCopyProgressDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetailListOfCopyProgressDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails[]) content.GetValueForProperty("MigrationStatusDetailListOfCopyProgressDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetailListOfCopyProgressDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.CopyProgressDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("TargetSqlConnectionDataSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionDataSource = (string) content.GetValueForProperty("TargetSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionDataSource, global::System.Convert.ToString); + } + if (content.Contains("TargetSqlConnectionAuthentication")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionAuthentication = (string) content.GetValueForProperty("TargetSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionAuthentication, global::System.Convert.ToString); + } + if (content.Contains("TargetSqlConnectionUserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionUserName = (string) content.GetValueForProperty("TargetSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionUserName, global::System.Convert.ToString); + } + if (content.Contains("TargetSqlConnectionPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("TargetSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("TargetSqlConnectionEncryptConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("TargetSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("TargetSqlConnectionTrustServerCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("TargetSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("OfflineConfigurationOffline")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).OfflineConfigurationOffline = (bool?) content.GetValueForProperty("OfflineConfigurationOffline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).OfflineConfigurationOffline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DatabaseMigrationPropertiesSqlDb(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("MigrationStatusDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetails) content.GetValueForProperty("MigrationStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlDbMigrationStatusDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetSqlConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation) content.GetValueForProperty("TargetSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformationTypeConverter.ConvertFrom); + } + if (content.Contains("OfflineConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).OfflineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfiguration) content.GetValueForProperty("OfflineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).OfflineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlDbOfflineConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("TableList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TableList = (string[]) content.GetValueForProperty("TableList",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TableList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("MigrationFailureErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfoTypeConverter.ConvertFrom); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Scope, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("MigrationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus, global::System.Convert.ToString); + } + if (content.Contains("StartedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MigrationService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationService, global::System.Convert.ToString); + } + if (content.Contains("MigrationOperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionDataSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionAuthentication")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionUserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("SourceSqlConnectionEncryptConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SourceSqlConnectionTrustServerCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SourceSqlConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformationTypeConverter.ConvertFrom); + } + if (content.Contains("SourceDatabaseName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName, global::System.Convert.ToString); + } + if (content.Contains("SourceServerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceServerName, global::System.Convert.ToString); + } + if (content.Contains("TargetDatabaseCollation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); + } + if (content.Contains("MigrationStatusDetailMigrationState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetailMigrationState = (string) content.GetValueForProperty("MigrationStatusDetailMigrationState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetailMigrationState, global::System.Convert.ToString); + } + if (content.Contains("MigrationStatusDetailSqlDataCopyError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetailSqlDataCopyError = (string[]) content.GetValueForProperty("MigrationStatusDetailSqlDataCopyError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetailSqlDataCopyError, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("MigrationStatusDetailListOfCopyProgressDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetailListOfCopyProgressDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails[]) content.GetValueForProperty("MigrationStatusDetailListOfCopyProgressDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).MigrationStatusDetailListOfCopyProgressDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.CopyProgressDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("TargetSqlConnectionDataSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionDataSource = (string) content.GetValueForProperty("TargetSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionDataSource, global::System.Convert.ToString); + } + if (content.Contains("TargetSqlConnectionAuthentication")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionAuthentication = (string) content.GetValueForProperty("TargetSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionAuthentication, global::System.Convert.ToString); + } + if (content.Contains("TargetSqlConnectionUserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionUserName = (string) content.GetValueForProperty("TargetSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionUserName, global::System.Convert.ToString); + } + if (content.Contains("TargetSqlConnectionPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("TargetSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("TargetSqlConnectionEncryptConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("TargetSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("TargetSqlConnectionTrustServerCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("TargetSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).TargetSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("OfflineConfigurationOffline")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).OfflineConfigurationOffline = (bool?) content.GetValueForProperty("OfflineConfigurationOffline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)this).OfflineConfigurationOffline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDb DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DatabaseMigrationPropertiesSqlDb(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDb DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DatabaseMigrationPropertiesSqlDb(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDb FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Database Migration Resource properties for SQL database. + [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationPropertiesSqlDbTypeConverter))] + public partial interface IDatabaseMigrationPropertiesSqlDb + + { + + } +} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlDb.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlDb.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlDb.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlDb.TypeConverter.cs index 34d0f5871913..b789c963f037 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlDb.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlDb.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDb ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDb ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDb).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDb).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlDb.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlDb.cs similarity index 57% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlDb.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlDb.cs index 8b5299254871..1df41ea73e3c 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlDb.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlDb.cs @@ -3,182 +3,182 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Database Migration Resource properties for SQL database. public partial class DatabaseMigrationPropertiesSqlDb : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDb, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDb, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationProperties __databaseMigrationProperties = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationProperties(); + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationProperties __databaseMigrationProperties = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationProperties(); /// Database migration end time. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public global::System.DateTime? EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).EndedOn; } + public global::System.DateTime? EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).EndedOn; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).Kind = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).Kind = value ; } /// Internal Acessors for EndedOn - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).EndedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).EndedOn = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).EndedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).EndedOn = value; } /// Internal Acessors for MigrationFailureError - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureError = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureError = value; } /// Internal Acessors for MigrationFailureErrorCode - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorCode = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorCode = value; } /// Internal Acessors for MigrationFailureErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorMessage = value; } /// Internal Acessors for MigrationStatus - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationStatus = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningState = value; } /// Internal Acessors for StartedOn - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).StartedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).StartedOn = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).StartedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).StartedOn = value; } /// Internal Acessors for SourceServerName - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal.SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceServerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceServerName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal.SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceServerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceServerName = value; } /// Internal Acessors for MigrationStatusDetail - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetails Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal.MigrationStatusDetail { get => (this._migrationStatusDetail = this._migrationStatusDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlDbMigrationStatusDetails()); set { {_migrationStatusDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetails Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal.MigrationStatusDetail { get => (this._migrationStatusDetail = this._migrationStatusDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlDbMigrationStatusDetails()); set { {_migrationStatusDetail = value;} } } /// Internal Acessors for MigrationStatusDetailListOfCopyProgressDetail - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal.MigrationStatusDetailListOfCopyProgressDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetailsInternal)MigrationStatusDetail).ListOfCopyProgressDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetailsInternal)MigrationStatusDetail).ListOfCopyProgressDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal.MigrationStatusDetailListOfCopyProgressDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetailsInternal)MigrationStatusDetail).ListOfCopyProgressDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetailsInternal)MigrationStatusDetail).ListOfCopyProgressDetail = value; } /// Internal Acessors for MigrationStatusDetailMigrationState - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal.MigrationStatusDetailMigrationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetailsInternal)MigrationStatusDetail).MigrationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetailsInternal)MigrationStatusDetail).MigrationState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal.MigrationStatusDetailMigrationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetailsInternal)MigrationStatusDetail).MigrationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetailsInternal)MigrationStatusDetail).MigrationState = value; } /// Internal Acessors for MigrationStatusDetailSqlDataCopyError - string[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal.MigrationStatusDetailSqlDataCopyError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetailsInternal)MigrationStatusDetail).SqlDataCopyError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetailsInternal)MigrationStatusDetail).SqlDataCopyError = value; } + string[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal.MigrationStatusDetailSqlDataCopyError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetailsInternal)MigrationStatusDetail).SqlDataCopyError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetailsInternal)MigrationStatusDetail).SqlDataCopyError = value; } /// Internal Acessors for OfflineConfiguration - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfiguration Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal.OfflineConfiguration { get => (this._offlineConfiguration = this._offlineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlDbOfflineConfiguration()); set { {_offlineConfiguration = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfiguration Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal.OfflineConfiguration { get => (this._offlineConfiguration = this._offlineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlDbOfflineConfiguration()); set { {_offlineConfiguration = value;} } } /// Internal Acessors for OfflineConfigurationOffline - bool? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal.OfflineConfigurationOffline { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfigurationInternal)OfflineConfiguration).Offline; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfigurationInternal)OfflineConfiguration).Offline = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal.OfflineConfigurationOffline { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfigurationInternal)OfflineConfiguration).Offline; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfigurationInternal)OfflineConfiguration).Offline = value; } /// Internal Acessors for TargetSqlConnection - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal.TargetSqlConnection { get => (this._targetSqlConnection = this._targetSqlConnection ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformation()); set { {_targetSqlConnection = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal.TargetSqlConnection { get => (this._targetSqlConnection = this._targetSqlConnection ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformation()); set { {_targetSqlConnection = value;} } } /// Error details in case of migration failure. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureError; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureError; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorCode; } + public string MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorCode; } /// Error message. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorMessage; } + public string MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorMessage; } /// ID for current migration operation. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string MigrationOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationOperationId = value ?? null; } + public string MigrationOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationOperationId = value ?? null; } /// Resource Id of the Migration Service. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string MigrationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationService = value ?? null; } + public string MigrationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationService = value ?? null; } /// Migration status. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationStatus; } + public string MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationStatus; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetails _migrationStatusDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetails _migrationStatusDetail; /// Detailed migration status. Not included by default. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetails MigrationStatusDetail { get => (this._migrationStatusDetail = this._migrationStatusDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlDbMigrationStatusDetails()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetails MigrationStatusDetail { get => (this._migrationStatusDetail = this._migrationStatusDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlDbMigrationStatusDetails()); } /// Details on progress of ADF copy activities. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails[] MigrationStatusDetailListOfCopyProgressDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetailsInternal)MigrationStatusDetail).ListOfCopyProgressDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails[] MigrationStatusDetailListOfCopyProgressDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetailsInternal)MigrationStatusDetail).ListOfCopyProgressDetail; } /// Current State of Migration. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string MigrationStatusDetailMigrationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetailsInternal)MigrationStatusDetail).MigrationState; } + public string MigrationStatusDetailMigrationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetailsInternal)MigrationStatusDetail).MigrationState; } /// Sql Data Copy errors, if any. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string[] MigrationStatusDetailSqlDataCopyError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetailsInternal)MigrationStatusDetail).SqlDataCopyError; } + public string[] MigrationStatusDetailSqlDataCopyError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetailsInternal)MigrationStatusDetail).SqlDataCopyError; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfiguration _offlineConfiguration; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfiguration _offlineConfiguration; /// Offline configuration. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfiguration OfflineConfiguration { get => (this._offlineConfiguration = this._offlineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlDbOfflineConfiguration()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfiguration OfflineConfiguration { get => (this._offlineConfiguration = this._offlineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlDbOfflineConfiguration()); } /// Offline migration [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public bool? OfflineConfigurationOffline { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfigurationInternal)OfflineConfiguration).Offline; } + public bool? OfflineConfigurationOffline { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfigurationInternal)OfflineConfiguration).Offline; } /// Error message for migration provisioning failure, if any. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string ProvisioningError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningError = value ?? null; } + public string ProvisioningError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningError = value ?? null; } /// /// Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration /// has started. /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningState; } /// Resource Id of the target resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).Scope = value ?? null; } + public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).Scope = value ?? null; } /// Name of the source database. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string SourceDatabaseName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceDatabaseName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceDatabaseName = value ?? null; } + public string SourceDatabaseName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceDatabaseName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceDatabaseName = value ?? null; } /// Name of the source sql server. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceServerName; } + public string SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceServerName; } /// Source SQL Server connection details. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation SourceSqlConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnection = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation SourceSqlConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnection = value ?? null /* model class */; } /// Authentication type. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string SourceSqlConnectionAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionAuthentication = value ?? null; } + public string SourceSqlConnectionAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionAuthentication = value ?? null; } /// Data source. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string SourceSqlConnectionDataSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionDataSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionDataSource = value ?? null; } + public string SourceSqlConnectionDataSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionDataSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionDataSource = value ?? null; } /// Whether to encrypt connection or not. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public bool? SourceSqlConnectionEncryptConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionEncryptConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionEncryptConnection = value ?? default(bool); } + public bool? SourceSqlConnectionEncryptConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionEncryptConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionEncryptConnection = value ?? default(bool); } /// Password to connect to source SQL. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public System.Security.SecureString SourceSqlConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionPassword = value ?? null; } + public System.Security.SecureString SourceSqlConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionPassword = value ?? null; } /// Whether to trust server certificate or not. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public bool? SourceSqlConnectionTrustServerCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionTrustServerCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionTrustServerCertificate = value ?? default(bool); } + public bool? SourceSqlConnectionTrustServerCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionTrustServerCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionTrustServerCertificate = value ?? default(bool); } /// User name to connect to source SQL. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string SourceSqlConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionUserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionUserName = value ?? null; } + public string SourceSqlConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionUserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionUserName = value ?? null; } /// Database migration start time. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public global::System.DateTime? StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).StartedOn; } + public global::System.DateTime? StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).StartedOn; } /// Backing field for property. private string[] _tableList; @@ -189,38 +189,38 @@ public partial class DatabaseMigrationPropertiesSqlDb : /// Database collation to be used for the target database. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string TargetDatabaseCollation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).TargetDatabaseCollation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).TargetDatabaseCollation = value ?? null; } + public string TargetDatabaseCollation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).TargetDatabaseCollation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).TargetDatabaseCollation = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation _targetSqlConnection; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation _targetSqlConnection; /// Target SQL DB connection details. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation TargetSqlConnection { get => (this._targetSqlConnection = this._targetSqlConnection ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformation()); set => this._targetSqlConnection = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation TargetSqlConnection { get => (this._targetSqlConnection = this._targetSqlConnection ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformation()); set => this._targetSqlConnection = value; } /// Authentication type. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string TargetSqlConnectionAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)TargetSqlConnection).Authentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)TargetSqlConnection).Authentication = value ?? null; } + public string TargetSqlConnectionAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)TargetSqlConnection).Authentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)TargetSqlConnection).Authentication = value ?? null; } /// Data source. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string TargetSqlConnectionDataSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)TargetSqlConnection).DataSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)TargetSqlConnection).DataSource = value ?? null; } + public string TargetSqlConnectionDataSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)TargetSqlConnection).DataSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)TargetSqlConnection).DataSource = value ?? null; } /// Whether to encrypt connection or not. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public bool? TargetSqlConnectionEncryptConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)TargetSqlConnection).EncryptConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)TargetSqlConnection).EncryptConnection = value ?? default(bool); } + public bool? TargetSqlConnectionEncryptConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)TargetSqlConnection).EncryptConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)TargetSqlConnection).EncryptConnection = value ?? default(bool); } /// Password to connect to source SQL. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public System.Security.SecureString TargetSqlConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)TargetSqlConnection).Password; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)TargetSqlConnection).Password = value ?? null; } + public System.Security.SecureString TargetSqlConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)TargetSqlConnection).Password; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)TargetSqlConnection).Password = value ?? null; } /// Whether to trust server certificate or not. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public bool? TargetSqlConnectionTrustServerCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)TargetSqlConnection).TrustServerCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)TargetSqlConnection).TrustServerCertificate = value ?? default(bool); } + public bool? TargetSqlConnectionTrustServerCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)TargetSqlConnection).TrustServerCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)TargetSqlConnection).TrustServerCertificate = value ?? default(bool); } /// User name to connect to source SQL. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string TargetSqlConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)TargetSqlConnection).UserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)TargetSqlConnection).UserName = value ?? null; } + public string TargetSqlConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)TargetSqlConnection).UserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)TargetSqlConnection).UserName = value ?? null; } /// Creates an new instance. public DatabaseMigrationPropertiesSqlDb() @@ -243,7 +243,7 @@ public DatabaseMigrationPropertiesSqlDb() /// Database Migration Resource properties for SQL database. public partial interface IDatabaseMigrationPropertiesSqlDb : Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationProperties + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationProperties { /// Details on progress of ADF copy activities. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( @@ -251,8 +251,8 @@ public partial interface IDatabaseMigrationPropertiesSqlDb : ReadOnly = true, Description = @"Details on progress of ADF copy activities.", SerializedName = @"listOfCopyProgressDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails[] MigrationStatusDetailListOfCopyProgressDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails[] MigrationStatusDetailListOfCopyProgressDetail { get; } /// Current State of Migration. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( Required = false, @@ -337,24 +337,24 @@ public partial interface IDatabaseMigrationPropertiesSqlDb : } /// Database Migration Resource properties for SQL database. internal partial interface IDatabaseMigrationPropertiesSqlDbInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal { /// Detailed migration status. Not included by default. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetails MigrationStatusDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetails MigrationStatusDetail { get; set; } /// Details on progress of ADF copy activities. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails[] MigrationStatusDetailListOfCopyProgressDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails[] MigrationStatusDetailListOfCopyProgressDetail { get; set; } /// Current State of Migration. string MigrationStatusDetailMigrationState { get; set; } /// Sql Data Copy errors, if any. string[] MigrationStatusDetailSqlDataCopyError { get; set; } /// Offline configuration. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfiguration OfflineConfiguration { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfiguration OfflineConfiguration { get; set; } /// Offline migration bool? OfflineConfigurationOffline { get; set; } /// List of tables to copy. string[] TableList { get; set; } /// Target SQL DB connection details. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation TargetSqlConnection { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation TargetSqlConnection { get; set; } /// Authentication type. string TargetSqlConnectionAuthentication { get; set; } /// Data source. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlDb.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlDb.json.cs similarity index 92% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlDb.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlDb.json.cs index 637b98d43762..c0acf3f66f04 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlDb.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlDb.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -65,22 +65,22 @@ internal DatabaseMigrationPropertiesSqlDb(Microsoft.Azure.PowerShell.Cmdlets.Dat { return; } - __databaseMigrationProperties = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationProperties(json); - {_migrationStatusDetail = If( json?.PropertyT("migrationStatusDetails"), out var __jsonMigrationStatusDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlDbMigrationStatusDetails.FromJson(__jsonMigrationStatusDetails) : MigrationStatusDetail;} - {_targetSqlConnection = If( json?.PropertyT("targetSqlConnection"), out var __jsonTargetSqlConnection) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlConnectionInformation.FromJson(__jsonTargetSqlConnection) : TargetSqlConnection;} - {_offlineConfiguration = If( json?.PropertyT("offlineConfiguration"), out var __jsonOfflineConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlDbOfflineConfiguration.FromJson(__jsonOfflineConfiguration) : OfflineConfiguration;} + __databaseMigrationProperties = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationProperties(json); + {_migrationStatusDetail = If( json?.PropertyT("migrationStatusDetails"), out var __jsonMigrationStatusDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlDbMigrationStatusDetails.FromJson(__jsonMigrationStatusDetails) : MigrationStatusDetail;} + {_targetSqlConnection = If( json?.PropertyT("targetSqlConnection"), out var __jsonTargetSqlConnection) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformation.FromJson(__jsonTargetSqlConnection) : TargetSqlConnection;} + {_offlineConfiguration = If( json?.PropertyT("offlineConfiguration"), out var __jsonOfflineConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlDbOfflineConfiguration.FromJson(__jsonOfflineConfiguration) : OfflineConfiguration;} {_tableList = If( json?.PropertyT("tableList"), out var __jsonTableList) ? If( __jsonTableList as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : TableList;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDb. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDb. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDb. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDb. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDb FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDb FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new DatabaseMigrationPropertiesSqlDb(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlMi.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlMi.PowerShell.cs new file mode 100644 index 000000000000..0cac19f8a70a --- /dev/null +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlMi.PowerShell.cs @@ -0,0 +1,506 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; + + /// Database Migration Resource properties for SQL Managed Instance. + [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationPropertiesSqlMiTypeConverter))] + public partial class DatabaseMigrationPropertiesSqlMi + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DatabaseMigrationPropertiesSqlMi(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("BackupConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).BackupConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration) content.GetValueForProperty("BackupConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).BackupConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.BackupConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("OfflineConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).OfflineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration) content.GetValueForProperty("OfflineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).OfflineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OfflineConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("MigrationStatusDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).MigrationStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails) content.GetValueForProperty("MigrationStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).MigrationStatusDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationStatusDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("MigrationFailureErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfoTypeConverter.ConvertFrom); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Scope, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("MigrationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus, global::System.Convert.ToString); + } + if (content.Contains("StartedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MigrationService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationService, global::System.Convert.ToString); + } + if (content.Contains("MigrationOperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionDataSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionAuthentication")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionUserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("SourceSqlConnectionEncryptConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SourceSqlConnectionTrustServerCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SourceSqlConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformationTypeConverter.ConvertFrom); + } + if (content.Contains("SourceDatabaseName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName, global::System.Convert.ToString); + } + if (content.Contains("SourceServerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceServerName, global::System.Convert.ToString); + } + if (content.Contains("TargetDatabaseCollation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); + } + if (content.Contains("BackupConfigurationSourceLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).BackupConfigurationSourceLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation) content.GetValueForProperty("BackupConfigurationSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).BackupConfigurationSourceLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SourceLocationTypeConverter.ConvertFrom); + } + if (content.Contains("BackupConfigurationTargetLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).BackupConfigurationTargetLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation) content.GetValueForProperty("BackupConfigurationTargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).BackupConfigurationTargetLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.TargetLocationTypeConverter.ConvertFrom); + } + if (content.Contains("SourceLocationAzureBlob")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).SourceLocationAzureBlob = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob) content.GetValueForProperty("SourceLocationAzureBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).SourceLocationAzureBlob, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.AzureBlobTypeConverter.ConvertFrom); + } + if (content.Contains("TargetLocationAccountKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).TargetLocationAccountKey = (string) content.GetValueForProperty("TargetLocationAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).TargetLocationAccountKey, global::System.Convert.ToString); + } + if (content.Contains("OfflineConfigurationOffline")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).OfflineConfigurationOffline = (bool?) content.GetValueForProperty("OfflineConfigurationOffline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).OfflineConfigurationOffline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("OfflineConfigurationLastBackupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).OfflineConfigurationLastBackupName = (string) content.GetValueForProperty("OfflineConfigurationLastBackupName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).OfflineConfigurationLastBackupName, global::System.Convert.ToString); + } + if (content.Contains("SourceLocationFileShare")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).SourceLocationFileShare = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare) content.GetValueForProperty("SourceLocationFileShare",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).SourceLocationFileShare, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlFileShareTypeConverter.ConvertFrom); + } + if (content.Contains("SourceLocationFileStorageType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).SourceLocationFileStorageType = (string) content.GetValueForProperty("SourceLocationFileStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).SourceLocationFileStorageType, global::System.Convert.ToString); + } + if (content.Contains("AzureBlobAuthType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobAuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AzureBlobAuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobAuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); + } + if (content.Contains("AzureBlobAccountKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobAccountKey = (string) content.GetValueForProperty("AzureBlobAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobAccountKey, global::System.Convert.ToString); + } + if (content.Contains("TargetLocationStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).TargetLocationStorageAccountResourceId = (string) content.GetValueForProperty("TargetLocationStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).TargetLocationStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("FileSharePath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).FileSharePath = (string) content.GetValueForProperty("FileSharePath",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).FileSharePath, global::System.Convert.ToString); + } + if (content.Contains("FileShareUsername")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).FileShareUsername = (string) content.GetValueForProperty("FileShareUsername",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).FileShareUsername, global::System.Convert.ToString); + } + if (content.Contains("FileSharePassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).FileSharePassword = (System.Security.SecureString) content.GetValueForProperty("FileSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).FileSharePassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("AzureBlobIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("AzureBlobIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("AzureBlobStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobStorageAccountResourceId = (string) content.GetValueForProperty("AzureBlobStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("AzureBlobContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobContainerName = (string) content.GetValueForProperty("AzureBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobContainerName, global::System.Convert.ToString); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DatabaseMigrationPropertiesSqlMi(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("BackupConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).BackupConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration) content.GetValueForProperty("BackupConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).BackupConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.BackupConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("OfflineConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).OfflineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration) content.GetValueForProperty("OfflineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).OfflineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OfflineConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("MigrationStatusDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).MigrationStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails) content.GetValueForProperty("MigrationStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).MigrationStatusDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationStatusDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("MigrationFailureErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfoTypeConverter.ConvertFrom); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Scope, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("MigrationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus, global::System.Convert.ToString); + } + if (content.Contains("StartedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MigrationService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationService, global::System.Convert.ToString); + } + if (content.Contains("MigrationOperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionDataSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionAuthentication")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionUserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("SourceSqlConnectionEncryptConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SourceSqlConnectionTrustServerCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SourceSqlConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformationTypeConverter.ConvertFrom); + } + if (content.Contains("SourceDatabaseName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName, global::System.Convert.ToString); + } + if (content.Contains("SourceServerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceServerName, global::System.Convert.ToString); + } + if (content.Contains("TargetDatabaseCollation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); + } + if (content.Contains("BackupConfigurationSourceLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).BackupConfigurationSourceLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation) content.GetValueForProperty("BackupConfigurationSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).BackupConfigurationSourceLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SourceLocationTypeConverter.ConvertFrom); + } + if (content.Contains("BackupConfigurationTargetLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).BackupConfigurationTargetLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation) content.GetValueForProperty("BackupConfigurationTargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).BackupConfigurationTargetLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.TargetLocationTypeConverter.ConvertFrom); + } + if (content.Contains("SourceLocationAzureBlob")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).SourceLocationAzureBlob = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob) content.GetValueForProperty("SourceLocationAzureBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).SourceLocationAzureBlob, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.AzureBlobTypeConverter.ConvertFrom); + } + if (content.Contains("TargetLocationAccountKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).TargetLocationAccountKey = (string) content.GetValueForProperty("TargetLocationAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).TargetLocationAccountKey, global::System.Convert.ToString); + } + if (content.Contains("OfflineConfigurationOffline")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).OfflineConfigurationOffline = (bool?) content.GetValueForProperty("OfflineConfigurationOffline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).OfflineConfigurationOffline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("OfflineConfigurationLastBackupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).OfflineConfigurationLastBackupName = (string) content.GetValueForProperty("OfflineConfigurationLastBackupName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).OfflineConfigurationLastBackupName, global::System.Convert.ToString); + } + if (content.Contains("SourceLocationFileShare")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).SourceLocationFileShare = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare) content.GetValueForProperty("SourceLocationFileShare",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).SourceLocationFileShare, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlFileShareTypeConverter.ConvertFrom); + } + if (content.Contains("SourceLocationFileStorageType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).SourceLocationFileStorageType = (string) content.GetValueForProperty("SourceLocationFileStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).SourceLocationFileStorageType, global::System.Convert.ToString); + } + if (content.Contains("AzureBlobAuthType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobAuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AzureBlobAuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobAuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); + } + if (content.Contains("AzureBlobAccountKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobAccountKey = (string) content.GetValueForProperty("AzureBlobAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobAccountKey, global::System.Convert.ToString); + } + if (content.Contains("TargetLocationStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).TargetLocationStorageAccountResourceId = (string) content.GetValueForProperty("TargetLocationStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).TargetLocationStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("FileSharePath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).FileSharePath = (string) content.GetValueForProperty("FileSharePath",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).FileSharePath, global::System.Convert.ToString); + } + if (content.Contains("FileShareUsername")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).FileShareUsername = (string) content.GetValueForProperty("FileShareUsername",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).FileShareUsername, global::System.Convert.ToString); + } + if (content.Contains("FileSharePassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).FileSharePassword = (System.Security.SecureString) content.GetValueForProperty("FileSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).FileSharePassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("AzureBlobIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("AzureBlobIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("AzureBlobStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobStorageAccountResourceId = (string) content.GetValueForProperty("AzureBlobStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("AzureBlobContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobContainerName = (string) content.GetValueForProperty("AzureBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).AzureBlobContainerName, global::System.Convert.ToString); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMi DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DatabaseMigrationPropertiesSqlMi(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMi DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DatabaseMigrationPropertiesSqlMi(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMi FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Database Migration Resource properties for SQL Managed Instance. + [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationPropertiesSqlMiTypeConverter))] + public partial interface IDatabaseMigrationPropertiesSqlMi + + { + + } +} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlMi.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlMi.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlMi.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlMi.TypeConverter.cs index 208324703d52..1480e9fdc92a 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlMi.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlMi.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMi ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMi ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMi).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMi).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlMi.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlMi.cs similarity index 61% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlMi.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlMi.cs index 1b09513f7ed9..dcd6e927ff17 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlMi.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlMi.cs @@ -3,78 +3,78 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Database Migration Resource properties for SQL Managed Instance. public partial class DatabaseMigrationPropertiesSqlMi : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMi, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMi, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationProperties __databaseMigrationProperties = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationProperties(); + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationProperties __databaseMigrationProperties = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationProperties(); /// Storage Account Key. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string AzureBlobAccountKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).AzureBlobAccountKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).AzureBlobAccountKey = value ?? null; } + public string AzureBlobAccountKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).AzureBlobAccountKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).AzureBlobAccountKey = value ?? null; } /// Authentication type used for accessing Azure Blob Storage. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType? AzureBlobAuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).AzureBlobAuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).AzureBlobAuthType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType? AzureBlobAuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).AzureBlobAuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).AzureBlobAuthType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType)""); } /// Blob container name where backups are stored. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string AzureBlobContainerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).AzureBlobContainerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).AzureBlobContainerName = value ?? null; } + public string AzureBlobContainerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).AzureBlobContainerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).AzureBlobContainerName = value ?? null; } /// Resource Id of the storage account where backups are stored. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string AzureBlobStorageAccountResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).AzureBlobStorageAccountResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).AzureBlobStorageAccountResourceId = value ?? null; } + public string AzureBlobStorageAccountResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).AzureBlobStorageAccountResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).AzureBlobStorageAccountResourceId = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration _backupConfiguration; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration _backupConfiguration; /// Backup configuration info. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration BackupConfiguration { get => (this._backupConfiguration = this._backupConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.BackupConfiguration()); set => this._backupConfiguration = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration BackupConfiguration { get => (this._backupConfiguration = this._backupConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.BackupConfiguration()); set => this._backupConfiguration = value; } /// Database migration end time. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public global::System.DateTime? EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).EndedOn; } + public global::System.DateTime? EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).EndedOn; } /// Password for username to access file share location. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public System.Security.SecureString FileSharePassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).FileSharePassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).FileSharePassword = value ?? null; } + public System.Security.SecureString FileSharePassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).FileSharePassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).FileSharePassword = value ?? null; } /// Location as SMB share or local drive where backups are placed. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string FileSharePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).FileSharePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).FileSharePath = value ?? null; } + public string FileSharePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).FileSharePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).FileSharePath = value ?? null; } /// Username to access the file share location for backups. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string FileShareUsername { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).FileShareUsername; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).FileShareUsername = value ?? null; } + public string FileShareUsername { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).FileShareUsername; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).FileShareUsername = value ?? null; } /// /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).IdentityPrincipalId; } + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).IdentityPrincipalId; } /// /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).IdentityTenantId; } + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).IdentityTenantId; } /// /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).IdentityType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).IdentityType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType)""); } /// /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM @@ -82,187 +82,187 @@ public partial class DatabaseMigrationPropertiesSqlMi : /// The dictionary values can be empty objects ({}) in requests. /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).IdentityUserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).IdentityUserAssignedIdentity = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).IdentityUserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).IdentityUserAssignedIdentity = value ?? null /* model class */; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).Kind = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).Kind = value ; } /// Internal Acessors for EndedOn - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).EndedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).EndedOn = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).EndedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).EndedOn = value; } /// Internal Acessors for MigrationFailureError - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureError = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureError = value; } /// Internal Acessors for MigrationFailureErrorCode - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorCode = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorCode = value; } /// Internal Acessors for MigrationFailureErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorMessage = value; } /// Internal Acessors for MigrationStatus - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationStatus = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningState = value; } /// Internal Acessors for StartedOn - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).StartedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).StartedOn = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).StartedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).StartedOn = value; } /// Internal Acessors for SourceServerName - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal.SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceServerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceServerName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal.SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceServerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceServerName = value; } /// Internal Acessors for AzureBlobIdentity - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal.AzureBlobIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).AzureBlobIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).AzureBlobIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal.AzureBlobIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).AzureBlobIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).AzureBlobIdentity = value; } /// Internal Acessors for BackupConfiguration - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal.BackupConfiguration { get => (this._backupConfiguration = this._backupConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.BackupConfiguration()); set { {_backupConfiguration = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal.BackupConfiguration { get => (this._backupConfiguration = this._backupConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.BackupConfiguration()); set { {_backupConfiguration = value;} } } /// Internal Acessors for BackupConfigurationSourceLocation - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal.BackupConfigurationSourceLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).SourceLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).SourceLocation = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal.BackupConfigurationSourceLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).SourceLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).SourceLocation = value; } /// Internal Acessors for BackupConfigurationTargetLocation - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal.BackupConfigurationTargetLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).TargetLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).TargetLocation = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal.BackupConfigurationTargetLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).TargetLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).TargetLocation = value; } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).IdentityPrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).IdentityPrincipalId = value; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).IdentityTenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).IdentityTenantId = value; } /// Internal Acessors for MigrationStatusDetail - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal.MigrationStatusDetail { get => (this._migrationStatusDetail = this._migrationStatusDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationStatusDetails()); set { {_migrationStatusDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal.MigrationStatusDetail { get => (this._migrationStatusDetail = this._migrationStatusDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationStatusDetails()); set { {_migrationStatusDetail = value;} } } /// Internal Acessors for OfflineConfiguration - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal.OfflineConfiguration { get => (this._offlineConfiguration = this._offlineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OfflineConfiguration()); set { {_offlineConfiguration = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal.OfflineConfiguration { get => (this._offlineConfiguration = this._offlineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OfflineConfiguration()); set { {_offlineConfiguration = value;} } } /// Internal Acessors for SourceLocationAzureBlob - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal.SourceLocationAzureBlob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).SourceLocationAzureBlob; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).SourceLocationAzureBlob = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal.SourceLocationAzureBlob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).SourceLocationAzureBlob; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).SourceLocationAzureBlob = value; } /// Internal Acessors for SourceLocationFileShare - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal.SourceLocationFileShare { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).SourceLocationFileShare; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).SourceLocationFileShare = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal.SourceLocationFileShare { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).SourceLocationFileShare; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).SourceLocationFileShare = value; } /// Internal Acessors for SourceLocationFileStorageType - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal.SourceLocationFileStorageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).SourceLocationFileStorageType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).SourceLocationFileStorageType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal.SourceLocationFileStorageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).SourceLocationFileStorageType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).SourceLocationFileStorageType = value; } /// Error details in case of migration failure. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureError; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureError; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorCode; } + public string MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorCode; } /// Error message. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorMessage; } + public string MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorMessage; } /// ID for current migration operation. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string MigrationOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationOperationId = value ?? null; } + public string MigrationOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationOperationId = value ?? null; } /// Resource Id of the Migration Service. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string MigrationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationService = value ?? null; } + public string MigrationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationService = value ?? null; } /// Migration status. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationStatus; } + public string MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationStatus; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails _migrationStatusDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails _migrationStatusDetail; /// Detailed migration status. Not included by default. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails MigrationStatusDetail { get => (this._migrationStatusDetail = this._migrationStatusDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationStatusDetails()); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails MigrationStatusDetail { get => (this._migrationStatusDetail = this._migrationStatusDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationStatusDetails()); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration _offlineConfiguration; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration _offlineConfiguration; /// Offline configuration. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration OfflineConfiguration { get => (this._offlineConfiguration = this._offlineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OfflineConfiguration()); set => this._offlineConfiguration = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration OfflineConfiguration { get => (this._offlineConfiguration = this._offlineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OfflineConfiguration()); set => this._offlineConfiguration = value; } /// /// 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. /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string OfflineConfigurationLastBackupName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfigurationInternal)OfflineConfiguration).LastBackupName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfigurationInternal)OfflineConfiguration).LastBackupName = value ?? null; } + public string OfflineConfigurationLastBackupName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfigurationInternal)OfflineConfiguration).LastBackupName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfigurationInternal)OfflineConfiguration).LastBackupName = value ?? null; } /// Offline migration [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public bool? OfflineConfigurationOffline { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfigurationInternal)OfflineConfiguration).Offline; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfigurationInternal)OfflineConfiguration).Offline = value ?? default(bool); } + public bool? OfflineConfigurationOffline { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfigurationInternal)OfflineConfiguration).Offline; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfigurationInternal)OfflineConfiguration).Offline = value ?? default(bool); } /// Error message for migration provisioning failure, if any. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string ProvisioningError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningError = value ?? null; } + public string ProvisioningError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningError = value ?? null; } /// /// Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration /// has started. /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningState; } /// Resource Id of the target resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).Scope = value ?? null; } + public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).Scope = value ?? null; } /// Name of the source database. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string SourceDatabaseName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceDatabaseName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceDatabaseName = value ?? null; } + public string SourceDatabaseName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceDatabaseName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceDatabaseName = value ?? null; } /// Backup storage Type. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string SourceLocationFileStorageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).SourceLocationFileStorageType; } + public string SourceLocationFileStorageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).SourceLocationFileStorageType; } /// Name of the source sql server. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceServerName; } + public string SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceServerName; } /// Source SQL Server connection details. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation SourceSqlConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnection = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation SourceSqlConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnection = value ?? null /* model class */; } /// Authentication type. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string SourceSqlConnectionAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionAuthentication = value ?? null; } + public string SourceSqlConnectionAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionAuthentication = value ?? null; } /// Data source. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string SourceSqlConnectionDataSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionDataSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionDataSource = value ?? null; } + public string SourceSqlConnectionDataSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionDataSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionDataSource = value ?? null; } /// Whether to encrypt connection or not. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public bool? SourceSqlConnectionEncryptConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionEncryptConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionEncryptConnection = value ?? default(bool); } + public bool? SourceSqlConnectionEncryptConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionEncryptConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionEncryptConnection = value ?? default(bool); } /// Password to connect to source SQL. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public System.Security.SecureString SourceSqlConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionPassword = value ?? null; } + public System.Security.SecureString SourceSqlConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionPassword = value ?? null; } /// Whether to trust server certificate or not. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public bool? SourceSqlConnectionTrustServerCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionTrustServerCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionTrustServerCertificate = value ?? default(bool); } + public bool? SourceSqlConnectionTrustServerCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionTrustServerCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionTrustServerCertificate = value ?? default(bool); } /// User name to connect to source SQL. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string SourceSqlConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionUserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionUserName = value ?? null; } + public string SourceSqlConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionUserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionUserName = value ?? null; } /// Database migration start time. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public global::System.DateTime? StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).StartedOn; } + public global::System.DateTime? StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).StartedOn; } /// Database collation to be used for the target database. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string TargetDatabaseCollation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).TargetDatabaseCollation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).TargetDatabaseCollation = value ?? null; } + public string TargetDatabaseCollation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).TargetDatabaseCollation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).TargetDatabaseCollation = value ?? null; } /// Storage Account Key. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string TargetLocationAccountKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).TargetLocationAccountKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).TargetLocationAccountKey = value ?? null; } + public string TargetLocationAccountKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).TargetLocationAccountKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).TargetLocationAccountKey = value ?? null; } /// Resource Id of the storage account copying backups. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string TargetLocationStorageAccountResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).TargetLocationStorageAccountResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).TargetLocationStorageAccountResourceId = value ?? null; } + public string TargetLocationStorageAccountResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).TargetLocationStorageAccountResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).TargetLocationStorageAccountResourceId = value ?? null; } /// Creates an new instance. public DatabaseMigrationPropertiesSqlMi() @@ -285,7 +285,7 @@ public DatabaseMigrationPropertiesSqlMi() /// Database Migration Resource properties for SQL Managed Instance. public partial interface IDatabaseMigrationPropertiesSqlMi : Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationProperties + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationProperties { /// Storage Account Key. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( @@ -391,8 +391,8 @@ public partial interface IDatabaseMigrationPropertiesSqlMi : ReadOnly = true, Description = @"Detailed migration status. Not included by default.", SerializedName = @"migrationStatusDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails MigrationStatusDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails MigrationStatusDetail { get; } /// /// 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. @@ -440,7 +440,7 @@ public partial interface IDatabaseMigrationPropertiesSqlMi : } /// Database Migration Resource properties for SQL Managed Instance. internal partial interface IDatabaseMigrationPropertiesSqlMiInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal { /// Storage Account Key. string AzureBlobAccountKey { get; set; } @@ -453,11 +453,11 @@ internal partial interface IDatabaseMigrationPropertiesSqlMiInternal : /// Resource Id of the storage account where backups are stored. string AzureBlobStorageAccountResourceId { get; set; } /// Backup configuration info. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration BackupConfiguration { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration BackupConfiguration { get; set; } /// Source location of backups. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation BackupConfigurationSourceLocation { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation BackupConfigurationSourceLocation { get; set; } /// Target location for copying backups. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation BackupConfigurationTargetLocation { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation BackupConfigurationTargetLocation { get; set; } /// Password for username to access file share location. System.Security.SecureString FileSharePassword { get; set; } /// Location as SMB share or local drive where backups are placed. @@ -483,9 +483,9 @@ internal partial interface IDatabaseMigrationPropertiesSqlMiInternal : /// Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } /// Detailed migration status. Not included by default. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails MigrationStatusDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails MigrationStatusDetail { get; set; } /// Offline configuration. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration OfflineConfiguration { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration OfflineConfiguration { get; set; } /// /// 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. @@ -494,9 +494,9 @@ internal partial interface IDatabaseMigrationPropertiesSqlMiInternal : /// Offline migration bool? OfflineConfigurationOffline { get; set; } /// Source Azure Blob. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob SourceLocationAzureBlob { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob SourceLocationAzureBlob { get; set; } /// Source File share. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare SourceLocationFileShare { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare SourceLocationFileShare { get; set; } /// Backup storage Type. string SourceLocationFileStorageType { get; set; } /// Storage Account Key. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlMi.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlMi.json.cs similarity index 91% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlMi.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlMi.json.cs index 98f51cf321bd..68a3a9c09558 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlMi.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlMi.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -65,21 +65,21 @@ internal DatabaseMigrationPropertiesSqlMi(Microsoft.Azure.PowerShell.Cmdlets.Dat { return; } - __databaseMigrationProperties = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationProperties(json); - {_backupConfiguration = If( json?.PropertyT("backupConfiguration"), out var __jsonBackupConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.BackupConfiguration.FromJson(__jsonBackupConfiguration) : BackupConfiguration;} - {_offlineConfiguration = If( json?.PropertyT("offlineConfiguration"), out var __jsonOfflineConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OfflineConfiguration.FromJson(__jsonOfflineConfiguration) : OfflineConfiguration;} - {_migrationStatusDetail = If( json?.PropertyT("migrationStatusDetails"), out var __jsonMigrationStatusDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationStatusDetails.FromJson(__jsonMigrationStatusDetails) : MigrationStatusDetail;} + __databaseMigrationProperties = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationProperties(json); + {_backupConfiguration = If( json?.PropertyT("backupConfiguration"), out var __jsonBackupConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.BackupConfiguration.FromJson(__jsonBackupConfiguration) : BackupConfiguration;} + {_offlineConfiguration = If( json?.PropertyT("offlineConfiguration"), out var __jsonOfflineConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OfflineConfiguration.FromJson(__jsonOfflineConfiguration) : OfflineConfiguration;} + {_migrationStatusDetail = If( json?.PropertyT("migrationStatusDetails"), out var __jsonMigrationStatusDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationStatusDetails.FromJson(__jsonMigrationStatusDetails) : MigrationStatusDetail;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMi. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMi. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMi. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMi. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMi FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMi FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new DatabaseMigrationPropertiesSqlMi(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlVM.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlVM.PowerShell.cs new file mode 100644 index 000000000000..cd6e4ebfb978 --- /dev/null +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlVM.PowerShell.cs @@ -0,0 +1,506 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; + + /// Database Migration Resource properties for SQL Virtual Machine. + [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationPropertiesSqlVMTypeConverter))] + public partial class DatabaseMigrationPropertiesSqlVM + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DatabaseMigrationPropertiesSqlVM(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("BackupConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).BackupConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration) content.GetValueForProperty("BackupConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).BackupConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.BackupConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("OfflineConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).OfflineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration) content.GetValueForProperty("OfflineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).OfflineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OfflineConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("MigrationStatusDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).MigrationStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails) content.GetValueForProperty("MigrationStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).MigrationStatusDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationStatusDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("MigrationFailureErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfoTypeConverter.ConvertFrom); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Scope, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("MigrationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus, global::System.Convert.ToString); + } + if (content.Contains("StartedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MigrationService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationService, global::System.Convert.ToString); + } + if (content.Contains("MigrationOperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionDataSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionAuthentication")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionUserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("SourceSqlConnectionEncryptConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SourceSqlConnectionTrustServerCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SourceSqlConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformationTypeConverter.ConvertFrom); + } + if (content.Contains("SourceDatabaseName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName, global::System.Convert.ToString); + } + if (content.Contains("SourceServerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceServerName, global::System.Convert.ToString); + } + if (content.Contains("TargetDatabaseCollation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); + } + if (content.Contains("BackupConfigurationSourceLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).BackupConfigurationSourceLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation) content.GetValueForProperty("BackupConfigurationSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).BackupConfigurationSourceLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SourceLocationTypeConverter.ConvertFrom); + } + if (content.Contains("BackupConfigurationTargetLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).BackupConfigurationTargetLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation) content.GetValueForProperty("BackupConfigurationTargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).BackupConfigurationTargetLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.TargetLocationTypeConverter.ConvertFrom); + } + if (content.Contains("SourceLocationAzureBlob")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).SourceLocationAzureBlob = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob) content.GetValueForProperty("SourceLocationAzureBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).SourceLocationAzureBlob, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.AzureBlobTypeConverter.ConvertFrom); + } + if (content.Contains("TargetLocationAccountKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).TargetLocationAccountKey = (string) content.GetValueForProperty("TargetLocationAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).TargetLocationAccountKey, global::System.Convert.ToString); + } + if (content.Contains("OfflineConfigurationOffline")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).OfflineConfigurationOffline = (bool?) content.GetValueForProperty("OfflineConfigurationOffline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).OfflineConfigurationOffline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("OfflineConfigurationLastBackupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).OfflineConfigurationLastBackupName = (string) content.GetValueForProperty("OfflineConfigurationLastBackupName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).OfflineConfigurationLastBackupName, global::System.Convert.ToString); + } + if (content.Contains("SourceLocationFileShare")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).SourceLocationFileShare = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare) content.GetValueForProperty("SourceLocationFileShare",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).SourceLocationFileShare, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlFileShareTypeConverter.ConvertFrom); + } + if (content.Contains("SourceLocationFileStorageType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).SourceLocationFileStorageType = (string) content.GetValueForProperty("SourceLocationFileStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).SourceLocationFileStorageType, global::System.Convert.ToString); + } + if (content.Contains("AzureBlobAuthType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobAuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AzureBlobAuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobAuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); + } + if (content.Contains("AzureBlobAccountKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobAccountKey = (string) content.GetValueForProperty("AzureBlobAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobAccountKey, global::System.Convert.ToString); + } + if (content.Contains("TargetLocationStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).TargetLocationStorageAccountResourceId = (string) content.GetValueForProperty("TargetLocationStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).TargetLocationStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("FileSharePath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).FileSharePath = (string) content.GetValueForProperty("FileSharePath",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).FileSharePath, global::System.Convert.ToString); + } + if (content.Contains("FileShareUsername")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).FileShareUsername = (string) content.GetValueForProperty("FileShareUsername",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).FileShareUsername, global::System.Convert.ToString); + } + if (content.Contains("FileSharePassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).FileSharePassword = (System.Security.SecureString) content.GetValueForProperty("FileSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).FileSharePassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("AzureBlobIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("AzureBlobIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("AzureBlobStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobStorageAccountResourceId = (string) content.GetValueForProperty("AzureBlobStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("AzureBlobContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobContainerName = (string) content.GetValueForProperty("AzureBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobContainerName, global::System.Convert.ToString); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DatabaseMigrationPropertiesSqlVM(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("BackupConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).BackupConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration) content.GetValueForProperty("BackupConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).BackupConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.BackupConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("OfflineConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).OfflineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration) content.GetValueForProperty("OfflineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).OfflineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OfflineConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("MigrationStatusDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).MigrationStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails) content.GetValueForProperty("MigrationStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).MigrationStatusDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationStatusDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("MigrationFailureErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfoTypeConverter.ConvertFrom); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).Scope, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("MigrationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationStatus, global::System.Convert.ToString); + } + if (content.Contains("StartedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MigrationService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationService, global::System.Convert.ToString); + } + if (content.Contains("MigrationOperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).MigrationOperationId, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)this).ProvisioningError, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionDataSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionAuthentication")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionUserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("SourceSqlConnectionEncryptConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SourceSqlConnectionTrustServerCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SourceSqlConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformationTypeConverter.ConvertFrom); + } + if (content.Contains("SourceDatabaseName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceDatabaseName, global::System.Convert.ToString); + } + if (content.Contains("SourceServerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).SourceServerName, global::System.Convert.ToString); + } + if (content.Contains("TargetDatabaseCollation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); + } + if (content.Contains("BackupConfigurationSourceLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).BackupConfigurationSourceLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation) content.GetValueForProperty("BackupConfigurationSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).BackupConfigurationSourceLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SourceLocationTypeConverter.ConvertFrom); + } + if (content.Contains("BackupConfigurationTargetLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).BackupConfigurationTargetLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation) content.GetValueForProperty("BackupConfigurationTargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).BackupConfigurationTargetLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.TargetLocationTypeConverter.ConvertFrom); + } + if (content.Contains("SourceLocationAzureBlob")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).SourceLocationAzureBlob = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob) content.GetValueForProperty("SourceLocationAzureBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).SourceLocationAzureBlob, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.AzureBlobTypeConverter.ConvertFrom); + } + if (content.Contains("TargetLocationAccountKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).TargetLocationAccountKey = (string) content.GetValueForProperty("TargetLocationAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).TargetLocationAccountKey, global::System.Convert.ToString); + } + if (content.Contains("OfflineConfigurationOffline")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).OfflineConfigurationOffline = (bool?) content.GetValueForProperty("OfflineConfigurationOffline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).OfflineConfigurationOffline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("OfflineConfigurationLastBackupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).OfflineConfigurationLastBackupName = (string) content.GetValueForProperty("OfflineConfigurationLastBackupName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).OfflineConfigurationLastBackupName, global::System.Convert.ToString); + } + if (content.Contains("SourceLocationFileShare")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).SourceLocationFileShare = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare) content.GetValueForProperty("SourceLocationFileShare",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).SourceLocationFileShare, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlFileShareTypeConverter.ConvertFrom); + } + if (content.Contains("SourceLocationFileStorageType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).SourceLocationFileStorageType = (string) content.GetValueForProperty("SourceLocationFileStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).SourceLocationFileStorageType, global::System.Convert.ToString); + } + if (content.Contains("AzureBlobAuthType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobAuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AzureBlobAuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobAuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); + } + if (content.Contains("AzureBlobAccountKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobAccountKey = (string) content.GetValueForProperty("AzureBlobAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobAccountKey, global::System.Convert.ToString); + } + if (content.Contains("TargetLocationStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).TargetLocationStorageAccountResourceId = (string) content.GetValueForProperty("TargetLocationStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).TargetLocationStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("FileSharePath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).FileSharePath = (string) content.GetValueForProperty("FileSharePath",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).FileSharePath, global::System.Convert.ToString); + } + if (content.Contains("FileShareUsername")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).FileShareUsername = (string) content.GetValueForProperty("FileShareUsername",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).FileShareUsername, global::System.Convert.ToString); + } + if (content.Contains("FileSharePassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).FileSharePassword = (System.Security.SecureString) content.GetValueForProperty("FileSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).FileSharePassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("AzureBlobIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("AzureBlobIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("AzureBlobStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobStorageAccountResourceId = (string) content.GetValueForProperty("AzureBlobStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("AzureBlobContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobContainerName = (string) content.GetValueForProperty("AzureBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).AzureBlobContainerName, global::System.Convert.ToString); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVM DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DatabaseMigrationPropertiesSqlVM(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVM DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DatabaseMigrationPropertiesSqlVM(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVM FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Database Migration Resource properties for SQL Virtual Machine. + [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationPropertiesSqlVMTypeConverter))] + public partial interface IDatabaseMigrationPropertiesSqlVM + + { + + } +} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlVM.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlVM.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlVM.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlVM.TypeConverter.cs index 178b24abfd84..5f662e494806 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlVM.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlVM.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVM ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVM ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVM).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVM).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlVM.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlVM.cs similarity index 61% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlVM.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlVM.cs index 1339fe1690be..9d434c9b0b1a 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlVM.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlVM.cs @@ -3,78 +3,78 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Database Migration Resource properties for SQL Virtual Machine. public partial class DatabaseMigrationPropertiesSqlVM : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVM, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVM, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationProperties __databaseMigrationProperties = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationProperties(); + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationProperties __databaseMigrationProperties = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationProperties(); /// Storage Account Key. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string AzureBlobAccountKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).AzureBlobAccountKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).AzureBlobAccountKey = value ?? null; } + public string AzureBlobAccountKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).AzureBlobAccountKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).AzureBlobAccountKey = value ?? null; } /// Authentication type used for accessing Azure Blob Storage. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType? AzureBlobAuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).AzureBlobAuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).AzureBlobAuthType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType? AzureBlobAuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).AzureBlobAuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).AzureBlobAuthType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType)""); } /// Blob container name where backups are stored. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string AzureBlobContainerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).AzureBlobContainerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).AzureBlobContainerName = value ?? null; } + public string AzureBlobContainerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).AzureBlobContainerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).AzureBlobContainerName = value ?? null; } /// Resource Id of the storage account where backups are stored. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string AzureBlobStorageAccountResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).AzureBlobStorageAccountResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).AzureBlobStorageAccountResourceId = value ?? null; } + public string AzureBlobStorageAccountResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).AzureBlobStorageAccountResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).AzureBlobStorageAccountResourceId = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration _backupConfiguration; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration _backupConfiguration; /// Backup configuration info. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration BackupConfiguration { get => (this._backupConfiguration = this._backupConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.BackupConfiguration()); set => this._backupConfiguration = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration BackupConfiguration { get => (this._backupConfiguration = this._backupConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.BackupConfiguration()); set => this._backupConfiguration = value; } /// Database migration end time. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public global::System.DateTime? EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).EndedOn; } + public global::System.DateTime? EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).EndedOn; } /// Password for username to access file share location. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public System.Security.SecureString FileSharePassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).FileSharePassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).FileSharePassword = value ?? null; } + public System.Security.SecureString FileSharePassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).FileSharePassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).FileSharePassword = value ?? null; } /// Location as SMB share or local drive where backups are placed. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string FileSharePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).FileSharePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).FileSharePath = value ?? null; } + public string FileSharePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).FileSharePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).FileSharePath = value ?? null; } /// Username to access the file share location for backups. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string FileShareUsername { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).FileShareUsername; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).FileShareUsername = value ?? null; } + public string FileShareUsername { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).FileShareUsername; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).FileShareUsername = value ?? null; } /// /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).IdentityPrincipalId; } + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).IdentityPrincipalId; } /// /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).IdentityTenantId; } + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).IdentityTenantId; } /// /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).IdentityType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).IdentityType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType)""); } /// /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM @@ -82,187 +82,187 @@ public partial class DatabaseMigrationPropertiesSqlVM : /// The dictionary values can be empty objects ({}) in requests. /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).IdentityUserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).IdentityUserAssignedIdentity = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).IdentityUserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).IdentityUserAssignedIdentity = value ?? null /* model class */; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).Kind = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).Kind = value ; } /// Internal Acessors for EndedOn - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).EndedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).EndedOn = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).EndedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).EndedOn = value; } /// Internal Acessors for MigrationFailureError - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureError = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureError = value; } /// Internal Acessors for MigrationFailureErrorCode - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorCode = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorCode = value; } /// Internal Acessors for MigrationFailureErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorMessage = value; } /// Internal Acessors for MigrationStatus - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationStatus = value; } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningState = value; } /// Internal Acessors for StartedOn - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal.StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).StartedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).StartedOn = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal.StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).StartedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).StartedOn = value; } /// Internal Acessors for SourceServerName - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal.SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceServerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceServerName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal.SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceServerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceServerName = value; } /// Internal Acessors for AzureBlobIdentity - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal.AzureBlobIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).AzureBlobIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).AzureBlobIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal.AzureBlobIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).AzureBlobIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).AzureBlobIdentity = value; } /// Internal Acessors for BackupConfiguration - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal.BackupConfiguration { get => (this._backupConfiguration = this._backupConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.BackupConfiguration()); set { {_backupConfiguration = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal.BackupConfiguration { get => (this._backupConfiguration = this._backupConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.BackupConfiguration()); set { {_backupConfiguration = value;} } } /// Internal Acessors for BackupConfigurationSourceLocation - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal.BackupConfigurationSourceLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).SourceLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).SourceLocation = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal.BackupConfigurationSourceLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).SourceLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).SourceLocation = value; } /// Internal Acessors for BackupConfigurationTargetLocation - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal.BackupConfigurationTargetLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).TargetLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).TargetLocation = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal.BackupConfigurationTargetLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).TargetLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).TargetLocation = value; } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).IdentityPrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).IdentityPrincipalId = value; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).IdentityTenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).IdentityTenantId = value; } /// Internal Acessors for MigrationStatusDetail - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal.MigrationStatusDetail { get => (this._migrationStatusDetail = this._migrationStatusDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationStatusDetails()); set { {_migrationStatusDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal.MigrationStatusDetail { get => (this._migrationStatusDetail = this._migrationStatusDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationStatusDetails()); set { {_migrationStatusDetail = value;} } } /// Internal Acessors for OfflineConfiguration - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal.OfflineConfiguration { get => (this._offlineConfiguration = this._offlineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OfflineConfiguration()); set { {_offlineConfiguration = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal.OfflineConfiguration { get => (this._offlineConfiguration = this._offlineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OfflineConfiguration()); set { {_offlineConfiguration = value;} } } /// Internal Acessors for SourceLocationAzureBlob - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal.SourceLocationAzureBlob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).SourceLocationAzureBlob; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).SourceLocationAzureBlob = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal.SourceLocationAzureBlob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).SourceLocationAzureBlob; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).SourceLocationAzureBlob = value; } /// Internal Acessors for SourceLocationFileShare - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal.SourceLocationFileShare { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).SourceLocationFileShare; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).SourceLocationFileShare = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal.SourceLocationFileShare { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).SourceLocationFileShare; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).SourceLocationFileShare = value; } /// Internal Acessors for SourceLocationFileStorageType - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal.SourceLocationFileStorageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).SourceLocationFileStorageType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).SourceLocationFileStorageType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal.SourceLocationFileStorageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).SourceLocationFileStorageType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).SourceLocationFileStorageType = value; } /// Error details in case of migration failure. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureError; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureError; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorCode; } + public string MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorCode; } /// Error message. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorMessage; } + public string MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationFailureErrorMessage; } /// ID for current migration operation. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string MigrationOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationOperationId = value ?? null; } + public string MigrationOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationOperationId = value ?? null; } /// Resource Id of the Migration Service. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string MigrationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationService = value ?? null; } + public string MigrationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationService = value ?? null; } /// Migration status. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationStatus; } + public string MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).MigrationStatus; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails _migrationStatusDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails _migrationStatusDetail; /// Detailed migration status. Not included by default. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails MigrationStatusDetail { get => (this._migrationStatusDetail = this._migrationStatusDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationStatusDetails()); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails MigrationStatusDetail { get => (this._migrationStatusDetail = this._migrationStatusDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationStatusDetails()); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration _offlineConfiguration; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration _offlineConfiguration; /// Offline configuration. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration OfflineConfiguration { get => (this._offlineConfiguration = this._offlineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OfflineConfiguration()); set => this._offlineConfiguration = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration OfflineConfiguration { get => (this._offlineConfiguration = this._offlineConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OfflineConfiguration()); set => this._offlineConfiguration = value; } /// /// 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. /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string OfflineConfigurationLastBackupName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfigurationInternal)OfflineConfiguration).LastBackupName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfigurationInternal)OfflineConfiguration).LastBackupName = value ?? null; } + public string OfflineConfigurationLastBackupName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfigurationInternal)OfflineConfiguration).LastBackupName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfigurationInternal)OfflineConfiguration).LastBackupName = value ?? null; } /// Offline migration [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public bool? OfflineConfigurationOffline { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfigurationInternal)OfflineConfiguration).Offline; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfigurationInternal)OfflineConfiguration).Offline = value ?? default(bool); } + public bool? OfflineConfigurationOffline { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfigurationInternal)OfflineConfiguration).Offline; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfigurationInternal)OfflineConfiguration).Offline = value ?? default(bool); } /// Error message for migration provisioning failure, if any. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string ProvisioningError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningError = value ?? null; } + public string ProvisioningError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningError = value ?? null; } /// /// Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration /// has started. /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).ProvisioningState; } /// Resource Id of the target resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).Scope = value ?? null; } + public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).Scope = value ?? null; } /// Name of the source database. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string SourceDatabaseName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceDatabaseName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceDatabaseName = value ?? null; } + public string SourceDatabaseName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceDatabaseName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceDatabaseName = value ?? null; } /// Backup storage Type. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string SourceLocationFileStorageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).SourceLocationFileStorageType; } + public string SourceLocationFileStorageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).SourceLocationFileStorageType; } /// Name of the source sql server. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceServerName; } + public string SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceServerName; } /// Source SQL Server connection details. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation SourceSqlConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnection = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation SourceSqlConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnection = value ?? null /* model class */; } /// Authentication type. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string SourceSqlConnectionAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionAuthentication = value ?? null; } + public string SourceSqlConnectionAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionAuthentication = value ?? null; } /// Data source. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string SourceSqlConnectionDataSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionDataSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionDataSource = value ?? null; } + public string SourceSqlConnectionDataSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionDataSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionDataSource = value ?? null; } /// Whether to encrypt connection or not. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public bool? SourceSqlConnectionEncryptConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionEncryptConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionEncryptConnection = value ?? default(bool); } + public bool? SourceSqlConnectionEncryptConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionEncryptConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionEncryptConnection = value ?? default(bool); } /// Password to connect to source SQL. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public System.Security.SecureString SourceSqlConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionPassword = value ?? null; } + public System.Security.SecureString SourceSqlConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionPassword = value ?? null; } /// Whether to trust server certificate or not. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public bool? SourceSqlConnectionTrustServerCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionTrustServerCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionTrustServerCertificate = value ?? default(bool); } + public bool? SourceSqlConnectionTrustServerCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionTrustServerCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionTrustServerCertificate = value ?? default(bool); } /// User name to connect to source SQL. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string SourceSqlConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionUserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionUserName = value ?? null; } + public string SourceSqlConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionUserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).SourceSqlConnectionUserName = value ?? null; } /// Database migration start time. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public global::System.DateTime? StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).StartedOn; } + public global::System.DateTime? StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)__databaseMigrationProperties).StartedOn; } /// Database collation to be used for the target database. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] - public string TargetDatabaseCollation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).TargetDatabaseCollation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).TargetDatabaseCollation = value ?? null; } + public string TargetDatabaseCollation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).TargetDatabaseCollation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)__databaseMigrationProperties).TargetDatabaseCollation = value ?? null; } /// Storage Account Key. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string TargetLocationAccountKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).TargetLocationAccountKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).TargetLocationAccountKey = value ?? null; } + public string TargetLocationAccountKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).TargetLocationAccountKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).TargetLocationAccountKey = value ?? null; } /// Resource Id of the storage account copying backups. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string TargetLocationStorageAccountResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).TargetLocationStorageAccountResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfigurationInternal)BackupConfiguration).TargetLocationStorageAccountResourceId = value ?? null; } + public string TargetLocationStorageAccountResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).TargetLocationStorageAccountResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfigurationInternal)BackupConfiguration).TargetLocationStorageAccountResourceId = value ?? null; } /// Creates an new instance. public DatabaseMigrationPropertiesSqlVM() @@ -285,7 +285,7 @@ public DatabaseMigrationPropertiesSqlVM() /// Database Migration Resource properties for SQL Virtual Machine. public partial interface IDatabaseMigrationPropertiesSqlVM : Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationProperties + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationProperties { /// Storage Account Key. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( @@ -391,8 +391,8 @@ public partial interface IDatabaseMigrationPropertiesSqlVM : ReadOnly = true, Description = @"Detailed migration status. Not included by default.", SerializedName = @"migrationStatusDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails MigrationStatusDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails MigrationStatusDetail { get; } /// /// 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. @@ -440,7 +440,7 @@ public partial interface IDatabaseMigrationPropertiesSqlVM : } /// Database Migration Resource properties for SQL Virtual Machine. internal partial interface IDatabaseMigrationPropertiesSqlVMInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal { /// Storage Account Key. string AzureBlobAccountKey { get; set; } @@ -453,11 +453,11 @@ internal partial interface IDatabaseMigrationPropertiesSqlVMInternal : /// Resource Id of the storage account where backups are stored. string AzureBlobStorageAccountResourceId { get; set; } /// Backup configuration info. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration BackupConfiguration { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration BackupConfiguration { get; set; } /// Source location of backups. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation BackupConfigurationSourceLocation { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation BackupConfigurationSourceLocation { get; set; } /// Target location for copying backups. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation BackupConfigurationTargetLocation { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation BackupConfigurationTargetLocation { get; set; } /// Password for username to access file share location. System.Security.SecureString FileSharePassword { get; set; } /// Location as SMB share or local drive where backups are placed. @@ -483,9 +483,9 @@ internal partial interface IDatabaseMigrationPropertiesSqlVMInternal : /// Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } /// Detailed migration status. Not included by default. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails MigrationStatusDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails MigrationStatusDetail { get; set; } /// Offline configuration. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration OfflineConfiguration { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration OfflineConfiguration { get; set; } /// /// 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. @@ -494,9 +494,9 @@ internal partial interface IDatabaseMigrationPropertiesSqlVMInternal : /// Offline migration bool? OfflineConfigurationOffline { get; set; } /// Source Azure Blob. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob SourceLocationAzureBlob { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob SourceLocationAzureBlob { get; set; } /// Source File share. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare SourceLocationFileShare { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare SourceLocationFileShare { get; set; } /// Backup storage Type. string SourceLocationFileStorageType { get; set; } /// Storage Account Key. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlVM.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlVM.json.cs similarity index 91% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlVM.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlVM.json.cs index 1d2113065f3b..b423f96d41d9 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationPropertiesSqlVM.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationPropertiesSqlVM.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -65,21 +65,21 @@ internal DatabaseMigrationPropertiesSqlVM(Microsoft.Azure.PowerShell.Cmdlets.Dat { return; } - __databaseMigrationProperties = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationProperties(json); - {_backupConfiguration = If( json?.PropertyT("backupConfiguration"), out var __jsonBackupConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.BackupConfiguration.FromJson(__jsonBackupConfiguration) : BackupConfiguration;} - {_offlineConfiguration = If( json?.PropertyT("offlineConfiguration"), out var __jsonOfflineConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OfflineConfiguration.FromJson(__jsonOfflineConfiguration) : OfflineConfiguration;} - {_migrationStatusDetail = If( json?.PropertyT("migrationStatusDetails"), out var __jsonMigrationStatusDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationStatusDetails.FromJson(__jsonMigrationStatusDetails) : MigrationStatusDetail;} + __databaseMigrationProperties = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationProperties(json); + {_backupConfiguration = If( json?.PropertyT("backupConfiguration"), out var __jsonBackupConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.BackupConfiguration.FromJson(__jsonBackupConfiguration) : BackupConfiguration;} + {_offlineConfiguration = If( json?.PropertyT("offlineConfiguration"), out var __jsonOfflineConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OfflineConfiguration.FromJson(__jsonOfflineConfiguration) : OfflineConfiguration;} + {_migrationStatusDetail = If( json?.PropertyT("migrationStatusDetails"), out var __jsonMigrationStatusDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationStatusDetails.FromJson(__jsonMigrationStatusDetails) : MigrationStatusDetail;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVM. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVM. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVM. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVM. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVM FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVM FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new DatabaseMigrationPropertiesSqlVM(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlDb.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlDb.PowerShell.cs new file mode 100644 index 000000000000..81f0277d6c9b --- /dev/null +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlDb.PowerShell.cs @@ -0,0 +1,514 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; + + /// Database Migration Resource for SQL Database. + [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationSqlDbTypeConverter))] + public partial class DatabaseMigrationSqlDb + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DatabaseMigrationSqlDb(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDb) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlDbTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SystemDataAutoGeneratedTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("MigrationFailureError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfoTypeConverter.ConvertFrom); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).Scope, global::System.Convert.ToString); + } + if (content.Contains("MigrationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationStatus, global::System.Convert.ToString); + } + if (content.Contains("StartedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MigrationService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationService, global::System.Convert.ToString); + } + if (content.Contains("MigrationOperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationOperationId, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).ProvisioningError, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformationTypeConverter.ConvertFrom); + } + if (content.Contains("SourceDatabaseName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceDatabaseName, global::System.Convert.ToString); + } + if (content.Contains("SourceServerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceServerName, global::System.Convert.ToString); + } + if (content.Contains("TargetDatabaseCollation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); + } + if (content.Contains("MigrationStatusDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetails) content.GetValueForProperty("MigrationStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlDbMigrationStatusDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetSqlConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation) content.GetValueForProperty("TargetSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformationTypeConverter.ConvertFrom); + } + if (content.Contains("OfflineConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).OfflineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfiguration) content.GetValueForProperty("OfflineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).OfflineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlDbOfflineConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("TableList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TableList = (string[]) content.GetValueForProperty("TableList",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TableList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("MigrationFailureErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionDataSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionAuthentication")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionUserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("SourceSqlConnectionEncryptConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SourceSqlConnectionTrustServerCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("MigrationStatusDetailMigrationState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetailMigrationState = (string) content.GetValueForProperty("MigrationStatusDetailMigrationState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetailMigrationState, global::System.Convert.ToString); + } + if (content.Contains("MigrationStatusDetailSqlDataCopyError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetailSqlDataCopyError = (string[]) content.GetValueForProperty("MigrationStatusDetailSqlDataCopyError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetailSqlDataCopyError, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("MigrationStatusDetailListOfCopyProgressDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetailListOfCopyProgressDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails[]) content.GetValueForProperty("MigrationStatusDetailListOfCopyProgressDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetailListOfCopyProgressDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.CopyProgressDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("TargetSqlConnectionDataSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionDataSource = (string) content.GetValueForProperty("TargetSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionDataSource, global::System.Convert.ToString); + } + if (content.Contains("TargetSqlConnectionAuthentication")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionAuthentication = (string) content.GetValueForProperty("TargetSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionAuthentication, global::System.Convert.ToString); + } + if (content.Contains("TargetSqlConnectionUserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionUserName = (string) content.GetValueForProperty("TargetSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionUserName, global::System.Convert.ToString); + } + if (content.Contains("TargetSqlConnectionPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("TargetSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("TargetSqlConnectionEncryptConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("TargetSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("TargetSqlConnectionTrustServerCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("TargetSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("OfflineConfigurationOffline")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).OfflineConfigurationOffline = (bool?) content.GetValueForProperty("OfflineConfigurationOffline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).OfflineConfigurationOffline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DatabaseMigrationSqlDb(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDb) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlDbTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SystemDataAutoGeneratedTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("MigrationFailureError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfoTypeConverter.ConvertFrom); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).Scope, global::System.Convert.ToString); + } + if (content.Contains("MigrationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationStatus, global::System.Convert.ToString); + } + if (content.Contains("StartedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MigrationService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationService, global::System.Convert.ToString); + } + if (content.Contains("MigrationOperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationOperationId, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).ProvisioningError, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformationTypeConverter.ConvertFrom); + } + if (content.Contains("SourceDatabaseName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceDatabaseName, global::System.Convert.ToString); + } + if (content.Contains("SourceServerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceServerName, global::System.Convert.ToString); + } + if (content.Contains("TargetDatabaseCollation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); + } + if (content.Contains("MigrationStatusDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetails) content.GetValueForProperty("MigrationStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlDbMigrationStatusDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("TargetSqlConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation) content.GetValueForProperty("TargetSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformationTypeConverter.ConvertFrom); + } + if (content.Contains("OfflineConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).OfflineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfiguration) content.GetValueForProperty("OfflineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).OfflineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlDbOfflineConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("TableList")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TableList = (string[]) content.GetValueForProperty("TableList",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TableList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("MigrationFailureErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionDataSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionAuthentication")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionUserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("SourceSqlConnectionEncryptConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SourceSqlConnectionTrustServerCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("MigrationStatusDetailMigrationState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetailMigrationState = (string) content.GetValueForProperty("MigrationStatusDetailMigrationState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetailMigrationState, global::System.Convert.ToString); + } + if (content.Contains("MigrationStatusDetailSqlDataCopyError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetailSqlDataCopyError = (string[]) content.GetValueForProperty("MigrationStatusDetailSqlDataCopyError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetailSqlDataCopyError, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("MigrationStatusDetailListOfCopyProgressDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetailListOfCopyProgressDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails[]) content.GetValueForProperty("MigrationStatusDetailListOfCopyProgressDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).MigrationStatusDetailListOfCopyProgressDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.CopyProgressDetailsTypeConverter.ConvertFrom)); + } + if (content.Contains("TargetSqlConnectionDataSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionDataSource = (string) content.GetValueForProperty("TargetSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionDataSource, global::System.Convert.ToString); + } + if (content.Contains("TargetSqlConnectionAuthentication")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionAuthentication = (string) content.GetValueForProperty("TargetSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionAuthentication, global::System.Convert.ToString); + } + if (content.Contains("TargetSqlConnectionUserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionUserName = (string) content.GetValueForProperty("TargetSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionUserName, global::System.Convert.ToString); + } + if (content.Contains("TargetSqlConnectionPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("TargetSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("TargetSqlConnectionEncryptConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("TargetSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("TargetSqlConnectionTrustServerCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("TargetSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).TargetSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("OfflineConfigurationOffline")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).OfflineConfigurationOffline = (bool?) content.GetValueForProperty("OfflineConfigurationOffline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal)this).OfflineConfigurationOffline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DatabaseMigrationSqlDb(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DatabaseMigrationSqlDb(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Database Migration Resource for SQL Database. + [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationSqlDbTypeConverter))] + public partial interface IDatabaseMigrationSqlDb + + { + + } +} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlDb.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlDb.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlDb.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlDb.TypeConverter.cs index 992a7fd33a31..a171e04facb0 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlDb.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlDb.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlDb.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlDb.cs similarity index 65% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlDb.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlDb.cs index 340c1ee30be9..ed765c938905 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlDb.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlDb.cs @@ -3,159 +3,159 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Database Migration Resource for SQL Database. public partial class DatabaseMigrationSqlDb : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ProxyResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ProxyResource(); /// Database migration end time. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public global::System.DateTime? EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn; } + public global::System.DateTime? EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Id; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.FormatTable(Index = 2)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType? Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).Kind = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType? Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).Kind = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType)""); } /// Internal Acessors for EndedOn - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal.EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal.EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn = value; } /// Internal Acessors for MigrationFailureError - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal.MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureError = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal.MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureError = value; } /// Internal Acessors for MigrationFailureErrorCode - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal.MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal.MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode = value; } /// Internal Acessors for MigrationFailureErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal.MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal.MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage = value; } /// Internal Acessors for MigrationStatus - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal.MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal.MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus = value; } /// Internal Acessors for MigrationStatusDetail - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetails Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal.MigrationStatusDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).MigrationStatusDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).MigrationStatusDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetails Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal.MigrationStatusDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).MigrationStatusDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).MigrationStatusDetail = value; } /// Internal Acessors for MigrationStatusDetailListOfCopyProgressDetail - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal.MigrationStatusDetailListOfCopyProgressDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).MigrationStatusDetailListOfCopyProgressDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).MigrationStatusDetailListOfCopyProgressDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal.MigrationStatusDetailListOfCopyProgressDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).MigrationStatusDetailListOfCopyProgressDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).MigrationStatusDetailListOfCopyProgressDetail = value; } /// Internal Acessors for MigrationStatusDetailMigrationState - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal.MigrationStatusDetailMigrationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).MigrationStatusDetailMigrationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).MigrationStatusDetailMigrationState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal.MigrationStatusDetailMigrationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).MigrationStatusDetailMigrationState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).MigrationStatusDetailMigrationState = value; } /// Internal Acessors for MigrationStatusDetailSqlDataCopyError - string[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal.MigrationStatusDetailSqlDataCopyError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).MigrationStatusDetailSqlDataCopyError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).MigrationStatusDetailSqlDataCopyError = value; } + string[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal.MigrationStatusDetailSqlDataCopyError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).MigrationStatusDetailSqlDataCopyError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).MigrationStatusDetailSqlDataCopyError = value; } /// Internal Acessors for OfflineConfiguration - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfiguration Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal.OfflineConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).OfflineConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).OfflineConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfiguration Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal.OfflineConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).OfflineConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).OfflineConfiguration = value; } /// Internal Acessors for OfflineConfigurationOffline - bool? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal.OfflineConfigurationOffline { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).OfflineConfigurationOffline; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).OfflineConfigurationOffline = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal.OfflineConfigurationOffline { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).OfflineConfigurationOffline; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).OfflineConfigurationOffline = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDb Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlDb()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDb Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlDb()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for SourceServerName - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal.SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceServerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceServerName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal.SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceServerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceServerName = value; } /// Internal Acessors for SourceSqlConnection - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal.SourceSqlConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnection = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal.SourceSqlConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnection = value; } /// Internal Acessors for StartedOn - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal.StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal.StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn = value; } /// Internal Acessors for TargetSqlConnection - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDbInternal.TargetSqlConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnection = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDbInternal.TargetSqlConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnection = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Type = value; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode; } + public string MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode; } /// Error message. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage; } + public string MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage; } /// ID for current migration operation. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string MigrationOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationOperationId = value ?? null; } + public string MigrationOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationOperationId = value ?? null; } /// Resource Id of the Migration Service. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string MigrationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationService = value ?? null; } + public string MigrationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationService = value ?? null; } /// Migration status. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.FormatTable(Index = 4)] - public string MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus; } + public string MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus; } /// Details on progress of ADF copy activities. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails[] MigrationStatusDetailListOfCopyProgressDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).MigrationStatusDetailListOfCopyProgressDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails[] MigrationStatusDetailListOfCopyProgressDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).MigrationStatusDetailListOfCopyProgressDetail; } /// Current State of Migration. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string MigrationStatusDetailMigrationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).MigrationStatusDetailMigrationState; } + public string MigrationStatusDetailMigrationState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).MigrationStatusDetailMigrationState; } /// Sql Data Copy errors, if any. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string[] MigrationStatusDetailSqlDataCopyError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).MigrationStatusDetailSqlDataCopyError; } + public string[] MigrationStatusDetailSqlDataCopyError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).MigrationStatusDetailSqlDataCopyError; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.FormatTable(Index = 0)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Name; } /// Offline migration [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public bool? OfflineConfigurationOffline { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).OfflineConfigurationOffline; } + public bool? OfflineConfigurationOffline { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).OfflineConfigurationOffline; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDb _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDb _property; /// Database Migration Resource properties for SQL database. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDb Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlDb()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDb Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlDb()); set => this._property = value; } /// Error message for migration provisioning failure, if any. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string ProvisioningError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningError = value ?? null; } + public string ProvisioningError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningError = value ?? null; } /// /// Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration @@ -163,132 +163,132 @@ public partial class DatabaseMigrationSqlDb : /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.FormatTable(Index = 3)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState; } /// Resource Id of the target resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).Scope = value ?? null; } + public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).Scope = value ?? null; } /// Name of the source database. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SourceDatabaseName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceDatabaseName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceDatabaseName = value ?? null; } + public string SourceDatabaseName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceDatabaseName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceDatabaseName = value ?? null; } /// Name of the source sql server. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceServerName; } + public string SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceServerName; } /// Authentication type. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SourceSqlConnectionAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionAuthentication = value ?? null; } + public string SourceSqlConnectionAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionAuthentication = value ?? null; } /// Data source. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SourceSqlConnectionDataSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionDataSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionDataSource = value ?? null; } + public string SourceSqlConnectionDataSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionDataSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionDataSource = value ?? null; } /// Whether to encrypt connection or not. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public bool? SourceSqlConnectionEncryptConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionEncryptConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionEncryptConnection = value ?? default(bool); } + public bool? SourceSqlConnectionEncryptConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionEncryptConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionEncryptConnection = value ?? default(bool); } /// Password to connect to source SQL. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public System.Security.SecureString SourceSqlConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionPassword = value ?? null; } + public System.Security.SecureString SourceSqlConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionPassword = value ?? null; } /// Whether to trust server certificate or not. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public bool? SourceSqlConnectionTrustServerCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionTrustServerCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionTrustServerCertificate = value ?? default(bool); } + public bool? SourceSqlConnectionTrustServerCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionTrustServerCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionTrustServerCertificate = value ?? default(bool); } /// User name to connect to source SQL. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SourceSqlConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionUserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionUserName = value ?? null; } + public string SourceSqlConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionUserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionUserName = value ?? null; } /// Database migration start time. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public global::System.DateTime? StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn; } + public global::System.DateTime? StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn; } /// Metadata pertaining to creation and last modification of the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemData; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType)""); } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType)""); } /// List of tables to copy. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string[] TableList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).TableList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).TableList = value ?? null /* arrayOf */; } + public string[] TableList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).TableList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).TableList = value ?? null /* arrayOf */; } /// Database collation to be used for the target database. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string TargetDatabaseCollation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).TargetDatabaseCollation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).TargetDatabaseCollation = value ?? null; } + public string TargetDatabaseCollation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).TargetDatabaseCollation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).TargetDatabaseCollation = value ?? null; } /// Authentication type. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string TargetSqlConnectionAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnectionAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnectionAuthentication = value ?? null; } + public string TargetSqlConnectionAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnectionAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnectionAuthentication = value ?? null; } /// Data source. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string TargetSqlConnectionDataSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnectionDataSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnectionDataSource = value ?? null; } + public string TargetSqlConnectionDataSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnectionDataSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnectionDataSource = value ?? null; } /// Whether to encrypt connection or not. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public bool? TargetSqlConnectionEncryptConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnectionEncryptConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnectionEncryptConnection = value ?? default(bool); } + public bool? TargetSqlConnectionEncryptConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnectionEncryptConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnectionEncryptConnection = value ?? default(bool); } /// Password to connect to source SQL. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public System.Security.SecureString TargetSqlConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnectionPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnectionPassword = value ?? null; } + public System.Security.SecureString TargetSqlConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnectionPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnectionPassword = value ?? null; } /// Whether to trust server certificate or not. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public bool? TargetSqlConnectionTrustServerCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnectionTrustServerCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnectionTrustServerCertificate = value ?? default(bool); } + public bool? TargetSqlConnectionTrustServerCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnectionTrustServerCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnectionTrustServerCertificate = value ?? default(bool); } /// User name to connect to source SQL. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string TargetSqlConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnectionUserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnectionUserName = value ?? null; } + public string TargetSqlConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnectionUserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDbInternal)Property).TargetSqlConnectionUserName = value ?? null; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.FormatTable(Index = 1)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Type; } /// Creates an new instance. public DatabaseMigrationSqlDb() @@ -311,7 +311,7 @@ public DatabaseMigrationSqlDb() /// Database Migration Resource for SQL Database. public partial interface IDatabaseMigrationSqlDb : Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResource + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResource { /// Database migration end time. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( @@ -375,8 +375,8 @@ public partial interface IDatabaseMigrationSqlDb : ReadOnly = true, Description = @"Details on progress of ADF copy activities.", SerializedName = @"listOfCopyProgressDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails[] MigrationStatusDetailListOfCopyProgressDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails[] MigrationStatusDetailListOfCopyProgressDetail { get; } /// Current State of Migration. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( Required = false, @@ -568,14 +568,14 @@ public partial interface IDatabaseMigrationSqlDb : } /// Database Migration Resource for SQL Database. internal partial interface IDatabaseMigrationSqlDbInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal { /// Database migration end time. global::System.DateTime? EndedOn { get; set; } Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType? Kind { get; set; } /// Error details in case of migration failure. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo MigrationFailureError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo MigrationFailureError { get; set; } /// Error code. string MigrationFailureErrorCode { get; set; } /// Error message. @@ -587,19 +587,19 @@ internal partial interface IDatabaseMigrationSqlDbInternal : /// Migration status. string MigrationStatus { get; set; } /// Detailed migration status. Not included by default. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetails MigrationStatusDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetails MigrationStatusDetail { get; set; } /// Details on progress of ADF copy activities. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails[] MigrationStatusDetailListOfCopyProgressDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails[] MigrationStatusDetailListOfCopyProgressDetail { get; set; } /// Current State of Migration. string MigrationStatusDetailMigrationState { get; set; } /// Sql Data Copy errors, if any. string[] MigrationStatusDetailSqlDataCopyError { get; set; } /// Offline configuration. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfiguration OfflineConfiguration { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfiguration OfflineConfiguration { get; set; } /// Offline migration bool? OfflineConfigurationOffline { get; set; } /// Database Migration Resource properties for SQL database. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlDb Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlDb Property { get; set; } /// Error message for migration provisioning failure, if any. string ProvisioningError { get; set; } /// @@ -614,7 +614,7 @@ internal partial interface IDatabaseMigrationSqlDbInternal : /// Name of the source sql server. string SourceServerName { get; set; } /// Source SQL Server connection details. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation SourceSqlConnection { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation SourceSqlConnection { get; set; } /// Authentication type. string SourceSqlConnectionAuthentication { get; set; } /// Data source. @@ -634,7 +634,7 @@ internal partial interface IDatabaseMigrationSqlDbInternal : /// Database collation to be used for the target database. string TargetDatabaseCollation { get; set; } /// Target SQL DB connection details. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation TargetSqlConnection { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation TargetSqlConnection { get; set; } /// Authentication type. string TargetSqlConnectionAuthentication { get; set; } /// Data source. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlDb.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlDb.json.cs similarity index 93% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlDb.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlDb.json.cs index a3fe6972d25b..ab4f8727d313 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlDb.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlDb.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DatabaseMigrationSqlDb(Microsoft.Azure.PowerShell.Cmdlets.DataMigration { return; } - __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ProxyResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlDb.FromJson(__jsonProperties) : Property;} + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ProxyResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlDb.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new DatabaseMigrationSqlDb(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlMi.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlMi.PowerShell.cs new file mode 100644 index 000000000000..dfb74a4acb2d --- /dev/null +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlMi.PowerShell.cs @@ -0,0 +1,594 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; + + /// Database Migration Resource for SQL Managed Instance. + [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationSqlMiTypeConverter))] + public partial class DatabaseMigrationSqlMi + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DatabaseMigrationSqlMi(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMi) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlMiTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SystemDataAutoGeneratedTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("BackupConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).BackupConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration) content.GetValueForProperty("BackupConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).BackupConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.BackupConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("OfflineConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).OfflineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration) content.GetValueForProperty("OfflineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).OfflineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OfflineConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("MigrationFailureError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfoTypeConverter.ConvertFrom); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).Scope, global::System.Convert.ToString); + } + if (content.Contains("MigrationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationStatus, global::System.Convert.ToString); + } + if (content.Contains("StartedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MigrationService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationService, global::System.Convert.ToString); + } + if (content.Contains("MigrationOperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationOperationId, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).ProvisioningError, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformationTypeConverter.ConvertFrom); + } + if (content.Contains("SourceDatabaseName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceDatabaseName, global::System.Convert.ToString); + } + if (content.Contains("SourceServerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceServerName, global::System.Convert.ToString); + } + if (content.Contains("TargetDatabaseCollation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); + } + if (content.Contains("MigrationStatusDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails) content.GetValueForProperty("MigrationStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationStatusDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationStatusDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("BackupConfigurationSourceLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).BackupConfigurationSourceLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation) content.GetValueForProperty("BackupConfigurationSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).BackupConfigurationSourceLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SourceLocationTypeConverter.ConvertFrom); + } + if (content.Contains("BackupConfigurationTargetLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).BackupConfigurationTargetLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation) content.GetValueForProperty("BackupConfigurationTargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).BackupConfigurationTargetLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.TargetLocationTypeConverter.ConvertFrom); + } + if (content.Contains("MigrationFailureErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionDataSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionAuthentication")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionUserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("SourceSqlConnectionEncryptConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SourceSqlConnectionTrustServerCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SourceLocationAzureBlob")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceLocationAzureBlob = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob) content.GetValueForProperty("SourceLocationAzureBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceLocationAzureBlob, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.AzureBlobTypeConverter.ConvertFrom); + } + if (content.Contains("TargetLocationAccountKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).TargetLocationAccountKey = (string) content.GetValueForProperty("TargetLocationAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).TargetLocationAccountKey, global::System.Convert.ToString); + } + if (content.Contains("OfflineConfigurationOffline")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).OfflineConfigurationOffline = (bool?) content.GetValueForProperty("OfflineConfigurationOffline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).OfflineConfigurationOffline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("OfflineConfigurationLastBackupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).OfflineConfigurationLastBackupName = (string) content.GetValueForProperty("OfflineConfigurationLastBackupName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).OfflineConfigurationLastBackupName, global::System.Convert.ToString); + } + if (content.Contains("SourceLocationFileShare")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceLocationFileShare = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare) content.GetValueForProperty("SourceLocationFileShare",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceLocationFileShare, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlFileShareTypeConverter.ConvertFrom); + } + if (content.Contains("SourceLocationFileStorageType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceLocationFileStorageType = (string) content.GetValueForProperty("SourceLocationFileStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceLocationFileStorageType, global::System.Convert.ToString); + } + if (content.Contains("AzureBlobAuthType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).AzureBlobAuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AzureBlobAuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).AzureBlobAuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); + } + if (content.Contains("AzureBlobAccountKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).AzureBlobAccountKey = (string) content.GetValueForProperty("AzureBlobAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).AzureBlobAccountKey, global::System.Convert.ToString); + } + if (content.Contains("TargetLocationStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).TargetLocationStorageAccountResourceId = (string) content.GetValueForProperty("TargetLocationStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).TargetLocationStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("FileSharePath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).FileSharePath = (string) content.GetValueForProperty("FileSharePath",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).FileSharePath, global::System.Convert.ToString); + } + if (content.Contains("FileShareUsername")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).FileShareUsername = (string) content.GetValueForProperty("FileShareUsername",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).FileShareUsername, global::System.Convert.ToString); + } + if (content.Contains("FileSharePassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).FileSharePassword = (System.Security.SecureString) content.GetValueForProperty("FileSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).FileSharePassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("AzureBlobIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).AzureBlobIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("AzureBlobIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).AzureBlobIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("AzureBlobStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).AzureBlobStorageAccountResourceId = (string) content.GetValueForProperty("AzureBlobStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).AzureBlobStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("AzureBlobContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).AzureBlobContainerName = (string) content.GetValueForProperty("AzureBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).AzureBlobContainerName, global::System.Convert.ToString); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DatabaseMigrationSqlMi(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMi) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlMiTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SystemDataAutoGeneratedTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("BackupConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).BackupConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration) content.GetValueForProperty("BackupConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).BackupConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.BackupConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("OfflineConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).OfflineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration) content.GetValueForProperty("OfflineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).OfflineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OfflineConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("MigrationFailureError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfoTypeConverter.ConvertFrom); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).Scope, global::System.Convert.ToString); + } + if (content.Contains("MigrationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationStatus, global::System.Convert.ToString); + } + if (content.Contains("StartedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MigrationService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationService, global::System.Convert.ToString); + } + if (content.Contains("MigrationOperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationOperationId, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).ProvisioningError, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformationTypeConverter.ConvertFrom); + } + if (content.Contains("SourceDatabaseName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceDatabaseName, global::System.Convert.ToString); + } + if (content.Contains("SourceServerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceServerName, global::System.Convert.ToString); + } + if (content.Contains("TargetDatabaseCollation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); + } + if (content.Contains("MigrationStatusDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails) content.GetValueForProperty("MigrationStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationStatusDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationStatusDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("BackupConfigurationSourceLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).BackupConfigurationSourceLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation) content.GetValueForProperty("BackupConfigurationSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).BackupConfigurationSourceLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SourceLocationTypeConverter.ConvertFrom); + } + if (content.Contains("BackupConfigurationTargetLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).BackupConfigurationTargetLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation) content.GetValueForProperty("BackupConfigurationTargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).BackupConfigurationTargetLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.TargetLocationTypeConverter.ConvertFrom); + } + if (content.Contains("MigrationFailureErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionDataSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionAuthentication")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionUserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("SourceSqlConnectionEncryptConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SourceSqlConnectionTrustServerCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SourceLocationAzureBlob")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceLocationAzureBlob = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob) content.GetValueForProperty("SourceLocationAzureBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceLocationAzureBlob, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.AzureBlobTypeConverter.ConvertFrom); + } + if (content.Contains("TargetLocationAccountKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).TargetLocationAccountKey = (string) content.GetValueForProperty("TargetLocationAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).TargetLocationAccountKey, global::System.Convert.ToString); + } + if (content.Contains("OfflineConfigurationOffline")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).OfflineConfigurationOffline = (bool?) content.GetValueForProperty("OfflineConfigurationOffline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).OfflineConfigurationOffline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("OfflineConfigurationLastBackupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).OfflineConfigurationLastBackupName = (string) content.GetValueForProperty("OfflineConfigurationLastBackupName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).OfflineConfigurationLastBackupName, global::System.Convert.ToString); + } + if (content.Contains("SourceLocationFileShare")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceLocationFileShare = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare) content.GetValueForProperty("SourceLocationFileShare",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceLocationFileShare, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlFileShareTypeConverter.ConvertFrom); + } + if (content.Contains("SourceLocationFileStorageType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceLocationFileStorageType = (string) content.GetValueForProperty("SourceLocationFileStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).SourceLocationFileStorageType, global::System.Convert.ToString); + } + if (content.Contains("AzureBlobAuthType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).AzureBlobAuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AzureBlobAuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).AzureBlobAuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); + } + if (content.Contains("AzureBlobAccountKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).AzureBlobAccountKey = (string) content.GetValueForProperty("AzureBlobAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).AzureBlobAccountKey, global::System.Convert.ToString); + } + if (content.Contains("TargetLocationStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).TargetLocationStorageAccountResourceId = (string) content.GetValueForProperty("TargetLocationStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).TargetLocationStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("FileSharePath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).FileSharePath = (string) content.GetValueForProperty("FileSharePath",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).FileSharePath, global::System.Convert.ToString); + } + if (content.Contains("FileShareUsername")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).FileShareUsername = (string) content.GetValueForProperty("FileShareUsername",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).FileShareUsername, global::System.Convert.ToString); + } + if (content.Contains("FileSharePassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).FileSharePassword = (System.Security.SecureString) content.GetValueForProperty("FileSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).FileSharePassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("AzureBlobIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).AzureBlobIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("AzureBlobIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).AzureBlobIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("AzureBlobStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).AzureBlobStorageAccountResourceId = (string) content.GetValueForProperty("AzureBlobStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).AzureBlobStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("AzureBlobContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).AzureBlobContainerName = (string) content.GetValueForProperty("AzureBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).AzureBlobContainerName, global::System.Convert.ToString); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DatabaseMigrationSqlMi(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DatabaseMigrationSqlMi(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Database Migration Resource for SQL Managed Instance. + [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationSqlMiTypeConverter))] + public partial interface IDatabaseMigrationSqlMi + + { + + } +} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlMi.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlMi.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlMi.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlMi.TypeConverter.cs index 0c8d63a60360..04ee53d655ab 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlMi.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlMi.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlMi.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlMi.cs similarity index 67% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlMi.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlMi.cs index 3a1cbf935327..3d2cee965a32 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlMi.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlMi.cs @@ -3,86 +3,86 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Database Migration Resource for SQL Managed Instance. public partial class DatabaseMigrationSqlMi : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ProxyResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ProxyResource(); /// Storage Account Key. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string AzureBlobAccountKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).AzureBlobAccountKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).AzureBlobAccountKey = value ?? null; } + public string AzureBlobAccountKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).AzureBlobAccountKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).AzureBlobAccountKey = value ?? null; } /// Authentication type used for accessing Azure Blob Storage. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType? AzureBlobAuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).AzureBlobAuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).AzureBlobAuthType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType? AzureBlobAuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).AzureBlobAuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).AzureBlobAuthType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType)""); } /// Blob container name where backups are stored. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string AzureBlobContainerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).AzureBlobContainerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).AzureBlobContainerName = value ?? null; } + public string AzureBlobContainerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).AzureBlobContainerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).AzureBlobContainerName = value ?? null; } /// Resource Id of the storage account where backups are stored. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string AzureBlobStorageAccountResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).AzureBlobStorageAccountResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).AzureBlobStorageAccountResourceId = value ?? null; } + public string AzureBlobStorageAccountResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).AzureBlobStorageAccountResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).AzureBlobStorageAccountResourceId = value ?? null; } /// Database migration end time. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public global::System.DateTime? EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn; } + public global::System.DateTime? EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn; } /// Password for username to access file share location. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public System.Security.SecureString FileSharePassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).FileSharePassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).FileSharePassword = value ?? null; } + public System.Security.SecureString FileSharePassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).FileSharePassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).FileSharePassword = value ?? null; } /// Location as SMB share or local drive where backups are placed. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string FileSharePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).FileSharePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).FileSharePath = value ?? null; } + public string FileSharePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).FileSharePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).FileSharePath = value ?? null; } /// Username to access the file share location for backups. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string FileShareUsername { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).FileShareUsername; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).FileShareUsername = value ?? null; } + public string FileShareUsername { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).FileShareUsername; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).FileShareUsername = value ?? null; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Id; } /// /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).IdentityPrincipalId; } + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).IdentityPrincipalId; } /// /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).IdentityTenantId; } + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).IdentityTenantId; } /// /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).IdentityType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).IdentityType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType)""); } /// /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM @@ -91,120 +91,120 @@ public partial class DatabaseMigrationSqlMi : /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).IdentityUserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).IdentityUserAssignedIdentity = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).IdentityUserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).IdentityUserAssignedIdentity = value ?? null /* model class */; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.FormatTable(Index = 2)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType? Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).Kind = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType? Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).Kind = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType)""); } /// Internal Acessors for AzureBlobIdentity - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal.AzureBlobIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).AzureBlobIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).AzureBlobIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal.AzureBlobIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).AzureBlobIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).AzureBlobIdentity = value; } /// Internal Acessors for BackupConfiguration - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal.BackupConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).BackupConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).BackupConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal.BackupConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).BackupConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).BackupConfiguration = value; } /// Internal Acessors for BackupConfigurationSourceLocation - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal.BackupConfigurationSourceLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).BackupConfigurationSourceLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).BackupConfigurationSourceLocation = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal.BackupConfigurationSourceLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).BackupConfigurationSourceLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).BackupConfigurationSourceLocation = value; } /// Internal Acessors for BackupConfigurationTargetLocation - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal.BackupConfigurationTargetLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).BackupConfigurationTargetLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).BackupConfigurationTargetLocation = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal.BackupConfigurationTargetLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).BackupConfigurationTargetLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).BackupConfigurationTargetLocation = value; } /// Internal Acessors for EndedOn - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal.EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal.EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn = value; } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).IdentityPrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).IdentityPrincipalId = value; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).IdentityTenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).IdentityTenantId = value; } /// Internal Acessors for MigrationFailureError - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal.MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureError = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal.MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureError = value; } /// Internal Acessors for MigrationFailureErrorCode - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal.MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal.MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode = value; } /// Internal Acessors for MigrationFailureErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal.MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal.MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage = value; } /// Internal Acessors for MigrationStatus - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal.MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal.MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus = value; } /// Internal Acessors for MigrationStatusDetail - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal.MigrationStatusDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).MigrationStatusDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).MigrationStatusDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal.MigrationStatusDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).MigrationStatusDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).MigrationStatusDetail = value; } /// Internal Acessors for OfflineConfiguration - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal.OfflineConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).OfflineConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).OfflineConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal.OfflineConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).OfflineConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).OfflineConfiguration = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMi Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlMi()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMi Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlMi()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for SourceLocationAzureBlob - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal.SourceLocationAzureBlob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).SourceLocationAzureBlob; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).SourceLocationAzureBlob = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal.SourceLocationAzureBlob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).SourceLocationAzureBlob; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).SourceLocationAzureBlob = value; } /// Internal Acessors for SourceLocationFileShare - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal.SourceLocationFileShare { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).SourceLocationFileShare; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).SourceLocationFileShare = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal.SourceLocationFileShare { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).SourceLocationFileShare; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).SourceLocationFileShare = value; } /// Internal Acessors for SourceLocationFileStorageType - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal.SourceLocationFileStorageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).SourceLocationFileStorageType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).SourceLocationFileStorageType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal.SourceLocationFileStorageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).SourceLocationFileStorageType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).SourceLocationFileStorageType = value; } /// Internal Acessors for SourceServerName - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal.SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceServerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceServerName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal.SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceServerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceServerName = value; } /// Internal Acessors for SourceSqlConnection - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal.SourceSqlConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnection = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal.SourceSqlConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnection = value; } /// Internal Acessors for StartedOn - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMiInternal.StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMiInternal.StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Type = value; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode; } + public string MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode; } /// Error message. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage; } + public string MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage; } /// ID for current migration operation. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string MigrationOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationOperationId = value ?? null; } + public string MigrationOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationOperationId = value ?? null; } /// Resource Id of the Migration Service. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string MigrationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationService = value ?? null; } + public string MigrationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationService = value ?? null; } /// Migration status. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.FormatTable(Index = 4)] - public string MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus; } + public string MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus; } /// Detailed migration status. Not included by default. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails MigrationStatusDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).MigrationStatusDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails MigrationStatusDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).MigrationStatusDetail; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.FormatTable(Index = 0)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Name; } /// /// Last backup name for offline migration. This is optional for migrations from file share. If it is not provided, then the @@ -212,25 +212,25 @@ public partial class DatabaseMigrationSqlMi : /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string OfflineConfigurationLastBackupName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).OfflineConfigurationLastBackupName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).OfflineConfigurationLastBackupName = value ?? null; } + public string OfflineConfigurationLastBackupName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).OfflineConfigurationLastBackupName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).OfflineConfigurationLastBackupName = value ?? null; } /// Offline migration [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public bool? OfflineConfigurationOffline { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).OfflineConfigurationOffline; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).OfflineConfigurationOffline = value ?? default(bool); } + public bool? OfflineConfigurationOffline { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).OfflineConfigurationOffline; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).OfflineConfigurationOffline = value ?? default(bool); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMi _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMi _property; /// Database Migration Resource properties for SQL Managed Instance. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMi Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlMi()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMi Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlMi()); set => this._property = value; } /// Error message for migration provisioning failure, if any. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string ProvisioningError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningError = value ?? null; } + public string ProvisioningError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningError = value ?? null; } /// /// Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration @@ -238,112 +238,112 @@ public partial class DatabaseMigrationSqlMi : /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.FormatTable(Index = 3)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState; } /// Resource Id of the target resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).Scope = value ?? null; } + public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).Scope = value ?? null; } /// Name of the source database. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SourceDatabaseName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceDatabaseName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceDatabaseName = value ?? null; } + public string SourceDatabaseName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceDatabaseName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceDatabaseName = value ?? null; } /// Backup storage Type. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SourceLocationFileStorageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).SourceLocationFileStorageType; } + public string SourceLocationFileStorageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).SourceLocationFileStorageType; } /// Name of the source sql server. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceServerName; } + public string SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceServerName; } /// Authentication type. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SourceSqlConnectionAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionAuthentication = value ?? null; } + public string SourceSqlConnectionAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionAuthentication = value ?? null; } /// Data source. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SourceSqlConnectionDataSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionDataSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionDataSource = value ?? null; } + public string SourceSqlConnectionDataSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionDataSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionDataSource = value ?? null; } /// Whether to encrypt connection or not. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public bool? SourceSqlConnectionEncryptConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionEncryptConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionEncryptConnection = value ?? default(bool); } + public bool? SourceSqlConnectionEncryptConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionEncryptConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionEncryptConnection = value ?? default(bool); } /// Password to connect to source SQL. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public System.Security.SecureString SourceSqlConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionPassword = value ?? null; } + public System.Security.SecureString SourceSqlConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionPassword = value ?? null; } /// Whether to trust server certificate or not. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public bool? SourceSqlConnectionTrustServerCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionTrustServerCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionTrustServerCertificate = value ?? default(bool); } + public bool? SourceSqlConnectionTrustServerCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionTrustServerCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionTrustServerCertificate = value ?? default(bool); } /// User name to connect to source SQL. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SourceSqlConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionUserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionUserName = value ?? null; } + public string SourceSqlConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionUserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionUserName = value ?? null; } /// Database migration start time. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public global::System.DateTime? StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn; } + public global::System.DateTime? StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn; } /// Metadata pertaining to creation and last modification of the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemData; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType)""); } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType)""); } /// Database collation to be used for the target database. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string TargetDatabaseCollation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).TargetDatabaseCollation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).TargetDatabaseCollation = value ?? null; } + public string TargetDatabaseCollation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).TargetDatabaseCollation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).TargetDatabaseCollation = value ?? null; } /// Storage Account Key. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string TargetLocationAccountKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).TargetLocationAccountKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).TargetLocationAccountKey = value ?? null; } + public string TargetLocationAccountKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).TargetLocationAccountKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).TargetLocationAccountKey = value ?? null; } /// Resource Id of the storage account copying backups. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string TargetLocationStorageAccountResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).TargetLocationStorageAccountResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMiInternal)Property).TargetLocationStorageAccountResourceId = value ?? null; } + public string TargetLocationStorageAccountResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).TargetLocationStorageAccountResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMiInternal)Property).TargetLocationStorageAccountResourceId = value ?? null; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.FormatTable(Index = 1)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Type; } /// Creates an new instance. public DatabaseMigrationSqlMi() @@ -366,7 +366,7 @@ public DatabaseMigrationSqlMi() /// Database Migration Resource for SQL Managed Instance. public partial interface IDatabaseMigrationSqlMi : Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResource + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResource { /// Storage Account Key. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( @@ -528,8 +528,8 @@ public partial interface IDatabaseMigrationSqlMi : ReadOnly = true, Description = @"Detailed migration status. Not included by default.", SerializedName = @"migrationStatusDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails MigrationStatusDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails MigrationStatusDetail { get; } /// /// 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. @@ -684,7 +684,7 @@ public partial interface IDatabaseMigrationSqlMi : } /// Database Migration Resource for SQL Managed Instance. internal partial interface IDatabaseMigrationSqlMiInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal { /// Storage Account Key. string AzureBlobAccountKey { get; set; } @@ -697,11 +697,11 @@ internal partial interface IDatabaseMigrationSqlMiInternal : /// Resource Id of the storage account where backups are stored. string AzureBlobStorageAccountResourceId { get; set; } /// Backup configuration info. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration BackupConfiguration { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration BackupConfiguration { get; set; } /// Source location of backups. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation BackupConfigurationSourceLocation { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation BackupConfigurationSourceLocation { get; set; } /// Target location for copying backups. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation BackupConfigurationTargetLocation { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation BackupConfigurationTargetLocation { get; set; } /// Database migration end time. global::System.DateTime? EndedOn { get; set; } /// Password for username to access file share location. @@ -731,7 +731,7 @@ internal partial interface IDatabaseMigrationSqlMiInternal : Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType? Kind { get; set; } /// Error details in case of migration failure. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo MigrationFailureError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo MigrationFailureError { get; set; } /// Error code. string MigrationFailureErrorCode { get; set; } /// Error message. @@ -743,9 +743,9 @@ internal partial interface IDatabaseMigrationSqlMiInternal : /// Migration status. string MigrationStatus { get; set; } /// Detailed migration status. Not included by default. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails MigrationStatusDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails MigrationStatusDetail { get; set; } /// Offline configuration. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration OfflineConfiguration { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration OfflineConfiguration { get; set; } /// /// 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. @@ -754,7 +754,7 @@ internal partial interface IDatabaseMigrationSqlMiInternal : /// Offline migration bool? OfflineConfigurationOffline { get; set; } /// Database Migration Resource properties for SQL Managed Instance. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlMi Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlMi Property { get; set; } /// Error message for migration provisioning failure, if any. string ProvisioningError { get; set; } /// @@ -767,15 +767,15 @@ internal partial interface IDatabaseMigrationSqlMiInternal : /// Name of the source database. string SourceDatabaseName { get; set; } /// Source Azure Blob. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob SourceLocationAzureBlob { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob SourceLocationAzureBlob { get; set; } /// Source File share. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare SourceLocationFileShare { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare SourceLocationFileShare { get; set; } /// Backup storage Type. string SourceLocationFileStorageType { get; set; } /// Name of the source sql server. string SourceServerName { get; set; } /// Source SQL Server connection details. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation SourceSqlConnection { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation SourceSqlConnection { get; set; } /// Authentication type. string SourceSqlConnectionAuthentication { get; set; } /// Data source. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlMi.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlMi.json.cs similarity index 93% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlMi.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlMi.json.cs index 6b51d337a055..c929917a1daf 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlMi.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlMi.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DatabaseMigrationSqlMi(Microsoft.Azure.PowerShell.Cmdlets.DataMigration { return; } - __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ProxyResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlMi.FromJson(__jsonProperties) : Property;} + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ProxyResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlMi.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new DatabaseMigrationSqlMi(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlVM.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlVM.PowerShell.cs new file mode 100644 index 000000000000..d5c51942cf41 --- /dev/null +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlVM.PowerShell.cs @@ -0,0 +1,594 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; + + /// Database Migration Resource for SQL Virtual Machine. + [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationSqlVMTypeConverter))] + public partial class DatabaseMigrationSqlVM + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DatabaseMigrationSqlVM(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVM) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlVMTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SystemDataAutoGeneratedTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("BackupConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).BackupConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration) content.GetValueForProperty("BackupConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).BackupConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.BackupConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("OfflineConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).OfflineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration) content.GetValueForProperty("OfflineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).OfflineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OfflineConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("MigrationFailureError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfoTypeConverter.ConvertFrom); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).Scope, global::System.Convert.ToString); + } + if (content.Contains("MigrationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationStatus, global::System.Convert.ToString); + } + if (content.Contains("StartedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MigrationService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationService, global::System.Convert.ToString); + } + if (content.Contains("MigrationOperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationOperationId, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).ProvisioningError, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformationTypeConverter.ConvertFrom); + } + if (content.Contains("SourceDatabaseName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceDatabaseName, global::System.Convert.ToString); + } + if (content.Contains("SourceServerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceServerName, global::System.Convert.ToString); + } + if (content.Contains("TargetDatabaseCollation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); + } + if (content.Contains("MigrationStatusDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails) content.GetValueForProperty("MigrationStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationStatusDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationStatusDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("BackupConfigurationSourceLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).BackupConfigurationSourceLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation) content.GetValueForProperty("BackupConfigurationSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).BackupConfigurationSourceLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SourceLocationTypeConverter.ConvertFrom); + } + if (content.Contains("BackupConfigurationTargetLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).BackupConfigurationTargetLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation) content.GetValueForProperty("BackupConfigurationTargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).BackupConfigurationTargetLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.TargetLocationTypeConverter.ConvertFrom); + } + if (content.Contains("MigrationFailureErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionDataSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionAuthentication")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionUserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("SourceSqlConnectionEncryptConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SourceSqlConnectionTrustServerCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SourceLocationAzureBlob")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceLocationAzureBlob = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob) content.GetValueForProperty("SourceLocationAzureBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceLocationAzureBlob, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.AzureBlobTypeConverter.ConvertFrom); + } + if (content.Contains("TargetLocationAccountKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).TargetLocationAccountKey = (string) content.GetValueForProperty("TargetLocationAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).TargetLocationAccountKey, global::System.Convert.ToString); + } + if (content.Contains("OfflineConfigurationOffline")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).OfflineConfigurationOffline = (bool?) content.GetValueForProperty("OfflineConfigurationOffline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).OfflineConfigurationOffline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("OfflineConfigurationLastBackupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).OfflineConfigurationLastBackupName = (string) content.GetValueForProperty("OfflineConfigurationLastBackupName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).OfflineConfigurationLastBackupName, global::System.Convert.ToString); + } + if (content.Contains("SourceLocationFileShare")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceLocationFileShare = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare) content.GetValueForProperty("SourceLocationFileShare",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceLocationFileShare, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlFileShareTypeConverter.ConvertFrom); + } + if (content.Contains("SourceLocationFileStorageType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceLocationFileStorageType = (string) content.GetValueForProperty("SourceLocationFileStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceLocationFileStorageType, global::System.Convert.ToString); + } + if (content.Contains("AzureBlobAuthType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).AzureBlobAuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AzureBlobAuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).AzureBlobAuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); + } + if (content.Contains("AzureBlobAccountKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).AzureBlobAccountKey = (string) content.GetValueForProperty("AzureBlobAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).AzureBlobAccountKey, global::System.Convert.ToString); + } + if (content.Contains("TargetLocationStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).TargetLocationStorageAccountResourceId = (string) content.GetValueForProperty("TargetLocationStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).TargetLocationStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("FileSharePath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).FileSharePath = (string) content.GetValueForProperty("FileSharePath",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).FileSharePath, global::System.Convert.ToString); + } + if (content.Contains("FileShareUsername")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).FileShareUsername = (string) content.GetValueForProperty("FileShareUsername",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).FileShareUsername, global::System.Convert.ToString); + } + if (content.Contains("FileSharePassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).FileSharePassword = (System.Security.SecureString) content.GetValueForProperty("FileSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).FileSharePassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("AzureBlobIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).AzureBlobIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("AzureBlobIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).AzureBlobIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("AzureBlobStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).AzureBlobStorageAccountResourceId = (string) content.GetValueForProperty("AzureBlobStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).AzureBlobStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("AzureBlobContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).AzureBlobContainerName = (string) content.GetValueForProperty("AzureBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).AzureBlobContainerName, global::System.Convert.ToString); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DatabaseMigrationSqlVM(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVM) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlVMTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SystemDataAutoGeneratedTypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + } + if (content.Contains("BackupConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).BackupConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration) content.GetValueForProperty("BackupConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).BackupConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.BackupConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("OfflineConfiguration")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).OfflineConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration) content.GetValueForProperty("OfflineConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).OfflineConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OfflineConfigurationTypeConverter.ConvertFrom); + } + if (content.Contains("MigrationFailureError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationFailureError = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo) content.GetValueForProperty("MigrationFailureError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationFailureError, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ErrorInfoTypeConverter.ConvertFrom); + } + if (content.Contains("Kind")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).Kind = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType) content.GetValueForProperty("Kind",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).Kind, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType.CreateFrom); + } + if (content.Contains("Scope")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).Scope = (string) content.GetValueForProperty("Scope",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).Scope, global::System.Convert.ToString); + } + if (content.Contains("MigrationStatus")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationStatus = (string) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationStatus, global::System.Convert.ToString); + } + if (content.Contains("StartedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).StartedOn = (global::System.DateTime?) content.GetValueForProperty("StartedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).StartedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("EndedOn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).EndedOn = (global::System.DateTime?) content.GetValueForProperty("EndedOn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).EndedOn, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("MigrationService")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationService = (string) content.GetValueForProperty("MigrationService",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationService, global::System.Convert.ToString); + } + if (content.Contains("MigrationOperationId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationOperationId, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).ProvisioningError = (string) content.GetValueForProperty("ProvisioningError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).ProvisioningError, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnection = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation) content.GetValueForProperty("SourceSqlConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnection, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlConnectionInformationTypeConverter.ConvertFrom); + } + if (content.Contains("SourceDatabaseName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceDatabaseName = (string) content.GetValueForProperty("SourceDatabaseName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceDatabaseName, global::System.Convert.ToString); + } + if (content.Contains("SourceServerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceServerName = (string) content.GetValueForProperty("SourceServerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceServerName, global::System.Convert.ToString); + } + if (content.Contains("TargetDatabaseCollation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).TargetDatabaseCollation = (string) content.GetValueForProperty("TargetDatabaseCollation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).TargetDatabaseCollation, global::System.Convert.ToString); + } + if (content.Contains("MigrationStatusDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationStatusDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails) content.GetValueForProperty("MigrationStatusDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationStatusDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationStatusDetailsTypeConverter.ConvertFrom); + } + if (content.Contains("BackupConfigurationSourceLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).BackupConfigurationSourceLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation) content.GetValueForProperty("BackupConfigurationSourceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).BackupConfigurationSourceLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SourceLocationTypeConverter.ConvertFrom); + } + if (content.Contains("BackupConfigurationTargetLocation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).BackupConfigurationTargetLocation = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation) content.GetValueForProperty("BackupConfigurationTargetLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).BackupConfigurationTargetLocation, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.TargetLocationTypeConverter.ConvertFrom); + } + if (content.Contains("MigrationFailureErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationFailureErrorCode = (string) content.GetValueForProperty("MigrationFailureErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationFailureErrorCode, global::System.Convert.ToString); + } + if (content.Contains("MigrationFailureErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationFailureErrorMessage = (string) content.GetValueForProperty("MigrationFailureErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).MigrationFailureErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionDataSource")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionDataSource = (string) content.GetValueForProperty("SourceSqlConnectionDataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionDataSource, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionAuthentication")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionAuthentication = (string) content.GetValueForProperty("SourceSqlConnectionAuthentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionAuthentication, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionUserName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionUserName = (string) content.GetValueForProperty("SourceSqlConnectionUserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionUserName, global::System.Convert.ToString); + } + if (content.Contains("SourceSqlConnectionPassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionPassword = (System.Security.SecureString) content.GetValueForProperty("SourceSqlConnectionPassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionPassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("SourceSqlConnectionEncryptConnection")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionEncryptConnection = (bool?) content.GetValueForProperty("SourceSqlConnectionEncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionEncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SourceSqlConnectionTrustServerCertificate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionTrustServerCertificate = (bool?) content.GetValueForProperty("SourceSqlConnectionTrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceSqlConnectionTrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("SourceLocationAzureBlob")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceLocationAzureBlob = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob) content.GetValueForProperty("SourceLocationAzureBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceLocationAzureBlob, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.AzureBlobTypeConverter.ConvertFrom); + } + if (content.Contains("TargetLocationAccountKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).TargetLocationAccountKey = (string) content.GetValueForProperty("TargetLocationAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).TargetLocationAccountKey, global::System.Convert.ToString); + } + if (content.Contains("OfflineConfigurationOffline")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).OfflineConfigurationOffline = (bool?) content.GetValueForProperty("OfflineConfigurationOffline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).OfflineConfigurationOffline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("OfflineConfigurationLastBackupName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).OfflineConfigurationLastBackupName = (string) content.GetValueForProperty("OfflineConfigurationLastBackupName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).OfflineConfigurationLastBackupName, global::System.Convert.ToString); + } + if (content.Contains("SourceLocationFileShare")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceLocationFileShare = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare) content.GetValueForProperty("SourceLocationFileShare",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceLocationFileShare, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlFileShareTypeConverter.ConvertFrom); + } + if (content.Contains("SourceLocationFileStorageType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceLocationFileStorageType = (string) content.GetValueForProperty("SourceLocationFileStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).SourceLocationFileStorageType, global::System.Convert.ToString); + } + if (content.Contains("AzureBlobAuthType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).AzureBlobAuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AzureBlobAuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).AzureBlobAuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); + } + if (content.Contains("AzureBlobAccountKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).AzureBlobAccountKey = (string) content.GetValueForProperty("AzureBlobAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).AzureBlobAccountKey, global::System.Convert.ToString); + } + if (content.Contains("TargetLocationStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).TargetLocationStorageAccountResourceId = (string) content.GetValueForProperty("TargetLocationStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).TargetLocationStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("FileSharePath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).FileSharePath = (string) content.GetValueForProperty("FileSharePath",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).FileSharePath, global::System.Convert.ToString); + } + if (content.Contains("FileShareUsername")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).FileShareUsername = (string) content.GetValueForProperty("FileShareUsername",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).FileShareUsername, global::System.Convert.ToString); + } + if (content.Contains("FileSharePassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).FileSharePassword = (System.Security.SecureString) content.GetValueForProperty("FileSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).FileSharePassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("AzureBlobIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).AzureBlobIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("AzureBlobIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).AzureBlobIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("AzureBlobStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).AzureBlobStorageAccountResourceId = (string) content.GetValueForProperty("AzureBlobStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).AzureBlobStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("AzureBlobContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).AzureBlobContainerName = (string) content.GetValueForProperty("AzureBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).AzureBlobContainerName, global::System.Convert.ToString); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DatabaseMigrationSqlVM(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DatabaseMigrationSqlVM(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Database Migration Resource for SQL Virtual Machine. + [System.ComponentModel.TypeConverter(typeof(DatabaseMigrationSqlVMTypeConverter))] + public partial interface IDatabaseMigrationSqlVM + + { + + } +} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlVM.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlVM.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlVM.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlVM.TypeConverter.cs index 552fc71a1f3c..677213d75a1e 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlVM.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlVM.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlVM.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlVM.cs similarity index 67% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlVM.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlVM.cs index 954e28675643..81117172b3a3 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlVM.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlVM.cs @@ -3,86 +3,86 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Database Migration Resource for SQL Virtual Machine. public partial class DatabaseMigrationSqlVM : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ProxyResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResource __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ProxyResource(); /// Storage Account Key. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string AzureBlobAccountKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).AzureBlobAccountKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).AzureBlobAccountKey = value ?? null; } + public string AzureBlobAccountKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).AzureBlobAccountKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).AzureBlobAccountKey = value ?? null; } /// Authentication type used for accessing Azure Blob Storage. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType? AzureBlobAuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).AzureBlobAuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).AzureBlobAuthType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType? AzureBlobAuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).AzureBlobAuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).AzureBlobAuthType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType)""); } /// Blob container name where backups are stored. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string AzureBlobContainerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).AzureBlobContainerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).AzureBlobContainerName = value ?? null; } + public string AzureBlobContainerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).AzureBlobContainerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).AzureBlobContainerName = value ?? null; } /// Resource Id of the storage account where backups are stored. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string AzureBlobStorageAccountResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).AzureBlobStorageAccountResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).AzureBlobStorageAccountResourceId = value ?? null; } + public string AzureBlobStorageAccountResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).AzureBlobStorageAccountResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).AzureBlobStorageAccountResourceId = value ?? null; } /// Database migration end time. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public global::System.DateTime? EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn; } + public global::System.DateTime? EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn; } /// Password for username to access file share location. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public System.Security.SecureString FileSharePassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).FileSharePassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).FileSharePassword = value ?? null; } + public System.Security.SecureString FileSharePassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).FileSharePassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).FileSharePassword = value ?? null; } /// Location as SMB share or local drive where backups are placed. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string FileSharePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).FileSharePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).FileSharePath = value ?? null; } + public string FileSharePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).FileSharePath; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).FileSharePath = value ?? null; } /// Username to access the file share location for backups. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string FileShareUsername { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).FileShareUsername; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).FileShareUsername = value ?? null; } + public string FileShareUsername { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).FileShareUsername; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).FileShareUsername = value ?? null; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Id; } /// /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).IdentityPrincipalId; } + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).IdentityPrincipalId; } /// /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).IdentityTenantId; } + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).IdentityTenantId; } /// /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).IdentityType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).IdentityType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType)""); } /// /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM @@ -91,120 +91,120 @@ public partial class DatabaseMigrationSqlVM : /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).IdentityUserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).IdentityUserAssignedIdentity = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).IdentityUserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).IdentityUserAssignedIdentity = value ?? null /* model class */; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.FormatTable(Index = 2)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType? Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).Kind = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType? Kind { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).Kind; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).Kind = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType)""); } /// Internal Acessors for AzureBlobIdentity - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal.AzureBlobIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).AzureBlobIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).AzureBlobIdentity = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal.AzureBlobIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).AzureBlobIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).AzureBlobIdentity = value; } /// Internal Acessors for BackupConfiguration - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal.BackupConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).BackupConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).BackupConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal.BackupConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).BackupConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).BackupConfiguration = value; } /// Internal Acessors for BackupConfigurationSourceLocation - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal.BackupConfigurationSourceLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).BackupConfigurationSourceLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).BackupConfigurationSourceLocation = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal.BackupConfigurationSourceLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).BackupConfigurationSourceLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).BackupConfigurationSourceLocation = value; } /// Internal Acessors for BackupConfigurationTargetLocation - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal.BackupConfigurationTargetLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).BackupConfigurationTargetLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).BackupConfigurationTargetLocation = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal.BackupConfigurationTargetLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).BackupConfigurationTargetLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).BackupConfigurationTargetLocation = value; } /// Internal Acessors for EndedOn - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal.EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal.EndedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).EndedOn = value; } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).IdentityPrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).IdentityPrincipalId = value; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).IdentityTenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).IdentityTenantId = value; } /// Internal Acessors for MigrationFailureError - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal.MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureError = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal.MigrationFailureError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureError = value; } /// Internal Acessors for MigrationFailureErrorCode - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal.MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal.MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode = value; } /// Internal Acessors for MigrationFailureErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal.MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal.MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage = value; } /// Internal Acessors for MigrationStatus - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal.MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal.MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus = value; } /// Internal Acessors for MigrationStatusDetail - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal.MigrationStatusDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).MigrationStatusDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).MigrationStatusDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal.MigrationStatusDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).MigrationStatusDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).MigrationStatusDetail = value; } /// Internal Acessors for OfflineConfiguration - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal.OfflineConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).OfflineConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).OfflineConfiguration = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal.OfflineConfiguration { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).OfflineConfiguration; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).OfflineConfiguration = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVM Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlVM()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVM Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlVM()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for SourceLocationAzureBlob - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal.SourceLocationAzureBlob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).SourceLocationAzureBlob; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).SourceLocationAzureBlob = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal.SourceLocationAzureBlob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).SourceLocationAzureBlob; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).SourceLocationAzureBlob = value; } /// Internal Acessors for SourceLocationFileShare - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal.SourceLocationFileShare { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).SourceLocationFileShare; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).SourceLocationFileShare = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal.SourceLocationFileShare { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).SourceLocationFileShare; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).SourceLocationFileShare = value; } /// Internal Acessors for SourceLocationFileStorageType - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal.SourceLocationFileStorageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).SourceLocationFileStorageType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).SourceLocationFileStorageType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal.SourceLocationFileStorageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).SourceLocationFileStorageType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).SourceLocationFileStorageType = value; } /// Internal Acessors for SourceServerName - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal.SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceServerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceServerName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal.SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceServerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceServerName = value; } /// Internal Acessors for SourceSqlConnection - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal.SourceSqlConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnection = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal.SourceSqlConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnection = value; } /// Internal Acessors for StartedOn - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVMInternal.StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVMInternal.StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Type = value; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode; } + public string MigrationFailureErrorCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorCode; } /// Error message. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage; } + public string MigrationFailureErrorMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationFailureErrorMessage; } /// ID for current migration operation. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string MigrationOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationOperationId = value ?? null; } + public string MigrationOperationId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationOperationId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationOperationId = value ?? null; } /// Resource Id of the Migration Service. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string MigrationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationService = value ?? null; } + public string MigrationService { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationService; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationService = value ?? null; } /// Migration status. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.FormatTable(Index = 4)] - public string MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus; } + public string MigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).MigrationStatus; } /// Detailed migration status. Not included by default. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails MigrationStatusDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).MigrationStatusDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails MigrationStatusDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).MigrationStatusDetail; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.FormatTable(Index = 0)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Name; } /// /// Last backup name for offline migration. This is optional for migrations from file share. If it is not provided, then the @@ -212,25 +212,25 @@ public partial class DatabaseMigrationSqlVM : /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string OfflineConfigurationLastBackupName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).OfflineConfigurationLastBackupName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).OfflineConfigurationLastBackupName = value ?? null; } + public string OfflineConfigurationLastBackupName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).OfflineConfigurationLastBackupName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).OfflineConfigurationLastBackupName = value ?? null; } /// Offline migration [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public bool? OfflineConfigurationOffline { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).OfflineConfigurationOffline; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).OfflineConfigurationOffline = value ?? default(bool); } + public bool? OfflineConfigurationOffline { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).OfflineConfigurationOffline; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).OfflineConfigurationOffline = value ?? default(bool); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVM _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVM _property; /// Database Migration Resource properties for SQL Virtual Machine. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVM Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlVM()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVM Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlVM()); set => this._property = value; } /// Error message for migration provisioning failure, if any. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string ProvisioningError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningError = value ?? null; } + public string ProvisioningError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningError = value ?? null; } /// /// Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration @@ -238,112 +238,112 @@ public partial class DatabaseMigrationSqlVM : /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.FormatTable(Index = 3)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).ProvisioningState; } /// Resource Id of the target resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).Scope = value ?? null; } + public string Scope { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).Scope; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).Scope = value ?? null; } /// Name of the source database. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SourceDatabaseName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceDatabaseName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceDatabaseName = value ?? null; } + public string SourceDatabaseName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceDatabaseName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceDatabaseName = value ?? null; } /// Backup storage Type. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SourceLocationFileStorageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).SourceLocationFileStorageType; } + public string SourceLocationFileStorageType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).SourceLocationFileStorageType; } /// Name of the source sql server. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceServerName; } + public string SourceServerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceServerName; } /// Authentication type. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SourceSqlConnectionAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionAuthentication = value ?? null; } + public string SourceSqlConnectionAuthentication { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionAuthentication; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionAuthentication = value ?? null; } /// Data source. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SourceSqlConnectionDataSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionDataSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionDataSource = value ?? null; } + public string SourceSqlConnectionDataSource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionDataSource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionDataSource = value ?? null; } /// Whether to encrypt connection or not. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public bool? SourceSqlConnectionEncryptConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionEncryptConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionEncryptConnection = value ?? default(bool); } + public bool? SourceSqlConnectionEncryptConnection { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionEncryptConnection; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionEncryptConnection = value ?? default(bool); } /// Password to connect to source SQL. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public System.Security.SecureString SourceSqlConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionPassword = value ?? null; } + public System.Security.SecureString SourceSqlConnectionPassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionPassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionPassword = value ?? null; } /// Whether to trust server certificate or not. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public bool? SourceSqlConnectionTrustServerCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionTrustServerCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionTrustServerCertificate = value ?? default(bool); } + public bool? SourceSqlConnectionTrustServerCertificate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionTrustServerCertificate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionTrustServerCertificate = value ?? default(bool); } /// User name to connect to source SQL. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SourceSqlConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionUserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionUserName = value ?? null; } + public string SourceSqlConnectionUserName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionUserName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).SourceSqlConnectionUserName = value ?? null; } /// Database migration start time. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public global::System.DateTime? StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn; } + public global::System.DateTime? StartedOn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationBasePropertiesInternal)Property).StartedOn; } /// Metadata pertaining to creation and last modification of the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemData; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataCreatedAt = value ?? default(global::System.DateTime); } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType)""); } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType)""); } /// Database collation to be used for the target database. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string TargetDatabaseCollation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).TargetDatabaseCollation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesInternal)Property).TargetDatabaseCollation = value ?? null; } + public string TargetDatabaseCollation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).TargetDatabaseCollation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesInternal)Property).TargetDatabaseCollation = value ?? null; } /// Storage Account Key. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string TargetLocationAccountKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).TargetLocationAccountKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).TargetLocationAccountKey = value ?? null; } + public string TargetLocationAccountKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).TargetLocationAccountKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).TargetLocationAccountKey = value ?? null; } /// Resource Id of the storage account copying backups. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string TargetLocationStorageAccountResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).TargetLocationStorageAccountResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVMInternal)Property).TargetLocationStorageAccountResourceId = value ?? null; } + public string TargetLocationStorageAccountResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).TargetLocationStorageAccountResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVMInternal)Property).TargetLocationStorageAccountResourceId = value ?? null; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.FormatTable(Index = 1)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)__proxyResource).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)__proxyResource).Type; } /// Creates an new instance. public DatabaseMigrationSqlVM() @@ -366,7 +366,7 @@ public DatabaseMigrationSqlVM() /// Database Migration Resource for SQL Virtual Machine. public partial interface IDatabaseMigrationSqlVM : Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResource + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResource { /// Storage Account Key. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( @@ -528,8 +528,8 @@ public partial interface IDatabaseMigrationSqlVM : ReadOnly = true, Description = @"Detailed migration status. Not included by default.", SerializedName = @"migrationStatusDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails MigrationStatusDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails MigrationStatusDetail { get; } /// /// 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. @@ -684,7 +684,7 @@ public partial interface IDatabaseMigrationSqlVM : } /// Database Migration Resource for SQL Virtual Machine. internal partial interface IDatabaseMigrationSqlVMInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal { /// Storage Account Key. string AzureBlobAccountKey { get; set; } @@ -697,11 +697,11 @@ internal partial interface IDatabaseMigrationSqlVMInternal : /// Resource Id of the storage account where backups are stored. string AzureBlobStorageAccountResourceId { get; set; } /// Backup configuration info. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IBackupConfiguration BackupConfiguration { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IBackupConfiguration BackupConfiguration { get; set; } /// Source location of backups. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation BackupConfigurationSourceLocation { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation BackupConfigurationSourceLocation { get; set; } /// Target location for copying backups. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation BackupConfigurationTargetLocation { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation BackupConfigurationTargetLocation { get; set; } /// Database migration end time. global::System.DateTime? EndedOn { get; set; } /// Password for username to access file share location. @@ -731,7 +731,7 @@ internal partial interface IDatabaseMigrationSqlVMInternal : Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType? Kind { get; set; } /// Error details in case of migration failure. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo MigrationFailureError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo MigrationFailureError { get; set; } /// Error code. string MigrationFailureErrorCode { get; set; } /// Error message. @@ -743,9 +743,9 @@ internal partial interface IDatabaseMigrationSqlVMInternal : /// Migration status. string MigrationStatus { get; set; } /// Detailed migration status. Not included by default. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails MigrationStatusDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails MigrationStatusDetail { get; set; } /// Offline configuration. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration OfflineConfiguration { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration OfflineConfiguration { get; set; } /// /// 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. @@ -754,7 +754,7 @@ internal partial interface IDatabaseMigrationSqlVMInternal : /// Offline migration bool? OfflineConfigurationOffline { get; set; } /// Database Migration Resource properties for SQL Virtual Machine. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationPropertiesSqlVM Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationPropertiesSqlVM Property { get; set; } /// Error message for migration provisioning failure, if any. string ProvisioningError { get; set; } /// @@ -767,15 +767,15 @@ internal partial interface IDatabaseMigrationSqlVMInternal : /// Name of the source database. string SourceDatabaseName { get; set; } /// Source Azure Blob. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob SourceLocationAzureBlob { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob SourceLocationAzureBlob { get; set; } /// Source File share. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare SourceLocationFileShare { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare SourceLocationFileShare { get; set; } /// Backup storage Type. string SourceLocationFileStorageType { get; set; } /// Name of the source sql server. string SourceServerName { get; set; } /// Source SQL Server connection details. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation SourceSqlConnection { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation SourceSqlConnection { get; set; } /// Authentication type. string SourceSqlConnectionAuthentication { get; set; } /// Data source. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlVM.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlVM.json.cs similarity index 93% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlVM.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlVM.json.cs index cd3d9b715ec7..e99bac68242d 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DatabaseMigrationSqlVM.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DatabaseMigrationSqlVM.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DatabaseMigrationSqlVM(Microsoft.Azure.PowerShell.Cmdlets.DataMigration { return; } - __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ProxyResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationPropertiesSqlVM.FromJson(__jsonProperties) : Property;} + __proxyResource = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ProxyResource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationPropertiesSqlVM.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new DatabaseMigrationSqlVM(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DeleteNode.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DeleteNode.PowerShell.cs similarity index 78% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DeleteNode.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DeleteNode.PowerShell.cs index a342ab2c019b..a6d995757f84 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DeleteNode.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DeleteNode.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DeleteNode partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,17 +70,17 @@ internal DeleteNode(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("NodeName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNodeInternal)this).NodeName = (string) content.GetValueForProperty("NodeName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNodeInternal)this).NodeName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNodeInternal)this).NodeName = (string) content.GetValueForProperty("NodeName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNodeInternal)this).NodeName, global::System.Convert.ToString); } if (content.Contains("IntegrationRuntimeName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNodeInternal)this).IntegrationRuntimeName = (string) content.GetValueForProperty("IntegrationRuntimeName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNodeInternal)this).IntegrationRuntimeName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNodeInternal)this).IntegrationRuntimeName = (string) content.GetValueForProperty("IntegrationRuntimeName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNodeInternal)this).IntegrationRuntimeName, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -95,37 +95,37 @@ internal DeleteNode(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("NodeName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNodeInternal)this).NodeName = (string) content.GetValueForProperty("NodeName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNodeInternal)this).NodeName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNodeInternal)this).NodeName = (string) content.GetValueForProperty("NodeName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNodeInternal)this).NodeName, global::System.Convert.ToString); } if (content.Contains("IntegrationRuntimeName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNodeInternal)this).IntegrationRuntimeName = (string) content.GetValueForProperty("IntegrationRuntimeName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNodeInternal)this).IntegrationRuntimeName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNodeInternal)this).IntegrationRuntimeName = (string) content.GetValueForProperty("IntegrationRuntimeName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNodeInternal)this).IntegrationRuntimeName, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DeleteNode(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DeleteNode(content); } @@ -135,7 +135,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.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/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DeleteNode.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DeleteNode.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DeleteNode.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DeleteNode.TypeConverter.cs index af6c96222d05..335680a81086 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DeleteNode.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DeleteNode.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DeleteNode.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DeleteNode.cs similarity index 96% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DeleteNode.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DeleteNode.cs index ec32ef4025f0..04bbbe45ce66 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DeleteNode.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DeleteNode.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Details of node to be deleted. public partial class DeleteNode : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNodeInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNodeInternal { /// Backing field for property. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DeleteNode.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DeleteNode.json.cs similarity index 96% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DeleteNode.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DeleteNode.json.cs index e74059ce677e..4945274c48db 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/DeleteNode.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/DeleteNode.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -71,13 +71,13 @@ internal DeleteNode(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Jso } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new DeleteNode(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/ErrorInfo.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/ErrorInfo.PowerShell.cs similarity index 79% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/ErrorInfo.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/ErrorInfo.PowerShell.cs index 51288b5afedf..f079462812ee 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/ErrorInfo.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/ErrorInfo.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,33 +55,33 @@ public partial class ErrorInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ErrorInfo(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ErrorInfo(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,17 +96,17 @@ internal ErrorInfo(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfoInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfoInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfoInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfoInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfoInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfoInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfoInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfoInternal)this).Message, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -121,11 +121,11 @@ internal ErrorInfo(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfoInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfoInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfoInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfoInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfoInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfoInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfoInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfoInternal)this).Message, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -135,7 +135,7 @@ internal ErrorInfo(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.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/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/ErrorInfo.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/ErrorInfo.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/ErrorInfo.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/ErrorInfo.TypeConverter.cs index ba3a0d3187f4..e952c664689c 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/ErrorInfo.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/ErrorInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/ErrorInfo.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/ErrorInfo.cs similarity index 90% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/ErrorInfo.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/ErrorInfo.cs index 88545c759eb4..bac7a9c3a461 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/ErrorInfo.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/ErrorInfo.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Error details public partial class ErrorInfo : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfoInternal { /// Backing field for property. @@ -28,10 +28,10 @@ public partial class ErrorInfo : public string Message { get => this._message; } /// Internal Acessors for Code - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfoInternal.Code { get => this._code; set { {_code = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfoInternal.Code { get => this._code; set { {_code = value;} } } /// Internal Acessors for Message - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfoInternal.Message { get => this._message; set { {_message = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfoInternal.Message { get => this._message; set { {_message = value;} } } /// Creates an new instance. public ErrorInfo() diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/ErrorInfo.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/ErrorInfo.json.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/ErrorInfo.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/ErrorInfo.json.cs index 201ced3e4dba..df8ac0219f5a 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/ErrorInfo.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/ErrorInfo.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -71,13 +71,13 @@ internal ErrorInfo(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IErrorInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IErrorInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new ErrorInfo(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/IntegrationRuntimeMonitoringData.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/IntegrationRuntimeMonitoringData.PowerShell.cs similarity index 72% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/IntegrationRuntimeMonitoringData.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/IntegrationRuntimeMonitoringData.PowerShell.cs index 61d0a46f92b7..84ea4b7af95a 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/IntegrationRuntimeMonitoringData.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/IntegrationRuntimeMonitoringData.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class IntegrationRuntimeMonitoringData partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringData DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringData DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new IntegrationRuntimeMonitoringData(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new IntegrationRuntimeMonitoringData(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,17 +105,17 @@ internal IntegrationRuntimeMonitoringData(global::System.Collections.IDictionary // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringDataInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringDataInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringDataInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringDataInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Node")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringDataInternal)this).Node = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringData[]) content.GetValueForProperty("Node",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringDataInternal)this).Node, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.NodeMonitoringDataTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringDataInternal)this).Node = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringData[]) content.GetValueForProperty("Node",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringDataInternal)this).Node, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.NodeMonitoringDataTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -130,11 +130,11 @@ internal IntegrationRuntimeMonitoringData(global::System.Management.Automation.P // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringDataInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringDataInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringDataInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringDataInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Node")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringDataInternal)this).Node = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringData[]) content.GetValueForProperty("Node",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringDataInternal)this).Node, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.NodeMonitoringDataTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringDataInternal)this).Node = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringData[]) content.GetValueForProperty("Node",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringDataInternal)this).Node, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.NodeMonitoringDataTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/IntegrationRuntimeMonitoringData.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/IntegrationRuntimeMonitoringData.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/IntegrationRuntimeMonitoringData.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/IntegrationRuntimeMonitoringData.TypeConverter.cs index 78cf0b0b49fb..ceaf33b5aa46 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/IntegrationRuntimeMonitoringData.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/IntegrationRuntimeMonitoringData.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringData ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringData ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringData).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringData).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/IntegrationRuntimeMonitoringData.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/IntegrationRuntimeMonitoringData.cs similarity index 80% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/IntegrationRuntimeMonitoringData.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/IntegrationRuntimeMonitoringData.cs index caf55ad96fc9..f00a30ba5911 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/IntegrationRuntimeMonitoringData.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/IntegrationRuntimeMonitoringData.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Integration Runtime Monitoring Data. public partial class IntegrationRuntimeMonitoringData : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringData, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringDataInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringData, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringDataInternal { /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringDataInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringDataInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for Node - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringData[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringDataInternal.Node { get => this._node; set { {_node = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringData[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringDataInternal.Node { get => this._node; set { {_node = value;} } } /// Backing field for property. private string _name; @@ -27,11 +27,11 @@ public partial class IntegrationRuntimeMonitoringData : public string Name { get => this._name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringData[] _node; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringData[] _node; /// Integration Runtime node monitoring data. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringData[] Node { get => this._node; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringData[] Node { get => this._node; } /// Creates an new instance. public IntegrationRuntimeMonitoringData() @@ -57,8 +57,8 @@ public partial interface IIntegrationRuntimeMonitoringData : ReadOnly = true, Description = @"Integration Runtime node monitoring data.", SerializedName = @"nodes", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringData) })] - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringData[] Node { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringData) })] + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringData[] Node { get; } } /// Integration Runtime Monitoring Data. @@ -68,7 +68,7 @@ internal partial interface IIntegrationRuntimeMonitoringDataInternal /// The name of Integration Runtime. string Name { get; set; } /// Integration Runtime node monitoring data. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringData[] Node { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringData[] Node { get; set; } } } \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/IntegrationRuntimeMonitoringData.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/IntegrationRuntimeMonitoringData.json.cs similarity index 92% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/IntegrationRuntimeMonitoringData.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/IntegrationRuntimeMonitoringData.json.cs index 17bc865490a4..09d4b229bc97 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/IntegrationRuntimeMonitoringData.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/IntegrationRuntimeMonitoringData.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class IntegrationRuntimeMonitoringData partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringData. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringData. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringData. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringData. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringData FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringData FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new IntegrationRuntimeMonitoringData(json) : null; } @@ -78,7 +78,7 @@ internal IntegrationRuntimeMonitoringData(Microsoft.Azure.PowerShell.Cmdlets.Dat return; } {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} - {_node = If( json?.PropertyT("nodes"), out var __jsonNodes) ? If( __jsonNodes as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringData) (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.NodeMonitoringData.FromJson(__u) )) ))() : null : Node;} + {_node = If( json?.PropertyT("nodes"), out var __jsonNodes) ? If( __jsonNodes as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringData) (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.NodeMonitoringData.FromJson(__u) )) ))() : null : Node;} AfterFromJson(json); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationOperationInput.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationOperationInput.PowerShell.cs similarity index 81% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationOperationInput.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationOperationInput.PowerShell.cs index e82c1aca866c..a9d333ed1a5b 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationOperationInput.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationOperationInput.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class MigrationOperationInput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new MigrationOperationInput(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new MigrationOperationInput(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,13 +105,13 @@ internal MigrationOperationInput(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("MigrationOperationId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInputInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInputInternal)this).MigrationOperationId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInputInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInputInternal)this).MigrationOperationId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -126,7 +126,7 @@ internal MigrationOperationInput(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("MigrationOperationId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInputInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInputInternal)this).MigrationOperationId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInputInternal)this).MigrationOperationId = (string) content.GetValueForProperty("MigrationOperationId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInputInternal)this).MigrationOperationId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationOperationInput.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationOperationInput.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationOperationInput.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationOperationInput.TypeConverter.cs index d994e393e893..424798b02870 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationOperationInput.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationOperationInput.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationOperationInput.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationOperationInput.cs similarity index 94% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationOperationInput.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationOperationInput.cs index e3687c8b4cc2..f3ad8adec2d6 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationOperationInput.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationOperationInput.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Migration Operation Input public partial class MigrationOperationInput : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInputInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInputInternal { /// Backing field for property. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationOperationInput.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationOperationInput.json.cs similarity index 96% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationOperationInput.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationOperationInput.json.cs index 244332e15737..a82fd071290c 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationOperationInput.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationOperationInput.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class MigrationOperationInput partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationOperationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new MigrationOperationInput(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationService.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationService.PowerShell.cs similarity index 84% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationService.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationService.PowerShell.cs index 0caaff16b36f..9577d79e67d5 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationService.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationService.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,29 +55,27 @@ public partial class MigrationService partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationService DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationService DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new MigrationService(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationService DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationService DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new MigrationService(content); } @@ -87,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationService FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationService FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,7 +103,7 @@ internal MigrationService(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationServicePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationServicePropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -157,17 +155,17 @@ internal MigrationService(global::System.Collections.IDictionary content) } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); } if (content.Contains("IntegrationRuntimeState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceInternal)this).IntegrationRuntimeState = (string) content.GetValueForProperty("IntegrationRuntimeState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceInternal)this).IntegrationRuntimeState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceInternal)this).IntegrationRuntimeState = (string) content.GetValueForProperty("IntegrationRuntimeState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceInternal)this).IntegrationRuntimeState, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -182,7 +180,7 @@ internal MigrationService(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationServicePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationServicePropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemDataCreatedBy")) { @@ -234,11 +232,11 @@ internal MigrationService(global::System.Management.Automation.PSObject content) } if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); } if (content.Contains("IntegrationRuntimeState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceInternal)this).IntegrationRuntimeState = (string) content.GetValueForProperty("IntegrationRuntimeState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceInternal)this).IntegrationRuntimeState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceInternal)this).IntegrationRuntimeState = (string) content.GetValueForProperty("IntegrationRuntimeState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceInternal)this).IntegrationRuntimeState, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationService.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationService.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationService.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationService.TypeConverter.cs index 49bc05b8d74c..7bf95156a42a 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationService.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationService.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationService ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationService ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationService).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationService).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationService.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationService.cs similarity index 88% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationService.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationService.cs index 38ed5fae66ed..6f1dcc65e242 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationService.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationService.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// A Migration Service. public partial class MigrationService : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationService, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationService, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceInternal, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IValidates { /// @@ -27,20 +27,20 @@ public partial class MigrationService : /// Current state of the Integration runtime. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string IntegrationRuntimeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServicePropertiesInternal)Property).IntegrationRuntimeState; } + public string IntegrationRuntimeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServicePropertiesInternal)Property).IntegrationRuntimeState; } /// The geo-location where the resource lives [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.ITrackedResourceInternal)__trackedResource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.ITrackedResourceInternal)__trackedResource).Location = value ; } /// Internal Acessors for IntegrationRuntimeState - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceInternal.IntegrationRuntimeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServicePropertiesInternal)Property).IntegrationRuntimeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServicePropertiesInternal)Property).IntegrationRuntimeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceInternal.IntegrationRuntimeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServicePropertiesInternal)Property).IntegrationRuntimeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServicePropertiesInternal)Property).IntegrationRuntimeState = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceProperties Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationServiceProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceProperties Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationServiceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServicePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServicePropertiesInternal)Property).ProvisioningState = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServicePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServicePropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for Id string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.IResourceInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.IResourceInternal)__trackedResource).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.IResourceInternal)__trackedResource).Id = value; } @@ -59,15 +59,15 @@ public partial class MigrationService : public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.IResourceInternal)__trackedResource).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceProperties _property; /// The Migration Service properties. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationServiceProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationServiceProperties()); set => this._property = value; } /// Provisioning state to track the async operation status. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServicePropertiesInternal)Property).ProvisioningState; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServicePropertiesInternal)Property).ProvisioningState; } /// /// Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -157,7 +157,7 @@ internal partial interface IMigrationServiceInternal : /// Current state of the Integration runtime. string IntegrationRuntimeState { get; set; } /// The Migration Service properties. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceProperties Property { get; set; } /// Provisioning state to track the async operation status. Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? ProvisioningState { get; set; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationService.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationService.json.cs similarity index 95% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationService.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationService.json.cs index d0899a14ef33..706946f2f394 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationService.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationService.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class MigrationService partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationService. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationService. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationService. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationService. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationService FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationService FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new MigrationService(json) : null; } @@ -78,7 +78,7 @@ internal MigrationService(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runti return; } __trackedResource = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.TrackedResource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationServiceProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationServiceProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceListResult.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceListResult.PowerShell.cs similarity index 73% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceListResult.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceListResult.PowerShell.cs index 4478fc4e66c2..c7f4d9a6c22f 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceListResult.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceListResult.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class MigrationServiceListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new MigrationServiceListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new MigrationServiceListResult(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,17 +105,17 @@ internal MigrationServiceListResult(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationService[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationServiceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationService[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationServiceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -130,11 +130,11 @@ internal MigrationServiceListResult(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationService[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationServiceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationService[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationServiceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceListResult.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceListResult.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceListResult.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceListResult.TypeConverter.cs index f1bcf544f03c..d3e67613367f 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceListResult.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceListResult.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceListResult.cs similarity index 78% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceListResult.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceListResult.cs index 9f3eb540adfa..05c8959ddd14 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceListResult.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceListResult.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// A list of Migration Service. public partial class MigrationServiceListResult : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceListResult, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceListResult, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationService[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceListResultInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationService[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceListResultInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -26,10 +26,10 @@ public partial class MigrationServiceListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationService[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationService[] _value; [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationService[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationService[] Value { get => this._value; } /// Creates an new instance. public MigrationServiceListResult() @@ -54,8 +54,8 @@ public partial interface IMigrationServiceListResult : ReadOnly = true, Description = @"", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationService) })] - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationService[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationService) })] + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationService[] Value { get; } } /// A list of Migration Service. @@ -64,7 +64,7 @@ internal partial interface IMigrationServiceListResultInternal { string NextLink { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationService[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationService[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceListResult.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceListResult.json.cs similarity index 92% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceListResult.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceListResult.json.cs index e7a3c5a594c7..5d61594abc51 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceListResult.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceListResult.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class MigrationServiceListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new MigrationServiceListResult(json) : null; } @@ -77,7 +77,7 @@ internal MigrationServiceListResult(Microsoft.Azure.PowerShell.Cmdlets.DataMigra { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationService) (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationService.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationService) (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationService.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceProperties.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceProperties.PowerShell.cs similarity index 74% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceProperties.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceProperties.PowerShell.cs index ad1437da5954..9ef0b6970acf 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceProperties.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class MigrationServiceProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new MigrationServiceProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new MigrationServiceProperties(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,17 +105,17 @@ internal MigrationServiceProperties(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServicePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServicePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServicePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServicePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); } if (content.Contains("IntegrationRuntimeState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServicePropertiesInternal)this).IntegrationRuntimeState = (string) content.GetValueForProperty("IntegrationRuntimeState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServicePropertiesInternal)this).IntegrationRuntimeState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServicePropertiesInternal)this).IntegrationRuntimeState = (string) content.GetValueForProperty("IntegrationRuntimeState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServicePropertiesInternal)this).IntegrationRuntimeState, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -130,11 +130,11 @@ internal MigrationServiceProperties(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServicePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServicePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServicePropertiesInternal)this).ProvisioningState = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState?) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServicePropertiesInternal)this).ProvisioningState, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState.CreateFrom); } if (content.Contains("IntegrationRuntimeState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServicePropertiesInternal)this).IntegrationRuntimeState = (string) content.GetValueForProperty("IntegrationRuntimeState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServicePropertiesInternal)this).IntegrationRuntimeState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServicePropertiesInternal)this).IntegrationRuntimeState = (string) content.GetValueForProperty("IntegrationRuntimeState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServicePropertiesInternal)this).IntegrationRuntimeState, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceProperties.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceProperties.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceProperties.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceProperties.TypeConverter.cs index 2249933deb12..8da3a8fbaa81 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceProperties.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceProperties.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceProperties.cs similarity index 89% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceProperties.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceProperties.cs index a4b7c8ce9530..5aa691e6ead7 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceProperties.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceProperties.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// The Migration Service properties. public partial class MigrationServiceProperties : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceProperties, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServicePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceProperties, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServicePropertiesInternal { /// Backing field for property. @@ -21,10 +21,10 @@ public partial class MigrationServiceProperties : public string IntegrationRuntimeState { get => this._integrationRuntimeState; } /// Internal Acessors for IntegrationRuntimeState - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServicePropertiesInternal.IntegrationRuntimeState { get => this._integrationRuntimeState; set { {_integrationRuntimeState = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServicePropertiesInternal.IntegrationRuntimeState { get => this._integrationRuntimeState; set { {_integrationRuntimeState = value;} } } /// Internal Acessors for ProvisioningState - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServicePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServicePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState? _provisioningState; diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceProperties.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceProperties.json.cs similarity index 96% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceProperties.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceProperties.json.cs index 106793b94986..ed1bfd840fd6 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceProperties.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class MigrationServiceProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new MigrationServiceProperties(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdate.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdate.PowerShell.cs similarity index 79% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdate.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdate.PowerShell.cs index 9c3e678c028b..3524eb3bf041 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdate.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdate.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class MigrationServiceUpdate partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new MigrationServiceUpdate(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new MigrationServiceUpdate(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,13 +105,13 @@ internal MigrationServiceUpdate(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationServiceUpdateTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationServiceUpdateTagsTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -126,7 +126,7 @@ internal MigrationServiceUpdate(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationServiceUpdateTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationServiceUpdateTagsTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdate.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdate.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdate.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdate.TypeConverter.cs index bbc58090e8a7..6674d0fa6529 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdate.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdate.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdate ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdate ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdate).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdate).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdate.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdate.cs similarity index 76% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdate.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdate.cs index d17e8dd2bf4f..abf40a70f4ad 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdate.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdate.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// An update to a Migration Service. public partial class MigrationServiceUpdate : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdate, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdateInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdate, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdateInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdateTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdateTags _tag; /// Dictionary of [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdateTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationServiceUpdateTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdateTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationServiceUpdateTags()); set => this._tag = value; } /// Creates an new instance. public MigrationServiceUpdate() @@ -36,8 +36,8 @@ public partial interface IMigrationServiceUpdate : ReadOnly = false, Description = @"Dictionary of ", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdateTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdateTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdateTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdateTags Tag { get; set; } } /// An update to a Migration Service. @@ -45,7 +45,7 @@ internal partial interface IMigrationServiceUpdateInternal { /// Dictionary of - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdateTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdateTags Tag { get; set; } } } \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdate.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdate.json.cs similarity index 95% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdate.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdate.json.cs index e1c303455a7b..dacfd2f27bf4 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdate.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdate.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class MigrationServiceUpdate partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdate. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdate. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdate. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdate. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new MigrationServiceUpdate(json) : null; } @@ -77,7 +77,7 @@ internal MigrationServiceUpdate(Microsoft.Azure.PowerShell.Cmdlets.DataMigration { return; } - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationServiceUpdateTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationServiceUpdateTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdateTags.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdateTags.PowerShell.cs similarity index 88% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdateTags.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdateTags.PowerShell.cs index 63709070b82e..d6ec272a745e 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdateTags.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdateTags.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class MigrationServiceUpdateTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdateTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdateTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new MigrationServiceUpdateTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdateTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdateTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new MigrationServiceUpdateTags(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdateTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdateTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -109,7 +109,7 @@ internal MigrationServiceUpdateTags(global::System.Collections.IDictionary conte } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdateTags.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdateTags.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdateTags.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdateTags.TypeConverter.cs index 9fed1f8ba859..d45e86a423e9 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdateTags.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdateTags.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdateTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdateTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdateTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdateTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdateTags.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdateTags.cs similarity index 91% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdateTags.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdateTags.cs index 310cf9bd726f..81aa101a63cf 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdateTags.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdateTags.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Dictionary of public partial class MigrationServiceUpdateTags : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdateTags, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdateTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdateTags, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdateTagsInternal { /// Creates an new instance. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdateTags.dictionary.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdateTags.dictionary.cs similarity index 96% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdateTags.dictionary.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdateTags.dictionary.cs index 2eb3b65b05ad..37d2b0a98126 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdateTags.dictionary.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdateTags.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationServiceUpdateTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationServiceUpdateTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdateTags.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdateTags.json.cs similarity index 96% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdateTags.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdateTags.json.cs index 9e286ed5211f..c778140677df 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationServiceUpdateTags.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationServiceUpdateTags.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class MigrationServiceUpdateTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdateTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdateTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdateTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdateTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationServiceUpdateTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationServiceUpdateTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new MigrationServiceUpdateTags(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationStatusDetails.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationStatusDetails.PowerShell.cs new file mode 100644 index 000000000000..e778b59cfe11 --- /dev/null +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationStatusDetails.PowerShell.cs @@ -0,0 +1,418 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; + + /// Detailed status of current migration. + [System.ComponentModel.TypeConverter(typeof(MigrationStatusDetailsTypeConverter))] + public partial class MigrationStatusDetails + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new MigrationStatusDetails(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new MigrationStatusDetails(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal MigrationStatusDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FullBackupSetInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo) content.GetValueForProperty("FullBackupSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupSetInfoTypeConverter.ConvertFrom); + } + if (content.Contains("LastRestoredBackupSetInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo) content.GetValueForProperty("LastRestoredBackupSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupSetInfoTypeConverter.ConvertFrom); + } + if (content.Contains("MigrationState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).MigrationState = (string) content.GetValueForProperty("MigrationState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).MigrationState, global::System.Convert.ToString); + } + if (content.Contains("ActiveBackupSet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).ActiveBackupSet = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo[]) content.GetValueForProperty("ActiveBackupSet",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).ActiveBackupSet, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupSetInfoTypeConverter.ConvertFrom)); + } + if (content.Contains("InvalidFile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).InvalidFile = (string[]) content.GetValueForProperty("InvalidFile",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).InvalidFile, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("BlobContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).BlobContainerName = (string) content.GetValueForProperty("BlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).BlobContainerName, global::System.Convert.ToString); + } + if (content.Contains("IsFullBackupRestored")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).IsFullBackupRestored = (bool?) content.GetValueForProperty("IsFullBackupRestored",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).IsFullBackupRestored, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("RestoreBlockingReason")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).RestoreBlockingReason = (string) content.GetValueForProperty("RestoreBlockingReason",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).RestoreBlockingReason, global::System.Convert.ToString); + } + if (content.Contains("CompleteRestoreErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).CompleteRestoreErrorMessage = (string) content.GetValueForProperty("CompleteRestoreErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).CompleteRestoreErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("FileUploadBlockingError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FileUploadBlockingError = (string[]) content.GetValueForProperty("FileUploadBlockingError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FileUploadBlockingError, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("CurrentRestoringFilename")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).CurrentRestoringFilename = (string) content.GetValueForProperty("CurrentRestoringFilename",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).CurrentRestoringFilename, global::System.Convert.ToString); + } + if (content.Contains("LastRestoredFilename")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredFilename = (string) content.GetValueForProperty("LastRestoredFilename",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredFilename, global::System.Convert.ToString); + } + if (content.Contains("PendingLogBackupsCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).PendingLogBackupsCount = (int?) content.GetValueForProperty("PendingLogBackupsCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).PendingLogBackupsCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("FullBackupSetInfoBackupSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupSetId = (string) content.GetValueForProperty("FullBackupSetInfoBackupSetId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupSetId, global::System.Convert.ToString); + } + if (content.Contains("FullBackupSetInfoFirstLsn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoFirstLsn = (string) content.GetValueForProperty("FullBackupSetInfoFirstLsn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoFirstLsn, global::System.Convert.ToString); + } + if (content.Contains("FullBackupSetInfoLastLsn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoLastLsn = (string) content.GetValueForProperty("FullBackupSetInfoLastLsn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoLastLsn, global::System.Convert.ToString); + } + if (content.Contains("FullBackupSetInfoBackupType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupType = (string) content.GetValueForProperty("FullBackupSetInfoBackupType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupType, global::System.Convert.ToString); + } + if (content.Contains("FullBackupSetInfoListOfBackupFile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoListOfBackupFile = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo[]) content.GetValueForProperty("FullBackupSetInfoListOfBackupFile",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoListOfBackupFile, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupFileInfoTypeConverter.ConvertFrom)); + } + if (content.Contains("FullBackupSetInfoBackupStartDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupStartDate = (global::System.DateTime?) content.GetValueForProperty("FullBackupSetInfoBackupStartDate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupStartDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("FullBackupSetInfoBackupFinishDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupFinishDate = (global::System.DateTime?) content.GetValueForProperty("FullBackupSetInfoBackupFinishDate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupFinishDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("FullBackupSetInfoIsBackupRestored")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoIsBackupRestored = (bool?) content.GetValueForProperty("FullBackupSetInfoIsBackupRestored",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoIsBackupRestored, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("FullBackupSetInfoHasBackupChecksum")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoHasBackupChecksum = (bool?) content.GetValueForProperty("FullBackupSetInfoHasBackupChecksum",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoHasBackupChecksum, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("FullBackupSetInfoFamilyCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoFamilyCount = (int?) content.GetValueForProperty("FullBackupSetInfoFamilyCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoFamilyCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("FullBackupSetInfoIgnoreReason")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoIgnoreReason = (string[]) content.GetValueForProperty("FullBackupSetInfoIgnoreReason",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoIgnoreReason, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("LastRestoredBackupSetInfoBackupSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupSetId = (string) content.GetValueForProperty("LastRestoredBackupSetInfoBackupSetId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupSetId, global::System.Convert.ToString); + } + if (content.Contains("LastRestoredBackupSetInfoFirstLsn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoFirstLsn = (string) content.GetValueForProperty("LastRestoredBackupSetInfoFirstLsn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoFirstLsn, global::System.Convert.ToString); + } + if (content.Contains("LastRestoredBackupSetInfoLastLsn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoLastLsn = (string) content.GetValueForProperty("LastRestoredBackupSetInfoLastLsn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoLastLsn, global::System.Convert.ToString); + } + if (content.Contains("LastRestoredBackupSetInfoBackupType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupType = (string) content.GetValueForProperty("LastRestoredBackupSetInfoBackupType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupType, global::System.Convert.ToString); + } + if (content.Contains("LastRestoredBackupSetInfoListOfBackupFile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoListOfBackupFile = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo[]) content.GetValueForProperty("LastRestoredBackupSetInfoListOfBackupFile",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoListOfBackupFile, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupFileInfoTypeConverter.ConvertFrom)); + } + if (content.Contains("LastRestoredBackupSetInfoBackupStartDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupStartDate = (global::System.DateTime?) content.GetValueForProperty("LastRestoredBackupSetInfoBackupStartDate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupStartDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastRestoredBackupSetInfoBackupFinishDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupFinishDate = (global::System.DateTime?) content.GetValueForProperty("LastRestoredBackupSetInfoBackupFinishDate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupFinishDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastRestoredBackupSetInfoIsBackupRestored")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoIsBackupRestored = (bool?) content.GetValueForProperty("LastRestoredBackupSetInfoIsBackupRestored",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoIsBackupRestored, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("LastRestoredBackupSetInfoHasBackupChecksum")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoHasBackupChecksum = (bool?) content.GetValueForProperty("LastRestoredBackupSetInfoHasBackupChecksum",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoHasBackupChecksum, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("LastRestoredBackupSetInfoFamilyCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoFamilyCount = (int?) content.GetValueForProperty("LastRestoredBackupSetInfoFamilyCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoFamilyCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("LastRestoredBackupSetInfoIgnoreReason")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoIgnoreReason = (string[]) content.GetValueForProperty("LastRestoredBackupSetInfoIgnoreReason",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoIgnoreReason, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal MigrationStatusDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FullBackupSetInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo) content.GetValueForProperty("FullBackupSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupSetInfoTypeConverter.ConvertFrom); + } + if (content.Contains("LastRestoredBackupSetInfo")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo) content.GetValueForProperty("LastRestoredBackupSetInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfo, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupSetInfoTypeConverter.ConvertFrom); + } + if (content.Contains("MigrationState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).MigrationState = (string) content.GetValueForProperty("MigrationState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).MigrationState, global::System.Convert.ToString); + } + if (content.Contains("ActiveBackupSet")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).ActiveBackupSet = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo[]) content.GetValueForProperty("ActiveBackupSet",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).ActiveBackupSet, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupSetInfoTypeConverter.ConvertFrom)); + } + if (content.Contains("InvalidFile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).InvalidFile = (string[]) content.GetValueForProperty("InvalidFile",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).InvalidFile, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("BlobContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).BlobContainerName = (string) content.GetValueForProperty("BlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).BlobContainerName, global::System.Convert.ToString); + } + if (content.Contains("IsFullBackupRestored")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).IsFullBackupRestored = (bool?) content.GetValueForProperty("IsFullBackupRestored",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).IsFullBackupRestored, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("RestoreBlockingReason")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).RestoreBlockingReason = (string) content.GetValueForProperty("RestoreBlockingReason",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).RestoreBlockingReason, global::System.Convert.ToString); + } + if (content.Contains("CompleteRestoreErrorMessage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).CompleteRestoreErrorMessage = (string) content.GetValueForProperty("CompleteRestoreErrorMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).CompleteRestoreErrorMessage, global::System.Convert.ToString); + } + if (content.Contains("FileUploadBlockingError")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FileUploadBlockingError = (string[]) content.GetValueForProperty("FileUploadBlockingError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FileUploadBlockingError, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("CurrentRestoringFilename")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).CurrentRestoringFilename = (string) content.GetValueForProperty("CurrentRestoringFilename",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).CurrentRestoringFilename, global::System.Convert.ToString); + } + if (content.Contains("LastRestoredFilename")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredFilename = (string) content.GetValueForProperty("LastRestoredFilename",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredFilename, global::System.Convert.ToString); + } + if (content.Contains("PendingLogBackupsCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).PendingLogBackupsCount = (int?) content.GetValueForProperty("PendingLogBackupsCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).PendingLogBackupsCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("FullBackupSetInfoBackupSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupSetId = (string) content.GetValueForProperty("FullBackupSetInfoBackupSetId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupSetId, global::System.Convert.ToString); + } + if (content.Contains("FullBackupSetInfoFirstLsn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoFirstLsn = (string) content.GetValueForProperty("FullBackupSetInfoFirstLsn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoFirstLsn, global::System.Convert.ToString); + } + if (content.Contains("FullBackupSetInfoLastLsn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoLastLsn = (string) content.GetValueForProperty("FullBackupSetInfoLastLsn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoLastLsn, global::System.Convert.ToString); + } + if (content.Contains("FullBackupSetInfoBackupType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupType = (string) content.GetValueForProperty("FullBackupSetInfoBackupType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupType, global::System.Convert.ToString); + } + if (content.Contains("FullBackupSetInfoListOfBackupFile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoListOfBackupFile = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo[]) content.GetValueForProperty("FullBackupSetInfoListOfBackupFile",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoListOfBackupFile, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupFileInfoTypeConverter.ConvertFrom)); + } + if (content.Contains("FullBackupSetInfoBackupStartDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupStartDate = (global::System.DateTime?) content.GetValueForProperty("FullBackupSetInfoBackupStartDate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupStartDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("FullBackupSetInfoBackupFinishDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupFinishDate = (global::System.DateTime?) content.GetValueForProperty("FullBackupSetInfoBackupFinishDate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoBackupFinishDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("FullBackupSetInfoIsBackupRestored")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoIsBackupRestored = (bool?) content.GetValueForProperty("FullBackupSetInfoIsBackupRestored",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoIsBackupRestored, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("FullBackupSetInfoHasBackupChecksum")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoHasBackupChecksum = (bool?) content.GetValueForProperty("FullBackupSetInfoHasBackupChecksum",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoHasBackupChecksum, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("FullBackupSetInfoFamilyCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoFamilyCount = (int?) content.GetValueForProperty("FullBackupSetInfoFamilyCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoFamilyCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("FullBackupSetInfoIgnoreReason")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoIgnoreReason = (string[]) content.GetValueForProperty("FullBackupSetInfoIgnoreReason",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).FullBackupSetInfoIgnoreReason, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + if (content.Contains("LastRestoredBackupSetInfoBackupSetId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupSetId = (string) content.GetValueForProperty("LastRestoredBackupSetInfoBackupSetId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupSetId, global::System.Convert.ToString); + } + if (content.Contains("LastRestoredBackupSetInfoFirstLsn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoFirstLsn = (string) content.GetValueForProperty("LastRestoredBackupSetInfoFirstLsn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoFirstLsn, global::System.Convert.ToString); + } + if (content.Contains("LastRestoredBackupSetInfoLastLsn")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoLastLsn = (string) content.GetValueForProperty("LastRestoredBackupSetInfoLastLsn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoLastLsn, global::System.Convert.ToString); + } + if (content.Contains("LastRestoredBackupSetInfoBackupType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupType = (string) content.GetValueForProperty("LastRestoredBackupSetInfoBackupType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupType, global::System.Convert.ToString); + } + if (content.Contains("LastRestoredBackupSetInfoListOfBackupFile")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoListOfBackupFile = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo[]) content.GetValueForProperty("LastRestoredBackupSetInfoListOfBackupFile",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoListOfBackupFile, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupFileInfoTypeConverter.ConvertFrom)); + } + if (content.Contains("LastRestoredBackupSetInfoBackupStartDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupStartDate = (global::System.DateTime?) content.GetValueForProperty("LastRestoredBackupSetInfoBackupStartDate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupStartDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastRestoredBackupSetInfoBackupFinishDate")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupFinishDate = (global::System.DateTime?) content.GetValueForProperty("LastRestoredBackupSetInfoBackupFinishDate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoBackupFinishDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("LastRestoredBackupSetInfoIsBackupRestored")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoIsBackupRestored = (bool?) content.GetValueForProperty("LastRestoredBackupSetInfoIsBackupRestored",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoIsBackupRestored, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("LastRestoredBackupSetInfoHasBackupChecksum")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoHasBackupChecksum = (bool?) content.GetValueForProperty("LastRestoredBackupSetInfoHasBackupChecksum",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoHasBackupChecksum, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("LastRestoredBackupSetInfoFamilyCount")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoFamilyCount = (int?) content.GetValueForProperty("LastRestoredBackupSetInfoFamilyCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoFamilyCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + } + if (content.Contains("LastRestoredBackupSetInfoIgnoreReason")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoIgnoreReason = (string[]) content.GetValueForProperty("LastRestoredBackupSetInfoIgnoreReason",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal)this).LastRestoredBackupSetInfoIgnoreReason, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Detailed status of current migration. + [System.ComponentModel.TypeConverter(typeof(MigrationStatusDetailsTypeConverter))] + public partial interface IMigrationStatusDetails + + { + + } +} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationStatusDetails.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationStatusDetails.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationStatusDetails.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationStatusDetails.TypeConverter.cs index 6788ec559e0d..3582a1503a72 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationStatusDetails.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationStatusDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationStatusDetails.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationStatusDetails.cs similarity index 69% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationStatusDetails.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationStatusDetails.cs index 1da87ebc96a5..35a79008fd45 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationStatusDetails.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationStatusDetails.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Detailed status of current migration. public partial class MigrationStatusDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo[] _activeBackupSet; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo[] _activeBackupSet; /// Backup sets that are currently active. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo[] ActiveBackupSet { get => this._activeBackupSet; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo[] ActiveBackupSet { get => this._activeBackupSet; } /// Backing field for property. private string _blobContainerName; @@ -49,55 +49,55 @@ public partial class MigrationStatusDetails : public string[] FileUploadBlockingError { get => this._fileUploadBlockingError; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo _fullBackupSetInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo _fullBackupSetInfo; /// Details of full backup set. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo FullBackupSetInfo { get => (this._fullBackupSetInfo = this._fullBackupSetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupSetInfo()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo FullBackupSetInfo { get => (this._fullBackupSetInfo = this._fullBackupSetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupSetInfo()); } /// Backup end time. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public global::System.DateTime? FullBackupSetInfoBackupFinishDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).BackupFinishDate; } + public global::System.DateTime? FullBackupSetInfoBackupFinishDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).BackupFinishDate; } /// Backup set id. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string FullBackupSetInfoBackupSetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).BackupSetId; } + public string FullBackupSetInfoBackupSetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).BackupSetId; } /// Backup start date. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public global::System.DateTime? FullBackupSetInfoBackupStartDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).BackupStartDate; } + public global::System.DateTime? FullBackupSetInfoBackupStartDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).BackupStartDate; } /// Backup type. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string FullBackupSetInfoBackupType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).BackupType; } + public string FullBackupSetInfoBackupType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).BackupType; } /// Media family count [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public int? FullBackupSetInfoFamilyCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).FamilyCount; } + public int? FullBackupSetInfoFamilyCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).FamilyCount; } /// First LSN of the backup set. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string FullBackupSetInfoFirstLsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).FirstLsn; } + public string FullBackupSetInfoFirstLsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).FirstLsn; } /// Has Backup Checksums [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public bool? FullBackupSetInfoHasBackupChecksum { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).HasBackupChecksum; } + public bool? FullBackupSetInfoHasBackupChecksum { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).HasBackupChecksum; } /// The reasons why the backup set is ignored [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string[] FullBackupSetInfoIgnoreReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).IgnoreReason; } + public string[] FullBackupSetInfoIgnoreReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).IgnoreReason; } /// Whether this backup set has been restored or not. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public bool? FullBackupSetInfoIsBackupRestored { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).IsBackupRestored; } + public bool? FullBackupSetInfoIsBackupRestored { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).IsBackupRestored; } /// Last LSN of the backup set. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string FullBackupSetInfoLastLsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).LastLsn; } + public string FullBackupSetInfoLastLsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).LastLsn; } /// List of files in the backup set. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo[] FullBackupSetInfoListOfBackupFile { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).ListOfBackupFile; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo[] FullBackupSetInfoListOfBackupFile { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).ListOfBackupFile; } /// Backing field for property. private string[] _invalidFile; @@ -114,55 +114,55 @@ public partial class MigrationStatusDetails : public bool? IsFullBackupRestored { get => this._isFullBackupRestored; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo _lastRestoredBackupSetInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo _lastRestoredBackupSetInfo; /// Last applied backup set information. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo LastRestoredBackupSetInfo { get => (this._lastRestoredBackupSetInfo = this._lastRestoredBackupSetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupSetInfo()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo LastRestoredBackupSetInfo { get => (this._lastRestoredBackupSetInfo = this._lastRestoredBackupSetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupSetInfo()); } /// Backup end time. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public global::System.DateTime? LastRestoredBackupSetInfoBackupFinishDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).BackupFinishDate; } + public global::System.DateTime? LastRestoredBackupSetInfoBackupFinishDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).BackupFinishDate; } /// Backup set id. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string LastRestoredBackupSetInfoBackupSetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).BackupSetId; } + public string LastRestoredBackupSetInfoBackupSetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).BackupSetId; } /// Backup start date. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public global::System.DateTime? LastRestoredBackupSetInfoBackupStartDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).BackupStartDate; } + public global::System.DateTime? LastRestoredBackupSetInfoBackupStartDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).BackupStartDate; } /// Backup type. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string LastRestoredBackupSetInfoBackupType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).BackupType; } + public string LastRestoredBackupSetInfoBackupType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).BackupType; } /// Media family count [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public int? LastRestoredBackupSetInfoFamilyCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).FamilyCount; } + public int? LastRestoredBackupSetInfoFamilyCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).FamilyCount; } /// First LSN of the backup set. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string LastRestoredBackupSetInfoFirstLsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).FirstLsn; } + public string LastRestoredBackupSetInfoFirstLsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).FirstLsn; } /// Has Backup Checksums [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public bool? LastRestoredBackupSetInfoHasBackupChecksum { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).HasBackupChecksum; } + public bool? LastRestoredBackupSetInfoHasBackupChecksum { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).HasBackupChecksum; } /// The reasons why the backup set is ignored [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string[] LastRestoredBackupSetInfoIgnoreReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).IgnoreReason; } + public string[] LastRestoredBackupSetInfoIgnoreReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).IgnoreReason; } /// Whether this backup set has been restored or not. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public bool? LastRestoredBackupSetInfoIsBackupRestored { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).IsBackupRestored; } + public bool? LastRestoredBackupSetInfoIsBackupRestored { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).IsBackupRestored; } /// Last LSN of the backup set. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string LastRestoredBackupSetInfoLastLsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).LastLsn; } + public string LastRestoredBackupSetInfoLastLsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).LastLsn; } /// List of files in the backup set. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo[] LastRestoredBackupSetInfoListOfBackupFile { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).ListOfBackupFile; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo[] LastRestoredBackupSetInfoListOfBackupFile { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).ListOfBackupFile; } /// Backing field for property. private string _lastRestoredFilename; @@ -172,109 +172,109 @@ public partial class MigrationStatusDetails : public string LastRestoredFilename { get => this._lastRestoredFilename; } /// Internal Acessors for ActiveBackupSet - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.ActiveBackupSet { get => this._activeBackupSet; set { {_activeBackupSet = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.ActiveBackupSet { get => this._activeBackupSet; set { {_activeBackupSet = value;} } } /// Internal Acessors for BlobContainerName - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.BlobContainerName { get => this._blobContainerName; set { {_blobContainerName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.BlobContainerName { get => this._blobContainerName; set { {_blobContainerName = value;} } } /// Internal Acessors for CompleteRestoreErrorMessage - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.CompleteRestoreErrorMessage { get => this._completeRestoreErrorMessage; set { {_completeRestoreErrorMessage = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.CompleteRestoreErrorMessage { get => this._completeRestoreErrorMessage; set { {_completeRestoreErrorMessage = value;} } } /// Internal Acessors for CurrentRestoringFilename - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.CurrentRestoringFilename { get => this._currentRestoringFilename; set { {_currentRestoringFilename = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.CurrentRestoringFilename { get => this._currentRestoringFilename; set { {_currentRestoringFilename = value;} } } /// Internal Acessors for FileUploadBlockingError - string[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.FileUploadBlockingError { get => this._fileUploadBlockingError; set { {_fileUploadBlockingError = value;} } } + string[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.FileUploadBlockingError { get => this._fileUploadBlockingError; set { {_fileUploadBlockingError = value;} } } /// Internal Acessors for FullBackupSetInfo - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.FullBackupSetInfo { get => (this._fullBackupSetInfo = this._fullBackupSetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupSetInfo()); set { {_fullBackupSetInfo = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.FullBackupSetInfo { get => (this._fullBackupSetInfo = this._fullBackupSetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupSetInfo()); set { {_fullBackupSetInfo = value;} } } /// Internal Acessors for FullBackupSetInfoBackupFinishDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.FullBackupSetInfoBackupFinishDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).BackupFinishDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).BackupFinishDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.FullBackupSetInfoBackupFinishDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).BackupFinishDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).BackupFinishDate = value; } /// Internal Acessors for FullBackupSetInfoBackupSetId - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.FullBackupSetInfoBackupSetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).BackupSetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).BackupSetId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.FullBackupSetInfoBackupSetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).BackupSetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).BackupSetId = value; } /// Internal Acessors for FullBackupSetInfoBackupStartDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.FullBackupSetInfoBackupStartDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).BackupStartDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).BackupStartDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.FullBackupSetInfoBackupStartDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).BackupStartDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).BackupStartDate = value; } /// Internal Acessors for FullBackupSetInfoBackupType - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.FullBackupSetInfoBackupType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).BackupType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).BackupType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.FullBackupSetInfoBackupType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).BackupType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).BackupType = value; } /// Internal Acessors for FullBackupSetInfoFamilyCount - int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.FullBackupSetInfoFamilyCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).FamilyCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).FamilyCount = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.FullBackupSetInfoFamilyCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).FamilyCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).FamilyCount = value; } /// Internal Acessors for FullBackupSetInfoFirstLsn - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.FullBackupSetInfoFirstLsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).FirstLsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).FirstLsn = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.FullBackupSetInfoFirstLsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).FirstLsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).FirstLsn = value; } /// Internal Acessors for FullBackupSetInfoHasBackupChecksum - bool? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.FullBackupSetInfoHasBackupChecksum { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).HasBackupChecksum; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).HasBackupChecksum = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.FullBackupSetInfoHasBackupChecksum { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).HasBackupChecksum; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).HasBackupChecksum = value; } /// Internal Acessors for FullBackupSetInfoIgnoreReason - string[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.FullBackupSetInfoIgnoreReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).IgnoreReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).IgnoreReason = value; } + string[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.FullBackupSetInfoIgnoreReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).IgnoreReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).IgnoreReason = value; } /// Internal Acessors for FullBackupSetInfoIsBackupRestored - bool? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.FullBackupSetInfoIsBackupRestored { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).IsBackupRestored; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).IsBackupRestored = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.FullBackupSetInfoIsBackupRestored { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).IsBackupRestored; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).IsBackupRestored = value; } /// Internal Acessors for FullBackupSetInfoLastLsn - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.FullBackupSetInfoLastLsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).LastLsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).LastLsn = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.FullBackupSetInfoLastLsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).LastLsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).LastLsn = value; } /// Internal Acessors for FullBackupSetInfoListOfBackupFile - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.FullBackupSetInfoListOfBackupFile { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).ListOfBackupFile; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)FullBackupSetInfo).ListOfBackupFile = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.FullBackupSetInfoListOfBackupFile { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).ListOfBackupFile; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)FullBackupSetInfo).ListOfBackupFile = value; } /// Internal Acessors for InvalidFile - string[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.InvalidFile { get => this._invalidFile; set { {_invalidFile = value;} } } + string[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.InvalidFile { get => this._invalidFile; set { {_invalidFile = value;} } } /// Internal Acessors for IsFullBackupRestored - bool? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.IsFullBackupRestored { get => this._isFullBackupRestored; set { {_isFullBackupRestored = value;} } } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.IsFullBackupRestored { get => this._isFullBackupRestored; set { {_isFullBackupRestored = value;} } } /// Internal Acessors for LastRestoredBackupSetInfo - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.LastRestoredBackupSetInfo { get => (this._lastRestoredBackupSetInfo = this._lastRestoredBackupSetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupSetInfo()); set { {_lastRestoredBackupSetInfo = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.LastRestoredBackupSetInfo { get => (this._lastRestoredBackupSetInfo = this._lastRestoredBackupSetInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupSetInfo()); set { {_lastRestoredBackupSetInfo = value;} } } /// Internal Acessors for LastRestoredBackupSetInfoBackupFinishDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.LastRestoredBackupSetInfoBackupFinishDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).BackupFinishDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).BackupFinishDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.LastRestoredBackupSetInfoBackupFinishDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).BackupFinishDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).BackupFinishDate = value; } /// Internal Acessors for LastRestoredBackupSetInfoBackupSetId - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.LastRestoredBackupSetInfoBackupSetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).BackupSetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).BackupSetId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.LastRestoredBackupSetInfoBackupSetId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).BackupSetId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).BackupSetId = value; } /// Internal Acessors for LastRestoredBackupSetInfoBackupStartDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.LastRestoredBackupSetInfoBackupStartDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).BackupStartDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).BackupStartDate = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.LastRestoredBackupSetInfoBackupStartDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).BackupStartDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).BackupStartDate = value; } /// Internal Acessors for LastRestoredBackupSetInfoBackupType - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.LastRestoredBackupSetInfoBackupType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).BackupType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).BackupType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.LastRestoredBackupSetInfoBackupType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).BackupType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).BackupType = value; } /// Internal Acessors for LastRestoredBackupSetInfoFamilyCount - int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.LastRestoredBackupSetInfoFamilyCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).FamilyCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).FamilyCount = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.LastRestoredBackupSetInfoFamilyCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).FamilyCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).FamilyCount = value; } /// Internal Acessors for LastRestoredBackupSetInfoFirstLsn - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.LastRestoredBackupSetInfoFirstLsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).FirstLsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).FirstLsn = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.LastRestoredBackupSetInfoFirstLsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).FirstLsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).FirstLsn = value; } /// Internal Acessors for LastRestoredBackupSetInfoHasBackupChecksum - bool? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.LastRestoredBackupSetInfoHasBackupChecksum { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).HasBackupChecksum; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).HasBackupChecksum = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.LastRestoredBackupSetInfoHasBackupChecksum { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).HasBackupChecksum; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).HasBackupChecksum = value; } /// Internal Acessors for LastRestoredBackupSetInfoIgnoreReason - string[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.LastRestoredBackupSetInfoIgnoreReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).IgnoreReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).IgnoreReason = value; } + string[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.LastRestoredBackupSetInfoIgnoreReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).IgnoreReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).IgnoreReason = value; } /// Internal Acessors for LastRestoredBackupSetInfoIsBackupRestored - bool? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.LastRestoredBackupSetInfoIsBackupRestored { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).IsBackupRestored; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).IsBackupRestored = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.LastRestoredBackupSetInfoIsBackupRestored { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).IsBackupRestored; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).IsBackupRestored = value; } /// Internal Acessors for LastRestoredBackupSetInfoLastLsn - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.LastRestoredBackupSetInfoLastLsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).LastLsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).LastLsn = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.LastRestoredBackupSetInfoLastLsn { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).LastLsn; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).LastLsn = value; } /// Internal Acessors for LastRestoredBackupSetInfoListOfBackupFile - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.LastRestoredBackupSetInfoListOfBackupFile { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).ListOfBackupFile; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).ListOfBackupFile = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.LastRestoredBackupSetInfoListOfBackupFile { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).ListOfBackupFile; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)LastRestoredBackupSetInfo).ListOfBackupFile = value; } /// Internal Acessors for LastRestoredFilename - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.LastRestoredFilename { get => this._lastRestoredFilename; set { {_lastRestoredFilename = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.LastRestoredFilename { get => this._lastRestoredFilename; set { {_lastRestoredFilename = value;} } } /// Internal Acessors for MigrationState - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.MigrationState { get => this._migrationState; set { {_migrationState = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.MigrationState { get => this._migrationState; set { {_migrationState = value;} } } /// Internal Acessors for PendingLogBackupsCount - int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.PendingLogBackupsCount { get => this._pendingLogBackupsCount; set { {_pendingLogBackupsCount = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.PendingLogBackupsCount { get => this._pendingLogBackupsCount; set { {_pendingLogBackupsCount = value;} } } /// Internal Acessors for RestoreBlockingReason - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetailsInternal.RestoreBlockingReason { get => this._restoreBlockingReason; set { {_restoreBlockingReason = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetailsInternal.RestoreBlockingReason { get => this._restoreBlockingReason; set { {_restoreBlockingReason = value;} } } /// Backing field for property. private string _migrationState; @@ -313,8 +313,8 @@ public partial interface IMigrationStatusDetails : ReadOnly = true, Description = @"Backup sets that are currently active.", SerializedName = @"activeBackupSets", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo[] ActiveBackupSet { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo[] ActiveBackupSet { get; } /// Name of blob container. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( Required = false, @@ -433,8 +433,8 @@ public partial interface IMigrationStatusDetails : ReadOnly = true, Description = @"List of files in the backup set.", SerializedName = @"listOfBackupFiles", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo[] FullBackupSetInfoListOfBackupFile { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo[] FullBackupSetInfoListOfBackupFile { get; } /// Files that are not valid backup files. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( Required = false, @@ -537,8 +537,8 @@ public partial interface IMigrationStatusDetails : ReadOnly = true, Description = @"List of files in the backup set.", SerializedName = @"listOfBackupFiles", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo[] LastRestoredBackupSetInfoListOfBackupFile { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo[] LastRestoredBackupSetInfoListOfBackupFile { get; } /// Last restored file name. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( Required = false, @@ -578,7 +578,7 @@ internal partial interface IMigrationStatusDetailsInternal { /// Backup sets that are currently active. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo[] ActiveBackupSet { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo[] ActiveBackupSet { get; set; } /// Name of blob container. string BlobContainerName { get; set; } /// Complete restore error message, if any @@ -588,7 +588,7 @@ internal partial interface IMigrationStatusDetailsInternal /// File upload blocking errors, if any. string[] FileUploadBlockingError { get; set; } /// Details of full backup set. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo FullBackupSetInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo FullBackupSetInfo { get; set; } /// Backup end time. global::System.DateTime? FullBackupSetInfoBackupFinishDate { get; set; } /// Backup set id. @@ -610,13 +610,13 @@ internal partial interface IMigrationStatusDetailsInternal /// Last LSN of the backup set. string FullBackupSetInfoLastLsn { get; set; } /// List of files in the backup set. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo[] FullBackupSetInfoListOfBackupFile { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo[] FullBackupSetInfoListOfBackupFile { get; set; } /// Files that are not valid backup files. string[] InvalidFile { get; set; } /// Whether full backup has been applied to the target database or not. bool? IsFullBackupRestored { get; set; } /// Last applied backup set information. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo LastRestoredBackupSetInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo LastRestoredBackupSetInfo { get; set; } /// Backup end time. global::System.DateTime? LastRestoredBackupSetInfoBackupFinishDate { get; set; } /// Backup set id. @@ -638,7 +638,7 @@ internal partial interface IMigrationStatusDetailsInternal /// Last LSN of the backup set. string LastRestoredBackupSetInfoLastLsn { get; set; } /// List of files in the backup set. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo[] LastRestoredBackupSetInfoListOfBackupFile { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo[] LastRestoredBackupSetInfoListOfBackupFile { get; set; } /// Last restored file name. string LastRestoredFilename { get; set; } /// Current State of Migration. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationStatusDetails.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationStatusDetails.json.cs similarity index 95% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationStatusDetails.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationStatusDetails.json.cs index 14056d6298da..b4e96a0a481c 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MigrationStatusDetails.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MigrationStatusDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class MigrationStatusDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMigrationStatusDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationStatusDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new MigrationStatusDetails(json) : null; } @@ -77,10 +77,10 @@ internal MigrationStatusDetails(Microsoft.Azure.PowerShell.Cmdlets.DataMigration { return; } - {_fullBackupSetInfo = If( json?.PropertyT("fullBackupSetInfo"), out var __jsonFullBackupSetInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupSetInfo.FromJson(__jsonFullBackupSetInfo) : FullBackupSetInfo;} - {_lastRestoredBackupSetInfo = If( json?.PropertyT("lastRestoredBackupSetInfo"), out var __jsonLastRestoredBackupSetInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupSetInfo.FromJson(__jsonLastRestoredBackupSetInfo) : LastRestoredBackupSetInfo;} + {_fullBackupSetInfo = If( json?.PropertyT("fullBackupSetInfo"), out var __jsonFullBackupSetInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupSetInfo.FromJson(__jsonFullBackupSetInfo) : FullBackupSetInfo;} + {_lastRestoredBackupSetInfo = If( json?.PropertyT("lastRestoredBackupSetInfo"), out var __jsonLastRestoredBackupSetInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupSetInfo.FromJson(__jsonLastRestoredBackupSetInfo) : LastRestoredBackupSetInfo;} {_migrationState = If( json?.PropertyT("migrationState"), out var __jsonMigrationState) ? (string)__jsonMigrationState : (string)MigrationState;} - {_activeBackupSet = If( json?.PropertyT("activeBackupSets"), out var __jsonActiveBackupSets) ? If( __jsonActiveBackupSets as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo) (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupSetInfo.FromJson(__u) )) ))() : null : ActiveBackupSet;} + {_activeBackupSet = If( json?.PropertyT("activeBackupSets"), out var __jsonActiveBackupSets) ? If( __jsonActiveBackupSets as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo) (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupSetInfo.FromJson(__u) )) ))() : null : ActiveBackupSet;} {_invalidFile = If( json?.PropertyT("invalidFiles"), out var __jsonInvalidFiles) ? If( __jsonInvalidFiles as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(string) (__p is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null)) ))() : null : InvalidFile;} {_blobContainerName = If( json?.PropertyT("blobContainerName"), out var __jsonBlobContainerName) ? (string)__jsonBlobContainerName : (string)BlobContainerName;} {_isFullBackupRestored = If( json?.PropertyT("isFullBackupRestored"), out var __jsonIsFullBackupRestored) ? (bool?)__jsonIsFullBackupRestored : IsFullBackupRestored;} diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoConnectionInformation.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoConnectionInformation.PowerShell.cs similarity index 64% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoConnectionInformation.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoConnectionInformation.PowerShell.cs index 9178e2012619..a4e2f0e5cc0b 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoConnectionInformation.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoConnectionInformation.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class MongoConnectionInformation partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new MongoConnectionInformation(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new MongoConnectionInformation(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,33 +105,33 @@ internal MongoConnectionInformation(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("Host")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)this).Host = (string) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)this).Host, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)this).Host = (string) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)this).Host, global::System.Convert.ToString); } if (content.Contains("Port")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("UserName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)this).UserName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)this).UserName, global::System.Convert.ToString); } if (content.Contains("Password")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)this).Password = (System.Security.SecureString) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)this).Password, (object ss) => (System.Security.SecureString)ss); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)this).Password = (System.Security.SecureString) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)this).Password, (object ss) => (System.Security.SecureString)ss); } if (content.Contains("UseSsl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)this).UseSsl = (bool?) content.GetValueForProperty("UseSsl",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)this).UseSsl, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)this).UseSsl = (bool?) content.GetValueForProperty("UseSsl",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)this).UseSsl, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ConnectionString")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)this).ConnectionString = (string) content.GetValueForProperty("ConnectionString",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)this).ConnectionString, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)this).ConnectionString = (string) content.GetValueForProperty("ConnectionString",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)this).ConnectionString, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -146,27 +146,27 @@ internal MongoConnectionInformation(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("Host")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)this).Host = (string) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)this).Host, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)this).Host = (string) content.GetValueForProperty("Host",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)this).Host, global::System.Convert.ToString); } if (content.Contains("Port")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)this).Port = (int?) content.GetValueForProperty("Port",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)this).Port, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("UserName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)this).UserName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)this).UserName, global::System.Convert.ToString); } if (content.Contains("Password")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)this).Password = (System.Security.SecureString) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)this).Password, (object ss) => (System.Security.SecureString)ss); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)this).Password = (System.Security.SecureString) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)this).Password, (object ss) => (System.Security.SecureString)ss); } if (content.Contains("UseSsl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)this).UseSsl = (bool?) content.GetValueForProperty("UseSsl",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)this).UseSsl, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)this).UseSsl = (bool?) content.GetValueForProperty("UseSsl",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)this).UseSsl, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ConnectionString")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)this).ConnectionString = (string) content.GetValueForProperty("ConnectionString",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal)this).ConnectionString, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)this).ConnectionString = (string) content.GetValueForProperty("ConnectionString",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal)this).ConnectionString, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoConnectionInformation.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoConnectionInformation.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoConnectionInformation.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoConnectionInformation.TypeConverter.cs index debbf80c8507..f415725065ca 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoConnectionInformation.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoConnectionInformation.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoConnectionInformation.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoConnectionInformation.cs similarity index 98% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoConnectionInformation.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoConnectionInformation.cs index 5da3399681fb..9f0962662b77 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoConnectionInformation.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoConnectionInformation.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Mongo Connection public partial class MongoConnectionInformation : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformationInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformationInternal { /// Backing field for property. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoConnectionInformation.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoConnectionInformation.json.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoConnectionInformation.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoConnectionInformation.json.cs index ba6dc63229db..8090a0e51fa4 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoConnectionInformation.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoConnectionInformation.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class MongoConnectionInformation partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoConnectionInformation FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoConnectionInformation FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new MongoConnectionInformation(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoMigrationCollection.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoMigrationCollection.PowerShell.cs similarity index 53% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoMigrationCollection.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoMigrationCollection.PowerShell.cs index 8a056d7b45a0..a8eb0e5e181b 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoMigrationCollection.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoMigrationCollection.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class MongoMigrationCollection partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new MongoMigrationCollection(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new MongoMigrationCollection(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,49 +105,49 @@ internal MongoMigrationCollection(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("MigrationProgressDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).MigrationProgressDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetails) content.GetValueForProperty("MigrationProgressDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).MigrationProgressDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoMigrationProgressDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).MigrationProgressDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetails) content.GetValueForProperty("MigrationProgressDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).MigrationProgressDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoMigrationProgressDetailsTypeConverter.ConvertFrom); } if (content.Contains("SourceDatabase")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).SourceDatabase = (string) content.GetValueForProperty("SourceDatabase",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).SourceDatabase, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).SourceDatabase = (string) content.GetValueForProperty("SourceDatabase",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).SourceDatabase, global::System.Convert.ToString); } if (content.Contains("SourceCollection")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).SourceCollection = (string) content.GetValueForProperty("SourceCollection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).SourceCollection, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).SourceCollection = (string) content.GetValueForProperty("SourceCollection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).SourceCollection, global::System.Convert.ToString); } if (content.Contains("TargetDatabase")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).TargetDatabase = (string) content.GetValueForProperty("TargetDatabase",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).TargetDatabase, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).TargetDatabase = (string) content.GetValueForProperty("TargetDatabase",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).TargetDatabase, global::System.Convert.ToString); } if (content.Contains("TargetCollection")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).TargetCollection = (string) content.GetValueForProperty("TargetCollection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).TargetCollection, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).TargetCollection = (string) content.GetValueForProperty("TargetCollection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).TargetCollection, global::System.Convert.ToString); } if (content.Contains("MigrationProgressDetailMigrationStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).MigrationProgressDetailMigrationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.MongoMigrationStatus?) content.GetValueForProperty("MigrationProgressDetailMigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).MigrationProgressDetailMigrationStatus, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.MongoMigrationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).MigrationProgressDetailMigrationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.MongoMigrationStatus?) content.GetValueForProperty("MigrationProgressDetailMigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).MigrationProgressDetailMigrationStatus, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.MongoMigrationStatus.CreateFrom); } if (content.Contains("MigrationProgressDetailMigrationError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).MigrationProgressDetailMigrationError = (string) content.GetValueForProperty("MigrationProgressDetailMigrationError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).MigrationProgressDetailMigrationError, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).MigrationProgressDetailMigrationError = (string) content.GetValueForProperty("MigrationProgressDetailMigrationError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).MigrationProgressDetailMigrationError, global::System.Convert.ToString); } if (content.Contains("MigrationProgressDetailSourceDocumentCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).MigrationProgressDetailSourceDocumentCount = (long?) content.GetValueForProperty("MigrationProgressDetailSourceDocumentCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).MigrationProgressDetailSourceDocumentCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).MigrationProgressDetailSourceDocumentCount = (long?) content.GetValueForProperty("MigrationProgressDetailSourceDocumentCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).MigrationProgressDetailSourceDocumentCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("MigrationProgressDetailProcessedDocumentCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).MigrationProgressDetailProcessedDocumentCount = (long?) content.GetValueForProperty("MigrationProgressDetailProcessedDocumentCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).MigrationProgressDetailProcessedDocumentCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).MigrationProgressDetailProcessedDocumentCount = (long?) content.GetValueForProperty("MigrationProgressDetailProcessedDocumentCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).MigrationProgressDetailProcessedDocumentCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("MigrationProgressDetailDurationInSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).MigrationProgressDetailDurationInSecond = (int?) content.GetValueForProperty("MigrationProgressDetailDurationInSecond",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).MigrationProgressDetailDurationInSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).MigrationProgressDetailDurationInSecond = (int?) content.GetValueForProperty("MigrationProgressDetailDurationInSecond",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).MigrationProgressDetailDurationInSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -162,43 +162,43 @@ internal MongoMigrationCollection(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("MigrationProgressDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).MigrationProgressDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetails) content.GetValueForProperty("MigrationProgressDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).MigrationProgressDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoMigrationProgressDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).MigrationProgressDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetails) content.GetValueForProperty("MigrationProgressDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).MigrationProgressDetail, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoMigrationProgressDetailsTypeConverter.ConvertFrom); } if (content.Contains("SourceDatabase")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).SourceDatabase = (string) content.GetValueForProperty("SourceDatabase",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).SourceDatabase, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).SourceDatabase = (string) content.GetValueForProperty("SourceDatabase",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).SourceDatabase, global::System.Convert.ToString); } if (content.Contains("SourceCollection")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).SourceCollection = (string) content.GetValueForProperty("SourceCollection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).SourceCollection, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).SourceCollection = (string) content.GetValueForProperty("SourceCollection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).SourceCollection, global::System.Convert.ToString); } if (content.Contains("TargetDatabase")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).TargetDatabase = (string) content.GetValueForProperty("TargetDatabase",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).TargetDatabase, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).TargetDatabase = (string) content.GetValueForProperty("TargetDatabase",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).TargetDatabase, global::System.Convert.ToString); } if (content.Contains("TargetCollection")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).TargetCollection = (string) content.GetValueForProperty("TargetCollection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).TargetCollection, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).TargetCollection = (string) content.GetValueForProperty("TargetCollection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).TargetCollection, global::System.Convert.ToString); } if (content.Contains("MigrationProgressDetailMigrationStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).MigrationProgressDetailMigrationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.MongoMigrationStatus?) content.GetValueForProperty("MigrationProgressDetailMigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).MigrationProgressDetailMigrationStatus, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.MongoMigrationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).MigrationProgressDetailMigrationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.MongoMigrationStatus?) content.GetValueForProperty("MigrationProgressDetailMigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).MigrationProgressDetailMigrationStatus, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.MongoMigrationStatus.CreateFrom); } if (content.Contains("MigrationProgressDetailMigrationError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).MigrationProgressDetailMigrationError = (string) content.GetValueForProperty("MigrationProgressDetailMigrationError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).MigrationProgressDetailMigrationError, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).MigrationProgressDetailMigrationError = (string) content.GetValueForProperty("MigrationProgressDetailMigrationError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).MigrationProgressDetailMigrationError, global::System.Convert.ToString); } if (content.Contains("MigrationProgressDetailSourceDocumentCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).MigrationProgressDetailSourceDocumentCount = (long?) content.GetValueForProperty("MigrationProgressDetailSourceDocumentCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).MigrationProgressDetailSourceDocumentCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).MigrationProgressDetailSourceDocumentCount = (long?) content.GetValueForProperty("MigrationProgressDetailSourceDocumentCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).MigrationProgressDetailSourceDocumentCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("MigrationProgressDetailProcessedDocumentCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).MigrationProgressDetailProcessedDocumentCount = (long?) content.GetValueForProperty("MigrationProgressDetailProcessedDocumentCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).MigrationProgressDetailProcessedDocumentCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).MigrationProgressDetailProcessedDocumentCount = (long?) content.GetValueForProperty("MigrationProgressDetailProcessedDocumentCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).MigrationProgressDetailProcessedDocumentCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("MigrationProgressDetailDurationInSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).MigrationProgressDetailDurationInSecond = (int?) content.GetValueForProperty("MigrationProgressDetailDurationInSecond",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal)this).MigrationProgressDetailDurationInSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).MigrationProgressDetailDurationInSecond = (int?) content.GetValueForProperty("MigrationProgressDetailDurationInSecond",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal)this).MigrationProgressDetailDurationInSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoMigrationCollection.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoMigrationCollection.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoMigrationCollection.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoMigrationCollection.TypeConverter.cs index b460df965c3f..d70b87328cef 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoMigrationCollection.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoMigrationCollection.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoMigrationCollection.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoMigrationCollection.cs similarity index 74% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoMigrationCollection.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoMigrationCollection.cs index c5b33501d872..a1691dede6a2 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoMigrationCollection.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoMigrationCollection.cs @@ -3,60 +3,60 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Mongo source and target database and collection details. public partial class MongoMigrationCollection : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollection, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollection, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal { /// Internal Acessors for MigrationProgressDetail - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetails Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal.MigrationProgressDetail { get => (this._migrationProgressDetail = this._migrationProgressDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoMigrationProgressDetails()); set { {_migrationProgressDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetails Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal.MigrationProgressDetail { get => (this._migrationProgressDetail = this._migrationProgressDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoMigrationProgressDetails()); set { {_migrationProgressDetail = value;} } } /// Internal Acessors for MigrationProgressDetailDurationInSecond - int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal.MigrationProgressDetailDurationInSecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).DurationInSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).DurationInSecond = value; } + int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal.MigrationProgressDetailDurationInSecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).DurationInSecond; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).DurationInSecond = value; } /// Internal Acessors for MigrationProgressDetailMigrationError - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal.MigrationProgressDetailMigrationError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).MigrationError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).MigrationError = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal.MigrationProgressDetailMigrationError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).MigrationError; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).MigrationError = value; } /// Internal Acessors for MigrationProgressDetailMigrationStatus - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.MongoMigrationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal.MigrationProgressDetailMigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).MigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).MigrationStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.MongoMigrationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal.MigrationProgressDetailMigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).MigrationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).MigrationStatus = value; } /// Internal Acessors for MigrationProgressDetailProcessedDocumentCount - long? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal.MigrationProgressDetailProcessedDocumentCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).ProcessedDocumentCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).ProcessedDocumentCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal.MigrationProgressDetailProcessedDocumentCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).ProcessedDocumentCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).ProcessedDocumentCount = value; } /// Internal Acessors for MigrationProgressDetailSourceDocumentCount - long? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollectionInternal.MigrationProgressDetailSourceDocumentCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).SourceDocumentCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).SourceDocumentCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollectionInternal.MigrationProgressDetailSourceDocumentCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).SourceDocumentCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).SourceDocumentCount = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetails _migrationProgressDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetails _migrationProgressDetail; /// Detailed migration status. Not included by default. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetails MigrationProgressDetail { get => (this._migrationProgressDetail = this._migrationProgressDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoMigrationProgressDetails()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetails MigrationProgressDetail { get => (this._migrationProgressDetail = this._migrationProgressDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoMigrationProgressDetails()); } /// Migration duration [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public int? MigrationProgressDetailDurationInSecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).DurationInSecond; } + public int? MigrationProgressDetailDurationInSecond { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).DurationInSecond; } /// Migration Error [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string MigrationProgressDetailMigrationError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).MigrationError; } + public string MigrationProgressDetailMigrationError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).MigrationError; } /// Migration Status [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.MongoMigrationStatus? MigrationProgressDetailMigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).MigrationStatus; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.MongoMigrationStatus? MigrationProgressDetailMigrationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).MigrationStatus; } /// Processed Document Count [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public long? MigrationProgressDetailProcessedDocumentCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).ProcessedDocumentCount; } + public long? MigrationProgressDetailProcessedDocumentCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).ProcessedDocumentCount; } /// Source Document Count [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public long? MigrationProgressDetailSourceDocumentCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).SourceDocumentCount; } + public long? MigrationProgressDetailSourceDocumentCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)MigrationProgressDetail).SourceDocumentCount; } /// Backing field for property. private string _sourceCollection; @@ -175,7 +175,7 @@ internal partial interface IMongoMigrationCollectionInternal { /// Detailed migration status. Not included by default. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetails MigrationProgressDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetails MigrationProgressDetail { get; set; } /// Migration duration int? MigrationProgressDetailDurationInSecond { get; set; } /// Migration Error diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoMigrationCollection.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoMigrationCollection.json.cs similarity index 95% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoMigrationCollection.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoMigrationCollection.json.cs index 023aa9a3e92f..ebb0154a9928 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoMigrationCollection.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoMigrationCollection.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class MongoMigrationCollection partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new MongoMigrationCollection(json) : null; } @@ -77,7 +77,7 @@ internal MongoMigrationCollection(Microsoft.Azure.PowerShell.Cmdlets.DataMigrati { return; } - {_migrationProgressDetail = If( json?.PropertyT("migrationProgressDetails"), out var __jsonMigrationProgressDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MongoMigrationProgressDetails.FromJson(__jsonMigrationProgressDetails) : MigrationProgressDetail;} + {_migrationProgressDetail = If( json?.PropertyT("migrationProgressDetails"), out var __jsonMigrationProgressDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MongoMigrationProgressDetails.FromJson(__jsonMigrationProgressDetails) : MigrationProgressDetail;} {_sourceDatabase = If( json?.PropertyT("sourceDatabase"), out var __jsonSourceDatabase) ? (string)__jsonSourceDatabase : (string)SourceDatabase;} {_sourceCollection = If( json?.PropertyT("sourceCollection"), out var __jsonSourceCollection) ? (string)__jsonSourceCollection : (string)SourceCollection;} {_targetDatabase = If( json?.PropertyT("targetDatabase"), out var __jsonTargetDatabase) ? (string)__jsonTargetDatabase : (string)TargetDatabase;} diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoMigrationProgressDetails.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoMigrationProgressDetails.PowerShell.cs similarity index 64% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoMigrationProgressDetails.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoMigrationProgressDetails.PowerShell.cs index 206a4592428c..c803e0e74a81 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoMigrationProgressDetails.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoMigrationProgressDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class MongoMigrationProgressDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new MongoMigrationProgressDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new MongoMigrationProgressDetails(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,29 +105,29 @@ internal MongoMigrationProgressDetails(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("MigrationStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)this).MigrationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.MongoMigrationStatus?) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)this).MigrationStatus, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.MongoMigrationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)this).MigrationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.MongoMigrationStatus?) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)this).MigrationStatus, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.MongoMigrationStatus.CreateFrom); } if (content.Contains("MigrationError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)this).MigrationError = (string) content.GetValueForProperty("MigrationError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)this).MigrationError, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)this).MigrationError = (string) content.GetValueForProperty("MigrationError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)this).MigrationError, global::System.Convert.ToString); } if (content.Contains("SourceDocumentCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)this).SourceDocumentCount = (long?) content.GetValueForProperty("SourceDocumentCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)this).SourceDocumentCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)this).SourceDocumentCount = (long?) content.GetValueForProperty("SourceDocumentCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)this).SourceDocumentCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ProcessedDocumentCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)this).ProcessedDocumentCount = (long?) content.GetValueForProperty("ProcessedDocumentCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)this).ProcessedDocumentCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)this).ProcessedDocumentCount = (long?) content.GetValueForProperty("ProcessedDocumentCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)this).ProcessedDocumentCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("DurationInSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)this).DurationInSecond = (int?) content.GetValueForProperty("DurationInSecond",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)this).DurationInSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)this).DurationInSecond = (int?) content.GetValueForProperty("DurationInSecond",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)this).DurationInSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -142,23 +142,23 @@ internal MongoMigrationProgressDetails(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("MigrationStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)this).MigrationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.MongoMigrationStatus?) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)this).MigrationStatus, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.MongoMigrationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)this).MigrationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.MongoMigrationStatus?) content.GetValueForProperty("MigrationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)this).MigrationStatus, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.MongoMigrationStatus.CreateFrom); } if (content.Contains("MigrationError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)this).MigrationError = (string) content.GetValueForProperty("MigrationError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)this).MigrationError, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)this).MigrationError = (string) content.GetValueForProperty("MigrationError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)this).MigrationError, global::System.Convert.ToString); } if (content.Contains("SourceDocumentCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)this).SourceDocumentCount = (long?) content.GetValueForProperty("SourceDocumentCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)this).SourceDocumentCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)this).SourceDocumentCount = (long?) content.GetValueForProperty("SourceDocumentCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)this).SourceDocumentCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("ProcessedDocumentCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)this).ProcessedDocumentCount = (long?) content.GetValueForProperty("ProcessedDocumentCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)this).ProcessedDocumentCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)this).ProcessedDocumentCount = (long?) content.GetValueForProperty("ProcessedDocumentCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)this).ProcessedDocumentCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("DurationInSecond")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)this).DurationInSecond = (int?) content.GetValueForProperty("DurationInSecond",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal)this).DurationInSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)this).DurationInSecond = (int?) content.GetValueForProperty("DurationInSecond",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal)this).DurationInSecond, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoMigrationProgressDetails.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoMigrationProgressDetails.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoMigrationProgressDetails.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoMigrationProgressDetails.TypeConverter.cs index 2bc0cae46a6b..6dd2703c0a60 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoMigrationProgressDetails.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoMigrationProgressDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoMigrationProgressDetails.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoMigrationProgressDetails.cs similarity index 87% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoMigrationProgressDetails.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoMigrationProgressDetails.cs index 282d5f96a2a7..43fc849f2859 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoMigrationProgressDetails.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoMigrationProgressDetails.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Detailed status of collection migration. public partial class MongoMigrationProgressDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal { /// Backing field for property. @@ -21,19 +21,19 @@ public partial class MongoMigrationProgressDetails : public int? DurationInSecond { get => this._durationInSecond; } /// Internal Acessors for DurationInSecond - int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal.DurationInSecond { get => this._durationInSecond; set { {_durationInSecond = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal.DurationInSecond { get => this._durationInSecond; set { {_durationInSecond = value;} } } /// Internal Acessors for MigrationError - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal.MigrationError { get => this._migrationError; set { {_migrationError = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal.MigrationError { get => this._migrationError; set { {_migrationError = value;} } } /// Internal Acessors for MigrationStatus - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.MongoMigrationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal.MigrationStatus { get => this._migrationStatus; set { {_migrationStatus = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.MongoMigrationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal.MigrationStatus { get => this._migrationStatus; set { {_migrationStatus = value;} } } /// Internal Acessors for ProcessedDocumentCount - long? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal.ProcessedDocumentCount { get => this._processedDocumentCount; set { {_processedDocumentCount = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal.ProcessedDocumentCount { get => this._processedDocumentCount; set { {_processedDocumentCount = value;} } } /// Internal Acessors for SourceDocumentCount - long? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetailsInternal.SourceDocumentCount { get => this._sourceDocumentCount; set { {_sourceDocumentCount = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetailsInternal.SourceDocumentCount { get => this._sourceDocumentCount; set { {_sourceDocumentCount = value;} } } /// Backing field for property. private string _migrationError; diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoMigrationProgressDetails.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoMigrationProgressDetails.json.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoMigrationProgressDetails.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoMigrationProgressDetails.json.cs index 29b75d721c9d..7c5c6995343b 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/MongoMigrationProgressDetails.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/MongoMigrationProgressDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class MongoMigrationProgressDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IMongoMigrationProgressDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMongoMigrationProgressDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new MongoMigrationProgressDetails(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringData.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringData.PowerShell.cs similarity index 56% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringData.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringData.PowerShell.cs index 18514d83713d..580877ab7fb4 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringData.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringData.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -54,29 +54,27 @@ public partial class NodeMonitoringData partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringData DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringData DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new NodeMonitoringData(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new NodeMonitoringData(content); } @@ -86,10 +84,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -104,45 +102,45 @@ internal NodeMonitoringData(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("AdditionalProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).AdditionalProperty = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataAdditionalProperties) content.GetValueForProperty("AdditionalProperty",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).AdditionalProperty, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.NodeMonitoringDataAdditionalPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).AdditionalProperty = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataAdditionalProperties) content.GetValueForProperty("AdditionalProperty",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).AdditionalProperty, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.NodeMonitoringDataAdditionalPropertiesTypeConverter.ConvertFrom); } if (content.Contains("NodeName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).NodeName = (string) content.GetValueForProperty("NodeName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).NodeName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).NodeName = (string) content.GetValueForProperty("NodeName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).NodeName, global::System.Convert.ToString); } if (content.Contains("AvailableMemoryInMb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).AvailableMemoryInMb = (int?) content.GetValueForProperty("AvailableMemoryInMb",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).AvailableMemoryInMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).AvailableMemoryInMb = (int?) content.GetValueForProperty("AvailableMemoryInMb",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).AvailableMemoryInMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("CpuUtilization")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).CpuUtilization = (int?) content.GetValueForProperty("CpuUtilization",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).CpuUtilization, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).CpuUtilization = (int?) content.GetValueForProperty("CpuUtilization",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).CpuUtilization, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ConcurrentJobsLimit")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).ConcurrentJobsLimit = (int?) content.GetValueForProperty("ConcurrentJobsLimit",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).ConcurrentJobsLimit, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).ConcurrentJobsLimit = (int?) content.GetValueForProperty("ConcurrentJobsLimit",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).ConcurrentJobsLimit, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ConcurrentJobsRunning")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).ConcurrentJobsRunning = (int?) content.GetValueForProperty("ConcurrentJobsRunning",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).ConcurrentJobsRunning, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).ConcurrentJobsRunning = (int?) content.GetValueForProperty("ConcurrentJobsRunning",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).ConcurrentJobsRunning, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("MaxConcurrentJob")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).MaxConcurrentJob = (int?) content.GetValueForProperty("MaxConcurrentJob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).MaxConcurrentJob, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).MaxConcurrentJob = (int?) content.GetValueForProperty("MaxConcurrentJob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).MaxConcurrentJob, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("SentByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).SentByte = (double?) content.GetValueForProperty("SentByte",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).SentByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).SentByte = (double?) content.GetValueForProperty("SentByte",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).SentByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("ReceivedByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).ReceivedByte = (double?) content.GetValueForProperty("ReceivedByte",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).ReceivedByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).ReceivedByte = (double?) content.GetValueForProperty("ReceivedByte",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).ReceivedByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -157,39 +155,39 @@ internal NodeMonitoringData(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("AdditionalProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).AdditionalProperty = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataAdditionalProperties) content.GetValueForProperty("AdditionalProperty",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).AdditionalProperty, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.NodeMonitoringDataAdditionalPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).AdditionalProperty = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataAdditionalProperties) content.GetValueForProperty("AdditionalProperty",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).AdditionalProperty, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.NodeMonitoringDataAdditionalPropertiesTypeConverter.ConvertFrom); } if (content.Contains("NodeName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).NodeName = (string) content.GetValueForProperty("NodeName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).NodeName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).NodeName = (string) content.GetValueForProperty("NodeName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).NodeName, global::System.Convert.ToString); } if (content.Contains("AvailableMemoryInMb")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).AvailableMemoryInMb = (int?) content.GetValueForProperty("AvailableMemoryInMb",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).AvailableMemoryInMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).AvailableMemoryInMb = (int?) content.GetValueForProperty("AvailableMemoryInMb",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).AvailableMemoryInMb, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("CpuUtilization")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).CpuUtilization = (int?) content.GetValueForProperty("CpuUtilization",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).CpuUtilization, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).CpuUtilization = (int?) content.GetValueForProperty("CpuUtilization",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).CpuUtilization, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ConcurrentJobsLimit")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).ConcurrentJobsLimit = (int?) content.GetValueForProperty("ConcurrentJobsLimit",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).ConcurrentJobsLimit, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).ConcurrentJobsLimit = (int?) content.GetValueForProperty("ConcurrentJobsLimit",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).ConcurrentJobsLimit, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("ConcurrentJobsRunning")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).ConcurrentJobsRunning = (int?) content.GetValueForProperty("ConcurrentJobsRunning",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).ConcurrentJobsRunning, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).ConcurrentJobsRunning = (int?) content.GetValueForProperty("ConcurrentJobsRunning",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).ConcurrentJobsRunning, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("MaxConcurrentJob")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).MaxConcurrentJob = (int?) content.GetValueForProperty("MaxConcurrentJob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).MaxConcurrentJob, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).MaxConcurrentJob = (int?) content.GetValueForProperty("MaxConcurrentJob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).MaxConcurrentJob, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("SentByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).SentByte = (double?) content.GetValueForProperty("SentByte",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).SentByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).SentByte = (double?) content.GetValueForProperty("SentByte",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).SentByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("ReceivedByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).ReceivedByte = (double?) content.GetValueForProperty("ReceivedByte",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal)this).ReceivedByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).ReceivedByte = (double?) content.GetValueForProperty("ReceivedByte",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal)this).ReceivedByte, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringData.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringData.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringData.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringData.TypeConverter.cs index 1fa15c8919a1..339b83d08b51 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringData.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringData.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringData ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringData ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringData).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringData).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringData.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringData.cs similarity index 83% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringData.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringData.cs index 902919f402ef..1ac91816d088 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringData.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringData.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; public partial class NodeMonitoringData : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringData, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringData, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataAdditionalProperties _additionalProperty; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataAdditionalProperties _additionalProperty; /// Unmatched properties from the message are deserialized in this collection. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataAdditionalProperties AdditionalProperty { get => (this._additionalProperty = this._additionalProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.NodeMonitoringDataAdditionalProperties()); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataAdditionalProperties AdditionalProperty { get => (this._additionalProperty = this._additionalProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.NodeMonitoringDataAdditionalProperties()); } /// Backing field for property. private int? _availableMemoryInMb; @@ -55,31 +55,31 @@ public partial class NodeMonitoringData : public int? MaxConcurrentJob { get => this._maxConcurrentJob; } /// Internal Acessors for AdditionalProperty - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataAdditionalProperties Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal.AdditionalProperty { get => (this._additionalProperty = this._additionalProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.NodeMonitoringDataAdditionalProperties()); set { {_additionalProperty = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataAdditionalProperties Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal.AdditionalProperty { get => (this._additionalProperty = this._additionalProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.NodeMonitoringDataAdditionalProperties()); set { {_additionalProperty = value;} } } /// Internal Acessors for AvailableMemoryInMb - int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal.AvailableMemoryInMb { get => this._availableMemoryInMb; set { {_availableMemoryInMb = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal.AvailableMemoryInMb { get => this._availableMemoryInMb; set { {_availableMemoryInMb = value;} } } /// Internal Acessors for ConcurrentJobsLimit - int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal.ConcurrentJobsLimit { get => this._concurrentJobsLimit; set { {_concurrentJobsLimit = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal.ConcurrentJobsLimit { get => this._concurrentJobsLimit; set { {_concurrentJobsLimit = value;} } } /// Internal Acessors for ConcurrentJobsRunning - int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal.ConcurrentJobsRunning { get => this._concurrentJobsRunning; set { {_concurrentJobsRunning = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal.ConcurrentJobsRunning { get => this._concurrentJobsRunning; set { {_concurrentJobsRunning = value;} } } /// Internal Acessors for CpuUtilization - int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal.CpuUtilization { get => this._cpuUtilization; set { {_cpuUtilization = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal.CpuUtilization { get => this._cpuUtilization; set { {_cpuUtilization = value;} } } /// Internal Acessors for MaxConcurrentJob - int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal.MaxConcurrentJob { get => this._maxConcurrentJob; set { {_maxConcurrentJob = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal.MaxConcurrentJob { get => this._maxConcurrentJob; set { {_maxConcurrentJob = value;} } } /// Internal Acessors for NodeName - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal.NodeName { get => this._nodeName; set { {_nodeName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal.NodeName { get => this._nodeName; set { {_nodeName = value;} } } /// Internal Acessors for ReceivedByte - double? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal.ReceivedByte { get => this._receivedByte; set { {_receivedByte = value;} } } + double? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal.ReceivedByte { get => this._receivedByte; set { {_receivedByte = value;} } } /// Internal Acessors for SentByte - double? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataInternal.SentByte { get => this._sentByte; set { {_sentByte = value;} } } + double? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataInternal.SentByte { get => this._sentByte; set { {_sentByte = value;} } } /// Backing field for property. private string _nodeName; @@ -117,8 +117,8 @@ public partial interface INodeMonitoringData : ReadOnly = true, Description = @" Unmatched properties from the message are deserialized in this collection.", SerializedName = @"additionalProperties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataAdditionalProperties) })] - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataAdditionalProperties AdditionalProperty { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataAdditionalProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataAdditionalProperties AdditionalProperty { get; } /// Available memory (MB) on the integration runtime node. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( Required = false, @@ -189,7 +189,7 @@ internal partial interface INodeMonitoringDataInternal { /// Unmatched properties from the message are deserialized in this collection. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataAdditionalProperties AdditionalProperty { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataAdditionalProperties AdditionalProperty { get; set; } /// Available memory (MB) on the integration runtime node. int? AvailableMemoryInMb { get; set; } /// Maximum concurrent jobs on the integration runtime node. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringData.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringData.json.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringData.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringData.json.cs index 841730ef0393..c57130720bf4 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringData.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringData.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -53,13 +53,13 @@ public partial class NodeMonitoringData partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringData. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringData. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringData. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringData. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringData FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringData FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new NodeMonitoringData(json) : null; } @@ -76,7 +76,7 @@ internal NodeMonitoringData(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Run { return; } - {_additionalProperty = If( json?.PropertyT("additionalProperties"), out var __jsonAdditionalProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.NodeMonitoringDataAdditionalProperties.FromJson(__jsonAdditionalProperties) : AdditionalProperty;} + {_additionalProperty = If( json?.PropertyT("additionalProperties"), out var __jsonAdditionalProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.NodeMonitoringDataAdditionalProperties.FromJson(__jsonAdditionalProperties) : AdditionalProperty;} {_nodeName = If( json?.PropertyT("nodeName"), out var __jsonNodeName) ? (string)__jsonNodeName : (string)NodeName;} {_availableMemoryInMb = If( json?.PropertyT("availableMemoryInMB"), out var __jsonAvailableMemoryInMb) ? (int?)__jsonAvailableMemoryInMb : AvailableMemoryInMb;} {_cpuUtilization = If( json?.PropertyT("cpuUtilization"), out var __jsonCpuUtilization) ? (int?)__jsonCpuUtilization : CpuUtilization;} diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringDataAdditionalProperties.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringDataAdditionalProperties.PowerShell.cs similarity index 87% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringDataAdditionalProperties.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringDataAdditionalProperties.PowerShell.cs index e14ad401356a..4053279c69c6 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringDataAdditionalProperties.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringDataAdditionalProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class NodeMonitoringDataAdditionalProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataAdditionalProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataAdditionalProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new NodeMonitoringDataAdditionalProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataAdditionalProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataAdditionalProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new NodeMonitoringDataAdditionalProperties(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataAdditionalProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataAdditionalProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -112,7 +112,7 @@ internal NodeMonitoringDataAdditionalProperties(global::System.Collections.IDict } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringDataAdditionalProperties.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringDataAdditionalProperties.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringDataAdditionalProperties.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringDataAdditionalProperties.TypeConverter.cs index 5c7b6292894b..559ddcf61b15 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringDataAdditionalProperties.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringDataAdditionalProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataAdditionalProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataAdditionalProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataAdditionalProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataAdditionalProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringDataAdditionalProperties.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringDataAdditionalProperties.cs similarity index 90% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringDataAdditionalProperties.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringDataAdditionalProperties.cs index 6d61ce696d74..f3bb261fd669 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringDataAdditionalProperties.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringDataAdditionalProperties.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Unmatched properties from the message are deserialized in this collection. public partial class NodeMonitoringDataAdditionalProperties : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataAdditionalProperties, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataAdditionalPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataAdditionalProperties, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataAdditionalPropertiesInternal { /// Creates an new instance. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringDataAdditionalProperties.dictionary.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringDataAdditionalProperties.dictionary.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringDataAdditionalProperties.dictionary.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringDataAdditionalProperties.dictionary.cs index 7e244504abea..8a8a81335501 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringDataAdditionalProperties.dictionary.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringDataAdditionalProperties.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.NodeMonitoringDataAdditionalProperties source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.NodeMonitoringDataAdditionalProperties source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringDataAdditionalProperties.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringDataAdditionalProperties.json.cs similarity index 95% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringDataAdditionalProperties.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringDataAdditionalProperties.json.cs index 1fb16451b0fe..18c1e2830139 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/NodeMonitoringDataAdditionalProperties.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/NodeMonitoringDataAdditionalProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class NodeMonitoringDataAdditionalProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataAdditionalProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataAdditionalProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataAdditionalProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataAdditionalProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.INodeMonitoringDataAdditionalProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.INodeMonitoringDataAdditionalProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new NodeMonitoringDataAdditionalProperties(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OfflineConfiguration.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OfflineConfiguration.PowerShell.cs similarity index 77% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OfflineConfiguration.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OfflineConfiguration.PowerShell.cs index 39b133d55fc0..bd0939e7acd5 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OfflineConfiguration.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OfflineConfiguration.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,29 +55,27 @@ public partial class OfflineConfiguration partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OfflineConfiguration(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OfflineConfiguration(content); } @@ -87,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,17 +103,17 @@ internal OfflineConfiguration(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Offline")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfigurationInternal)this).Offline = (bool?) content.GetValueForProperty("Offline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfigurationInternal)this).Offline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfigurationInternal)this).Offline = (bool?) content.GetValueForProperty("Offline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfigurationInternal)this).Offline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("LastBackupName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfigurationInternal)this).LastBackupName = (string) content.GetValueForProperty("LastBackupName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfigurationInternal)this).LastBackupName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfigurationInternal)this).LastBackupName = (string) content.GetValueForProperty("LastBackupName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfigurationInternal)this).LastBackupName, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -130,11 +128,11 @@ internal OfflineConfiguration(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("Offline")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfigurationInternal)this).Offline = (bool?) content.GetValueForProperty("Offline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfigurationInternal)this).Offline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfigurationInternal)this).Offline = (bool?) content.GetValueForProperty("Offline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfigurationInternal)this).Offline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("LastBackupName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfigurationInternal)this).LastBackupName = (string) content.GetValueForProperty("LastBackupName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfigurationInternal)this).LastBackupName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfigurationInternal)this).LastBackupName = (string) content.GetValueForProperty("LastBackupName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfigurationInternal)this).LastBackupName, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OfflineConfiguration.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OfflineConfiguration.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OfflineConfiguration.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OfflineConfiguration.TypeConverter.cs index 15ea87f4a212..af01b8923c2a 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OfflineConfiguration.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OfflineConfiguration.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OfflineConfiguration.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OfflineConfiguration.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OfflineConfiguration.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OfflineConfiguration.cs index 8be17eedd58b..885c41233008 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OfflineConfiguration.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OfflineConfiguration.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Offline configuration public partial class OfflineConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfigurationInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfigurationInternal { /// Backing field for property. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OfflineConfiguration.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OfflineConfiguration.json.cs similarity index 96% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OfflineConfiguration.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OfflineConfiguration.json.cs index 61cbb976504d..95c67473d9e2 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OfflineConfiguration.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OfflineConfiguration.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OfflineConfiguration partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOfflineConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOfflineConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new OfflineConfiguration(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationListResult.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationListResult.PowerShell.cs similarity index 73% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationListResult.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationListResult.PowerShell.cs index c82bef087969..f294ae246413 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationListResult.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationListResult.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,29 +55,27 @@ public partial class OperationListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OperationListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationListResult(content); } @@ -87,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,17 +103,17 @@ internal OperationListResult(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinition[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationsDefinitionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinition[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationsDefinitionTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -130,11 +128,11 @@ internal OperationListResult(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinition[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationsDefinitionTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinition[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationsDefinitionTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationListResult.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationListResult.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationListResult.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationListResult.TypeConverter.cs index ae6ce774e7ea..e2d0a2b41ae0 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationListResult.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationListResult.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationListResult.cs similarity index 78% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationListResult.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationListResult.cs index 1b20b5c920ee..b9c754e411f5 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationListResult.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationListResult.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Result of the request to list SQL operations. public partial class OperationListResult : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationListResult, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationListResult, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinition[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationListResultInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinition[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationListResultInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -26,10 +26,10 @@ public partial class OperationListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinition[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinition[] _value; [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinition[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinition[] Value { get => this._value; } /// Creates an new instance. public OperationListResult() @@ -54,8 +54,8 @@ public partial interface IOperationListResult : ReadOnly = true, Description = @"", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinition) })] - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinition[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinition) })] + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinition[] Value { get; } } /// Result of the request to list SQL operations. @@ -64,7 +64,7 @@ internal partial interface IOperationListResultInternal { string NextLink { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinition[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinition[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationListResult.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationListResult.json.cs similarity index 92% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationListResult.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationListResult.json.cs index 5991eb096ac6..afbe89f015af 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationListResult.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationListResult.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OperationListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new OperationListResult(json) : null; } @@ -77,7 +77,7 @@ internal OperationListResult(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Ru { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinition) (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationsDefinition.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinition) (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationsDefinition.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinition.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinition.PowerShell.cs similarity index 56% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinition.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinition.PowerShell.cs index e98b38422c68..8e0fbf3ef639 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinition.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinition.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -54,29 +54,27 @@ public partial class OperationsDefinition partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OperationsDefinition(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationsDefinition(content); } @@ -86,10 +84,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -104,45 +102,45 @@ internal OperationsDefinition(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Display")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinition) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationsDisplayDefinitionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinition) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationsDisplayDefinitionTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("IsDataAction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Origin")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.OperationOrigin?) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).Origin, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.OperationOrigin.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.OperationOrigin?) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).Origin, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.OperationOrigin.CreateFrom); } if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationsDefinitionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationsDefinitionPropertiesTypeConverter.ConvertFrom); } if (content.Contains("DisplayProvider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).DisplayProvider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).DisplayProvider, global::System.Convert.ToString); } if (content.Contains("DisplayResource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).DisplayResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).DisplayResource, global::System.Convert.ToString); } if (content.Contains("DisplayOperation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).DisplayOperation, global::System.Convert.ToString); } if (content.Contains("DisplayDescription")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).DisplayDescription, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).DisplayDescription, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -157,39 +155,39 @@ internal OperationsDefinition(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("Display")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinition) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationsDisplayDefinitionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinition) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationsDisplayDefinitionTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("IsDataAction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Origin")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.OperationOrigin?) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).Origin, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.OperationOrigin.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).Origin = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.OperationOrigin?) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).Origin, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.OperationOrigin.CreateFrom); } if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationsDefinitionPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationsDefinitionPropertiesTypeConverter.ConvertFrom); } if (content.Contains("DisplayProvider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).DisplayProvider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).DisplayProvider, global::System.Convert.ToString); } if (content.Contains("DisplayResource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).DisplayResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).DisplayResource, global::System.Convert.ToString); } if (content.Contains("DisplayOperation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).DisplayOperation, global::System.Convert.ToString); } if (content.Contains("DisplayDescription")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal)this).DisplayDescription, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal)this).DisplayDescription, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinition.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinition.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinition.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinition.TypeConverter.cs index 503eb59230b6..ee0cd38d069a 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinition.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinition.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinition ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinition ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinition).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinition).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinition.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinition.cs similarity index 67% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinition.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinition.cs index 1fe30a3557f6..2a6b9a153f3a 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinition.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinition.cs @@ -3,32 +3,32 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; public partial class OperationsDefinition : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinition, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinition, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinition _display; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinition _display; [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinition Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationsDisplayDefinition()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinition Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationsDisplayDefinition()); } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)Display).Description; } + public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)Display).Description; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)Display).Operation; } + public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)Display).Operation; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)Display).Provider; } + public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)Display).Provider; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)Display).Resource; } + public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)Display).Resource; } /// Backing field for property. private bool? _isDataAction; @@ -38,28 +38,28 @@ public partial class OperationsDefinition : public bool? IsDataAction { get => this._isDataAction; set => this._isDataAction = value; } /// Internal Acessors for Display - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinition Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationsDisplayDefinition()); set { {_display = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinition Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationsDisplayDefinition()); set { {_display = value;} } } /// Internal Acessors for DisplayDescription - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)Display).Description = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal.DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)Display).Description = value; } /// Internal Acessors for DisplayOperation - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)Display).Operation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal.DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)Display).Operation = value; } /// Internal Acessors for DisplayProvider - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)Display).Provider = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal.DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)Display).Provider = value; } /// Internal Acessors for DisplayResource - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)Display).Resource = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal.DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)Display).Resource = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for Origin - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.OperationOrigin? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal.Origin { get => this._origin; set { {_origin = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.OperationOrigin? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal.Origin { get => this._origin; set { {_origin = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionProperties Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationsDefinitionProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionProperties Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationsDefinitionProperties()); set { {_property = value;} } } /// Backing field for property. private string _name; @@ -74,11 +74,11 @@ public partial class OperationsDefinition : public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.OperationOrigin? Origin { get => this._origin; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionProperties _property; /// Dictionary of [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationsDefinitionProperties()); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationsDefinitionProperties()); } /// Creates an new instance. public OperationsDefinition() @@ -150,14 +150,14 @@ public partial interface IOperationsDefinition : ReadOnly = true, Description = @"Dictionary of ", SerializedName = @"properties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionProperties) })] - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionProperties Property { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionProperties Property { get; } } internal partial interface IOperationsDefinitionInternal { - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinition Display { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinition Display { get; set; } string DisplayDescription { get; set; } @@ -173,7 +173,7 @@ internal partial interface IOperationsDefinitionInternal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.OperationOrigin? Origin { get; set; } /// Dictionary of - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionProperties Property { get; set; } } } \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinition.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinition.json.cs similarity index 95% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinition.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinition.json.cs index a8e3ea727a63..d60640bffc11 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinition.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinition.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -53,13 +53,13 @@ public partial class OperationsDefinition partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinition. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinition. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinition. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinition. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new OperationsDefinition(json) : null; } @@ -76,11 +76,11 @@ internal OperationsDefinition(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.R { return; } - {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationsDisplayDefinition.FromJson(__jsonDisplay) : Display;} + {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationsDisplayDefinition.FromJson(__jsonDisplay) : Display;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_isDataAction = If( json?.PropertyT("isDataAction"), out var __jsonIsDataAction) ? (bool?)__jsonIsDataAction : IsDataAction;} {_origin = If( json?.PropertyT("origin"), out var __jsonOrigin) ? (string)__jsonOrigin : (string)Origin;} - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationsDefinitionProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationsDefinitionProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinitionProperties.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinitionProperties.PowerShell.cs similarity index 87% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinitionProperties.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinitionProperties.PowerShell.cs index dd3cdcba8b05..662ee8eb2f20 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinitionProperties.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinitionProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class OperationsDefinitionProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OperationsDefinitionProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationsDefinitionProperties(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -109,7 +109,7 @@ internal OperationsDefinitionProperties(global::System.Collections.IDictionary c } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinitionProperties.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinitionProperties.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinitionProperties.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinitionProperties.TypeConverter.cs index 23b5d5293de6..36b648f91c10 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinitionProperties.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinitionProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinitionProperties.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinitionProperties.cs similarity index 90% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinitionProperties.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinitionProperties.cs index 7aa295ff95fe..eb0ea4eac62e 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinitionProperties.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinitionProperties.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Dictionary of public partial class OperationsDefinitionProperties : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionProperties, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionProperties, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionPropertiesInternal { /// Creates an new instance. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinitionProperties.dictionary.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinitionProperties.dictionary.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinitionProperties.dictionary.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinitionProperties.dictionary.cs index d382bf87fdd7..b9c8db0b0eac 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinitionProperties.dictionary.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinitionProperties.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.OperationsDefinitionProperties source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.OperationsDefinitionProperties source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinitionProperties.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinitionProperties.json.cs similarity index 96% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinitionProperties.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinitionProperties.json.cs index 39493e50a681..31a54bdc3e93 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDefinitionProperties.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDefinitionProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OperationsDefinitionProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinitionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinitionProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new OperationsDefinitionProperties(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDisplayDefinition.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDisplayDefinition.PowerShell.cs similarity index 70% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDisplayDefinition.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDisplayDefinition.PowerShell.cs index 19706a39c4dd..82db98b3a695 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDisplayDefinition.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDisplayDefinition.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -54,29 +54,29 @@ public partial class OperationsDisplayDefinition partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinition DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OperationsDisplayDefinition(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinition DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationsDisplayDefinition(content); } @@ -86,10 +86,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinition FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -104,25 +104,25 @@ internal OperationsDisplayDefinition(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("Provider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)this).Provider, global::System.Convert.ToString); } if (content.Contains("Resource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)this).Resource, global::System.Convert.ToString); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -137,19 +137,19 @@ internal OperationsDisplayDefinition(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("Provider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)this).Provider, global::System.Convert.ToString); } if (content.Contains("Resource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)this).Resource, global::System.Convert.ToString); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDisplayDefinition.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDisplayDefinition.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDisplayDefinition.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDisplayDefinition.TypeConverter.cs index 935bf4a76c05..867bd59e6fdc 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDisplayDefinition.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDisplayDefinition.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinition ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinition ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinition).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinition).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDisplayDefinition.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDisplayDefinition.cs similarity index 86% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDisplayDefinition.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDisplayDefinition.cs index 5e50250ace64..6830277ee7c1 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDisplayDefinition.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDisplayDefinition.cs @@ -3,13 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; public partial class OperationsDisplayDefinition : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinition, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinition, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal { /// Backing field for property. @@ -19,16 +19,16 @@ public partial class OperationsDisplayDefinition : public string Description { get => this._description; } /// Internal Acessors for Description - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal.Description { get => this._description; set { {_description = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal.Description { get => this._description; set { {_description = value;} } } /// Internal Acessors for Operation - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal.Operation { get => this._operation; set { {_operation = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal.Operation { get => this._operation; set { {_operation = value;} } } /// Internal Acessors for Provider - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal.Provider { get => this._provider; set { {_provider = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal.Provider { get => this._provider; set { {_provider = value;} } } /// Internal Acessors for Resource - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinitionInternal.Resource { get => this._resource; set { {_resource = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinitionInternal.Resource { get => this._resource; set { {_resource = value;} } } /// Backing field for property. private string _operation; diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDisplayDefinition.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDisplayDefinition.json.cs similarity index 96% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDisplayDefinition.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDisplayDefinition.json.cs index 80a3ccd710b0..3bcccf48fe97 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/OperationsDisplayDefinition.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/OperationsDisplayDefinition.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -53,13 +53,13 @@ public partial class OperationsDisplayDefinition partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinition. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinition. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinition. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinition. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDisplayDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDisplayDefinition FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new OperationsDisplayDefinition(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/ProxyResource.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/ProxyResource.PowerShell.cs similarity index 54% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/ProxyResource.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/ProxyResource.PowerShell.cs index 2731edf6b460..d13863a63590 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/ProxyResource.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/ProxyResource.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -54,27 +54,27 @@ public partial class ProxyResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ProxyResource(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ProxyResource(content); } @@ -84,10 +84,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -102,49 +102,49 @@ internal ProxyResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SystemDataAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SystemDataAutoGeneratedTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -159,43 +159,43 @@ internal ProxyResource(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SystemDataAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SystemDataAutoGeneratedTypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/ProxyResource.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/ProxyResource.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/ProxyResource.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/ProxyResource.TypeConverter.cs index 8ddeebf7222e..067a5920884c 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/ProxyResource.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/ProxyResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/ProxyResource.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/ProxyResource.cs similarity index 74% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/ProxyResource.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/ProxyResource.cs index c7c9c050d775..b672fc5a0d7c 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/ProxyResource.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/ProxyResource.cs @@ -3,13 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; public partial class ProxyResource : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResource, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResource, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal { /// Backing field for property. @@ -19,16 +19,16 @@ public partial class ProxyResource : public string Id { get => this._id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SystemDataAutoGenerated()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SystemDataAutoGenerated()); set { {_systemData = value;} } } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResourceInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResourceInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _name; @@ -37,31 +37,31 @@ public partial class ProxyResource : public string Name { get => this._name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated _systemData; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated _systemData; /// Metadata pertaining to creation and last modification of the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SystemDataAutoGenerated()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SystemDataAutoGenerated()); } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)SystemData).CreatedBy = value ?? null; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType)""); } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)SystemData).LastModifiedBy = value ?? null; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType)""); } /// Backing field for property. private string _type; @@ -158,7 +158,7 @@ internal partial interface IProxyResourceInternal string Name { get; set; } /// Metadata pertaining to creation and last modification of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated SystemData { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated SystemData { get; set; } global::System.DateTime? SystemDataCreatedAt { get; set; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/ProxyResource.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/ProxyResource.json.cs similarity index 96% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/ProxyResource.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/ProxyResource.json.cs index f628ce0e6b2f..3e73feb45680 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/ProxyResource.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/ProxyResource.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -53,13 +53,13 @@ public partial class ProxyResource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IProxyResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IProxyResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new ProxyResource(json) : null; } @@ -76,7 +76,7 @@ internal ProxyResource(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime. { return; } - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SystemDataAutoGenerated.FromJson(__jsonSystemData) : SystemData;} + {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SystemDataAutoGenerated.FromJson(__jsonSystemData) : SystemData;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/RegenAuthKeys.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/RegenAuthKeys.PowerShell.cs similarity index 75% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/RegenAuthKeys.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/RegenAuthKeys.PowerShell.cs index f366db1fa8a2..439a2450e137 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/RegenAuthKeys.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/RegenAuthKeys.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class RegenAuthKeys partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeys DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeys DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RegenAuthKeys(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeys DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeys DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RegenAuthKeys(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeys FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeys FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,21 +103,21 @@ internal RegenAuthKeys(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("KeyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeysInternal)this).KeyName = (string) content.GetValueForProperty("KeyName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeysInternal)this).KeyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeysInternal)this).KeyName = (string) content.GetValueForProperty("KeyName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeysInternal)this).KeyName, global::System.Convert.ToString); } if (content.Contains("AuthKey1")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeysInternal)this).AuthKey1 = (string) content.GetValueForProperty("AuthKey1",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeysInternal)this).AuthKey1, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeysInternal)this).AuthKey1 = (string) content.GetValueForProperty("AuthKey1",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeysInternal)this).AuthKey1, global::System.Convert.ToString); } if (content.Contains("AuthKey2")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeysInternal)this).AuthKey2 = (string) content.GetValueForProperty("AuthKey2",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeysInternal)this).AuthKey2, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeysInternal)this).AuthKey2 = (string) content.GetValueForProperty("AuthKey2",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeysInternal)this).AuthKey2, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,15 +132,15 @@ internal RegenAuthKeys(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("KeyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeysInternal)this).KeyName = (string) content.GetValueForProperty("KeyName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeysInternal)this).KeyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeysInternal)this).KeyName = (string) content.GetValueForProperty("KeyName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeysInternal)this).KeyName, global::System.Convert.ToString); } if (content.Contains("AuthKey1")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeysInternal)this).AuthKey1 = (string) content.GetValueForProperty("AuthKey1",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeysInternal)this).AuthKey1, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeysInternal)this).AuthKey1 = (string) content.GetValueForProperty("AuthKey1",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeysInternal)this).AuthKey1, global::System.Convert.ToString); } if (content.Contains("AuthKey2")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeysInternal)this).AuthKey2 = (string) content.GetValueForProperty("AuthKey2",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeysInternal)this).AuthKey2, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeysInternal)this).AuthKey2 = (string) content.GetValueForProperty("AuthKey2",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeysInternal)this).AuthKey2, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/RegenAuthKeys.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/RegenAuthKeys.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/RegenAuthKeys.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/RegenAuthKeys.TypeConverter.cs index 10dd977b6001..290f21ae4188 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/RegenAuthKeys.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/RegenAuthKeys.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeys ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeys ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeys).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeys).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/RegenAuthKeys.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/RegenAuthKeys.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/RegenAuthKeys.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/RegenAuthKeys.cs index a595dbfd7021..1e2b55f76569 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/RegenAuthKeys.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/RegenAuthKeys.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// An authentication key to regenerate. public partial class RegenAuthKeys : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeys, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeysInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeys, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeysInternal { /// Backing field for property. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/RegenAuthKeys.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/RegenAuthKeys.json.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/RegenAuthKeys.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/RegenAuthKeys.json.cs index e36d96531556..6f025454ac30 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/RegenAuthKeys.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/RegenAuthKeys.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RegenAuthKeys partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeys. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeys. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeys. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeys. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeys FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeys FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new RegenAuthKeys(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SourceLocation.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SourceLocation.PowerShell.cs new file mode 100644 index 000000000000..4c225e09cc8b --- /dev/null +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SourceLocation.PowerShell.cs @@ -0,0 +1,256 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; + + /// Source Location details of backups. + [System.ComponentModel.TypeConverter(typeof(SourceLocationTypeConverter))] + public partial class SourceLocation + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SourceLocation(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SourceLocation(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal SourceLocation(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FileShare")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).FileShare = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare) content.GetValueForProperty("FileShare",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).FileShare, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlFileShareTypeConverter.ConvertFrom); + } + if (content.Contains("AzureBlob")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).AzureBlob = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob) content.GetValueForProperty("AzureBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).AzureBlob, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.AzureBlobTypeConverter.ConvertFrom); + } + if (content.Contains("FileStorageType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).FileStorageType = (string) content.GetValueForProperty("FileStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).FileStorageType, global::System.Convert.ToString); + } + if (content.Contains("AzureBlobAuthType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).AzureBlobAuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AzureBlobAuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).AzureBlobAuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); + } + if (content.Contains("AzureBlobAccountKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).AzureBlobAccountKey = (string) content.GetValueForProperty("AzureBlobAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).AzureBlobAccountKey, global::System.Convert.ToString); + } + if (content.Contains("FileSharePath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).FileSharePath = (string) content.GetValueForProperty("FileSharePath",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).FileSharePath, global::System.Convert.ToString); + } + if (content.Contains("FileShareUsername")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).FileShareUsername = (string) content.GetValueForProperty("FileShareUsername",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).FileShareUsername, global::System.Convert.ToString); + } + if (content.Contains("FileSharePassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).FileSharePassword = (System.Security.SecureString) content.GetValueForProperty("FileSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).FileSharePassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("AzureBlobIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).AzureBlobIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("AzureBlobIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).AzureBlobIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("AzureBlobStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).AzureBlobStorageAccountResourceId = (string) content.GetValueForProperty("AzureBlobStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).AzureBlobStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("AzureBlobContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).AzureBlobContainerName = (string) content.GetValueForProperty("AzureBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).AzureBlobContainerName, global::System.Convert.ToString); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal SourceLocation(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("FileShare")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).FileShare = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare) content.GetValueForProperty("FileShare",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).FileShare, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlFileShareTypeConverter.ConvertFrom); + } + if (content.Contains("AzureBlob")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).AzureBlob = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob) content.GetValueForProperty("AzureBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).AzureBlob, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.AzureBlobTypeConverter.ConvertFrom); + } + if (content.Contains("FileStorageType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).FileStorageType = (string) content.GetValueForProperty("FileStorageType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).FileStorageType, global::System.Convert.ToString); + } + if (content.Contains("AzureBlobAuthType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).AzureBlobAuthType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType?) content.GetValueForProperty("AzureBlobAuthType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).AzureBlobAuthType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType.CreateFrom); + } + if (content.Contains("AzureBlobAccountKey")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).AzureBlobAccountKey = (string) content.GetValueForProperty("AzureBlobAccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).AzureBlobAccountKey, global::System.Convert.ToString); + } + if (content.Contains("FileSharePath")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).FileSharePath = (string) content.GetValueForProperty("FileSharePath",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).FileSharePath, global::System.Convert.ToString); + } + if (content.Contains("FileShareUsername")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).FileShareUsername = (string) content.GetValueForProperty("FileShareUsername",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).FileShareUsername, global::System.Convert.ToString); + } + if (content.Contains("FileSharePassword")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).FileSharePassword = (System.Security.SecureString) content.GetValueForProperty("FileSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).FileSharePassword, (object ss) => (System.Security.SecureString)ss); + } + if (content.Contains("AzureBlobIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).AzureBlobIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity) content.GetValueForProperty("AzureBlobIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).AzureBlobIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityTypeConverter.ConvertFrom); + } + if (content.Contains("AzureBlobStorageAccountResourceId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).AzureBlobStorageAccountResourceId = (string) content.GetValueForProperty("AzureBlobStorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).AzureBlobStorageAccountResourceId, global::System.Convert.ToString); + } + if (content.Contains("AzureBlobContainerName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).AzureBlobContainerName = (string) content.GetValueForProperty("AzureBlobContainerName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).AzureBlobContainerName, global::System.Convert.ToString); + } + if (content.Contains("IdentityPrincipalId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + } + if (content.Contains("IdentityTenantId")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).IdentityTenantId, global::System.Convert.ToString); + } + if (content.Contains("IdentityType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).IdentityType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).IdentityType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType.CreateFrom); + } + if (content.Contains("IdentityUserAssignedIdentity")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.ManagedServiceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Source Location details of backups. + [System.ComponentModel.TypeConverter(typeof(SourceLocationTypeConverter))] + public partial interface ISourceLocation + + { + + } +} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SourceLocation.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SourceLocation.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SourceLocation.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SourceLocation.TypeConverter.cs index ee4d82dddd38..35184cbb99b0 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SourceLocation.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SourceLocation.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SourceLocation.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SourceLocation.cs similarity index 76% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SourceLocation.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SourceLocation.cs index 03a9d6efe5c5..1f3604c206a7 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SourceLocation.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SourceLocation.cs @@ -3,57 +3,57 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Source Location details of backups. public partial class SourceLocation : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob _azureBlob; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob _azureBlob; /// Source Azure Blob. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob AzureBlob { get => (this._azureBlob = this._azureBlob ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.AzureBlob()); set => this._azureBlob = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob AzureBlob { get => (this._azureBlob = this._azureBlob ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.AzureBlob()); set => this._azureBlob = value; } /// Storage Account Key. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string AzureBlobAccountKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)AzureBlob).AccountKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)AzureBlob).AccountKey = value ?? null; } + public string AzureBlobAccountKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)AzureBlob).AccountKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)AzureBlob).AccountKey = value ?? null; } /// Authentication type used for accessing Azure Blob Storage. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType? AzureBlobAuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)AzureBlob).AuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)AzureBlob).AuthType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType? AzureBlobAuthType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)AzureBlob).AuthType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)AzureBlob).AuthType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.AuthType)""); } /// Blob container name where backups are stored. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string AzureBlobContainerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)AzureBlob).BlobContainerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)AzureBlob).BlobContainerName = value ?? null; } + public string AzureBlobContainerName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)AzureBlob).BlobContainerName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)AzureBlob).BlobContainerName = value ?? null; } /// Resource Id of the storage account where backups are stored. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string AzureBlobStorageAccountResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)AzureBlob).StorageAccountResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)AzureBlob).StorageAccountResourceId = value ?? null; } + public string AzureBlobStorageAccountResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)AzureBlob).StorageAccountResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)AzureBlob).StorageAccountResourceId = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare _fileShare; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare _fileShare; /// Source File share. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare FileShare { get => (this._fileShare = this._fileShare ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlFileShare()); set => this._fileShare = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare FileShare { get => (this._fileShare = this._fileShare ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlFileShare()); set => this._fileShare = value; } /// Password for username to access file share location. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public System.Security.SecureString FileSharePassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShareInternal)FileShare).Password; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShareInternal)FileShare).Password = value ?? null; } + public System.Security.SecureString FileSharePassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShareInternal)FileShare).Password; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShareInternal)FileShare).Password = value ?? null; } /// Location as SMB share or local drive where backups are placed. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string FileSharePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShareInternal)FileShare).Path; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShareInternal)FileShare).Path = value ?? null; } + public string FileSharePath { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShareInternal)FileShare).Path; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShareInternal)FileShare).Path = value ?? null; } /// Username to access the file share location for backups. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string FileShareUsername { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShareInternal)FileShare).Username; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShareInternal)FileShare).Username = value ?? null; } + public string FileShareUsername { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShareInternal)FileShare).Username; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShareInternal)FileShare).Username = value ?? null; } /// Backing field for property. private string _fileStorageType; @@ -66,19 +66,19 @@ public partial class SourceLocation : /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)AzureBlob).IdentityPrincipalId; } + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)AzureBlob).IdentityPrincipalId; } /// /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)AzureBlob).IdentityTenantId; } + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)AzureBlob).IdentityTenantId; } /// /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)AzureBlob).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)AzureBlob).IdentityType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType? IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)AzureBlob).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)AzureBlob).IdentityType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ManagedServiceIdentityType)""); } /// /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM @@ -86,25 +86,25 @@ public partial class SourceLocation : /// The dictionary values can be empty objects ({}) in requests. /// [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)AzureBlob).IdentityUserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)AzureBlob).IdentityUserAssignedIdentity = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)AzureBlob).IdentityUserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)AzureBlob).IdentityUserAssignedIdentity = value ?? null /* model class */; } /// Internal Acessors for AzureBlob - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal.AzureBlob { get => (this._azureBlob = this._azureBlob ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.AzureBlob()); set { {_azureBlob = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal.AzureBlob { get => (this._azureBlob = this._azureBlob ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.AzureBlob()); set { {_azureBlob = value;} } } /// Internal Acessors for AzureBlobIdentity - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal.AzureBlobIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)AzureBlob).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)AzureBlob).Identity = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api60.IManagedServiceIdentity Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal.AzureBlobIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)AzureBlob).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)AzureBlob).Identity = value; } /// Internal Acessors for FileShare - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal.FileShare { get => (this._fileShare = this._fileShare ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlFileShare()); set { {_fileShare = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal.FileShare { get => (this._fileShare = this._fileShare ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlFileShare()); set { {_fileShare = value;} } } /// Internal Acessors for FileStorageType - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal.FileStorageType { get => this._fileStorageType; set { {_fileStorageType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal.FileStorageType { get => this._fileStorageType; set { {_fileStorageType = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)AzureBlob).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)AzureBlob).IdentityPrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)AzureBlob).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)AzureBlob).IdentityPrincipalId = value; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocationInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)AzureBlob).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlobInternal)AzureBlob).IdentityTenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocationInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)AzureBlob).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlobInternal)AzureBlob).IdentityTenantId = value; } /// Creates an new instance. public SourceLocation() @@ -229,7 +229,7 @@ internal partial interface ISourceLocationInternal { /// Source Azure Blob. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAzureBlob AzureBlob { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAzureBlob AzureBlob { get; set; } /// Storage Account Key. string AzureBlobAccountKey { get; set; } /// Authentication type used for accessing Azure Blob Storage. @@ -241,7 +241,7 @@ internal partial interface ISourceLocationInternal /// Resource Id of the storage account where backups are stored. string AzureBlobStorageAccountResourceId { get; set; } /// Source File share. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare FileShare { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare FileShare { get; set; } /// Password for username to access file share location. System.Security.SecureString FileSharePassword { get; set; } /// Location as SMB share or local drive where backups are placed. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SourceLocation.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SourceLocation.json.cs similarity index 94% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SourceLocation.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SourceLocation.json.cs index 3782451c94e2..3bd5b45ddf3b 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SourceLocation.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SourceLocation.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SourceLocation partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISourceLocation FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISourceLocation FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new SourceLocation(json) : null; } @@ -77,8 +77,8 @@ internal SourceLocation(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime { return; } - {_fileShare = If( json?.PropertyT("fileShare"), out var __jsonFileShare) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlFileShare.FromJson(__jsonFileShare) : FileShare;} - {_azureBlob = If( json?.PropertyT("azureBlob"), out var __jsonAzureBlob) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.AzureBlob.FromJson(__jsonAzureBlob) : AzureBlob;} + {_fileShare = If( json?.PropertyT("fileShare"), out var __jsonFileShare) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlFileShare.FromJson(__jsonFileShare) : FileShare;} + {_azureBlob = If( json?.PropertyT("azureBlob"), out var __jsonAzureBlob) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.AzureBlob.FromJson(__jsonAzureBlob) : AzureBlob;} {_fileStorageType = If( json?.PropertyT("fileStorageType"), out var __jsonFileStorageType) ? (string)__jsonFileStorageType : (string)FileStorageType;} AfterFromJson(json); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlBackupFileInfo.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlBackupFileInfo.PowerShell.cs similarity index 61% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlBackupFileInfo.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlBackupFileInfo.PowerShell.cs index 38ae6dd9c046..8e8b3f3e396d 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlBackupFileInfo.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlBackupFileInfo.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,29 +55,27 @@ public partial class SqlBackupFileInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SqlBackupFileInfo(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SqlBackupFileInfo(content); } @@ -87,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,41 +103,41 @@ internal SqlBackupFileInfo(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("FileName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).FileName = (string) content.GetValueForProperty("FileName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).FileName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).FileName = (string) content.GetValueForProperty("FileName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).FileName, global::System.Convert.ToString); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).Status, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).Status, global::System.Convert.ToString); } if (content.Contains("TotalSize")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).TotalSize = (long?) content.GetValueForProperty("TotalSize",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).TotalSize, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).TotalSize = (long?) content.GetValueForProperty("TotalSize",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).TotalSize, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("DataRead")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).DataRead = (long?) content.GetValueForProperty("DataRead",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).DataRead, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).DataRead = (long?) content.GetValueForProperty("DataRead",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).DataRead, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("DataWritten")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).DataWritten = (long?) content.GetValueForProperty("DataWritten",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).DataWritten, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).DataWritten = (long?) content.GetValueForProperty("DataWritten",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).DataWritten, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("CopyThroughput")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).CopyThroughput = (double?) content.GetValueForProperty("CopyThroughput",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).CopyThroughput, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).CopyThroughput = (double?) content.GetValueForProperty("CopyThroughput",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).CopyThroughput, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("CopyDuration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).CopyDuration = (int?) content.GetValueForProperty("CopyDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).CopyDuration, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).CopyDuration = (int?) content.GetValueForProperty("CopyDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).CopyDuration, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("FamilySequenceNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).FamilySequenceNumber = (int?) content.GetValueForProperty("FamilySequenceNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).FamilySequenceNumber, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).FamilySequenceNumber = (int?) content.GetValueForProperty("FamilySequenceNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).FamilySequenceNumber, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -154,35 +152,35 @@ internal SqlBackupFileInfo(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("FileName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).FileName = (string) content.GetValueForProperty("FileName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).FileName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).FileName = (string) content.GetValueForProperty("FileName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).FileName, global::System.Convert.ToString); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).Status, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).Status = (string) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).Status, global::System.Convert.ToString); } if (content.Contains("TotalSize")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).TotalSize = (long?) content.GetValueForProperty("TotalSize",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).TotalSize, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).TotalSize = (long?) content.GetValueForProperty("TotalSize",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).TotalSize, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("DataRead")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).DataRead = (long?) content.GetValueForProperty("DataRead",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).DataRead, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).DataRead = (long?) content.GetValueForProperty("DataRead",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).DataRead, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("DataWritten")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).DataWritten = (long?) content.GetValueForProperty("DataWritten",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).DataWritten, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).DataWritten = (long?) content.GetValueForProperty("DataWritten",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).DataWritten, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("CopyThroughput")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).CopyThroughput = (double?) content.GetValueForProperty("CopyThroughput",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).CopyThroughput, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).CopyThroughput = (double?) content.GetValueForProperty("CopyThroughput",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).CopyThroughput, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } if (content.Contains("CopyDuration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).CopyDuration = (int?) content.GetValueForProperty("CopyDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).CopyDuration, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).CopyDuration = (int?) content.GetValueForProperty("CopyDuration",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).CopyDuration, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("FamilySequenceNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).FamilySequenceNumber = (int?) content.GetValueForProperty("FamilySequenceNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal)this).FamilySequenceNumber, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).FamilySequenceNumber = (int?) content.GetValueForProperty("FamilySequenceNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal)this).FamilySequenceNumber, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlBackupFileInfo.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlBackupFileInfo.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlBackupFileInfo.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlBackupFileInfo.TypeConverter.cs index f4a010e4ddfe..c060dfbc5fbe 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlBackupFileInfo.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlBackupFileInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlBackupFileInfo.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlBackupFileInfo.cs similarity index 88% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlBackupFileInfo.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlBackupFileInfo.cs index b282442ceac5..b06caa0db705 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlBackupFileInfo.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlBackupFileInfo.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Information of backup file public partial class SqlBackupFileInfo : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal { /// Backing field for property. @@ -56,28 +56,28 @@ public partial class SqlBackupFileInfo : public string FileName { get => this._fileName; } /// Internal Acessors for CopyDuration - int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal.CopyDuration { get => this._copyDuration; set { {_copyDuration = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal.CopyDuration { get => this._copyDuration; set { {_copyDuration = value;} } } /// Internal Acessors for CopyThroughput - double? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal.CopyThroughput { get => this._copyThroughput; set { {_copyThroughput = value;} } } + double? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal.CopyThroughput { get => this._copyThroughput; set { {_copyThroughput = value;} } } /// Internal Acessors for DataRead - long? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal.DataRead { get => this._dataRead; set { {_dataRead = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal.DataRead { get => this._dataRead; set { {_dataRead = value;} } } /// Internal Acessors for DataWritten - long? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal.DataWritten { get => this._dataWritten; set { {_dataWritten = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal.DataWritten { get => this._dataWritten; set { {_dataWritten = value;} } } /// Internal Acessors for FamilySequenceNumber - int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal.FamilySequenceNumber { get => this._familySequenceNumber; set { {_familySequenceNumber = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal.FamilySequenceNumber { get => this._familySequenceNumber; set { {_familySequenceNumber = value;} } } /// Internal Acessors for FileName - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal.FileName { get => this._fileName; set { {_fileName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal.FileName { get => this._fileName; set { {_fileName = value;} } } /// Internal Acessors for Status - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal.Status { get => this._status; set { {_status = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal.Status { get => this._status; set { {_status = value;} } } /// Internal Acessors for TotalSize - long? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfoInternal.TotalSize { get => this._totalSize; set { {_totalSize = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfoInternal.TotalSize { get => this._totalSize; set { {_totalSize = value;} } } /// Backing field for property. private string _status; diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlBackupFileInfo.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlBackupFileInfo.json.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlBackupFileInfo.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlBackupFileInfo.json.cs index 59992293dbad..03856ee16a2e 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlBackupFileInfo.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlBackupFileInfo.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SqlBackupFileInfo partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new SqlBackupFileInfo(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlBackupSetInfo.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlBackupSetInfo.PowerShell.cs similarity index 53% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlBackupSetInfo.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlBackupSetInfo.PowerShell.cs index 82341f717560..58451334495d 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlBackupSetInfo.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlBackupSetInfo.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,29 +55,27 @@ public partial class SqlBackupSetInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SqlBackupSetInfo(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SqlBackupSetInfo(content); } @@ -87,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,53 +103,53 @@ internal SqlBackupSetInfo(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("BackupSetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).BackupSetId = (string) content.GetValueForProperty("BackupSetId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).BackupSetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).BackupSetId = (string) content.GetValueForProperty("BackupSetId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).BackupSetId, global::System.Convert.ToString); } if (content.Contains("FirstLsn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).FirstLsn = (string) content.GetValueForProperty("FirstLsn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).FirstLsn, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).FirstLsn = (string) content.GetValueForProperty("FirstLsn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).FirstLsn, global::System.Convert.ToString); } if (content.Contains("LastLsn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).LastLsn = (string) content.GetValueForProperty("LastLsn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).LastLsn, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).LastLsn = (string) content.GetValueForProperty("LastLsn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).LastLsn, global::System.Convert.ToString); } if (content.Contains("BackupType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).BackupType = (string) content.GetValueForProperty("BackupType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).BackupType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).BackupType = (string) content.GetValueForProperty("BackupType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).BackupType, global::System.Convert.ToString); } if (content.Contains("ListOfBackupFile")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).ListOfBackupFile = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo[]) content.GetValueForProperty("ListOfBackupFile",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).ListOfBackupFile, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupFileInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).ListOfBackupFile = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo[]) content.GetValueForProperty("ListOfBackupFile",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).ListOfBackupFile, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupFileInfoTypeConverter.ConvertFrom)); } if (content.Contains("BackupStartDate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).BackupStartDate = (global::System.DateTime?) content.GetValueForProperty("BackupStartDate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).BackupStartDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).BackupStartDate = (global::System.DateTime?) content.GetValueForProperty("BackupStartDate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).BackupStartDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("BackupFinishDate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).BackupFinishDate = (global::System.DateTime?) content.GetValueForProperty("BackupFinishDate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).BackupFinishDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).BackupFinishDate = (global::System.DateTime?) content.GetValueForProperty("BackupFinishDate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).BackupFinishDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("IsBackupRestored")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).IsBackupRestored = (bool?) content.GetValueForProperty("IsBackupRestored",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).IsBackupRestored, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).IsBackupRestored = (bool?) content.GetValueForProperty("IsBackupRestored",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).IsBackupRestored, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("HasBackupChecksum")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).HasBackupChecksum = (bool?) content.GetValueForProperty("HasBackupChecksum",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).HasBackupChecksum, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).HasBackupChecksum = (bool?) content.GetValueForProperty("HasBackupChecksum",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).HasBackupChecksum, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("FamilyCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).FamilyCount = (int?) content.GetValueForProperty("FamilyCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).FamilyCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).FamilyCount = (int?) content.GetValueForProperty("FamilyCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).FamilyCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("IgnoreReason")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).IgnoreReason = (string[]) content.GetValueForProperty("IgnoreReason",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).IgnoreReason, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).IgnoreReason = (string[]) content.GetValueForProperty("IgnoreReason",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).IgnoreReason, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -166,47 +164,47 @@ internal SqlBackupSetInfo(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("BackupSetId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).BackupSetId = (string) content.GetValueForProperty("BackupSetId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).BackupSetId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).BackupSetId = (string) content.GetValueForProperty("BackupSetId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).BackupSetId, global::System.Convert.ToString); } if (content.Contains("FirstLsn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).FirstLsn = (string) content.GetValueForProperty("FirstLsn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).FirstLsn, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).FirstLsn = (string) content.GetValueForProperty("FirstLsn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).FirstLsn, global::System.Convert.ToString); } if (content.Contains("LastLsn")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).LastLsn = (string) content.GetValueForProperty("LastLsn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).LastLsn, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).LastLsn = (string) content.GetValueForProperty("LastLsn",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).LastLsn, global::System.Convert.ToString); } if (content.Contains("BackupType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).BackupType = (string) content.GetValueForProperty("BackupType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).BackupType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).BackupType = (string) content.GetValueForProperty("BackupType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).BackupType, global::System.Convert.ToString); } if (content.Contains("ListOfBackupFile")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).ListOfBackupFile = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo[]) content.GetValueForProperty("ListOfBackupFile",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).ListOfBackupFile, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupFileInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).ListOfBackupFile = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo[]) content.GetValueForProperty("ListOfBackupFile",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).ListOfBackupFile, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupFileInfoTypeConverter.ConvertFrom)); } if (content.Contains("BackupStartDate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).BackupStartDate = (global::System.DateTime?) content.GetValueForProperty("BackupStartDate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).BackupStartDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).BackupStartDate = (global::System.DateTime?) content.GetValueForProperty("BackupStartDate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).BackupStartDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("BackupFinishDate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).BackupFinishDate = (global::System.DateTime?) content.GetValueForProperty("BackupFinishDate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).BackupFinishDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).BackupFinishDate = (global::System.DateTime?) content.GetValueForProperty("BackupFinishDate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).BackupFinishDate, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("IsBackupRestored")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).IsBackupRestored = (bool?) content.GetValueForProperty("IsBackupRestored",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).IsBackupRestored, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).IsBackupRestored = (bool?) content.GetValueForProperty("IsBackupRestored",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).IsBackupRestored, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("HasBackupChecksum")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).HasBackupChecksum = (bool?) content.GetValueForProperty("HasBackupChecksum",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).HasBackupChecksum, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).HasBackupChecksum = (bool?) content.GetValueForProperty("HasBackupChecksum",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).HasBackupChecksum, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("FamilyCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).FamilyCount = (int?) content.GetValueForProperty("FamilyCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).FamilyCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).FamilyCount = (int?) content.GetValueForProperty("FamilyCount",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).FamilyCount, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("IgnoreReason")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).IgnoreReason = (string[]) content.GetValueForProperty("IgnoreReason",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal)this).IgnoreReason, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).IgnoreReason = (string[]) content.GetValueForProperty("IgnoreReason",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal)this).IgnoreReason, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlBackupSetInfo.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlBackupSetInfo.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlBackupSetInfo.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlBackupSetInfo.TypeConverter.cs index 6b48d66a7f48..90b323dcb942 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlBackupSetInfo.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlBackupSetInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlBackupSetInfo.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlBackupSetInfo.cs similarity index 85% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlBackupSetInfo.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlBackupSetInfo.cs index b3d642cdc48c..4eeab690ff9d 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlBackupSetInfo.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlBackupSetInfo.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Information of backup set public partial class SqlBackupSetInfo : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal { /// Backing field for property. @@ -84,44 +84,44 @@ public partial class SqlBackupSetInfo : public string LastLsn { get => this._lastLsn; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo[] _listOfBackupFile; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo[] _listOfBackupFile; /// List of files in the backup set. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo[] ListOfBackupFile { get => this._listOfBackupFile; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo[] ListOfBackupFile { get => this._listOfBackupFile; } /// Internal Acessors for BackupFinishDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal.BackupFinishDate { get => this._backupFinishDate; set { {_backupFinishDate = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal.BackupFinishDate { get => this._backupFinishDate; set { {_backupFinishDate = value;} } } /// Internal Acessors for BackupSetId - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal.BackupSetId { get => this._backupSetId; set { {_backupSetId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal.BackupSetId { get => this._backupSetId; set { {_backupSetId = value;} } } /// Internal Acessors for BackupStartDate - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal.BackupStartDate { get => this._backupStartDate; set { {_backupStartDate = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal.BackupStartDate { get => this._backupStartDate; set { {_backupStartDate = value;} } } /// Internal Acessors for BackupType - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal.BackupType { get => this._backupType; set { {_backupType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal.BackupType { get => this._backupType; set { {_backupType = value;} } } /// Internal Acessors for FamilyCount - int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal.FamilyCount { get => this._familyCount; set { {_familyCount = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal.FamilyCount { get => this._familyCount; set { {_familyCount = value;} } } /// Internal Acessors for FirstLsn - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal.FirstLsn { get => this._firstLsn; set { {_firstLsn = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal.FirstLsn { get => this._firstLsn; set { {_firstLsn = value;} } } /// Internal Acessors for HasBackupChecksum - bool? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal.HasBackupChecksum { get => this._hasBackupChecksum; set { {_hasBackupChecksum = value;} } } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal.HasBackupChecksum { get => this._hasBackupChecksum; set { {_hasBackupChecksum = value;} } } /// Internal Acessors for IgnoreReason - string[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal.IgnoreReason { get => this._ignoreReason; set { {_ignoreReason = value;} } } + string[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal.IgnoreReason { get => this._ignoreReason; set { {_ignoreReason = value;} } } /// Internal Acessors for IsBackupRestored - bool? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal.IsBackupRestored { get => this._isBackupRestored; set { {_isBackupRestored = value;} } } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal.IsBackupRestored { get => this._isBackupRestored; set { {_isBackupRestored = value;} } } /// Internal Acessors for LastLsn - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal.LastLsn { get => this._lastLsn; set { {_lastLsn = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal.LastLsn { get => this._lastLsn; set { {_lastLsn = value;} } } /// Internal Acessors for ListOfBackupFile - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfoInternal.ListOfBackupFile { get => this._listOfBackupFile; set { {_listOfBackupFile = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfoInternal.ListOfBackupFile { get => this._listOfBackupFile; set { {_listOfBackupFile = value;} } } /// Creates an new instance. public SqlBackupSetInfo() @@ -219,8 +219,8 @@ public partial interface ISqlBackupSetInfo : ReadOnly = true, Description = @"List of files in the backup set.", SerializedName = @"listOfBackupFiles", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo[] ListOfBackupFile { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo[] ListOfBackupFile { get; } } /// Information of backup set @@ -248,7 +248,7 @@ internal partial interface ISqlBackupSetInfoInternal /// Last LSN of the backup set. string LastLsn { get; set; } /// List of files in the backup set. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo[] ListOfBackupFile { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo[] ListOfBackupFile { get; set; } } } \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlBackupSetInfo.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlBackupSetInfo.json.cs similarity index 96% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlBackupSetInfo.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlBackupSetInfo.json.cs index bda3f3b020ad..d4cdbfb5ed08 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlBackupSetInfo.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlBackupSetInfo.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SqlBackupSetInfo partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupSetInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupSetInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new SqlBackupSetInfo(json) : null; } @@ -81,7 +81,7 @@ internal SqlBackupSetInfo(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runti {_firstLsn = If( json?.PropertyT("firstLSN"), out var __jsonFirstLsn) ? (string)__jsonFirstLsn : (string)FirstLsn;} {_lastLsn = If( json?.PropertyT("lastLSN"), out var __jsonLastLsn) ? (string)__jsonLastLsn : (string)LastLsn;} {_backupType = If( json?.PropertyT("backupType"), out var __jsonBackupType) ? (string)__jsonBackupType : (string)BackupType;} - {_listOfBackupFile = If( json?.PropertyT("listOfBackupFiles"), out var __jsonListOfBackupFiles) ? If( __jsonListOfBackupFiles as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlBackupFileInfo) (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlBackupFileInfo.FromJson(__u) )) ))() : null : ListOfBackupFile;} + {_listOfBackupFile = If( json?.PropertyT("listOfBackupFiles"), out var __jsonListOfBackupFiles) ? If( __jsonListOfBackupFiles as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlBackupFileInfo) (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlBackupFileInfo.FromJson(__u) )) ))() : null : ListOfBackupFile;} {_backupStartDate = If( json?.PropertyT("backupStartDate"), out var __jsonBackupStartDate) ? global::System.DateTime.TryParse((string)__jsonBackupStartDate, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonBackupStartDateValue) ? __jsonBackupStartDateValue : BackupStartDate : BackupStartDate;} {_backupFinishDate = If( json?.PropertyT("backupFinishDate"), out var __jsonBackupFinishDate) ? global::System.DateTime.TryParse((string)__jsonBackupFinishDate, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonBackupFinishDateValue) ? __jsonBackupFinishDateValue : BackupFinishDate : BackupFinishDate;} {_isBackupRestored = If( json?.PropertyT("isBackupRestored"), out var __jsonIsBackupRestored) ? (bool?)__jsonIsBackupRestored : IsBackupRestored;} diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlConnectionInformation.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlConnectionInformation.PowerShell.cs similarity index 64% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlConnectionInformation.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlConnectionInformation.PowerShell.cs index 292b7494ce68..6f4517c20066 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlConnectionInformation.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlConnectionInformation.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class SqlConnectionInformation partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SqlConnectionInformation(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SqlConnectionInformation(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,33 +105,33 @@ internal SqlConnectionInformation(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("DataSource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)this).DataSource = (string) content.GetValueForProperty("DataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)this).DataSource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)this).DataSource = (string) content.GetValueForProperty("DataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)this).DataSource, global::System.Convert.ToString); } if (content.Contains("Authentication")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)this).Authentication = (string) content.GetValueForProperty("Authentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)this).Authentication, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)this).Authentication = (string) content.GetValueForProperty("Authentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)this).Authentication, global::System.Convert.ToString); } if (content.Contains("UserName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)this).UserName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)this).UserName, global::System.Convert.ToString); } if (content.Contains("Password")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)this).Password = (System.Security.SecureString) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)this).Password, (object ss) => (System.Security.SecureString)ss); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)this).Password = (System.Security.SecureString) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)this).Password, (object ss) => (System.Security.SecureString)ss); } if (content.Contains("EncryptConnection")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)this).EncryptConnection = (bool?) content.GetValueForProperty("EncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)this).EncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)this).EncryptConnection = (bool?) content.GetValueForProperty("EncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)this).EncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("TrustServerCertificate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)this).TrustServerCertificate = (bool?) content.GetValueForProperty("TrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)this).TrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)this).TrustServerCertificate = (bool?) content.GetValueForProperty("TrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)this).TrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -146,27 +146,27 @@ internal SqlConnectionInformation(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("DataSource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)this).DataSource = (string) content.GetValueForProperty("DataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)this).DataSource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)this).DataSource = (string) content.GetValueForProperty("DataSource",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)this).DataSource, global::System.Convert.ToString); } if (content.Contains("Authentication")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)this).Authentication = (string) content.GetValueForProperty("Authentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)this).Authentication, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)this).Authentication = (string) content.GetValueForProperty("Authentication",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)this).Authentication, global::System.Convert.ToString); } if (content.Contains("UserName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)this).UserName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)this).UserName, global::System.Convert.ToString); } if (content.Contains("Password")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)this).Password = (System.Security.SecureString) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)this).Password, (object ss) => (System.Security.SecureString)ss); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)this).Password = (System.Security.SecureString) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)this).Password, (object ss) => (System.Security.SecureString)ss); } if (content.Contains("EncryptConnection")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)this).EncryptConnection = (bool?) content.GetValueForProperty("EncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)this).EncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)this).EncryptConnection = (bool?) content.GetValueForProperty("EncryptConnection",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)this).EncryptConnection, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("TrustServerCertificate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)this).TrustServerCertificate = (bool?) content.GetValueForProperty("TrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal)this).TrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)this).TrustServerCertificate = (bool?) content.GetValueForProperty("TrustServerCertificate",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal)this).TrustServerCertificate, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlConnectionInformation.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlConnectionInformation.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlConnectionInformation.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlConnectionInformation.TypeConverter.cs index 48454a8d6eb7..49da71702e1d 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlConnectionInformation.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlConnectionInformation.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlConnectionInformation.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlConnectionInformation.cs similarity index 98% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlConnectionInformation.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlConnectionInformation.cs index 6d4ef004fae6..4d236396ad3b 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlConnectionInformation.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlConnectionInformation.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Source SQL Connection public partial class SqlConnectionInformation : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformationInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformationInternal { /// Backing field for property. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlConnectionInformation.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlConnectionInformation.json.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlConnectionInformation.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlConnectionInformation.json.cs index 4403d374d2a3..a402d6cd0e3d 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlConnectionInformation.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlConnectionInformation.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SqlConnectionInformation partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlConnectionInformation FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlConnectionInformation FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new SqlConnectionInformation(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlDbMigrationStatusDetails.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlDbMigrationStatusDetails.PowerShell.cs similarity index 68% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlDbMigrationStatusDetails.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlDbMigrationStatusDetails.PowerShell.cs index 8aaa24294f4f..022271b1bd47 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlDbMigrationStatusDetails.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlDbMigrationStatusDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class SqlDbMigrationStatusDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SqlDbMigrationStatusDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SqlDbMigrationStatusDetails(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,21 +105,21 @@ internal SqlDbMigrationStatusDetails(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("MigrationState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetailsInternal)this).MigrationState = (string) content.GetValueForProperty("MigrationState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetailsInternal)this).MigrationState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetailsInternal)this).MigrationState = (string) content.GetValueForProperty("MigrationState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetailsInternal)this).MigrationState, global::System.Convert.ToString); } if (content.Contains("SqlDataCopyError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetailsInternal)this).SqlDataCopyError = (string[]) content.GetValueForProperty("SqlDataCopyError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetailsInternal)this).SqlDataCopyError, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetailsInternal)this).SqlDataCopyError = (string[]) content.GetValueForProperty("SqlDataCopyError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetailsInternal)this).SqlDataCopyError, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("ListOfCopyProgressDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetailsInternal)this).ListOfCopyProgressDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails[]) content.GetValueForProperty("ListOfCopyProgressDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetailsInternal)this).ListOfCopyProgressDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.CopyProgressDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetailsInternal)this).ListOfCopyProgressDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails[]) content.GetValueForProperty("ListOfCopyProgressDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetailsInternal)this).ListOfCopyProgressDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.CopyProgressDetailsTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -134,15 +134,15 @@ internal SqlDbMigrationStatusDetails(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("MigrationState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetailsInternal)this).MigrationState = (string) content.GetValueForProperty("MigrationState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetailsInternal)this).MigrationState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetailsInternal)this).MigrationState = (string) content.GetValueForProperty("MigrationState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetailsInternal)this).MigrationState, global::System.Convert.ToString); } if (content.Contains("SqlDataCopyError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetailsInternal)this).SqlDataCopyError = (string[]) content.GetValueForProperty("SqlDataCopyError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetailsInternal)this).SqlDataCopyError, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetailsInternal)this).SqlDataCopyError = (string[]) content.GetValueForProperty("SqlDataCopyError",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetailsInternal)this).SqlDataCopyError, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("ListOfCopyProgressDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetailsInternal)this).ListOfCopyProgressDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails[]) content.GetValueForProperty("ListOfCopyProgressDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetailsInternal)this).ListOfCopyProgressDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.CopyProgressDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetailsInternal)this).ListOfCopyProgressDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails[]) content.GetValueForProperty("ListOfCopyProgressDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetailsInternal)this).ListOfCopyProgressDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.CopyProgressDetailsTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlDbMigrationStatusDetails.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlDbMigrationStatusDetails.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlDbMigrationStatusDetails.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlDbMigrationStatusDetails.TypeConverter.cs index 5a75fa078e2a..026c72ea8242 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlDbMigrationStatusDetails.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlDbMigrationStatusDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlDbMigrationStatusDetails.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlDbMigrationStatusDetails.cs similarity index 80% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlDbMigrationStatusDetails.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlDbMigrationStatusDetails.cs index d0ce126d5be4..44608d0fde13 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlDbMigrationStatusDetails.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlDbMigrationStatusDetails.cs @@ -3,31 +3,31 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Detailed status of current Sql Db migration. public partial class SqlDbMigrationStatusDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetailsInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails[] _listOfCopyProgressDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails[] _listOfCopyProgressDetail; /// Details on progress of ADF copy activities. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails[] ListOfCopyProgressDetail { get => this._listOfCopyProgressDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails[] ListOfCopyProgressDetail { get => this._listOfCopyProgressDetail; } /// Internal Acessors for ListOfCopyProgressDetail - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetailsInternal.ListOfCopyProgressDetail { get => this._listOfCopyProgressDetail; set { {_listOfCopyProgressDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetailsInternal.ListOfCopyProgressDetail { get => this._listOfCopyProgressDetail; set { {_listOfCopyProgressDetail = value;} } } /// Internal Acessors for MigrationState - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetailsInternal.MigrationState { get => this._migrationState; set { {_migrationState = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetailsInternal.MigrationState { get => this._migrationState; set { {_migrationState = value;} } } /// Internal Acessors for SqlDataCopyError - string[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetailsInternal.SqlDataCopyError { get => this._sqlDataCopyError; set { {_sqlDataCopyError = value;} } } + string[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetailsInternal.SqlDataCopyError { get => this._sqlDataCopyError; set { {_sqlDataCopyError = value;} } } /// Backing field for property. private string _migrationState; @@ -59,8 +59,8 @@ public partial interface ISqlDbMigrationStatusDetails : ReadOnly = true, Description = @"Details on progress of ADF copy activities.", SerializedName = @"listOfCopyProgressDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails[] ListOfCopyProgressDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails[] ListOfCopyProgressDetail { get; } /// Current State of Migration. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( Required = false, @@ -84,7 +84,7 @@ internal partial interface ISqlDbMigrationStatusDetailsInternal { /// Details on progress of ADF copy activities. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails[] ListOfCopyProgressDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails[] ListOfCopyProgressDetail { get; set; } /// Current State of Migration. string MigrationState { get; set; } /// Sql Data Copy errors, if any. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlDbMigrationStatusDetails.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlDbMigrationStatusDetails.json.cs similarity index 93% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlDbMigrationStatusDetails.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlDbMigrationStatusDetails.json.cs index f118cc24e709..5e8d0331d17b 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlDbMigrationStatusDetails.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlDbMigrationStatusDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SqlDbMigrationStatusDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbMigrationStatusDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbMigrationStatusDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new SqlDbMigrationStatusDetails(json) : null; } @@ -79,7 +79,7 @@ internal SqlDbMigrationStatusDetails(Microsoft.Azure.PowerShell.Cmdlets.DataMigr } {_migrationState = If( json?.PropertyT("migrationState"), out var __jsonMigrationState) ? (string)__jsonMigrationState : (string)MigrationState;} {_sqlDataCopyError = If( json?.PropertyT("sqlDataCopyErrors"), out var __jsonSqlDataCopyErrors) ? If( __jsonSqlDataCopyErrors as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : SqlDataCopyError;} - {_listOfCopyProgressDetail = If( json?.PropertyT("listOfCopyProgressDetails"), out var __jsonListOfCopyProgressDetails) ? If( __jsonListOfCopyProgressDetails as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ICopyProgressDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.CopyProgressDetails.FromJson(__p) )) ))() : null : ListOfCopyProgressDetail;} + {_listOfCopyProgressDetail = If( json?.PropertyT("listOfCopyProgressDetails"), out var __jsonListOfCopyProgressDetails) ? If( __jsonListOfCopyProgressDetails as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ICopyProgressDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.CopyProgressDetails.FromJson(__p) )) ))() : null : ListOfCopyProgressDetail;} AfterFromJson(json); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlDbOfflineConfiguration.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlDbOfflineConfiguration.PowerShell.cs similarity index 81% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlDbOfflineConfiguration.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlDbOfflineConfiguration.PowerShell.cs index 338299f4707e..3e745a656bb3 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlDbOfflineConfiguration.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlDbOfflineConfiguration.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class SqlDbOfflineConfiguration partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SqlDbOfflineConfiguration(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SqlDbOfflineConfiguration(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,13 +105,13 @@ internal SqlDbOfflineConfiguration(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("Offline")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfigurationInternal)this).Offline = (bool?) content.GetValueForProperty("Offline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfigurationInternal)this).Offline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfigurationInternal)this).Offline = (bool?) content.GetValueForProperty("Offline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfigurationInternal)this).Offline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -126,7 +126,7 @@ internal SqlDbOfflineConfiguration(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Offline")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfigurationInternal)this).Offline = (bool?) content.GetValueForProperty("Offline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfigurationInternal)this).Offline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfigurationInternal)this).Offline = (bool?) content.GetValueForProperty("Offline",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfigurationInternal)this).Offline, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlDbOfflineConfiguration.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlDbOfflineConfiguration.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlDbOfflineConfiguration.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlDbOfflineConfiguration.TypeConverter.cs index 14ee32ad0bdb..cda431f38d2e 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlDbOfflineConfiguration.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlDbOfflineConfiguration.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfiguration ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfiguration ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfiguration).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfiguration).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlDbOfflineConfiguration.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlDbOfflineConfiguration.cs similarity index 89% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlDbOfflineConfiguration.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlDbOfflineConfiguration.cs index 3ada8dad57a6..e77b0531fbfc 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlDbOfflineConfiguration.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlDbOfflineConfiguration.cs @@ -3,18 +3,18 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Offline configuration public partial class SqlDbOfflineConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfiguration, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfigurationInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfiguration, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfigurationInternal { /// Internal Acessors for Offline - bool? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfigurationInternal.Offline { get => this._offline; set { {_offline = value;} } } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfigurationInternal.Offline { get => this._offline; set { {_offline = value;} } } /// Backing field for property. private bool? _offline; diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlDbOfflineConfiguration.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlDbOfflineConfiguration.json.cs similarity index 96% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlDbOfflineConfiguration.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlDbOfflineConfiguration.json.cs index 9cd70de0b658..52855baeb3d1 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlDbOfflineConfiguration.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlDbOfflineConfiguration.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SqlDbOfflineConfiguration partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfiguration. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfiguration. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfiguration. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfiguration. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlDbOfflineConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlDbOfflineConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new SqlDbOfflineConfiguration(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlFileShare.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlFileShare.PowerShell.cs similarity index 75% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlFileShare.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlFileShare.PowerShell.cs index 0ee4048c08f7..344f8cea3f50 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlFileShare.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlFileShare.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class SqlFileShare partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SqlFileShare(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SqlFileShare(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,21 +103,21 @@ internal SqlFileShare(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Path")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShareInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShareInternal)this).Path, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShareInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShareInternal)this).Path, global::System.Convert.ToString); } if (content.Contains("Username")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShareInternal)this).Username = (string) content.GetValueForProperty("Username",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShareInternal)this).Username, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShareInternal)this).Username = (string) content.GetValueForProperty("Username",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShareInternal)this).Username, global::System.Convert.ToString); } if (content.Contains("Password")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShareInternal)this).Password = (System.Security.SecureString) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShareInternal)this).Password, (object ss) => (System.Security.SecureString)ss); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShareInternal)this).Password = (System.Security.SecureString) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShareInternal)this).Password, (object ss) => (System.Security.SecureString)ss); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,15 +132,15 @@ internal SqlFileShare(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Path")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShareInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShareInternal)this).Path, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShareInternal)this).Path = (string) content.GetValueForProperty("Path",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShareInternal)this).Path, global::System.Convert.ToString); } if (content.Contains("Username")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShareInternal)this).Username = (string) content.GetValueForProperty("Username",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShareInternal)this).Username, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShareInternal)this).Username = (string) content.GetValueForProperty("Username",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShareInternal)this).Username, global::System.Convert.ToString); } if (content.Contains("Password")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShareInternal)this).Password = (System.Security.SecureString) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShareInternal)this).Password, (object ss) => (System.Security.SecureString)ss); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShareInternal)this).Password = (System.Security.SecureString) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShareInternal)this).Password, (object ss) => (System.Security.SecureString)ss); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlFileShare.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlFileShare.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlFileShare.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlFileShare.TypeConverter.cs index ee83309c42b0..dd4b615ce7e4 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlFileShare.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlFileShare.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlFileShare.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlFileShare.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlFileShare.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlFileShare.cs index 4b4c07f05e5c..ecdb5d3f7e65 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlFileShare.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlFileShare.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// File share public partial class SqlFileShare : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShareInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShareInternal { /// Backing field for property. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlFileShare.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlFileShare.json.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlFileShare.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlFileShare.json.cs index a4d3489ac5ed..01bd90383bf0 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlFileShare.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlFileShare.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SqlFileShare partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlFileShare FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlFileShare FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new SqlFileShare(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationListResult.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationListResult.PowerShell.cs similarity index 73% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationListResult.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationListResult.PowerShell.cs index 01d06e716736..9ba725cc63e1 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationListResult.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationListResult.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class SqlMigrationListResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationListResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SqlMigrationListResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationListResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SqlMigrationListResult(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationListResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,17 +105,17 @@ internal SqlMigrationListResult(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationServiceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationServiceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -130,11 +130,11 @@ internal SqlMigrationListResult(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationServiceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationListResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationListResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationServiceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationListResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationListResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationListResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationListResult.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationListResult.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationListResult.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationListResult.TypeConverter.cs index 2ddbeae47d56..5d2cffb078bd 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationListResult.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationListResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationListResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationListResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationListResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationListResult.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationListResult.cs similarity index 78% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationListResult.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationListResult.cs index 5517fbc6c6e8..e2393159d2eb 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationListResult.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationListResult.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// A list of SQL Migration Service. public partial class SqlMigrationListResult : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationListResult, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationListResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationListResult, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationListResultInternal { /// Internal Acessors for NextLink - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationListResultInternal.NextLink { get => this._nextLink; set { {_nextLink = value;} } } /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationListResultInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService[] Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationListResultInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -26,10 +26,10 @@ public partial class SqlMigrationListResult : public string NextLink { get => this._nextLink; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService[] _value; [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService[] Value { get => this._value; } /// Creates an new instance. public SqlMigrationListResult() @@ -54,8 +54,8 @@ public partial interface ISqlMigrationListResult : ReadOnly = true, Description = @"", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService) })] - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService) })] + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService[] Value { get; } } /// A list of SQL Migration Service. @@ -64,7 +64,7 @@ internal partial interface ISqlMigrationListResultInternal { string NextLink { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationListResult.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationListResult.json.cs similarity index 92% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationListResult.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationListResult.json.cs index b44a5d6e253d..0d4022ea8f56 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationListResult.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationListResult.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SqlMigrationListResult partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationListResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationListResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationListResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationListResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationListResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new SqlMigrationListResult(json) : null; } @@ -77,7 +77,7 @@ internal SqlMigrationListResult(Microsoft.Azure.PowerShell.Cmdlets.DataMigration { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService) (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationService.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService) (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationService.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationService.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationService.PowerShell.cs new file mode 100644 index 000000000000..b46fcce303e0 --- /dev/null +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationService.PowerShell.cs @@ -0,0 +1,256 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; + + /// A SQL Migration Service. + [System.ComponentModel.TypeConverter(typeof(SqlMigrationServiceTypeConverter))] + public partial class SqlMigrationService + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new SqlMigrationService(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new SqlMigrationService(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal SqlMigrationService(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationServicePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SystemDataAutoGeneratedTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.ITrackedResourceTags1) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.TrackedResourceTags1TypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("IntegrationRuntimeState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceInternal)this).IntegrationRuntimeState = (string) content.GetValueForProperty("IntegrationRuntimeState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceInternal)this).IntegrationRuntimeState, global::System.Convert.ToString); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal SqlMigrationService(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Property")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationServicePropertiesTypeConverter.ConvertFrom); + } + if (content.Contains("SystemDataCreatedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataCreatedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemDataCreatedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedBy")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + } + if (content.Contains("SystemDataLastModifiedByType")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + } + if (content.Contains("SystemDataLastModifiedAt")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("SystemData")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SystemDataAutoGeneratedTypeConverter.ConvertFrom); + } + if (content.Contains("Location")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Tag")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.ITrackedResourceTags1) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.TrackedResourceTags1TypeConverter.ConvertFrom); + } + if (content.Contains("Id")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + } + if (content.Contains("Name")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + } + if (content.Contains("Type")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + } + if (content.Contains("ProvisioningState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceInternal)this).ProvisioningState, global::System.Convert.ToString); + } + if (content.Contains("IntegrationRuntimeState")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceInternal)this).IntegrationRuntimeState = (string) content.GetValueForProperty("IntegrationRuntimeState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceInternal)this).IntegrationRuntimeState, global::System.Convert.ToString); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// A SQL Migration Service. + [System.ComponentModel.TypeConverter(typeof(SqlMigrationServiceTypeConverter))] + public partial interface ISqlMigrationService + + { + + } +} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationService.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationService.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationService.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationService.TypeConverter.cs index 08202967cbe1..18b0570339fe 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationService.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationService.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationService.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationService.cs similarity index 57% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationService.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationService.cs index 8f547c1782f0..af5ee564a6ff 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationService.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationService.cs @@ -3,111 +3,111 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// A SQL Migration Service. public partial class SqlMigrationService : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceInternal, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGenerated __trackedResourceAutoGenerated = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.TrackedResourceAutoGenerated(); + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGenerated __trackedResourceAutoGenerated = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.TrackedResourceAutoGenerated(); [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Id; } + public string Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Id; } /// Current state of the Integration runtime. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.FormatTable(Index = 4)] - public string IntegrationRuntimeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServicePropertiesInternal)Property).IntegrationRuntimeState; } + public string IntegrationRuntimeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServicePropertiesInternal)Property).IntegrationRuntimeState; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.FormatTable(Index = 0)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Location = value ?? null; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Location = value ?? null; } /// Internal Acessors for IntegrationRuntimeState - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceInternal.IntegrationRuntimeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServicePropertiesInternal)Property).IntegrationRuntimeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServicePropertiesInternal)Property).IntegrationRuntimeState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceInternal.IntegrationRuntimeState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServicePropertiesInternal)Property).IntegrationRuntimeState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServicePropertiesInternal)Property).IntegrationRuntimeState = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceProperties Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationServiceProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceProperties Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationServiceProperties()); set { {_property = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServicePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServicePropertiesInternal)Property).ProvisioningState = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceInternal.ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServicePropertiesInternal)Property).ProvisioningState; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServicePropertiesInternal)Property).ProvisioningState = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Id = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal.Id { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Id; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Id = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Name = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal.Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Name = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemData = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal.SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemData; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemData = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Type = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal.Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Type = value; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.FormatTable(Index = 1)] - public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Name; } + public string Name { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceProperties _property; /// The SQL Migration Service properties. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationServiceProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationServiceProperties()); set => this._property = value; } /// Provisioning state to track the async operation status. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.FormatTable(Index = 3)] - public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServicePropertiesInternal)Property).ProvisioningState; } + public string ProvisioningState { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServicePropertiesInternal)Property).ProvisioningState; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemData; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated SystemData { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemData; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedAt = value ?? default(global::System.DateTime); } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedBy = value ?? null; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataCreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType)""); } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedAt = value ?? default(global::System.DateTime); } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedBy = value ?? null; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).SystemDataLastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType)""); } /// Dictionary of [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.ITrackedResourceTags1 Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.ITrackedResourceTags1 Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Tag = value ?? null /* model class */; } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.FormatTable(Index = 2)] - public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Type; } + public string Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)__trackedResourceAutoGenerated).Type; } /// Creates an new instance. public SqlMigrationService() @@ -130,7 +130,7 @@ public SqlMigrationService() /// A SQL Migration Service. public partial interface ISqlMigrationService : Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGenerated + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGenerated { /// Current state of the Integration runtime. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( @@ -152,12 +152,12 @@ public partial interface ISqlMigrationService : } /// A SQL Migration Service. internal partial interface ISqlMigrationServiceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal { /// Current state of the Integration runtime. string IntegrationRuntimeState { get; set; } /// The SQL Migration Service properties. - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceProperties Property { get; set; } /// Provisioning state to track the async operation status. string ProvisioningState { get; set; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationService.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationService.json.cs similarity index 93% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationService.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationService.json.cs index 0cc9d7130d82..d413a4593a6a 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationService.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationService.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SqlMigrationService partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new SqlMigrationService(json) : null; } @@ -77,8 +77,8 @@ internal SqlMigrationService(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Ru { return; } - __trackedResourceAutoGenerated = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.TrackedResourceAutoGenerated(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationServiceProperties.FromJson(__jsonProperties) : Property;} + __trackedResourceAutoGenerated = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.TrackedResourceAutoGenerated(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationServiceProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceProperties.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceProperties.PowerShell.cs similarity index 76% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceProperties.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceProperties.PowerShell.cs index 2affa6a1e13a..0e976b2a8ca6 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceProperties.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class SqlMigrationServiceProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SqlMigrationServiceProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SqlMigrationServiceProperties(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,17 +105,17 @@ internal SqlMigrationServiceProperties(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServicePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServicePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServicePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServicePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); } if (content.Contains("IntegrationRuntimeState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServicePropertiesInternal)this).IntegrationRuntimeState = (string) content.GetValueForProperty("IntegrationRuntimeState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServicePropertiesInternal)this).IntegrationRuntimeState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServicePropertiesInternal)this).IntegrationRuntimeState = (string) content.GetValueForProperty("IntegrationRuntimeState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServicePropertiesInternal)this).IntegrationRuntimeState, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -130,11 +130,11 @@ internal SqlMigrationServiceProperties(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("ProvisioningState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServicePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServicePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServicePropertiesInternal)this).ProvisioningState = (string) content.GetValueForProperty("ProvisioningState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServicePropertiesInternal)this).ProvisioningState, global::System.Convert.ToString); } if (content.Contains("IntegrationRuntimeState")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServicePropertiesInternal)this).IntegrationRuntimeState = (string) content.GetValueForProperty("IntegrationRuntimeState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServicePropertiesInternal)this).IntegrationRuntimeState, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServicePropertiesInternal)this).IntegrationRuntimeState = (string) content.GetValueForProperty("IntegrationRuntimeState",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServicePropertiesInternal)this).IntegrationRuntimeState, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceProperties.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceProperties.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceProperties.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceProperties.TypeConverter.cs index c870da92c369..334be91ade3b 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceProperties.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceProperties.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceProperties.cs similarity index 88% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceProperties.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceProperties.cs index ca9742805cee..9ba78c0131a1 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceProperties.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceProperties.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// The SQL Migration Service properties. public partial class SqlMigrationServiceProperties : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceProperties, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServicePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceProperties, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServicePropertiesInternal { /// Backing field for property. @@ -21,10 +21,10 @@ public partial class SqlMigrationServiceProperties : public string IntegrationRuntimeState { get => this._integrationRuntimeState; } /// Internal Acessors for IntegrationRuntimeState - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServicePropertiesInternal.IntegrationRuntimeState { get => this._integrationRuntimeState; set { {_integrationRuntimeState = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServicePropertiesInternal.IntegrationRuntimeState { get => this._integrationRuntimeState; set { {_integrationRuntimeState = value;} } } /// Internal Acessors for ProvisioningState - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServicePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServicePropertiesInternal.ProvisioningState { get => this._provisioningState; set { {_provisioningState = value;} } } /// Backing field for property. private string _provisioningState; diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceProperties.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceProperties.json.cs similarity index 96% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceProperties.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceProperties.json.cs index cad8bb971caa..ee7571894c4b 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceProperties.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SqlMigrationServiceProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new SqlMigrationServiceProperties(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdate.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdate.PowerShell.cs similarity index 79% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdate.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdate.PowerShell.cs index 1a3d868d9119..41b93f6b2707 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdate.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdate.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class SqlMigrationServiceUpdate partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdate DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SqlMigrationServiceUpdate(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdate DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SqlMigrationServiceUpdate(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdate FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,13 +105,13 @@ internal SqlMigrationServiceUpdate(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationServiceUpdateTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationServiceUpdateTagsTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -126,7 +126,7 @@ internal SqlMigrationServiceUpdate(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationServiceUpdateTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationServiceUpdateTagsTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdate.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdate.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdate.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdate.TypeConverter.cs index 8eaa48c63d81..6f7d3b0f83e7 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdate.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdate.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdate ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdate ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdate).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdate).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdate.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdate.cs similarity index 76% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdate.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdate.cs index 40f41c0183ed..2730503fd721 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdate.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdate.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// An update to a SQL Migration Service. public partial class SqlMigrationServiceUpdate : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdate, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdate, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateTags _tag; /// Dictionary of [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationServiceUpdateTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationServiceUpdateTags()); set => this._tag = value; } /// Creates an new instance. public SqlMigrationServiceUpdate() @@ -36,8 +36,8 @@ public partial interface ISqlMigrationServiceUpdate : ReadOnly = false, Description = @"Dictionary of ", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateTags Tag { get; set; } } /// An update to a SQL Migration Service. @@ -45,7 +45,7 @@ internal partial interface ISqlMigrationServiceUpdateInternal { /// Dictionary of - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateTags Tag { get; set; } } } \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdate.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdate.json.cs similarity index 94% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdate.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdate.json.cs index 040a80917071..cc2f99d078cc 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdate.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdate.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SqlMigrationServiceUpdate partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdate. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdate. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdate. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdate. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdate FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new SqlMigrationServiceUpdate(json) : null; } @@ -77,7 +77,7 @@ internal SqlMigrationServiceUpdate(Microsoft.Azure.PowerShell.Cmdlets.DataMigrat { return; } - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationServiceUpdateTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationServiceUpdateTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdateTags.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdateTags.PowerShell.cs similarity index 87% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdateTags.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdateTags.PowerShell.cs index f45303b66d7e..f435c983172b 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdateTags.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdateTags.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class SqlMigrationServiceUpdateTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SqlMigrationServiceUpdateTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SqlMigrationServiceUpdateTags(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -109,7 +109,7 @@ internal SqlMigrationServiceUpdateTags(global::System.Collections.IDictionary co } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdateTags.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdateTags.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdateTags.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdateTags.TypeConverter.cs index bafcd02c474a..18cdc57cb75f 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdateTags.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdateTags.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdateTags.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdateTags.cs similarity index 90% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdateTags.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdateTags.cs index 981c7ea9cc0d..623cc28c9bed 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdateTags.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdateTags.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Dictionary of public partial class SqlMigrationServiceUpdateTags : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateTags, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateTags, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateTagsInternal { /// Creates an new instance. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdateTags.dictionary.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdateTags.dictionary.cs similarity index 96% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdateTags.dictionary.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdateTags.dictionary.cs index adde32d0d808..51f2e7719497 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdateTags.dictionary.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdateTags.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationServiceUpdateTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationServiceUpdateTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdateTags.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdateTags.json.cs similarity index 96% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdateTags.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdateTags.json.cs index 9738ab56c6cd..f019396b75ab 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SqlMigrationServiceUpdateTags.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SqlMigrationServiceUpdateTags.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SqlMigrationServiceUpdateTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new SqlMigrationServiceUpdateTags(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SystemDataAutoGenerated.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SystemDataAutoGenerated.PowerShell.cs similarity index 60% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SystemDataAutoGenerated.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SystemDataAutoGenerated.PowerShell.cs index fc3900efb18b..7c49971a3446 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SystemDataAutoGenerated.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SystemDataAutoGenerated.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -54,29 +54,29 @@ public partial class SystemDataAutoGenerated partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SystemDataAutoGenerated(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SystemDataAutoGenerated(content); } @@ -86,10 +86,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -104,33 +104,33 @@ internal SystemDataAutoGenerated(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("CreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)this).CreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)this).CreatedBy, global::System.Convert.ToString); } if (content.Contains("CreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); } if (content.Contains("CreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)this).LastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)this).LastModifiedBy, global::System.Convert.ToString); } if (content.Contains("LastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); } if (content.Contains("LastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -145,27 +145,27 @@ internal SystemDataAutoGenerated(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("CreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)this).CreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)this).CreatedBy, global::System.Convert.ToString); } if (content.Contains("CreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)this).CreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)this).CreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); } if (content.Contains("CreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)this).LastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)this).LastModifiedBy, global::System.Convert.ToString); } if (content.Contains("LastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)this).LastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)this).LastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); } if (content.Contains("LastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SystemDataAutoGenerated.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SystemDataAutoGenerated.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SystemDataAutoGenerated.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SystemDataAutoGenerated.TypeConverter.cs index 7d90fb98ad0d..69410c2dd8de 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SystemDataAutoGenerated.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SystemDataAutoGenerated.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SystemDataAutoGenerated.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SystemDataAutoGenerated.cs similarity index 98% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SystemDataAutoGenerated.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SystemDataAutoGenerated.cs index 9ab67461fc2e..fd894ba9a89b 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SystemDataAutoGenerated.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SystemDataAutoGenerated.cs @@ -3,13 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; public partial class SystemDataAutoGenerated : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal { /// Backing field for property. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SystemDataAutoGenerated.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SystemDataAutoGenerated.json.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SystemDataAutoGenerated.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SystemDataAutoGenerated.json.cs index 0bcc28994f6b..f2ba56ee44a3 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/SystemDataAutoGenerated.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/SystemDataAutoGenerated.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -53,13 +53,13 @@ public partial class SystemDataAutoGenerated partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new SystemDataAutoGenerated(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/TargetLocation.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/TargetLocation.PowerShell.cs similarity index 77% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/TargetLocation.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/TargetLocation.PowerShell.cs index 1bc5f61a4d90..a38c18b8611e 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/TargetLocation.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/TargetLocation.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -55,29 +55,27 @@ public partial class TargetLocation partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TargetLocation(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TargetLocation(content); } @@ -87,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,17 +103,17 @@ internal TargetLocation(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("StorageAccountResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocationInternal)this).StorageAccountResourceId = (string) content.GetValueForProperty("StorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocationInternal)this).StorageAccountResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocationInternal)this).StorageAccountResourceId = (string) content.GetValueForProperty("StorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocationInternal)this).StorageAccountResourceId, global::System.Convert.ToString); } if (content.Contains("AccountKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocationInternal)this).AccountKey = (string) content.GetValueForProperty("AccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocationInternal)this).AccountKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocationInternal)this).AccountKey = (string) content.GetValueForProperty("AccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocationInternal)this).AccountKey, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -130,11 +128,11 @@ internal TargetLocation(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("StorageAccountResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocationInternal)this).StorageAccountResourceId = (string) content.GetValueForProperty("StorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocationInternal)this).StorageAccountResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocationInternal)this).StorageAccountResourceId = (string) content.GetValueForProperty("StorageAccountResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocationInternal)this).StorageAccountResourceId, global::System.Convert.ToString); } if (content.Contains("AccountKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocationInternal)this).AccountKey = (string) content.GetValueForProperty("AccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocationInternal)this).AccountKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocationInternal)this).AccountKey = (string) content.GetValueForProperty("AccountKey",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocationInternal)this).AccountKey, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/TargetLocation.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/TargetLocation.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/TargetLocation.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/TargetLocation.TypeConverter.cs index 1482c549c4a2..d039177abe6c 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/TargetLocation.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/TargetLocation.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/TargetLocation.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/TargetLocation.cs similarity index 96% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/TargetLocation.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/TargetLocation.cs index 46fad085f8bd..ce7cef826813 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/TargetLocation.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/TargetLocation.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; /// Target Location details for optional copy of backups public partial class TargetLocation : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocationInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocationInternal { /// Backing field for property. diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/TargetLocation.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/TargetLocation.json.cs similarity index 96% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/TargetLocation.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/TargetLocation.json.cs index 0d893530c30a..8d72ec6231d9 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/TargetLocation.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/TargetLocation.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TargetLocation partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITargetLocation FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITargetLocation FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new TargetLocation(json) : null; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/TrackedResourceAutoGenerated.PowerShell.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/TrackedResourceAutoGenerated.PowerShell.cs similarity index 50% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/TrackedResourceAutoGenerated.PowerShell.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/TrackedResourceAutoGenerated.PowerShell.cs index f6ab32f5146a..e7e7430d872d 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/TrackedResourceAutoGenerated.PowerShell.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/TrackedResourceAutoGenerated.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -54,29 +54,29 @@ public partial class TrackedResourceAutoGenerated partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGenerated DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TrackedResourceAutoGenerated(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGenerated DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TrackedResourceAutoGenerated(content); } @@ -86,7 +86,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGenerated FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -94,7 +94,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api2025031 public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -109,57 +109,57 @@ internal TrackedResourceAutoGenerated(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SystemDataAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SystemDataAutoGeneratedTypeConverter.ConvertFrom); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.ITrackedResourceTags1) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.TrackedResourceTags1TypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.ITrackedResourceTags1) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.TrackedResourceTags1TypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -174,51 +174,51 @@ internal TrackedResourceAutoGenerated(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SystemDataAutoGeneratedTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SystemDataAutoGeneratedTypeConverter.ConvertFrom); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.ITrackedResourceTags1) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.TrackedResourceTags1TypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.ITrackedResourceTags1) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.TrackedResourceTags1TypeConverter.ConvertFrom); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataCreatedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType = (Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType?) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedByType, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType.CreateFrom); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializePSObject(content); } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/TrackedResourceAutoGenerated.TypeConverter.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/TrackedResourceAutoGenerated.TypeConverter.cs similarity index 97% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/TrackedResourceAutoGenerated.TypeConverter.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/TrackedResourceAutoGenerated.TypeConverter.cs index 271b7c440080..156bf4bd4f5e 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/TrackedResourceAutoGenerated.TypeConverter.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/TrackedResourceAutoGenerated.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGenerated ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGenerated ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGenerated).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGenerated).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/TrackedResourceAutoGenerated.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/TrackedResourceAutoGenerated.cs similarity index 77% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/TrackedResourceAutoGenerated.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/TrackedResourceAutoGenerated.cs index 76c76520ee09..bff3b61d65ec 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/TrackedResourceAutoGenerated.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/TrackedResourceAutoGenerated.cs @@ -3,13 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; public partial class TrackedResourceAutoGenerated : - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGenerated, - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGenerated, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal { /// Backing field for property. @@ -25,16 +25,16 @@ public partial class TrackedResourceAutoGenerated : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SystemDataAutoGenerated()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SystemDataAutoGenerated()); set { {_systemData = value;} } } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGeneratedInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGeneratedInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _name; @@ -43,30 +43,30 @@ public partial class TrackedResourceAutoGenerated : public string Name { get => this._name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated _systemData; + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated _systemData; [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SystemDataAutoGenerated()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SystemDataAutoGenerated()); } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)SystemData).CreatedAt = value ?? default(global::System.DateTime); } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)SystemData).CreatedBy = value ?? null; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)SystemData).CreatedBy = value ?? null; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType? SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)SystemData).CreatedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType)""); } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)SystemData).LastModifiedAt = value ?? default(global::System.DateTime); } [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)SystemData).LastModifiedBy = value ?? null; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)SystemData).LastModifiedBy = value ?? null; } /// The type of identity that created the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGeneratedInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType? SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGeneratedInternal)SystemData).LastModifiedByType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.CreatedByType)""); } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.ITrackedResourceTags1 _tag; @@ -188,7 +188,7 @@ internal partial interface ITrackedResourceAutoGeneratedInternal string Name { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISystemDataAutoGenerated SystemData { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISystemDataAutoGenerated SystemData { get; set; } global::System.DateTime? SystemDataCreatedAt { get; set; } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/TrackedResourceAutoGenerated.json.cs b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/TrackedResourceAutoGenerated.json.cs similarity index 96% rename from generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/TrackedResourceAutoGenerated.json.cs rename to generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/TrackedResourceAutoGenerated.json.cs index 1cdc78e2f54a..e52c68555ba5 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250315Preview/TrackedResourceAutoGenerated.json.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/api/Models/Api20250630/TrackedResourceAutoGenerated.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630 { using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; @@ -53,13 +53,13 @@ public partial class TrackedResourceAutoGenerated partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGenerated. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGenerated. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGenerated. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGenerated. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ITrackedResourceAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ITrackedResourceAutoGenerated FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Json.JsonObject json ? new TrackedResourceAutoGenerated(json) : null; } @@ -117,7 +117,7 @@ internal TrackedResourceAutoGenerated(Microsoft.Azure.PowerShell.Cmdlets.DataMig { return; } - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SystemDataAutoGenerated.FromJson(__jsonSystemData) : SystemData;} + {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SystemDataAutoGenerated.FromJson(__jsonSystemData) : SystemData;} {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api50.TrackedResourceTags1.FromJson(__jsonTags) : Tag;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationOperation_List.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationOperation_List.cs index a5bf02a1af5a..c264fbdb4517 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationOperation_List.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationOperation_List.cs @@ -14,10 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataMigrationOperation_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinition))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinition))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Lists all of the available SQL Migration REST API operations.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/providers/Microsoft.DataMigration/operations", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/providers/Microsoft.DataMigration/operations", ApiVersion = "2025-06-30")] public partial class GetAzDataMigrationOperation_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -125,12 +125,12 @@ public partial class GetAzDataMigrationOperation_List : global::System.Managemen /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -361,12 +361,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlServiceAuthKey_List.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlServiceAuthKey_List.cs index 569a2d9120cb..470acc50750a 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlServiceAuthKey_List.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlServiceAuthKey_List.cs @@ -14,10 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataMigrationSqlServiceAuthKey_List", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("This is a SQL Service resource and can only be accessed using cmdlets that have SqlService in their name. (For example Get-AzDataMigrationSqlService should be used to access a data migration SQL Service and NOT Get-AzDataMigrationService)")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeys))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeys))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Retrieve the List of Authentication Keys for Self Hosted Integration Runtime.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listAuthKeys", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listAuthKeys", ApiVersion = "2025-06-30")] public partial class GetAzDataMigrationSqlServiceAuthKey_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -168,12 +168,12 @@ public partial class GetAzDataMigrationSqlServiceAuthKey_List : global::System.M /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeys + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeys /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -410,12 +410,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeys + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeys /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -427,7 +427,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IAuthenticationKeys + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IAuthenticationKeys WriteObject((await response)); } } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlServiceIntegrationRuntimeMetric_List.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlServiceIntegrationRuntimeMetric_List.cs index 888e5bf00872..ff61eeb4c124 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlServiceIntegrationRuntimeMetric_List.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlServiceIntegrationRuntimeMetric_List.cs @@ -16,10 +16,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataMigrationSqlServiceIntegrationRuntimeMetric_List", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("This is a SQL Service resource and can only be accessed using cmdlets that have SqlService in their name. (For example Get-AzDataMigrationSqlService should be used to access a data migration SQL Service and NOT Get-AzDataMigrationService)")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringData))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringData))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Retrieve the registered Integration Runtime nodes and their monitoring data for a given Database Migration Service")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listMonitoringData", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listMonitoringData", ApiVersion = "2025-06-30")] public partial class GetAzDataMigrationSqlServiceIntegrationRuntimeMetric_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -170,12 +170,12 @@ public partial class GetAzDataMigrationSqlServiceIntegrationRuntimeMetric_List : /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringData + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringData /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -412,12 +412,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringData + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringData /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -429,7 +429,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IIntegrationRuntimeMonitoringData + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringData WriteObject((await response)); } } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlServiceMigration_List.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlServiceMigration_List.cs index 3dc18258cac1..a3910deac70c 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlServiceMigration_List.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlServiceMigration_List.cs @@ -14,10 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataMigrationSqlServiceMigration_List")] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("This is a SQL Service resource and can only be accessed using cmdlets that have SqlService in their name. (For example Get-AzDataMigrationSqlService should be used to access a data migration SQL Service and NOT Get-AzDataMigrationService)")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigration))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Retrieve the List of database migrations attached to the service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listMigrations", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/listMigrations", ApiVersion = "2025-06-30")] public partial class GetAzDataMigrationSqlServiceMigration_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -174,12 +174,12 @@ public partial class GetAzDataMigrationSqlServiceMigration_List : global::System /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -413,12 +413,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_Get.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_Get.cs index a18b03d38faf..966340f42c62 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_Get.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_Get.cs @@ -14,10 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataMigrationSqlService_Get")] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("This is a SQL Service resource and can only be accessed using cmdlets that have SqlService in their name. (For example Get-AzDataMigrationSqlService should be used to access a data migration SQL Service and NOT Get-AzDataMigrationService)")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Retrieve the Database Migration Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}", ApiVersion = "2025-06-30")] public partial class GetAzDataMigrationSqlService_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -169,12 +169,12 @@ public partial class GetAzDataMigrationSqlService_Get : global::System.Managemen /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -408,12 +408,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -425,7 +425,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService WriteObject((await response)); } } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_GetViaIdentity.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_GetViaIdentity.cs index 336c041543cd..8763c7cbe9d1 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_GetViaIdentity.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_GetViaIdentity.cs @@ -14,10 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataMigrationSqlService_GetViaIdentity")] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("This is a SQL Service resource and can only be accessed using cmdlets that have SqlService in their name. (For example Get-AzDataMigrationSqlService should be used to access a data migration SQL Service and NOT Get-AzDataMigrationService)")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Retrieve the Database Migration Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}", ApiVersion = "2025-06-30")] public partial class GetAzDataMigrationSqlService_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -127,12 +127,12 @@ public partial class GetAzDataMigrationSqlService_GetViaIdentity : global::Syste /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -383,12 +383,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -400,7 +400,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService WriteObject((await response)); } } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_List.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_List.cs index b2fc564b2232..ff68614ae6a4 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_List.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_List.cs @@ -14,10 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataMigrationSqlService_List")] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("This is a SQL Service resource and can only be accessed using cmdlets that have SqlService in their name. (For example Get-AzDataMigrationSqlService should be used to access a data migration SQL Service and NOT Get-AzDataMigrationService)")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Retrieve all SQL migration services in the resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices", ApiVersion = "2025-06-30")] public partial class GetAzDataMigrationSqlService_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -160,12 +160,12 @@ public partial class GetAzDataMigrationSqlService_List : global::System.Manageme /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -399,12 +399,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_List1.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_List1.cs index 084909f6807f..c4ae8fd4b3e2 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_List1.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationSqlService_List1.cs @@ -14,10 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataMigrationSqlService_List1")] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("This is a SQL Service resource and can only be accessed using cmdlets that have SqlService in their name. (For example Get-AzDataMigrationSqlService should be used to access a data migration SQL Service and NOT Get-AzDataMigrationService)")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Retrieve all SQL migration services in the subscriptions.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/sqlMigrationServices", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/sqlMigrationServices", ApiVersion = "2025-06-30")] public partial class GetAzDataMigrationSqlService_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -143,12 +143,12 @@ public partial class GetAzDataMigrationSqlService_List1 : global::System.Managem /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationListResult /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -382,12 +382,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationListResult + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationListResult /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlDb_Get.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlDb_Get.cs index 8bc3864a38ba..bcfe36a2d63d 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlDb_Get.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlDb_Get.cs @@ -14,10 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataMigrationToSqlDb_Get")] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("Only use cmdlets containing ToSqlDb in their name for getting or stopping or deleting a migration created using New-AzDataMigrationToSqlDb")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Retrieve the specified database migration for a given SQL Db.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", ApiVersion = "2025-06-30")] public partial class GetAzDataMigrationToSqlDb_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -212,12 +212,12 @@ public partial class GetAzDataMigrationToSqlDb_Get : global::System.Management.A /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -451,12 +451,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -468,7 +468,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb WriteObject((await response)); } } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlDb_GetViaIdentity.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlDb_GetViaIdentity.cs index 9eb5ee2512d0..72dd00298c6b 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlDb_GetViaIdentity.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlDb_GetViaIdentity.cs @@ -14,10 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataMigrationToSqlDb_GetViaIdentity")] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("Only use cmdlets containing ToSqlDb in their name for getting or stopping or deleting a migration created using New-AzDataMigrationToSqlDb")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Retrieve the specified database migration for a given SQL Db.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", ApiVersion = "2025-06-30")] public partial class GetAzDataMigrationToSqlDb_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -158,12 +158,12 @@ public partial class GetAzDataMigrationToSqlDb_GetViaIdentity : global::System.M /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -418,12 +418,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -435,7 +435,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb WriteObject((await response)); } } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlManagedInstance_Get.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlManagedInstance_Get.cs index 7ab0a992baf5..9c0bbaf85f3d 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlManagedInstance_Get.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlManagedInstance_Get.cs @@ -14,10 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataMigrationToSqlManagedInstance_Get")] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("Only use cmdlets containing ToSqlManagedInstance in their name for getting or deleting or performing cutover on a migration created using New-AzDataMigrationToSqlManagedInstance")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Retrieve the specified database migration for a given SQL Managed Instance.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", ApiVersion = "2025-06-30")] public partial class GetAzDataMigrationToSqlManagedInstance_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -212,12 +212,12 @@ public partial class GetAzDataMigrationToSqlManagedInstance_Get : global::System /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -451,12 +451,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -468,7 +468,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi WriteObject((await response)); } } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlManagedInstance_GetViaIdentity.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlManagedInstance_GetViaIdentity.cs index 489ab89aca99..7874d144e309 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlManagedInstance_GetViaIdentity.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlManagedInstance_GetViaIdentity.cs @@ -14,10 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataMigrationToSqlManagedInstance_GetViaIdentity")] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("Only use cmdlets containing ToSqlManagedInstance in their name for getting or deleting or performing cutover on a migration created using New-AzDataMigrationToSqlManagedInstance")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Retrieve the specified database migration for a given SQL Managed Instance.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", ApiVersion = "2025-06-30")] public partial class GetAzDataMigrationToSqlManagedInstance_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -158,12 +158,12 @@ public partial class GetAzDataMigrationToSqlManagedInstance_GetViaIdentity : glo /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -418,12 +418,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -435,7 +435,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi WriteObject((await response)); } } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlVM_Get.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlVM_Get.cs index f7e8a26003a3..5ce3f3627fab 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlVM_Get.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlVM_Get.cs @@ -14,10 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataMigrationToSqlVM_Get")] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("Only use cmdlets containing ToSqlVM in their name for getting or deleting or performing cutover on a migration created using New-AzDataMigrationToSqlVM")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Retrieve the specified database migration for a given SQL VM.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", ApiVersion = "2025-06-30")] public partial class GetAzDataMigrationToSqlVM_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -212,12 +212,12 @@ public partial class GetAzDataMigrationToSqlVM_Get : global::System.Management.A /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -451,12 +451,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -468,7 +468,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM WriteObject((await response)); } } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlVM_GetViaIdentity.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlVM_GetViaIdentity.cs index 069c89cb8d0d..db50517fc3ed 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlVM_GetViaIdentity.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/GetAzDataMigrationToSqlVM_GetViaIdentity.cs @@ -14,10 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataMigrationToSqlVM_GetViaIdentity")] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("Only use cmdlets containing ToSqlVM in their name for getting or deleting or performing cutover on a migration created using New-AzDataMigrationToSqlVM")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Retrieve the specified database migration for a given SQL VM.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", ApiVersion = "2025-06-30")] public partial class GetAzDataMigrationToSqlVM_GetViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -158,12 +158,12 @@ public partial class GetAzDataMigrationToSqlVM_GetViaIdentity : global::System.M /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -418,12 +418,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -435,7 +435,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM WriteObject((await response)); } } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationCutoverToSqlManagedInstance_CutoverExpanded.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationCutoverToSqlManagedInstance_CutoverExpanded.cs index b8e2797cd37e..f7e260b59983 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationCutoverToSqlManagedInstance_CutoverExpanded.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationCutoverToSqlManagedInstance_CutoverExpanded.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Initiate cutover for in-progress online database migration to SQL Managed Instance.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cutover", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cutover", ApiVersion = "2025-06-30")] public partial class InvokeAzDataMigrationCutoverToSqlManagedInstance_CutoverExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -37,7 +37,7 @@ 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.Api20250315Preview.IMigrationOperationInput _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationOperationInput(); + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationOperationInput(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationCutoverToSqlVM_CutoverExpanded.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationCutoverToSqlVM_CutoverExpanded.cs index aafa31605f26..258bfab709d5 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationCutoverToSqlVM_CutoverExpanded.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationCutoverToSqlVM_CutoverExpanded.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Initiate cutover for in-progress online database migration to SQL VM.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cutover", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cutover", ApiVersion = "2025-06-30")] public partial class InvokeAzDataMigrationCutoverToSqlVM_CutoverExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -35,7 +35,7 @@ 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.Api20250315Preview.IMigrationOperationInput _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationOperationInput(); + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationOperationInput(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationRetryToSqlDb_Retry.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationRetryToSqlDb_Retry.cs new file mode 100644 index 000000000000..a55a1696b206 --- /dev/null +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationRetryToSqlDb_Retry.cs @@ -0,0 +1,489 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; + using System; + + /// Retry on going migration for the database. + /// + /// [OpenAPI] Retry=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/retry" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzDataMigrationRetryToSqlDb_Retry", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Retry on going migration for the database.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/retry", ApiVersion = "2025-06-30")] + public partial class InvokeAzDataMigrationRetryToSqlDb_Retry : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DataMigration Client => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// 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.Api20250630.IMigrationOperationInput _migrationOperationInput; + + /// Migration Operation Input + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Migration Operation Input", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Migration Operation Input", + SerializedName = @"migrationOperationInput", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput MigrationOperationInput { get => this._migrationOperationInput; set => this._migrationOperationInput = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// + /// Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or + /// the portal. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _sqlDbInstanceName; + + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"sqlDbInstanceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Path)] + public string SqlDbInstanceName { get => this._sqlDbInstanceName; set => this._sqlDbInstanceName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// Subscription ID that identifies an Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription ID that identifies an Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription ID that identifies an Azure subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private string _targetDbName; + + /// The name of the target database. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the target database.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the target database.", + SerializedName = @"targetDbName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Path)] + public string TargetDbName { get => this._targetDbName; set => this._targetDbName = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of InvokeAzDataMigrationRetryToSqlDb_Retry + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets.InvokeAzDataMigrationRetryToSqlDb_Retry Clone() + { + var clone = new InvokeAzDataMigrationRetryToSqlDb_Retry(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ResourceGroupName = this.ResourceGroupName; + clone.SqlDbInstanceName = this.SqlDbInstanceName; + clone.TargetDbName = this.TargetDbName; + clone.SubscriptionId = this.SubscriptionId; + clone.MigrationOperationInput = this.MigrationOperationInput; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public InvokeAzDataMigrationRetryToSqlDb_Retry() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DatabaseMigrationsSqlDbRetry' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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.DatabaseMigrationsSqlDbRetry(ResourceGroupName, SqlDbInstanceName, TargetDbName, SubscriptionId, MigrationOperationInput, 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=MigrationOperationInput}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // 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=MigrationOperationInput }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + } + } +} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationRetryToSqlDb_RetryExpanded.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationRetryToSqlDb_RetryExpanded.cs new file mode 100644 index 000000000000..e44758b64184 --- /dev/null +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationRetryToSqlDb_RetryExpanded.cs @@ -0,0 +1,490 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; + using System; + + /// Retry on going migration for the database. + /// + /// [OpenAPI] Retry=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/retry" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzDataMigrationRetryToSqlDb_RetryExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Retry on going migration for the database.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/retry", ApiVersion = "2025-06-30")] + public partial class InvokeAzDataMigrationRetryToSqlDb_RetryExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Migration Operation Input + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput _migrationOperationInputBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.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)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DataMigration Client => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// ID tracking migration operation. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID tracking migration operation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"ID tracking migration operation.", + SerializedName = @"migrationOperationId", + PossibleTypes = new [] { typeof(string) })] + public string MigrationOperationId { get => _migrationOperationInputBody.MigrationOperationId ?? null; set => _migrationOperationInputBody.MigrationOperationId = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// + /// Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or + /// the portal. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _sqlDbInstanceName; + + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"sqlDbInstanceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Path)] + public string SqlDbInstanceName { get => this._sqlDbInstanceName; set => this._sqlDbInstanceName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// Subscription ID that identifies an Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription ID that identifies an Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription ID that identifies an Azure subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private string _targetDbName; + + /// The name of the target database. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the target database.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the target database.", + SerializedName = @"targetDbName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Path)] + public string TargetDbName { get => this._targetDbName; set => this._targetDbName = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of InvokeAzDataMigrationRetryToSqlDb_RetryExpanded + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets.InvokeAzDataMigrationRetryToSqlDb_RetryExpanded Clone() + { + var clone = new InvokeAzDataMigrationRetryToSqlDb_RetryExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._migrationOperationInputBody = this._migrationOperationInputBody; + clone.ResourceGroupName = this.ResourceGroupName; + clone.SqlDbInstanceName = this.SqlDbInstanceName; + clone.TargetDbName = this.TargetDbName; + clone.SubscriptionId = this.SubscriptionId; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public InvokeAzDataMigrationRetryToSqlDb_RetryExpanded() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DatabaseMigrationsSqlDbRetry' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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.DatabaseMigrationsSqlDbRetry(ResourceGroupName, SqlDbInstanceName, TargetDbName, SubscriptionId, _migrationOperationInputBody, 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=_migrationOperationInputBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // 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=_migrationOperationInputBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + } + } +} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationRetryToSqlDb_RetryViaIdentity.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationRetryToSqlDb_RetryViaIdentity.cs new file mode 100644 index 000000000000..c0410d509b7e --- /dev/null +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationRetryToSqlDb_RetryViaIdentity.cs @@ -0,0 +1,455 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; + using System; + + /// Retry on going migration for the database. + /// + /// [OpenAPI] Retry=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/retry" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzDataMigrationRetryToSqlDb_RetryViaIdentity", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Retry on going migration for the database.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/retry", ApiVersion = "2025-06-30")] + public partial class InvokeAzDataMigrationRetryToSqlDb_RetryViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DataMigration Client => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// 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.Api20250630.IMigrationOperationInput _migrationOperationInput; + + /// Migration Operation Input + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Migration Operation Input", ValueFromPipeline = true)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Migration Operation Input", + SerializedName = @"migrationOperationInput", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput MigrationOperationInput { get => this._migrationOperationInput; set => this._migrationOperationInput = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of InvokeAzDataMigrationRetryToSqlDb_RetryViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets.InvokeAzDataMigrationRetryToSqlDb_RetryViaIdentity Clone() + { + var clone = new InvokeAzDataMigrationRetryToSqlDb_RetryViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.MigrationOperationInput = this.MigrationOperationInput; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public InvokeAzDataMigrationRetryToSqlDb_RetryViaIdentity() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DatabaseMigrationsSqlDbRetry' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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; } + if (InputObject?.Id != null) + { + await this.Client.DatabaseMigrationsSqlDbRetryViaIdentity(InputObject.Id, MigrationOperationInput, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.SqlDbInstanceName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SqlDbInstanceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.TargetDbName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.TargetDbName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DatabaseMigrationsSqlDbRetry(InputObject.ResourceGroupName ?? null, InputObject.SqlDbInstanceName ?? null, InputObject.TargetDbName ?? null, InputObject.SubscriptionId ?? null, MigrationOperationInput, 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=MigrationOperationInput}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // 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=MigrationOperationInput }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + } + } +} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationRetryToSqlDb_RetryViaIdentityExpanded.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationRetryToSqlDb_RetryViaIdentityExpanded.cs new file mode 100644 index 000000000000..204a9daab966 --- /dev/null +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/InvokeAzDataMigrationRetryToSqlDb_RetryViaIdentityExpanded.cs @@ -0,0 +1,458 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; + using System; + + /// Retry on going migration for the database. + /// + /// [OpenAPI] Retry=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/retry" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsLifecycle.Invoke, @"AzDataMigrationRetryToSqlDb_RetryViaIdentityExpanded", SupportsShouldProcess = true)] + [global::System.Management.Automation.OutputType(typeof(bool))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Retry on going migration for the database.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/retry", ApiVersion = "2025-06-30")] + public partial class InvokeAzDataMigrationRetryToSqlDb_RetryViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// Migration Operation Input + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput _migrationOperationInputBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.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)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DataMigration Client => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// ID tracking migration operation. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "ID tracking migration operation.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"ID tracking migration operation.", + SerializedName = @"migrationOperationId", + PossibleTypes = new [] { typeof(string) })] + public string MigrationOperationId { get => _migrationOperationInputBody.MigrationOperationId ?? null; set => _migrationOperationInputBody.MigrationOperationId = value; } + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of InvokeAzDataMigrationRetryToSqlDb_RetryViaIdentityExpanded + /// + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets.InvokeAzDataMigrationRetryToSqlDb_RetryViaIdentityExpanded Clone() + { + var clone = new InvokeAzDataMigrationRetryToSqlDb_RetryViaIdentityExpanded(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone._migrationOperationInputBody = this._migrationOperationInputBody; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public InvokeAzDataMigrationRetryToSqlDb_RetryViaIdentityExpanded() + { + + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DatabaseMigrationsSqlDbRetry' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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; } + if (InputObject?.Id != null) + { + await this.Client.DatabaseMigrationsSqlDbRetryViaIdentity(InputObject.Id, _migrationOperationInputBody, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.SqlDbInstanceName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SqlDbInstanceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.TargetDbName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.TargetDbName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DatabaseMigrationsSqlDbRetry(InputObject.ResourceGroupName ?? null, InputObject.SqlDbInstanceName ?? null, InputObject.TargetDbName ?? null, InputObject.SubscriptionId ?? null, _migrationOperationInputBody, 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=_migrationOperationInputBody}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // 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=_migrationOperationInputBody }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + } + } +} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationSqlServiceAuthKey_RegenerateExpanded.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationSqlServiceAuthKey_RegenerateExpanded.cs index 363e769f2bd9..ef577b35ef05 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationSqlServiceAuthKey_RegenerateExpanded.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationSqlServiceAuthKey_RegenerateExpanded.cs @@ -16,10 +16,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDataMigrationSqlServiceAuthKey_RegenerateExpanded", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("This is a SQL Service resource and can only be accessed using cmdlets that have SqlService in their name. (For example Get-AzDataMigrationSqlService should be used to access a data migration SQL Service and NOT Get-AzDataMigrationService)")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeys))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeys))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Regenerate a new set of Authentication Keys for Self Hosted Integration Runtime.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/regenerateAuthKeys", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/regenerateAuthKeys", ApiVersion = "2025-06-30")] public partial class NewAzDataMigrationSqlServiceAuthKey_RegenerateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -38,7 +38,7 @@ 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.Api20250315Preview.IRegenAuthKeys _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.RegenAuthKeys(); + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeys _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.RegenAuthKeys(); /// The first authentication key. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The first authentication key.")] @@ -206,12 +206,12 @@ public partial class NewAzDataMigrationSqlServiceAuthKey_RegenerateExpanded : gl /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeys + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeys /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -445,12 +445,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeys + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeys /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -462,7 +462,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IRegenAuthKeys + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IRegenAuthKeys WriteObject((await response)); } } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationSqlService_CreateExpanded.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationSqlService_CreateExpanded.cs index c91145375905..9ad17f0dfd42 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationSqlService_CreateExpanded.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationSqlService_CreateExpanded.cs @@ -14,10 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDataMigrationSqlService_CreateExpanded", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("This is a SQL Service resource and can only be accessed using cmdlets that have SqlService in their name. (For example Get-AzDataMigrationSqlService should be used to access a data migration SQL Service and NOT Get-AzDataMigrationService)")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Create or Update Database Migration Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}", ApiVersion = "2025-06-30")] public partial class NewAzDataMigrationSqlService_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -36,7 +36,7 @@ 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.Api20250315Preview.ISqlMigrationService _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationService(); + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationService(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -208,12 +208,12 @@ public partial class NewAzDataMigrationSqlService_CreateExpanded : global::Syste /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -501,12 +501,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -518,7 +518,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService WriteObject((await response)); } } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationToSqlDb_CreateExpanded.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationToSqlDb_CreateExpanded.cs index 686bea702392..219c7f384916 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationToSqlDb_CreateExpanded.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationToSqlDb_CreateExpanded.cs @@ -18,10 +18,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDataMigrationToSqlDb_CreateExpanded", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("Only use cmdlets containing ToSqlDb in their name for getting or stopping or deleting a migration created using New-AzDataMigrationToSqlDb")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Create a new database migration to a given SQL Db. This command can migrate data from the selected source database tables to the target database tables. If the target database have no table existing, please use [New-AzDataMigrationSqlServerSchema](https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationsqlserverschema) command to migrate schema objects from source database to target databse.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", ApiVersion = "2025-06-30")] public partial class NewAzDataMigrationToSqlDb_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -40,7 +40,7 @@ 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.Api20250315Preview.IDatabaseMigrationSqlDb _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationSqlDb(); + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationSqlDb(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -425,12 +425,12 @@ public partial class NewAzDataMigrationToSqlDb_CreateExpanded : global::System.M /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -719,12 +719,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -736,7 +736,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlDb + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb WriteObject((await response)); } } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationToSqlManagedInstance_CreateExpanded.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationToSqlManagedInstance_CreateExpanded.cs index 6fbfad71a92e..ed06dfd8f06c 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationToSqlManagedInstance_CreateExpanded.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationToSqlManagedInstance_CreateExpanded.cs @@ -15,10 +15,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDataMigrationToSqlManagedInstance_CreateExpanded", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("Only use cmdlets containing ToSqlManagedInstance in their name for getting or deleting or performing cutover on a migration created using New-AzDataMigrationToSqlManagedInstance")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Create a new database migration to a given SQL Managed Instance.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", ApiVersion = "2025-06-30")] public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -37,7 +37,7 @@ 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.Api20250315Preview.IDatabaseMigrationSqlMi _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationSqlMi(); + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationSqlMi(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -499,12 +499,12 @@ public partial class NewAzDataMigrationToSqlManagedInstance_CreateExpanded : glo /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -793,12 +793,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -810,7 +810,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi WriteObject((await response)); } } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationToSqlVM_CreateExpanded.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationToSqlVM_CreateExpanded.cs index 0ac419202316..1f64b818024a 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationToSqlVM_CreateExpanded.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/NewAzDataMigrationToSqlVM_CreateExpanded.cs @@ -14,10 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDataMigrationToSqlVM_CreateExpanded", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("Only use cmdlets containing ToSqlVM in their name for getting or deleting or performing cutover on a migration created using New-AzDataMigrationToSqlVM")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Create a new database migration to a given SQL VM.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", ApiVersion = "2025-06-30")] public partial class NewAzDataMigrationToSqlVM_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -36,7 +36,7 @@ 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.Api20250315Preview.IDatabaseMigrationSqlVM _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DatabaseMigrationSqlVM(); + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DatabaseMigrationSqlVM(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -504,12 +504,12 @@ public partial class NewAzDataMigrationToSqlVM_CreateExpanded : global::System.M /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -798,12 +798,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -815,7 +815,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlVM + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM WriteObject((await response)); } } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlServiceNode_DeleteExpanded.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlServiceNode_DeleteExpanded.cs index 63f7afaead33..0e831aee1dec 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlServiceNode_DeleteExpanded.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlServiceNode_DeleteExpanded.cs @@ -14,10 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDataMigrationSqlServiceNode_DeleteExpanded", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("This is a SQL Service resource and can only be accessed using cmdlets that have SqlService in their name. (For example Get-AzDataMigrationSqlService should be used to access a data migration SQL Service and NOT Get-AzDataMigrationService)")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Delete the integration runtime node.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/deleteNode", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/deleteNode", ApiVersion = "2025-06-30")] public partial class RemoveAzDataMigrationSqlServiceNode_DeleteExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -36,7 +36,7 @@ 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.Api20250315Preview.IDeleteNode _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DeleteNode(); + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DeleteNode(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -193,12 +193,12 @@ public partial class RemoveAzDataMigrationSqlServiceNode_DeleteExpanded : global /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -432,12 +432,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -449,7 +449,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode WriteObject((await response)); } } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlServiceNode_DeleteViaIdentityExpanded.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlServiceNode_DeleteViaIdentityExpanded.cs index ee82d98f4306..ed0a54f70181 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlServiceNode_DeleteViaIdentityExpanded.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlServiceNode_DeleteViaIdentityExpanded.cs @@ -14,10 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDataMigrationSqlServiceNode_DeleteViaIdentityExpanded", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("This is a SQL Service resource and can only be accessed using cmdlets that have SqlService in their name. (For example Get-AzDataMigrationSqlService should be used to access a data migration SQL Service and NOT Get-AzDataMigrationService)")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Delete the integration runtime node.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/deleteNode", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}/deleteNode", ApiVersion = "2025-06-30")] public partial class RemoveAzDataMigrationSqlServiceNode_DeleteViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -36,7 +36,7 @@ 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.Api20250315Preview.IDeleteNode _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.DeleteNode(); + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.DeleteNode(); /// Wait for .NET debugger to attach [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] @@ -152,12 +152,12 @@ public partial class RemoveAzDataMigrationSqlServiceNode_DeleteViaIdentityExpand /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -411,12 +411,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -428,7 +428,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDeleteNode + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDeleteNode WriteObject((await response)); } } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlService_Delete.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlService_Delete.cs index b6dbcf2eaf1d..248f1f6a77b0 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlService_Delete.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlService_Delete.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Delete Database Migration Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}", ApiVersion = "2025-06-30")] public partial class RemoveAzDataMigrationSqlService_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlService_DeleteViaIdentity.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlService_DeleteViaIdentity.cs index d7a0d7b6dc95..68cdc77af91d 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlService_DeleteViaIdentity.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationSqlService_DeleteViaIdentity.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Delete Database Migration Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}", ApiVersion = "2025-06-30")] public partial class RemoveAzDataMigrationSqlService_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlDb_Delete.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlDb_Delete.cs index 3a691980edc4..4083581e465f 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlDb_Delete.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlDb_Delete.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Remove the specified database migration for a given SQL Db.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", ApiVersion = "2025-06-30")] public partial class RemoveAzDataMigrationToSqlDb_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlDb_DeleteViaIdentity.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlDb_DeleteViaIdentity.cs index 35a6194fe09d..551a9d22d57a 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlDb_DeleteViaIdentity.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlDb_DeleteViaIdentity.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Remove the specified database migration for a given SQL Db.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", ApiVersion = "2025-06-30")] public partial class RemoveAzDataMigrationToSqlDb_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlManagedInstance_Delete.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlManagedInstance_Delete.cs new file mode 100644 index 000000000000..b773728faed7 --- /dev/null +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlManagedInstance_Delete.cs @@ -0,0 +1,563 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; + using System; + + /// Delete Database Migration resource. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDataMigrationToSqlManagedInstance_Delete", SupportsShouldProcess = true)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("Only use cmdlets containing ToSqlManagedInstance in their name for getting or deleting or performing cutover on a migration created using New-AzDataMigrationToSqlManagedInstance")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Delete Database Migration resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", ApiVersion = "2025-06-30")] + public partial class RemoveAzDataMigrationToSqlManagedInstance_Delete : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DataMigration Client => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private global::System.Management.Automation.SwitchParameter _force; + + /// + /// Optional force delete boolean. If this is provided as true, migration will be deleted even if active. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional force delete boolean. If this is provided as true, migration will be deleted even if active.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional force delete boolean. If this is provided as true, migration will be deleted even if active.", + SerializedName = @"force", + PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Query)] + public global::System.Management.Automation.SwitchParameter Force { get => this._force; set => this._force = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// Backing field for property. + private string _managedInstanceName; + + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"managedInstanceName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Path)] + public string ManagedInstanceName { get => this._managedInstanceName; set => this._managedInstanceName = value; } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// + /// Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or + /// the portal. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// Subscription ID that identifies an Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription ID that identifies an Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription ID that identifies an Azure subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private string _targetDbName; + + /// The name of the target database. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the target database.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the target database.", + SerializedName = @"targetDbName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Path)] + public string TargetDbName { get => this._targetDbName; set => this._targetDbName = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzDataMigrationToSqlManagedInstance_Delete + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets.RemoveAzDataMigrationToSqlManagedInstance_Delete Clone() + { + var clone = new RemoveAzDataMigrationToSqlManagedInstance_Delete(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ResourceGroupName = this.ResourceGroupName; + clone.ManagedInstanceName = this.ManagedInstanceName; + clone.TargetDbName = this.TargetDbName; + clone.Force = this.Force; + clone.SubscriptionId = this.SubscriptionId; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DatabaseMigrationsSqlMiDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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.DatabaseMigrationsSqlMiDelete(ResourceGroupName, ManagedInstanceName, TargetDbName, this.InvocationInformation.BoundParameters.ContainsKey("Force") ? Force : default(global::System.Management.Automation.SwitchParameter?), SubscriptionId, onOk, onNoContent, 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,Force=this.InvocationInformation.BoundParameters.ContainsKey("Force") ? Force : default(global::System.Management.Automation.SwitchParameter?),SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzDataMigrationToSqlManagedInstance_Delete() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // 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, Force=this.InvocationInformation.BoundParameters.ContainsKey("Force") ? Force : default(global::System.Management.Automation.SwitchParameter?), SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlManagedInstance_DeleteViaIdentity.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlManagedInstance_DeleteViaIdentity.cs new file mode 100644 index 000000000000..d79c5e7944ab --- /dev/null +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlManagedInstance_DeleteViaIdentity.cs @@ -0,0 +1,531 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; + using System; + + /// Delete Database Migration resource. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDataMigrationToSqlManagedInstance_DeleteViaIdentity", SupportsShouldProcess = true)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("Only use cmdlets containing ToSqlManagedInstance in their name for getting or deleting or performing cutover on a migration created using New-AzDataMigrationToSqlManagedInstance")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Delete Database Migration resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", ApiVersion = "2025-06-30")] + public partial class RemoveAzDataMigrationToSqlManagedInstance_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DataMigration Client => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private global::System.Management.Automation.SwitchParameter _force; + + /// + /// Optional force delete boolean. If this is provided as true, migration will be deleted even if active. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional force delete boolean. If this is provided as true, migration will be deleted even if active.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional force delete boolean. If this is provided as true, migration will be deleted even if active.", + SerializedName = @"force", + PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Query)] + public global::System.Management.Automation.SwitchParameter Force { get => this._force; set => this._force = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// + /// a duplicate instance of RemoveAzDataMigrationToSqlManagedInstance_DeleteViaIdentity + /// + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets.RemoveAzDataMigrationToSqlManagedInstance_DeleteViaIdentity Clone() + { + var clone = new RemoveAzDataMigrationToSqlManagedInstance_DeleteViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.Force = this.Force; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DatabaseMigrationsSqlMiDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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; } + if (InputObject?.Id != null) + { + await this.Client.DatabaseMigrationsSqlMiDeleteViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("Force") ? Force : default(global::System.Management.Automation.SwitchParameter?), onOk, onNoContent, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.ManagedInstanceName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ManagedInstanceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.TargetDbName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.TargetDbName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DatabaseMigrationsSqlMiDelete(InputObject.ResourceGroupName ?? null, InputObject.ManagedInstanceName ?? null, InputObject.TargetDbName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("Force") ? Force : default(global::System.Management.Automation.SwitchParameter?), InputObject.SubscriptionId ?? null, onOk, onNoContent, 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 { Force=this.InvocationInformation.BoundParameters.ContainsKey("Force") ? Force : default(global::System.Management.Automation.SwitchParameter?)}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzDataMigrationToSqlManagedInstance_DeleteViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // 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 { Force=this.InvocationInformation.BoundParameters.ContainsKey("Force") ? Force : default(global::System.Management.Automation.SwitchParameter?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlVM_Delete.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlVM_Delete.cs new file mode 100644 index 000000000000..bc4b56254fe3 --- /dev/null +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlVM_Delete.cs @@ -0,0 +1,563 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; + using System; + + /// Delete Database Migration resource. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDataMigrationToSqlVM_Delete", SupportsShouldProcess = true)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("Only use cmdlets containing ToSqlVM in their name for getting or deleting or performing cutover on a migration created using New-AzDataMigrationToSqlVM")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Delete Database Migration resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", ApiVersion = "2025-06-30")] + public partial class RemoveAzDataMigrationToSqlVM_Delete : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DataMigration Client => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private global::System.Management.Automation.SwitchParameter _force; + + /// + /// Optional force delete boolean. If this is provided as true, migration will be deleted even if active. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional force delete boolean. If this is provided as true, migration will be deleted even if active.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional force delete boolean. If this is provided as true, migration will be deleted even if active.", + SerializedName = @"force", + PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Query)] + public global::System.Management.Automation.SwitchParameter Force { get => this._force; set => this._force = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// Backing field for property. + private string _resourceGroupName; + + /// + /// Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or + /// the portal. + /// + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.", + SerializedName = @"resourceGroupName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Path)] + public string ResourceGroupName { get => this._resourceGroupName; set => this._resourceGroupName = value; } + + /// Backing field for property. + private string _sqlVirtualMachineName; + + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = ".")] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"", + SerializedName = @"sqlVirtualMachineName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Path)] + public string SqlVirtualMachineName { get => this._sqlVirtualMachineName; set => this._sqlVirtualMachineName = value; } + + /// Backing field for property. + private string _subscriptionId; + + /// Subscription ID that identifies an Azure subscription. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Subscription ID that identifies an Azure subscription.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"Subscription ID that identifies an Azure subscription.", + SerializedName = @"subscriptionId", + PossibleTypes = new [] { typeof(string) })] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.DefaultInfo( + Name = @"", + Description =@"", + Script = @"(Get-AzContext).Subscription.Id")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Path)] + public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } + + /// Backing field for property. + private string _targetDbName; + + /// The name of the target database. + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The name of the target database.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( + Required = true, + ReadOnly = false, + Description = @"The name of the target database.", + SerializedName = @"targetDbName", + PossibleTypes = new [] { typeof(string) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Path)] + public string TargetDbName { get => this._targetDbName; set => this._targetDbName = value; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzDataMigrationToSqlVM_Delete + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets.RemoveAzDataMigrationToSqlVM_Delete Clone() + { + var clone = new RemoveAzDataMigrationToSqlVM_Delete(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.ResourceGroupName = this.ResourceGroupName; + clone.SqlVirtualMachineName = this.SqlVirtualMachineName; + clone.TargetDbName = this.TargetDbName; + clone.Force = this.Force; + clone.SubscriptionId = this.SubscriptionId; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DatabaseMigrationsSqlVMDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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.DatabaseMigrationsSqlVMDelete(ResourceGroupName, SqlVirtualMachineName, TargetDbName, this.InvocationInformation.BoundParameters.ContainsKey("Force") ? Force : default(global::System.Management.Automation.SwitchParameter?), SubscriptionId, onOk, onNoContent, 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,Force=this.InvocationInformation.BoundParameters.ContainsKey("Force") ? Force : default(global::System.Management.Automation.SwitchParameter?),SubscriptionId=SubscriptionId}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzDataMigrationToSqlVM_Delete() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // 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, Force=this.InvocationInformation.BoundParameters.ContainsKey("Force") ? Force : default(global::System.Management.Automation.SwitchParameter?), SubscriptionId=SubscriptionId }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlVM_DeleteViaIdentity.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlVM_DeleteViaIdentity.cs new file mode 100644 index 000000000000..cdf9ccdf1cb1 --- /dev/null +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/RemoveAzDataMigrationToSqlVM_DeleteViaIdentity.cs @@ -0,0 +1,529 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Extensions; + using System; + + /// Delete Database Migration resource. + /// + /// [OpenAPI] Delete=>DELETE:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}" + /// + [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Remove, @"AzDataMigrationToSqlVM_DeleteViaIdentity", SupportsShouldProcess = true)] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("Only use cmdlets containing ToSqlVM in their name for getting or deleting or performing cutover on a migration created using New-AzDataMigrationToSqlVM")] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM))] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Delete Database Migration resource.")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}", ApiVersion = "2025-06-30")] + public partial class RemoveAzDataMigrationToSqlVM_DeleteViaIdentity : global::System.Management.Automation.PSCmdlet, + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener + { + /// A unique id generatd for the this cmdlet when it is instantiated. + private string __correlationId = System.Guid.NewGuid().ToString(); + + /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) + private global::System.Management.Automation.InvocationInfo __invocationInfo; + + /// A unique id generatd for the this cmdlet when ProcessRecord() is called. + private string __processRecordId; + + /// + /// The for this operation. + /// + private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); + + /// when specified, runs this cmdlet as a PowerShell job + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter AsJob { get; set; } + + /// Wait for .NET debugger to attach + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter Break { get; set; } + + /// The reference to the client API class. + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.DataMigration Client => Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.ClientAPI; + + /// + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] + [global::System.Management.Automation.ValidateNotNull] + [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Azure)] + public global::System.Management.Automation.PSObject DefaultProfile { get; set; } + + /// Backing field for property. + private global::System.Management.Automation.SwitchParameter _force; + + /// + /// Optional force delete boolean. If this is provided as true, migration will be deleted even if active. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional force delete boolean. If this is provided as true, migration will be deleted even if active.")] + [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Optional force delete boolean. If this is provided as true, migration will be deleted even if active.", + SerializedName = @"force", + PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Query)] + public global::System.Management.Automation.SwitchParameter Force { get => this._force; set => this._force = value; } + + /// SendAsync Pipeline Steps to be appended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } + + /// SendAsync Pipeline Steps to be prepended to the front of the pipeline + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity _inputObject; + + /// Identity Parameter + [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Path)] + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.IDataMigrationIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } + + /// Accessor for our copy of the InvocationInfo. + public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } + + /// + /// cancellation delegate. Stops the cmdlet when called. + /// + global::System.Action Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; + + /// cancellation token. + global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Token => _cancellationTokenSource.Token; + + /// + /// when specified, will make the remote call, and return an AsyncOperationResponse, letting the remote operation continue + /// asynchronously. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command asynchronously")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter NoWait { get; set; } + + /// + /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter PassThru { get; set; } + + /// + /// The instance of the that the remote call will use. + /// + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.HttpPipeline Pipeline { get; set; } + + /// The URI for the proxy server to use + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Uri Proxy { get; set; } + + /// Credentials for a proxy server to use for the remote call + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] + [global::System.Management.Automation.ValidateNotNull] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } + + /// Use the default credentials for the proxy + [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.ParameterCategory.Runtime)] + public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } + + /// + /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what + /// happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onDefault method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of + /// what happens on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// /// Determines if the rest of the onNoContent method should be processed, or if the method should + /// return immediately (set to true to skip further processing ) + + partial void overrideOnNoContent(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens + /// on that response. Implement this method in a partial class to enable this behavior + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM + /// from the remote call + /// /// Determines if the rest of the onOk method should be processed, or if the method should return + /// immediately (set to true to skip further processing ) + + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + + /// + /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) + /// + protected override void BeginProcessing() + { + var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.GetTelemetryId.Invoke(); + if (telemetryId != "" && telemetryId != "internal") + { + __correlationId = telemetryId; + } + Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); + if (Break) + { + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.AttachDebugger.Break(); + } + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + } + + /// Creates a duplicate instance of this cmdlet (via JSON serialization). + /// a duplicate instance of RemoveAzDataMigrationToSqlVM_DeleteViaIdentity + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets.RemoveAzDataMigrationToSqlVM_DeleteViaIdentity Clone() + { + var clone = new RemoveAzDataMigrationToSqlVM_DeleteViaIdentity(); + clone.__correlationId = this.__correlationId; + clone.__processRecordId = this.__processRecordId; + clone.DefaultProfile = this.DefaultProfile; + clone.InvocationInformation = this.InvocationInformation; + clone.Proxy = this.Proxy; + clone.Pipeline = this.Pipeline; + clone.AsJob = this.AsJob; + clone.Break = this.Break; + clone.ProxyCredential = this.ProxyCredential; + clone.ProxyUseDefaultCredentials = this.ProxyUseDefaultCredentials; + clone.HttpPipelinePrepend = this.HttpPipelinePrepend; + clone.HttpPipelineAppend = this.HttpPipelineAppend; + clone.Force = this.Force; + return clone; + } + + /// Performs clean-up after the command execution + protected override void EndProcessing() + { + var telemetryInfo = Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.GetTelemetryInfo?.Invoke(__correlationId); + if (telemetryInfo != null) + { + telemetryInfo.TryGetValue("ShowSecretsWarning", out var showSecretsWarning); + telemetryInfo.TryGetValue("SanitizedProperties", out var sanitizedProperties); + telemetryInfo.TryGetValue("InvocationName", out var invocationName); + if (showSecretsWarning == "true") + { + if (string.IsNullOrEmpty(sanitizedProperties)) + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing secrets. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + else + { + WriteWarning($"The output of cmdlet {invocationName} may compromise security by showing the following secrets: {sanitizedProperties}. Learn more at https://go.microsoft.com/fwlink/?linkid=2258844"); + } + } + } + } + + /// Handles/Dispatches events during the call to the REST service. + /// The message id + /// The message cancellation token. When this call is cancelled, this should be true + /// Detailed message data for the message event. + /// + /// A that will be complete when handling of the message is completed. + /// + async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) + { + using( NoSynchronizationContext ) + { + if (token.IsCancellationRequested) + { + return ; + } + + switch ( id ) + { + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Verbose: + { + WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Warning: + { + WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Information: + { + // When an operation supports asjob, Information messages must go thru verbose. + WriteVerbose($"INFORMATION: {(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Debug: + { + WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.Error: + { + WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); + return ; + } + case Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.DelayBeforePolling: + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("NoWait")) + { + var data = messageData(); + if (data.ResponseMessage is System.Net.Http.HttpResponseMessage response) + { + var asyncOperation = response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = response.GetFirstHeader(@"Location"); + var uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? response.RequestMessage.RequestUri.AbsoluteUri : location : asyncOperation; + WriteObject(new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.AsyncOperationResponse { Target = uri }); + // do nothing more. + data.Cancel(); + return; + } + } + break; + } + } + await Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); + if (token.IsCancellationRequested) + { + return ; + } + WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); + } + } + + /// Performs execution of the command. + protected override void ProcessRecord() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + __processRecordId = System.Guid.NewGuid().ToString(); + try + { + // work + if (ShouldProcess($"Call remote 'DatabaseMigrationsSqlVMDelete' operation")) + { + if (true == MyInvocation?.BoundParameters?.ContainsKey("AsJob")) + { + var instance = this.Clone(); + var job = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.AsyncJob(instance, this.MyInvocation.Line, this.MyInvocation.MyCommand.Name, this._cancellationTokenSource.Token, this._cancellationTokenSource.Cancel); + JobRepository.Add(job); + var task = instance.ProcessRecordAsync(); + job.Monitor(task); + WriteObject(job); + } + else + { + using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token) ) + { + asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token); + } + } + } + } + catch (global::System.AggregateException aggregateException) + { + // unroll the inner exceptions to get the root cause + foreach( var innerException in aggregateException.Flatten().InnerExceptions ) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + } + catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + // Write exception out to error channel. + WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); + } + finally + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletProcessRecordEnd).Wait(); + } + } + + /// Performs execution of the command, working asynchronously if required. + /// + /// A that will be complete when handling of the method is completed. + /// + protected async global::System.Threading.Tasks.Task ProcessRecordAsync() + { + using( NoSynchronizationContext ) + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } + Pipeline = Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); + if (null != HttpPipelinePrepend) + { + Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); + } + if (null != HttpPipelineAppend) + { + Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); + } + // get the client instance + 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; } + if (InputObject?.Id != null) + { + await this.Client.DatabaseMigrationsSqlVMDeleteViaIdentity(InputObject.Id, this.InvocationInformation.BoundParameters.ContainsKey("Force") ? Force : default(global::System.Management.Automation.SwitchParameter?), onOk, onNoContent, onDefault, this, Pipeline); + } + else + { + // try to call with PATH parameters from Input Object + if (null == InputObject.ResourceGroupName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.SqlVirtualMachineName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SqlVirtualMachineName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.TargetDbName) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.TargetDbName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + if (null == InputObject.SubscriptionId) + { + ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); + } + await this.Client.DatabaseMigrationsSqlVMDelete(InputObject.ResourceGroupName ?? null, InputObject.SqlVirtualMachineName ?? null, InputObject.TargetDbName ?? null, this.InvocationInformation.BoundParameters.ContainsKey("Force") ? Force : default(global::System.Management.Automation.SwitchParameter?), InputObject.SubscriptionId ?? null, onOk, onNoContent, 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 { Force=this.InvocationInformation.BoundParameters.ContainsKey("Force") ? Force : default(global::System.Management.Automation.SwitchParameter?)}) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } + }); + } + finally + { + await ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.Events.CmdletProcessRecordAsyncEnd); + } + } + } + + /// + /// Intializes a new instance of the cmdlet class. + /// + public RemoveAzDataMigrationToSqlVM_DeleteViaIdentity() + { + + } + + /// Interrupts currently running code within the command. + protected override void StopProcessing() + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener)this).Cancel(); + base.StopProcessing(); + } + + /// + new protected void WriteObject(object sendToPipeline) + { + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline); + } + + /// + /// + new protected void WriteObject(object sendToPipeline, bool enumerateCollection) + { + Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Module.Instance.SanitizeOutput?.Invoke(sendToPipeline, __correlationId); + base.WriteObject(sendToPipeline, enumerateCollection); + } + + /// + /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). + /// + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnDefault(responseMessage, ref _returnNow); + // if overrideOnDefault has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // 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 { Force=this.InvocationInformation.BoundParameters.ContainsKey("Force") ? Force : default(global::System.Management.Automation.SwitchParameter?) }) + { + ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } + }); + } + } + + /// a delegate that is called when the remote service returns 204 (NoContent). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onNoContent(global::System.Net.Http.HttpResponseMessage responseMessage) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnNoContent(responseMessage, ref _returnNow); + // if overrideOnNoContent has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onNoContent - response for 204 / + if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) + { + WriteObject(true); + } + } + } + + /// a delegate that is called when the remote service returns 200 (OK). + /// the raw response message as an global::System.Net.Http.HttpResponseMessage. + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM + /// from the remote call + /// + /// A that will be complete when handling of the method is completed. + /// + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + { + using( NoSynchronizationContext ) + { + var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); + overrideOnOk(responseMessage, response, ref _returnNow); + // if overrideOnOk has returned true, then return right away. + if ((null != _returnNow && await _returnNow)) + { + return ; + } + // onOk - response for 200 / application/json + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlVM + WriteObject((await response)); + } + } + } +} \ No newline at end of file diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/StopAzDataMigrationToSqlDb_CancelExpanded.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/StopAzDataMigrationToSqlDb_CancelExpanded.cs index 212c76d7e305..ed1c06414cf2 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/StopAzDataMigrationToSqlDb_CancelExpanded.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/StopAzDataMigrationToSqlDb_CancelExpanded.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Stop in-progress database migration to SQL Db.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{sqlDbInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel", ApiVersion = "2025-06-30")] public partial class StopAzDataMigrationToSqlDb_CancelExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -36,7 +36,7 @@ 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.Api20250315Preview.IMigrationOperationInput _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationOperationInput(); + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationOperationInput(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/StopAzDataMigrationToSqlManagedInstance_CancelExpanded.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/StopAzDataMigrationToSqlManagedInstance_CancelExpanded.cs index 8c289f793761..52724d614fec 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/StopAzDataMigrationToSqlManagedInstance_CancelExpanded.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/StopAzDataMigrationToSqlManagedInstance_CancelExpanded.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Stop in-progress database migration to SQL Managed Instance.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel", ApiVersion = "2025-06-30")] public partial class StopAzDataMigrationToSqlManagedInstance_CancelExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -36,7 +36,7 @@ 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.Api20250315Preview.IMigrationOperationInput _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationOperationInput(); + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationOperationInput(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/StopAzDataMigrationToSqlVM_CancelExpanded.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/StopAzDataMigrationToSqlVM_CancelExpanded.cs index e65f67cee1c1..a45c39a7eb83 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/StopAzDataMigrationToSqlVM_CancelExpanded.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/StopAzDataMigrationToSqlVM_CancelExpanded.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Stop in-progress database migration to SQL VM.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel", ApiVersion = "2025-06-30")] public partial class StopAzDataMigrationToSqlVM_CancelExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -36,7 +36,7 @@ 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.Api20250315Preview.IMigrationOperationInput _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.MigrationOperationInput(); + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IMigrationOperationInput _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.MigrationOperationInput(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/UpdateAzDataMigrationSqlService_UpdateExpanded.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/UpdateAzDataMigrationSqlService_UpdateExpanded.cs index 57beb277e34c..113c608b5e1d 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/UpdateAzDataMigrationSqlService_UpdateExpanded.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/UpdateAzDataMigrationSqlService_UpdateExpanded.cs @@ -14,10 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDataMigrationSqlService_UpdateExpanded", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("This is a SQL Service resource and can only be accessed using cmdlets that have SqlService in their name. (For example Get-AzDataMigrationSqlService should be used to access a data migration SQL Service and NOT Get-AzDataMigrationService)")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Update Database Migration Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}", ApiVersion = "2025-06-30")] public partial class UpdateAzDataMigrationSqlService_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -36,7 +36,7 @@ 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.Api20250315Preview.ISqlMigrationServiceUpdate _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationServiceUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdate _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationServiceUpdate(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -179,8 +179,8 @@ public partial class UpdateAzDataMigrationSqlService_UpdateExpanded : global::Sy ReadOnly = false, Description = @"Dictionary of ", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.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 @@ -197,12 +197,12 @@ public partial class UpdateAzDataMigrationSqlService_UpdateExpanded : global::Sy /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -490,12 +490,12 @@ public UpdateAzDataMigrationSqlService_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -507,7 +507,7 @@ public UpdateAzDataMigrationSqlService_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService WriteObject((await response)); } } diff --git a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/UpdateAzDataMigrationSqlService_UpdateViaIdentityExpanded.cs b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/UpdateAzDataMigrationSqlService_UpdateViaIdentityExpanded.cs index 3e74aa1a2833..516f9648fe34 100644 --- a/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/UpdateAzDataMigrationSqlService_UpdateViaIdentityExpanded.cs +++ b/generated/DataMigration/DataMigration.Autorest/generated/cmdlets/UpdateAzDataMigrationSqlService_UpdateViaIdentityExpanded.cs @@ -14,10 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Cmdlets /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDataMigrationSqlService_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.PreviewMessage("This is a SQL Service resource and can only be accessed using cmdlets that have SqlService in their name. (For example Get-AzDataMigrationSqlService should be used to access a data migration SQL Service and NOT Get-AzDataMigrationService)")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Description(@"Update Database Migration Service.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}", ApiVersion = "2025-03-15-preview")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataMigration.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataMigration/sqlMigrationServices/{sqlMigrationServiceName}", ApiVersion = "2025-06-30")] public partial class UpdateAzDataMigrationSqlService_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Runtime.IEventListener { @@ -36,7 +36,7 @@ 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.Api20250315Preview.ISqlMigrationServiceUpdate _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.SqlMigrationServiceUpdate(); + private Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdate _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.SqlMigrationServiceUpdate(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -137,8 +137,8 @@ public partial class UpdateAzDataMigrationSqlService_UpdateViaIdentityExpanded : ReadOnly = false, Description = @"Dictionary of ", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationServiceUpdateTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationServiceUpdateTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.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 @@ -155,12 +155,12 @@ public partial class UpdateAzDataMigrationSqlService_UpdateViaIdentityExpanded : /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -467,12 +467,12 @@ public UpdateAzDataMigrationSqlService_UpdateViaIdentityExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -484,7 +484,7 @@ public UpdateAzDataMigrationSqlService_UpdateViaIdentityExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.ISqlMigrationService + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService WriteObject((await response)); } } diff --git a/generated/DataMigration/DataMigration.Autorest/internal/Get-AzDataMigrationOperation.ps1 b/generated/DataMigration/DataMigration.Autorest/internal/Get-AzDataMigrationOperation.ps1 index b0815e0dc3bb..b9e5e8d2d52d 100644 --- a/generated/DataMigration/DataMigration.Autorest/internal/Get-AzDataMigrationOperation.ps1 +++ b/generated/DataMigration/DataMigration.Autorest/internal/Get-AzDataMigrationOperation.ps1 @@ -25,12 +25,12 @@ Lists all of the available SQL Migration REST API operations. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinition +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinition .Link https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationoperation #> function Get-AzDataMigrationOperation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinition])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinition])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter()] diff --git a/generated/DataMigration/DataMigration.Autorest/internal/New-AzDataMigrationToSqlManagedInstance.ps1 b/generated/DataMigration/DataMigration.Autorest/internal/New-AzDataMigrationToSqlManagedInstance.ps1 index 6e7b85e6518e..35bdde090aeb 100644 --- a/generated/DataMigration/DataMigration.Autorest/internal/New-AzDataMigrationToSqlManagedInstance.ps1 +++ b/generated/DataMigration/DataMigration.Autorest/internal/New-AzDataMigrationToSqlManagedInstance.ps1 @@ -31,12 +31,12 @@ New-AzDataMigrationToSqlManagedInstance -ResourceGroupName "MyResourceGroup" -Ma New-AzDataMigrationToSqlManagedInstance -ResourceGroupName "MyResourceGroup" -ManagedInstanceName "MyManagedInstance" -TargetDbName "MyDb" -Kind "SqlMI" -Scope "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyResourceGroup/providers/Microsoft.Sql/managedInstances/MyManagedInstance" -MigrationService "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyRG/providers/Microsoft.DataMigration/SqlMigrationServices/MySqlMigrationService" -AzureBlobStorageAccountResourceId "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyResourceGroup/providers/Microsoft.Storage/storageAccounts/MyStorageAccount" -AzureBlobContainerName "container" -AzureBlobAccountKey "accountKey" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi .Link https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationtosqlmanagedinstance #> function New-AzDataMigrationToSqlManagedInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/generated/DataMigration/DataMigration.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/DataMigration/DataMigration.Autorest/internal/ProxyCmdletDefinitions.ps1 index d5f3735fcbe3..791ab6c37486 100644 --- a/generated/DataMigration/DataMigration.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/DataMigration/DataMigration.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -25,12 +25,12 @@ Lists all of the available SQL Migration REST API operations. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinition +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinition .Link https://learn.microsoft.com/powershell/module/az.datamigration/get-azdatamigrationoperation #> function Get-AzDataMigrationOperation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IOperationsDefinition])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IOperationsDefinition])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter()] @@ -147,12 +147,12 @@ New-AzDataMigrationToSqlManagedInstance -ResourceGroupName "MyResourceGroup" -Ma New-AzDataMigrationToSqlManagedInstance -ResourceGroupName "MyResourceGroup" -ManagedInstanceName "MyManagedInstance" -TargetDbName "MyDb" -Kind "SqlMI" -Scope "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyResourceGroup/providers/Microsoft.Sql/managedInstances/MyManagedInstance" -MigrationService "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyRG/providers/Microsoft.DataMigration/SqlMigrationServices/MySqlMigrationService" -AzureBlobStorageAccountResourceId "/subscriptions/0000-1111-2222-3333-4444/resourceGroups/MyResourceGroup/providers/Microsoft.Storage/storageAccounts/MyStorageAccount" -AzureBlobContainerName "container" -AzureBlobAccountKey "accountKey" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi +Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi .Link https://learn.microsoft.com/powershell/module/az.datamigration/new-azdatamigrationtosqlmanagedinstance #> function New-AzDataMigrationToSqlManagedInstance { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250315Preview.IDatabaseMigrationSqlMi])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlMi])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)]