From 3f586f7471882022ac12684862452164eca08726 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 29 Nov 2018 23:21:12 +0000 Subject: [PATCH 1/5] Generated from 8df81ff4db8d52205d98f35ff08e76c54099842c Adding sync scenarios to public preview swagger --- .../lib/dataMigrationServiceClientContext.ts | 2 - .../lib/models/filesMappers.ts | 28 +- .../arm-datamigration/lib/models/index.ts | 1195 ++++++++++- .../arm-datamigration/lib/models/mappers.ts | 1854 +++++++++++++---- .../lib/models/parameters.ts | 2 + .../lib/models/projectsMappers.ts | 28 +- .../lib/models/servicesMappers.ts | 28 +- .../lib/models/tasksMappers.ts | 30 +- 8 files changed, 2677 insertions(+), 490 deletions(-) diff --git a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts index 29bdcb443e9e..2ed0b46a7982 100644 --- a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts +++ b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts @@ -17,7 +17,6 @@ const packageVersion = "0.1.0"; export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; - apiVersion?: string; subscriptionId: string; /** @@ -44,7 +43,6 @@ export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceC super(credentials, options); - this.apiVersion = '2018-07-15-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/packages/@azure/arm-datamigration/lib/models/filesMappers.ts b/packages/@azure/arm-datamigration/lib/models/filesMappers.ts index 46ceb3913e71..230713a64638 100644 --- a/packages/@azure/arm-datamigration/lib/models/filesMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/filesMappers.ts @@ -49,9 +49,13 @@ export { MongoDbFinishCommandInput, MongoDbFinishCommand, MongoDbRestartCommand, + MigrateMISyncCompleteCommandProperties, + MigrateMISyncCompleteCommandInput, + MigrateMISyncCompleteCommandOutput, MigrateSyncCompleteCommandProperties, MigrateSyncCompleteCommandInput, MigrateSyncCompleteCommandOutput, + MiSqlConnectionInfo, PostgreSqlConnectionInfo, MongoDbConnectionInfo, GetTdeCertificatesSqlTaskProperties, @@ -71,9 +75,14 @@ export { MongoDbError, MongoDbDatabaseProgress, MongoDbCollectionProgress, + ValidateMigrationInputSqlServerSqlMISyncTaskProperties, + ValidateMigrationInputSqlServerSqlMISyncTaskInput, + SqlServerSqlMISyncTaskInput, + MigrateSqlServerSqlMIDatabaseInput, + AzureActiveDirectoryApp, + ValidateMigrationInputSqlServerSqlMISyncTaskOutput, ValidateMigrationInputSqlServerSqlMITaskProperties, ValidateMigrationInputSqlServerSqlMITaskInput, - MigrateSqlServerSqlMIDatabaseInput, BlobShare, ValidateMigrationInputSqlServerSqlMITaskOutput, DatabaseBackupInfo, @@ -97,6 +106,9 @@ export { MigrateSqlServerSqlDbDatabaseInput, MigrateSqlServerSqlDbTaskProperties, MigrateSqlServerSqlDbTaskOutput, + MigrateSqlServerSqlMISyncTaskInput, + MigrateSqlServerSqlMISyncTaskProperties, + MigrateSqlServerSqlMISyncTaskOutput, MigrateSqlServerSqlMITaskInput, MigrateSqlServerSqlMITaskProperties, MigrateSqlServerSqlMITaskOutput, @@ -104,6 +116,9 @@ export { ConnectToTargetAzureDbForMySqlTaskProperties, ConnectToTargetAzureDbForMySqlTaskInput, ConnectToTargetAzureDbForMySqlTaskOutput, + ConnectToTargetSqlMISyncTaskProperties, + ConnectToTargetSqlMISyncTaskInput, + ConnectToTargetSqlMISyncTaskOutput, ConnectToTargetSqlMITaskProperties, ConnectToTargetSqlMITaskInput, ConnectToTargetSqlMITaskOutput, @@ -114,11 +129,17 @@ export { GetUserTablesSqlTaskProperties, GetUserTablesSqlTaskInput, GetUserTablesSqlTaskOutput, + ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties, + ConnectToTargetAzureDbForPostgreSqlSyncTaskInput, + ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput, ConnectToTargetSqlSqlDbSyncTaskProperties, ConnectToTargetSqlSqlDbSyncTaskInput, ConnectToTargetSqlDbTaskOutput, ConnectToTargetSqlDbTaskProperties, ConnectToTargetSqlDbTaskInput, + ConnectToSourcePostgreSqlSyncTaskProperties, + ConnectToSourcePostgreSqlSyncTaskInput, + ConnectToSourcePostgreSqlSyncTaskOutput, ConnectToSourceSqlServerSyncTaskProperties, ConnectToSourceSqlServerTaskInput, ConnectToSourceSqlServerTaskOutput, @@ -154,6 +175,11 @@ export { MigrationValidationResult, MigrationValidationDatabaseSummaryResult, MigrationReportResult, + MigrateSqlServerSqlMISyncTaskOutputError, + MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel, + BackupSetInfo, + BackupFileInfo, + MigrateSqlServerSqlMISyncTaskOutputMigrationLevel, MigrateSqlServerSqlMITaskOutputError, MigrateSqlServerSqlMITaskOutputLoginLevel, MigrateSqlServerSqlMITaskOutputAgentJobLevel, diff --git a/packages/@azure/arm-datamigration/lib/models/index.ts b/packages/@azure/arm-datamigration/lib/models/index.ts index b8b709373af4..a4cd2e5dc4a3 100644 --- a/packages/@azure/arm-datamigration/lib/models/index.ts +++ b/packages/@azure/arm-datamigration/lib/models/index.ts @@ -174,11 +174,12 @@ export interface ReportableException { /** * @interface - * An interface representing MigrateSyncCompleteCommandOutput. - * Output for command that completes sync migration for a database. + * An interface representing MigrateMISyncCompleteCommandOutput. + * Output for command that completes sync migration for a managed instance + * database. * */ -export interface MigrateSyncCompleteCommandOutput { +export interface MigrateMISyncCompleteCommandOutput { /** * @member {ReportableException[]} [errors] List of errors that happened * during the command execution @@ -188,25 +189,22 @@ export interface MigrateSyncCompleteCommandOutput { /** * @interface - * An interface representing MigrateSyncCompleteCommandInput. - * Input for command that completes sync migration for a database. + * An interface representing MigrateMISyncCompleteCommandInput. + * Input for command that completes sync migration for a managed instance + * database. * */ -export interface MigrateSyncCompleteCommandInput { - /** - * @member {string} databaseName Name of database - */ - databaseName: string; +export interface MigrateMISyncCompleteCommandInput { /** - * @member {Date} [commitTimeStamp] Time stamp to complete + * @member {string} sourceDatabaseName Name of managed instance database */ - commitTimeStamp?: Date; + sourceDatabaseName: string; } /** * Contains the possible cases for CommandProperties. */ -export type CommandPropertiesUnion = CommandProperties | MigrateSyncCompleteCommandProperties | MongoDbCancelCommand | MongoDbFinishCommand | MongoDbRestartCommand; +export type CommandPropertiesUnion = CommandProperties | MigrateMISyncCompleteCommandProperties | MigrateSyncCompleteCommandProperties | MongoDbCancelCommand | MongoDbFinishCommand | MongoDbRestartCommand; /** * @interface @@ -237,6 +235,85 @@ export interface CommandProperties { readonly state?: CommandState; } +/** + * @interface + * An interface representing MigrateMISyncCompleteCommandProperties. + * Properties for the command that completes sync migration for a managed + * instance database. + * + */ +export interface MigrateMISyncCompleteCommandProperties { + /** + * @member {string} commandType Polymorphic Discriminator + */ + commandType: "Migrate.SqlServer.AzureDbSqlMi.Complete"; + /** + * @member {ODataError[]} [errors] Array of errors. This is ignored if + * submitted. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly errors?: ODataError[]; + /** + * @member {CommandState} [state] The state of the command. This is ignored + * if submitted. Possible values include: 'Unknown', 'Accepted', 'Running', + * 'Succeeded', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly state?: CommandState; + /** + * @member {MigrateMISyncCompleteCommandInput} [input] Command input + */ + input?: MigrateMISyncCompleteCommandInput; + /** + * @member {MigrateMISyncCompleteCommandOutput} [output] Command output. This + * is ignored if submitted. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly output?: MigrateMISyncCompleteCommandOutput; +} + +/** + * @interface + * An interface representing MigrateSyncCompleteCommandOutput. + * Output for command that completes sync migration for a database. + * + */ +export interface MigrateSyncCompleteCommandOutput { + /** + * @member {string} [id] Result identifier + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {ReportableException[]} [errors] List of errors that happened + * during the command execution + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly errors?: ReportableException[]; +} + +/** + * @interface + * An interface representing MigrateSyncCompleteCommandInput. + * Input for command that completes sync migration for a database. + * + */ +export interface MigrateSyncCompleteCommandInput { + /** + * @member {string} databaseName Name of database + */ + databaseName: string; + /** + * @member {Date} [commitTimeStamp] Time stamp to complete + */ + commitTimeStamp?: Date; +} + /** * @interface * An interface representing MigrateSyncCompleteCommandProperties. @@ -342,7 +419,7 @@ export interface FileShare { /** * Contains the possible cases for ConnectionInfo. */ -export type ConnectionInfoUnion = ConnectionInfo | PostgreSqlConnectionInfo | MySqlConnectionInfo | MongoDbConnectionInfo | SqlConnectionInfo; +export type ConnectionInfoUnion = ConnectionInfo | MiSqlConnectionInfo | PostgreSqlConnectionInfo | MySqlConnectionInfo | MongoDbConnectionInfo | SqlConnectionInfo; /** * @interface @@ -365,6 +442,33 @@ export interface ConnectionInfo { password?: string; } +/** + * @interface + * An interface representing MiSqlConnectionInfo. + * Properties required to create a connection to Azure SQL database Managed + * instance + * + */ +export interface MiSqlConnectionInfo { + /** + * @member {string} type Polymorphic Discriminator + */ + type: "MiSqlConnectionInfo"; + /** + * @member {string} [userName] User name + */ + userName?: string; + /** + * @member {string} [password] Password credential. + */ + password?: string; + /** + * @member {string} managedInstanceResourceId Resource id for Azure SQL + * database Managed instance + */ + managedInstanceResourceId: string; +} + /** * @interface * An interface representing PostgreSqlConnectionInfo. @@ -534,7 +638,7 @@ export interface GetTdeCertificatesSqlTaskInput { /** * Contains the possible cases for ProjectTaskProperties. */ -export type ProjectTaskPropertiesUnion = ProjectTaskProperties | GetTdeCertificatesSqlTaskProperties | ValidateMongoDbTaskProperties | ValidateMigrationInputSqlServerSqlMITaskProperties | ValidateMigrationInputSqlServerSqlDbSyncTaskProperties | MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties | MigrateMySqlAzureDbForMySqlSyncTaskProperties | MigrateSqlServerSqlDbSyncTaskProperties | MigrateSqlServerSqlDbTaskProperties | MigrateSqlServerSqlMITaskProperties | MigrateMongoDbTaskProperties | ConnectToTargetAzureDbForMySqlTaskProperties | ConnectToTargetSqlMITaskProperties | GetUserTablesSqlSyncTaskProperties | GetUserTablesSqlTaskProperties | ConnectToTargetSqlSqlDbSyncTaskProperties | ConnectToTargetSqlDbTaskProperties | ConnectToSourceSqlServerSyncTaskProperties | ConnectToSourceSqlServerTaskProperties | ConnectToMongoDbTaskProperties | ConnectToSourceMySqlTaskProperties | MigrateSchemaSqlServerSqlDbTaskProperties; +export type ProjectTaskPropertiesUnion = ProjectTaskProperties | GetTdeCertificatesSqlTaskProperties | ValidateMongoDbTaskProperties | ValidateMigrationInputSqlServerSqlMISyncTaskProperties | ValidateMigrationInputSqlServerSqlMITaskProperties | ValidateMigrationInputSqlServerSqlDbSyncTaskProperties | MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties | MigrateMySqlAzureDbForMySqlSyncTaskProperties | MigrateSqlServerSqlDbSyncTaskProperties | MigrateSqlServerSqlDbTaskProperties | MigrateSqlServerSqlMISyncTaskProperties | MigrateSqlServerSqlMITaskProperties | MigrateMongoDbTaskProperties | ConnectToTargetAzureDbForMySqlTaskProperties | ConnectToTargetSqlMISyncTaskProperties | ConnectToTargetSqlMITaskProperties | GetUserTablesSqlSyncTaskProperties | GetUserTablesSqlTaskProperties | ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties | ConnectToTargetSqlSqlDbSyncTaskProperties | ConnectToTargetSqlDbTaskProperties | ConnectToSourcePostgreSqlSyncTaskProperties | ConnectToSourceSqlServerSyncTaskProperties | ConnectToSourceSqlServerTaskProperties | ConnectToMongoDbTaskProperties | ConnectToSourceMySqlTaskProperties | MigrateSchemaSqlServerSqlDbTaskProperties; /** * @interface @@ -983,6 +1087,189 @@ export interface ValidateMongoDbTaskProperties { readonly output?: MongoDbMigrationProgress[]; } +/** + * @interface + * An interface representing ValidateMigrationInputSqlServerSqlMISyncTaskOutput. + * Output for task that validates migration input for Azure SQL Database + * Managed Instance online migration + * + */ +export interface ValidateMigrationInputSqlServerSqlMISyncTaskOutput { + /** + * @member {string} [id] Database identifier + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [name] Name of database + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly name?: string; + /** + * @member {ReportableException[]} [validationErrors] Errors associated with + * a selected database object + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly validationErrors?: ReportableException[]; +} + +/** + * @interface + * An interface representing AzureActiveDirectoryApp. + * Azure Active Directory Application + * + */ +export interface AzureActiveDirectoryApp { + /** + * @member {string} applicationId Application ID of the Azure Active + * Directory Application + */ + applicationId: string; + /** + * @member {string} appKey Key used to authenticate to the Azure Active + * Directory Application + */ + appKey: string; + /** + * @member {string} tenantId Tenant id of the customer + */ + tenantId: string; +} + +/** + * @interface + * An interface representing MigrateSqlServerSqlMIDatabaseInput. + * Database specific information for SQL to Azure SQL DB Managed Instance + * migration task inputs + * + */ +export interface MigrateSqlServerSqlMIDatabaseInput { + /** + * @member {string} name Name of the database + */ + name: string; + /** + * @member {string} restoreDatabaseName Name of the database at destination + */ + restoreDatabaseName: string; + /** + * @member {FileShare} [backupFileShare] Backup file share information for + * backing up this database. + */ + backupFileShare?: FileShare; + /** + * @member {string[]} [backupFilePaths] The list of backup files to be used + * in case of existing backups. + */ + backupFilePaths?: string[]; +} + +/** + * @interface + * An interface representing SqlServerSqlMISyncTaskInput. + * Input for task that migrates SQL Server databases to Azure SQL Database + * Managed Instance online scenario. + * + */ +export interface SqlServerSqlMISyncTaskInput { + /** + * @member {MigrateSqlServerSqlMIDatabaseInput[]} selectedDatabases Databases + * to migrate + */ + selectedDatabases: MigrateSqlServerSqlMIDatabaseInput[]; + /** + * @member {FileShare} [backupFileShare] Backup file share information for + * all selected databases. + */ + backupFileShare?: FileShare; + /** + * @member {string} storageResourceId Fully qualified resourceId of storage + */ + storageResourceId: string; + /** + * @member {SqlConnectionInfo} sourceConnectionInfo Connection information + * for source SQL Server + */ + sourceConnectionInfo: SqlConnectionInfo; + /** + * @member {MiSqlConnectionInfo} targetConnectionInfo Connection information + * for Azure SQL Database Managed Instance + */ + targetConnectionInfo: MiSqlConnectionInfo; + /** + * @member {AzureActiveDirectoryApp} azureApp Azure Active Directory + * Application the DMS instance will use to connect to the target instance of + * Azure SQL Database Managed Instance and the Azure Storage Account + */ + azureApp: AzureActiveDirectoryApp; +} + +/** + * @interface + * An interface representing ValidateMigrationInputSqlServerSqlMISyncTaskInput. + * Input for task that migrates SQL Server databases to Azure SQL Database + * Managed Instance online scenario. + * + * @extends SqlServerSqlMISyncTaskInput + */ +export interface ValidateMigrationInputSqlServerSqlMISyncTaskInput extends SqlServerSqlMISyncTaskInput { +} + +/** + * @interface + * An interface representing ValidateMigrationInputSqlServerSqlMISyncTaskProperties. + * Properties for task that validates migration input for SQL to Azure SQL + * Database Managed Instance sync scenario + * + */ +export interface ValidateMigrationInputSqlServerSqlMISyncTaskProperties { + /** + * @member {string} taskType Polymorphic Discriminator + */ + taskType: "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS"; + /** + * @member {ODataError[]} [errors] Array of errors. This is ignored if + * submitted. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly errors?: ODataError[]; + /** + * @member {TaskState} [state] The state of the task. This is ignored if + * submitted. Possible values include: 'Unknown', 'Queued', 'Running', + * 'Canceled', 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly state?: TaskState; + /** + * @member {CommandPropertiesUnion[]} [commands] Array of command properties. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly commands?: CommandPropertiesUnion[]; + /** + * @member {{ [propertyName: string]: string }} [clientData] Key value pairs + * of client data to attach meta data information to task + */ + clientData?: { [propertyName: string]: string }; + /** + * @member {ValidateMigrationInputSqlServerSqlMISyncTaskInput} [input] Task + * input + */ + input?: ValidateMigrationInputSqlServerSqlMISyncTaskInput; + /** + * @member {ValidateMigrationInputSqlServerSqlMISyncTaskOutput[]} [output] + * Task output. This is ignored if submitted. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly output?: ValidateMigrationInputSqlServerSqlMISyncTaskOutput[]; +} + /** * @interface * An interface representing DatabaseBackupInfo. @@ -1123,43 +1410,15 @@ export interface BlobShare { /** * @interface - * An interface representing MigrateSqlServerSqlMIDatabaseInput. - * Database specific information for SQL to Azure SQL DB Managed Instance - * migration task inputs + * An interface representing ValidateMigrationInputSqlServerSqlMITaskInput. + * Input for task that validates migration input for SQL to Azure SQL Managed + * Instance * */ -export interface MigrateSqlServerSqlMIDatabaseInput { +export interface ValidateMigrationInputSqlServerSqlMITaskInput { /** - * @member {string} name Name of the database - */ - name: string; - /** - * @member {string} restoreDatabaseName Name of the database at destination - */ - restoreDatabaseName: string; - /** - * @member {FileShare} [backupFileShare] Backup file share information for - * backing up this database. - */ - backupFileShare?: FileShare; - /** - * @member {string[]} [backupFilePaths] The list of backup files to be used - * in case of existing backups. - */ - backupFilePaths?: string[]; -} - -/** - * @interface - * An interface representing ValidateMigrationInputSqlServerSqlMITaskInput. - * Input for task that validates migration input for SQL to Azure SQL Managed - * Instance - * - */ -export interface ValidateMigrationInputSqlServerSqlMITaskInput { - /** - * @member {SqlConnectionInfo} sourceConnectionInfo Information for - * connecting to source + * @member {SqlConnectionInfo} sourceConnectionInfo Information for + * connecting to source */ sourceConnectionInfo: SqlConnectionInfo; /** @@ -1777,6 +2036,21 @@ export interface MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput { * Target database will be truncated before starting migration. */ targetDatabaseName?: string; + /** + * @member {{ [propertyName: string]: string }} [migrationSetting] Migration + * settings which tune the migration behavior + */ + migrationSetting?: { [propertyName: string]: string }; + /** + * @member {{ [propertyName: string]: string }} [sourceSetting] Source + * settings to tune source endpoint migration behavior + */ + sourceSetting?: { [propertyName: string]: string }; + /** + * @member {{ [propertyName: string]: string }} [targetSetting] Target + * settings to tune target endpoint migration behavior + */ + targetSetting?: { [propertyName: string]: string }; } /** @@ -2212,6 +2486,21 @@ export interface MigrateMySqlAzureDbForMySqlSyncDatabaseInput { * Target database will be truncated before starting migration. */ targetDatabaseName?: string; + /** + * @member {{ [propertyName: string]: string }} [migrationSetting] Migration + * settings which tune the migration behavior + */ + migrationSetting?: { [propertyName: string]: string }; + /** + * @member {{ [propertyName: string]: string }} [sourceSetting] Source + * settings to tune source endpoint migration behavior + */ + sourceSetting?: { [propertyName: string]: string }; + /** + * @member {{ [propertyName: string]: string }} [targetSetting] Target + * settings to tune target endpoint migration behavior + */ + targetSetting?: { [propertyName: string]: string }; } /** @@ -3675,6 +3964,377 @@ export interface MigrateSqlServerSqlDbTaskProperties { readonly output?: MigrateSqlServerSqlDbTaskOutputUnion[]; } +/** + * Contains the possible cases for MigrateSqlServerSqlMISyncTaskOutput. + */ +export type MigrateSqlServerSqlMISyncTaskOutputUnion = MigrateSqlServerSqlMISyncTaskOutput | MigrateSqlServerSqlMISyncTaskOutputError | MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel | MigrateSqlServerSqlMISyncTaskOutputMigrationLevel; + +/** + * @interface + * An interface representing MigrateSqlServerSqlMISyncTaskOutput. + * Output for task that migrates SQL Server databases to Azure SQL Database + * Managed Instance using Log Replay Service. + * + */ +export interface MigrateSqlServerSqlMISyncTaskOutput { + /** + * @member {string} resultType Polymorphic Discriminator + */ + resultType: "MigrateSqlServerSqlMISyncTaskOutput"; + /** + * @member {string} [id] Result identifier + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; +} + +/** + * @interface + * An interface representing MigrateSqlServerSqlMISyncTaskOutputError. + */ +export interface MigrateSqlServerSqlMISyncTaskOutputError { + /** + * @member {string} resultType Polymorphic Discriminator + */ + resultType: "ErrorOutput"; + /** + * @member {string} [id] Result identifier + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {ReportableException} [error] Migration error + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly error?: ReportableException; +} + +/** + * @interface + * An interface representing BackupFileInfo. + * Information of the backup file + * + */ +export interface BackupFileInfo { + /** + * @member {string} [fileLocation] Location of the backup file in shared + * folder + */ + fileLocation?: string; + /** + * @member {number} [familySequenceNumber] Sequence number of the backup file + * in the backup set + */ + familySequenceNumber?: number; + /** + * @member {BackupFileStatus} [status] Status of the backup file during + * migration. Possible values include: 'Arrived', 'Queued', 'Uploading', + * 'Uploaded', 'Restoring', 'Restored', 'Cancelled' + */ + status?: BackupFileStatus; +} + +/** + * @interface + * An interface representing BackupSetInfo. + * Information of backup set + * + */ +export interface BackupSetInfo { + /** + * @member {string} [backupSetId] Id for the set of backup files + */ + backupSetId?: string; + /** + * @member {string} [firstLsn] First log sequence number of the backup file + */ + firstLsn?: string; + /** + * @member {string} [lastLsn] Last log sequence number of the backup file + */ + lastLsn?: string; + /** + * @member {Date} [lastModifiedTime] Last modified time of the backup file in + * share location + */ + lastModifiedTime?: Date; + /** + * @member {BackupType} [backupType] Enum of the different backup types. + * Possible values include: 'Database', 'TransactionLog', 'File', + * 'DifferentialDatabase', 'DifferentialFile', 'Partial', + * 'DifferentialPartial' + */ + backupType?: BackupType; + /** + * @member {BackupFileInfo[]} [listOfBackupFiles] List of files in the backup + * set + */ + listOfBackupFiles?: BackupFileInfo[]; + /** + * @member {string} [databaseName] Name of the database to which the backup + * set belongs + */ + databaseName?: string; + /** + * @member {Date} [backupStartDate] Date and time that the backup operation + * began + */ + backupStartDate?: Date; + /** + * @member {Date} [backupFinishedDate] Date and time that the backup + * operation finished + */ + backupFinishedDate?: Date; + /** + * @member {boolean} [isBackupRestored] Whether the backup set is restored or + * not + */ + isBackupRestored?: boolean; +} + +/** + * @interface + * An interface representing MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel. + */ +export interface MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel { + /** + * @member {string} resultType Polymorphic Discriminator + */ + resultType: "DatabaseLevelOutput"; + /** + * @member {string} [id] Result identifier + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [sourceDatabaseName] Name of the database + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly sourceDatabaseName?: string; + /** + * @member {DatabaseMigrationState} [migrationState] Current state of + * database. Possible values include: 'UNDEFINED', 'INITIAL', + * 'FULL_BACKUP_UPLOAD_START', 'LOG_SHIPPING_START', + * 'UPLOAD_LOG_FILES_START', 'CUTOVER_START', 'POST_CUTOVER_COMPLETE', + * 'COMPLETED', 'CANCELLED', 'FAILED' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly migrationState?: DatabaseMigrationState; + /** + * @member {Date} [startedOn] Database migration start time + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly startedOn?: Date; + /** + * @member {Date} [endedOn] Database migration end time + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly endedOn?: Date; + /** + * @member {BackupSetInfo} [fullBackupSetInfo] Details of full backup set + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly fullBackupSetInfo?: BackupSetInfo; + /** + * @member {BackupSetInfo} [lastRestoredBackupSetInfo] Last applied backup + * set information + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly lastRestoredBackupSetInfo?: BackupSetInfo; + /** + * @member {BackupSetInfo[]} [activeBackupSets] Backup sets that are + * currently active (Either being uploaded or getting restored) + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly activeBackupSets?: BackupSetInfo[]; + /** + * @member {string} [containerName] Name of container created in the Azure + * Storage account where backups are copied to + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly containerName?: string; + /** + * @member {string} [errorPrefix] prefix string to use for querying errors + * for this database + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly errorPrefix?: string; + /** + * @member {boolean} [isFullBackupRestored] Whether full backup has been + * applied to the target database or not + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly isFullBackupRestored?: boolean; + /** + * @member {ReportableException[]} [exceptionsAndWarnings] Migration + * exceptions and warnings + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly exceptionsAndWarnings?: ReportableException[]; +} + +/** + * @interface + * An interface representing MigrateSqlServerSqlMISyncTaskOutputMigrationLevel. + */ +export interface MigrateSqlServerSqlMISyncTaskOutputMigrationLevel { + /** + * @member {string} resultType Polymorphic Discriminator + */ + resultType: "MigrationLevelOutput"; + /** + * @member {string} [id] Result identifier + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {number} [databaseCount] Count of databases + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly databaseCount?: number; + /** + * @member {MigrationState} [state] Current state of migration. Possible + * values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', + * 'Skipped', 'Stopped' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly state?: MigrationState; + /** + * @member {Date} [startedOn] Migration start time + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly startedOn?: Date; + /** + * @member {Date} [endedOn] Migration end time + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly endedOn?: Date; + /** + * @member {string} [sourceServerName] Source server name + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly sourceServerName?: string; + /** + * @member {string} [sourceServerVersion] Source server version + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly sourceServerVersion?: string; + /** + * @member {string} [sourceServerBrandVersion] Source server brand version + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly sourceServerBrandVersion?: string; + /** + * @member {string} [targetServerName] Target server name + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly targetServerName?: string; + /** + * @member {string} [targetServerVersion] Target server version + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly targetServerVersion?: string; + /** + * @member {string} [targetServerBrandVersion] Target server brand version + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly targetServerBrandVersion?: string; + /** + * @member {number} [databaseErrorCount] Number of database level errors + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly databaseErrorCount?: number; +} + +/** + * @interface + * An interface representing MigrateSqlServerSqlMISyncTaskInput. + * Input for task that migrates SQL Server databases to Azure SQL Database + * Managed Instance online scenario. + * + * @extends SqlServerSqlMISyncTaskInput + */ +export interface MigrateSqlServerSqlMISyncTaskInput extends SqlServerSqlMISyncTaskInput { +} + +/** + * @interface + * An interface representing MigrateSqlServerSqlMISyncTaskProperties. + * Properties for task that migrates SQL Server databases to Azure SQL Database + * Managed Instance sync scenario + * + */ +export interface MigrateSqlServerSqlMISyncTaskProperties { + /** + * @member {string} taskType Polymorphic Discriminator + */ + taskType: "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS"; + /** + * @member {ODataError[]} [errors] Array of errors. This is ignored if + * submitted. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly errors?: ODataError[]; + /** + * @member {TaskState} [state] The state of the task. This is ignored if + * submitted. Possible values include: 'Unknown', 'Queued', 'Running', + * 'Canceled', 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly state?: TaskState; + /** + * @member {CommandPropertiesUnion[]} [commands] Array of command properties. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly commands?: CommandPropertiesUnion[]; + /** + * @member {{ [propertyName: string]: string }} [clientData] Key value pairs + * of client data to attach meta data information to task + */ + clientData?: { [propertyName: string]: string }; + /** + * @member {MigrateSqlServerSqlMISyncTaskInput} [input] Task input + */ + input?: MigrateSqlServerSqlMISyncTaskInput; + /** + * @member {MigrateSqlServerSqlMISyncTaskOutputUnion[]} [output] Task output. + * This is ignored if submitted. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly output?: MigrateSqlServerSqlMISyncTaskOutputUnion[]; +} + /** * Contains the possible cases for MigrateSqlServerSqlMITaskOutput. */ @@ -4166,11 +4826,121 @@ export interface MigrateSqlServerSqlMITaskProperties { * Properties for the task that migrates data between MongoDB data sources * */ -export interface MigrateMongoDbTaskProperties { +export interface MigrateMongoDbTaskProperties { + /** + * @member {string} taskType Polymorphic Discriminator + */ + taskType: "Migrate.MongoDb"; + /** + * @member {ODataError[]} [errors] Array of errors. This is ignored if + * submitted. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly errors?: ODataError[]; + /** + * @member {TaskState} [state] The state of the task. This is ignored if + * submitted. Possible values include: 'Unknown', 'Queued', 'Running', + * 'Canceled', 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly state?: TaskState; + /** + * @member {CommandPropertiesUnion[]} [commands] Array of command properties. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly commands?: CommandPropertiesUnion[]; + /** + * @member {{ [propertyName: string]: string }} [clientData] Key value pairs + * of client data to attach meta data information to task + */ + clientData?: { [propertyName: string]: string }; + /** + * @member {MongoDbMigrationSettings} [input] + */ + input?: MongoDbMigrationSettings; + /** + * @member {MongoDbProgress[]} [output] **NOTE: This property will not be + * serialized. It can only be populated by the server.** + */ + readonly output?: MongoDbProgress[]; +} + +/** + * @interface + * An interface representing ConnectToTargetAzureDbForMySqlTaskOutput. + * Output for the task that validates connection to Azure Database for MySQL + * and target server requirements + * + */ +export interface ConnectToTargetAzureDbForMySqlTaskOutput { + /** + * @member {string} [id] Result identifier + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [serverVersion] Version of the target server + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly serverVersion?: string; + /** + * @member {string[]} [databases] List of databases on target server + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly databases?: string[]; + /** + * @member {string} [targetServerBrandVersion] Target server brand version + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly targetServerBrandVersion?: string; + /** + * @member {ReportableException[]} [validationErrors] Validation errors + * associated with the task + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly validationErrors?: ReportableException[]; +} + +/** + * @interface + * An interface representing ConnectToTargetAzureDbForMySqlTaskInput. + * Input for the task that validates connection to Azure Database for MySQL and + * target server requirements + * + */ +export interface ConnectToTargetAzureDbForMySqlTaskInput { + /** + * @member {MySqlConnectionInfo} sourceConnectionInfo Connection information + * for source MySQL server + */ + sourceConnectionInfo: MySqlConnectionInfo; + /** + * @member {MySqlConnectionInfo} targetConnectionInfo Connection information + * for target Azure Database for MySQL server + */ + targetConnectionInfo: MySqlConnectionInfo; +} + +/** + * @interface + * An interface representing ConnectToTargetAzureDbForMySqlTaskProperties. + * Properties for the task that validates connection to Azure Database for + * MySQL and target server requirements + * + */ +export interface ConnectToTargetAzureDbForMySqlTaskProperties { /** * @member {string} taskType Polymorphic Discriminator */ - taskType: "Migrate.MongoDb"; + taskType: "ConnectToTarget.AzureDbForMySql"; /** * @member {ODataError[]} [errors] Array of errors. This is ignored if * submitted. @@ -4198,42 +4968,32 @@ export interface MigrateMongoDbTaskProperties { */ clientData?: { [propertyName: string]: string }; /** - * @member {MongoDbMigrationSettings} [input] + * @member {ConnectToTargetAzureDbForMySqlTaskInput} [input] Task input */ - input?: MongoDbMigrationSettings; + input?: ConnectToTargetAzureDbForMySqlTaskInput; /** - * @member {MongoDbProgress[]} [output] **NOTE: This property will not be - * serialized. It can only be populated by the server.** + * @member {ConnectToTargetAzureDbForMySqlTaskOutput[]} [output] Task output. + * This is ignored if submitted. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - readonly output?: MongoDbProgress[]; + readonly output?: ConnectToTargetAzureDbForMySqlTaskOutput[]; } /** * @interface - * An interface representing ConnectToTargetAzureDbForMySqlTaskOutput. - * Output for the task that validates connection to Azure Database for MySQL - * and target server requirements + * An interface representing ConnectToTargetSqlMISyncTaskOutput. + * Output for the task that validates connection to Azure SQL Database Managed + * Instance. * */ -export interface ConnectToTargetAzureDbForMySqlTaskOutput { - /** - * @member {string} [id] Result identifier - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly id?: string; - /** - * @member {string} [serverVersion] Version of the target server - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly serverVersion?: string; +export interface ConnectToTargetSqlMISyncTaskOutput { /** - * @member {string[]} [databases] List of databases on target server + * @member {string} [targetServerVersion] Target server version * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly databases?: string[]; + readonly targetServerVersion?: string; /** * @member {string} [targetServerBrandVersion] Target server brand version * **NOTE: This property will not be serialized. It can only be populated by @@ -4242,7 +5002,6 @@ export interface ConnectToTargetAzureDbForMySqlTaskOutput { readonly targetServerBrandVersion?: string; /** * @member {ReportableException[]} [validationErrors] Validation errors - * associated with the task * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ @@ -4251,36 +5010,37 @@ export interface ConnectToTargetAzureDbForMySqlTaskOutput { /** * @interface - * An interface representing ConnectToTargetAzureDbForMySqlTaskInput. - * Input for the task that validates connection to Azure Database for MySQL and - * target server requirements + * An interface representing ConnectToTargetSqlMISyncTaskInput. + * Input for the task that validates connection to Azure SQL Database Managed + * Instance online scenario. * */ -export interface ConnectToTargetAzureDbForMySqlTaskInput { +export interface ConnectToTargetSqlMISyncTaskInput { /** - * @member {MySqlConnectionInfo} sourceConnectionInfo Connection information - * for source MySQL server + * @member {MiSqlConnectionInfo} targetConnectionInfo Connection information + * for Azure SQL Database Managed Instance */ - sourceConnectionInfo: MySqlConnectionInfo; + targetConnectionInfo: MiSqlConnectionInfo; /** - * @member {MySqlConnectionInfo} targetConnectionInfo Connection information - * for target Azure Database for MySQL server + * @member {AzureActiveDirectoryApp} azureApp Azure Active Directory + * Application the DMS instance will use to connect to the target instance of + * Azure SQL Database Managed Instance and the Azure Storage Account */ - targetConnectionInfo: MySqlConnectionInfo; + azureApp: AzureActiveDirectoryApp; } /** * @interface - * An interface representing ConnectToTargetAzureDbForMySqlTaskProperties. - * Properties for the task that validates connection to Azure Database for - * MySQL and target server requirements + * An interface representing ConnectToTargetSqlMISyncTaskProperties. + * Properties for the task that validates connection to Azure SQL Database + * Managed Instance * */ -export interface ConnectToTargetAzureDbForMySqlTaskProperties { +export interface ConnectToTargetSqlMISyncTaskProperties { /** * @member {string} taskType Polymorphic Discriminator */ - taskType: "ConnectToTarget.AzureDbForMySql"; + taskType: "ConnectToTarget.AzureSqlDbMI.Sync.LRS"; /** * @member {ODataError[]} [errors] Array of errors. This is ignored if * submitted. @@ -4308,16 +5068,16 @@ export interface ConnectToTargetAzureDbForMySqlTaskProperties { */ clientData?: { [propertyName: string]: string }; /** - * @member {ConnectToTargetAzureDbForMySqlTaskInput} [input] Task input + * @member {ConnectToTargetSqlMISyncTaskInput} [input] Task input */ - input?: ConnectToTargetAzureDbForMySqlTaskInput; + input?: ConnectToTargetSqlMISyncTaskInput; /** - * @member {ConnectToTargetAzureDbForMySqlTaskOutput[]} [output] Task output. - * This is ignored if submitted. + * @member {ConnectToTargetSqlMISyncTaskOutput[]} [output] Task output. This + * is ignored if submitted. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly output?: ConnectToTargetAzureDbForMySqlTaskOutput[]; + readonly output?: ConnectToTargetSqlMISyncTaskOutput[]; } /** @@ -4669,6 +5429,119 @@ export interface GetUserTablesSqlTaskProperties { readonly output?: GetUserTablesSqlTaskOutput[]; } +/** + * @interface + * An interface representing ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput. + * Output for the task that validates connection to Azure Database for + * PostgreSQL and target server requirements + * + */ +export interface ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput { + /** + * @member {string} [id] Result identifier + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [targetServerVersion] Version of the target server + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly targetServerVersion?: string; + /** + * @member {string[]} [databases] List of databases on target server + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly databases?: string[]; + /** + * @member {string} [targetServerBrandVersion] Target server brand version + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly targetServerBrandVersion?: string; + /** + * @member {ReportableException[]} [validationErrors] Validation errors + * associated with the task + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly validationErrors?: ReportableException[]; +} + +/** + * @interface + * An interface representing ConnectToTargetAzureDbForPostgreSqlSyncTaskInput. + * Input for the task that validates connection to Azure Database for + * PostgreSQL and target server requirements + * + */ +export interface ConnectToTargetAzureDbForPostgreSqlSyncTaskInput { + /** + * @member {PostgreSqlConnectionInfo} sourceConnectionInfo Connection + * information for source PostgreSQL server + */ + sourceConnectionInfo: PostgreSqlConnectionInfo; + /** + * @member {PostgreSqlConnectionInfo} targetConnectionInfo Connection + * information for target Azure Database for PostgreSQL server + */ + targetConnectionInfo: PostgreSqlConnectionInfo; +} + +/** + * @interface + * An interface representing ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties. + * Properties for the task that validates connection to Azure Db For PostgreSql + * server and target server requirements for online migration + * + */ +export interface ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties { + /** + * @member {string} taskType Polymorphic Discriminator + */ + taskType: "ConnectToTarget.AzureDbForPostgreSql.Sync"; + /** + * @member {ODataError[]} [errors] Array of errors. This is ignored if + * submitted. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly errors?: ODataError[]; + /** + * @member {TaskState} [state] The state of the task. This is ignored if + * submitted. Possible values include: 'Unknown', 'Queued', 'Running', + * 'Canceled', 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly state?: TaskState; + /** + * @member {CommandPropertiesUnion[]} [commands] Array of command properties. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly commands?: CommandPropertiesUnion[]; + /** + * @member {{ [propertyName: string]: string }} [clientData] Key value pairs + * of client data to attach meta data information to task + */ + clientData?: { [propertyName: string]: string }; + /** + * @member {ConnectToTargetAzureDbForPostgreSqlSyncTaskInput} [input] Task + * input + */ + input?: ConnectToTargetAzureDbForPostgreSqlSyncTaskInput; + /** + * @member {ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput[]} [output] + * Task output. This is ignored if submitted. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly output?: ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput[]; +} + /** * @interface * An interface representing ConnectToTargetSqlDbTaskOutput. @@ -4841,6 +5714,113 @@ export interface ConnectToTargetSqlDbTaskProperties { readonly output?: ConnectToTargetSqlDbTaskOutput[]; } +/** + * @interface + * An interface representing ConnectToSourcePostgreSqlSyncTaskOutput. + * Output for the task that validates connection to PostgreSQL and source + * server requirements + * + */ +export interface ConnectToSourcePostgreSqlSyncTaskOutput { + /** + * @member {string} [id] Result identifier + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly id?: string; + /** + * @member {string} [sourceServerVersion] Version of the source server + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly sourceServerVersion?: string; + /** + * @member {string[]} [databases] List of databases on source server + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly databases?: string[]; + /** + * @member {string} [sourceServerBrandVersion] Source server brand version + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly sourceServerBrandVersion?: string; + /** + * @member {ReportableException[]} [validationErrors] Validation errors + * associated with the task + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly validationErrors?: ReportableException[]; +} + +/** + * @interface + * An interface representing ConnectToSourcePostgreSqlSyncTaskInput. + * Input for the task that validates connection to PostgreSQL and source server + * requirements + * + */ +export interface ConnectToSourcePostgreSqlSyncTaskInput { + /** + * @member {PostgreSqlConnectionInfo} sourceConnectionInfo Connection + * information for source PostgreSQL server + */ + sourceConnectionInfo: PostgreSqlConnectionInfo; +} + +/** + * @interface + * An interface representing ConnectToSourcePostgreSqlSyncTaskProperties. + * Properties for the task that validates connection to PostgreSql server and + * source server requirements for online migration + * + */ +export interface ConnectToSourcePostgreSqlSyncTaskProperties { + /** + * @member {string} taskType Polymorphic Discriminator + */ + taskType: "ConnectToSource.PostgreSql.Sync"; + /** + * @member {ODataError[]} [errors] Array of errors. This is ignored if + * submitted. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly errors?: ODataError[]; + /** + * @member {TaskState} [state] The state of the task. This is ignored if + * submitted. Possible values include: 'Unknown', 'Queued', 'Running', + * 'Canceled', 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly state?: TaskState; + /** + * @member {CommandPropertiesUnion[]} [commands] Array of command properties. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly commands?: CommandPropertiesUnion[]; + /** + * @member {{ [propertyName: string]: string }} [clientData] Key value pairs + * of client data to attach meta data information to task + */ + clientData?: { [propertyName: string]: string }; + /** + * @member {ConnectToSourcePostgreSqlSyncTaskInput} [input] Task input + */ + input?: ConnectToSourcePostgreSqlSyncTaskInput; + /** + * @member {ConnectToSourcePostgreSqlSyncTaskOutput[]} [output] Task output. + * This is ignored if submitted. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly output?: ConnectToSourcePostgreSqlSyncTaskOutput[]; +} + /** * @interface * An interface representing MigrationEligibilityInfo. @@ -6148,7 +7128,7 @@ export interface ConnectToSourceMySqlTaskInput { sourceConnectionInfo: MySqlConnectionInfo; /** * @member {MySqlTargetPlatformType} [targetPlatform] Target Platform for the - * migration. Possible values include: 'AzureDbForMySQL' + * migration. Possible values include: 'SqlServer', 'AzureDbForMySQL' */ targetPlatform?: MySqlTargetPlatformType; /** @@ -7579,6 +8559,25 @@ export type DatabaseMigrationStage = 'None' | 'Initialize' | 'Backup' | 'FileCop */ export type MigrationStatus = 'Default' | 'Connecting' | 'SourceAndTargetSelected' | 'SelectLogins' | 'Configured' | 'Running' | 'Error' | 'Stopped' | 'Completed' | 'CompletedWithWarnings'; +/** + * Defines values for BackupFileStatus. + * Possible values include: 'Arrived', 'Queued', 'Uploading', 'Uploaded', 'Restoring', 'Restored', + * 'Cancelled' + * @readonly + * @enum {string} + */ +export type BackupFileStatus = 'Arrived' | 'Queued' | 'Uploading' | 'Uploaded' | 'Restoring' | 'Restored' | 'Cancelled'; + +/** + * Defines values for DatabaseMigrationState. + * Possible values include: 'UNDEFINED', 'INITIAL', 'FULL_BACKUP_UPLOAD_START', + * 'LOG_SHIPPING_START', 'UPLOAD_LOG_FILES_START', 'CUTOVER_START', 'POST_CUTOVER_COMPLETE', + * 'COMPLETED', 'CANCELLED', 'FAILED' + * @readonly + * @enum {string} + */ +export type DatabaseMigrationState = 'UNDEFINED' | 'INITIAL' | 'FULL_BACKUP_UPLOAD_START' | 'LOG_SHIPPING_START' | 'UPLOAD_LOG_FILES_START' | 'CUTOVER_START' | 'POST_CUTOVER_COMPLETE' | 'COMPLETED' | 'CANCELLED' | 'FAILED'; + /** * Defines values for LoginMigrationStage. * Possible values include: 'None', 'Initialize', 'LoginMigration', 'EstablishUserMapping', @@ -7726,11 +8725,11 @@ export type ResourceSkuCapacityScaleType = 'Automatic' | 'Manual' | 'None'; /** * Defines values for MySqlTargetPlatformType. - * Possible values include: 'AzureDbForMySQL' + * Possible values include: 'SqlServer', 'AzureDbForMySQL' * @readonly * @enum {string} */ -export type MySqlTargetPlatformType = 'AzureDbForMySQL'; +export type MySqlTargetPlatformType = 'SqlServer' | 'AzureDbForMySQL'; /** * Defines values for SchemaMigrationOption. diff --git a/packages/@azure/arm-datamigration/lib/models/mappers.ts b/packages/@azure/arm-datamigration/lib/models/mappers.ts index 7563fcd069da..bd8a96ee2d3e 100644 --- a/packages/@azure/arm-datamigration/lib/models/mappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/mappers.ts @@ -220,11 +220,11 @@ export const ReportableException: msRest.CompositeMapper = { } }; -export const MigrateSyncCompleteCommandOutput: msRest.CompositeMapper = { - serializedName: "MigrateSyncCompleteCommandOutput", +export const MigrateMISyncCompleteCommandOutput: msRest.CompositeMapper = { + serializedName: "MigrateMISyncCompleteCommandOutput", type: { name: "Composite", - className: "MigrateSyncCompleteCommandOutput", + className: "MigrateMISyncCompleteCommandOutput", modelProperties: { errors: { serializedName: "errors", @@ -242,24 +242,18 @@ export const MigrateSyncCompleteCommandOutput: msRest.CompositeMapper = { } }; -export const MigrateSyncCompleteCommandInput: msRest.CompositeMapper = { - serializedName: "MigrateSyncCompleteCommandInput", +export const MigrateMISyncCompleteCommandInput: msRest.CompositeMapper = { + serializedName: "MigrateMISyncCompleteCommandInput", type: { name: "Composite", - className: "MigrateSyncCompleteCommandInput", + className: "MigrateMISyncCompleteCommandInput", modelProperties: { - databaseName: { + sourceDatabaseName: { required: true, - serializedName: "databaseName", + serializedName: "sourceDatabaseName", type: { name: "String" } - }, - commitTimeStamp: { - serializedName: "commitTimeStamp", - type: { - name: "DateTime" - } } } } @@ -307,6 +301,87 @@ export const CommandProperties: msRest.CompositeMapper = { } }; +export const MigrateMISyncCompleteCommandProperties: msRest.CompositeMapper = { + serializedName: "Migrate.SqlServer.AzureDbSqlMi.Complete", + type: { + name: "Composite", + polymorphicDiscriminator: CommandProperties.type.polymorphicDiscriminator, + uberParent: "CommandProperties", + className: "MigrateMISyncCompleteCommandProperties", + modelProperties: { + ...CommandProperties.type.modelProperties, + input: { + serializedName: "input", + type: { + name: "Composite", + className: "MigrateMISyncCompleteCommandInput" + } + }, + output: { + readOnly: true, + serializedName: "output", + type: { + name: "Composite", + className: "MigrateMISyncCompleteCommandOutput" + } + } + } + } +}; + +export const MigrateSyncCompleteCommandOutput: msRest.CompositeMapper = { + serializedName: "MigrateSyncCompleteCommandOutput", + type: { + name: "Composite", + className: "MigrateSyncCompleteCommandOutput", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + errors: { + readOnly: true, + serializedName: "errors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReportableException" + } + } + } + } + } + } +}; + +export const MigrateSyncCompleteCommandInput: msRest.CompositeMapper = { + serializedName: "MigrateSyncCompleteCommandInput", + type: { + name: "Composite", + className: "MigrateSyncCompleteCommandInput", + modelProperties: { + databaseName: { + required: true, + serializedName: "databaseName", + type: { + name: "String" + } + }, + commitTimeStamp: { + serializedName: "commitTimeStamp", + type: { + name: "DateTime" + } + } + } + } +}; + export const MigrateSyncCompleteCommandProperties: msRest.CompositeMapper = { serializedName: "Migrate.Sync.Complete.Database", type: { @@ -462,6 +537,26 @@ export const ConnectionInfo: msRest.CompositeMapper = { } }; +export const MiSqlConnectionInfo: msRest.CompositeMapper = { + serializedName: "MiSqlConnectionInfo", + type: { + name: "Composite", + polymorphicDiscriminator: ConnectionInfo.type.polymorphicDiscriminator, + uberParent: "ConnectionInfo", + className: "MiSqlConnectionInfo", + modelProperties: { + ...ConnectionInfo.type.modelProperties, + managedInstanceResourceId: { + required: true, + serializedName: "managedInstanceResourceId", + type: { + name: "String" + } + } + } + } +}; + export const PostgreSqlConnectionInfo: msRest.CompositeMapper = { serializedName: "PostgreSqlConnectionInfo", type: { @@ -1175,182 +1270,66 @@ export const ValidateMongoDbTaskProperties: msRest.CompositeMapper = { } }; -export const DatabaseBackupInfo: msRest.CompositeMapper = { - serializedName: "DatabaseBackupInfo", +export const ValidateMigrationInputSqlServerSqlMISyncTaskOutput: msRest.CompositeMapper = { + serializedName: "ValidateMigrationInputSqlServerSqlMISyncTaskOutput", type: { name: "Composite", - className: "DatabaseBackupInfo", + className: "ValidateMigrationInputSqlServerSqlMISyncTaskOutput", modelProperties: { - databaseName: { + id: { readOnly: true, - serializedName: "databaseName", + serializedName: "id", type: { name: "String" } }, - backupType: { + name: { readOnly: true, - serializedName: "backupType", + serializedName: "name", type: { name: "String" } }, - backupFiles: { + validationErrors: { readOnly: true, - serializedName: "backupFiles", + serializedName: "validationErrors", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "ReportableException" } } } - }, - position: { - readOnly: true, - serializedName: "position", - type: { - name: "Number" - } - }, - isDamaged: { - readOnly: true, - serializedName: "isDamaged", - type: { - name: "Boolean" - } - }, - isCompressed: { - readOnly: true, - serializedName: "isCompressed", - type: { - name: "Boolean" - } - }, - familyCount: { - readOnly: true, - serializedName: "familyCount", - type: { - name: "Number" - } - }, - backupFinishDate: { - readOnly: true, - serializedName: "backupFinishDate", - type: { - name: "DateTime" - } } } } }; -export const ValidateMigrationInputSqlServerSqlMITaskOutput: msRest.CompositeMapper = { - serializedName: "ValidateMigrationInputSqlServerSqlMITaskOutput", +export const AzureActiveDirectoryApp: msRest.CompositeMapper = { + serializedName: "AzureActiveDirectoryApp", type: { name: "Composite", - className: "ValidateMigrationInputSqlServerSqlMITaskOutput", + className: "AzureActiveDirectoryApp", modelProperties: { - id: { - readOnly: true, - serializedName: "id", + applicationId: { + required: true, + serializedName: "applicationId", type: { name: "String" } }, - name: { - readOnly: true, - serializedName: "name", + appKey: { + required: true, + serializedName: "appKey", type: { name: "String" } }, - restoreDatabaseNameErrors: { - readOnly: true, - serializedName: "restoreDatabaseNameErrors", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ReportableException" - } - } - } - }, - backupFolderErrors: { - readOnly: true, - serializedName: "backupFolderErrors", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ReportableException" - } - } - } - }, - backupShareCredentialsErrors: { - readOnly: true, - serializedName: "backupShareCredentialsErrors", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ReportableException" - } - } - } - }, - backupStorageAccountErrors: { - readOnly: true, - serializedName: "backupStorageAccountErrors", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ReportableException" - } - } - } - }, - existingBackupErrors: { - readOnly: true, - serializedName: "existingBackupErrors", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ReportableException" - } - } - } - }, - databaseBackupInfo: { - serializedName: "databaseBackupInfo", - type: { - name: "Composite", - className: "DatabaseBackupInfo" - } - } - } - } -}; - -export const BlobShare: msRest.CompositeMapper = { - serializedName: "BlobShare", - type: { - name: "Composite", - className: "BlobShare", - modelProperties: { - sasUri: { + tenantId: { required: true, - serializedName: "sasUri", + serializedName: "tenantId", type: { name: "String" } @@ -1401,32 +1380,12 @@ export const MigrateSqlServerSqlMIDatabaseInput: msRest.CompositeMapper = { } }; -export const ValidateMigrationInputSqlServerSqlMITaskInput: msRest.CompositeMapper = { - serializedName: "ValidateMigrationInputSqlServerSqlMITaskInput", +export const SqlServerSqlMISyncTaskInput: msRest.CompositeMapper = { + serializedName: "SqlServerSqlMISyncTaskInput", type: { name: "Composite", - className: "ValidateMigrationInputSqlServerSqlMITaskInput", + className: "SqlServerSqlMISyncTaskInput", modelProperties: { - sourceConnectionInfo: { - required: true, - serializedName: "sourceConnectionInfo", - type: { - name: "Composite", - polymorphicDiscriminator: ConnectionInfo.type.polymorphicDiscriminator, - uberParent: "ConnectionInfo", - className: "SqlConnectionInfo" - } - }, - targetConnectionInfo: { - required: true, - serializedName: "targetConnectionInfo", - type: { - name: "Composite", - polymorphicDiscriminator: ConnectionInfo.type.polymorphicDiscriminator, - uberParent: "ConnectionInfo", - className: "SqlConnectionInfo" - } - }, selectedDatabases: { required: true, serializedName: "selectedDatabases", @@ -1440,17 +1399,6 @@ export const ValidateMigrationInputSqlServerSqlMITaskInput: msRest.CompositeMapp } } }, - selectedLogins: { - serializedName: "selectedLogins", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, backupFileShare: { serializedName: "backupFileShare", type: { @@ -1458,38 +1406,70 @@ export const ValidateMigrationInputSqlServerSqlMITaskInput: msRest.CompositeMapp className: "FileShare" } }, - backupBlobShare: { + storageResourceId: { required: true, - serializedName: "backupBlobShare", + serializedName: "storageResourceId", + type: { + name: "String" + } + }, + sourceConnectionInfo: { + required: true, + serializedName: "sourceConnectionInfo", type: { name: "Composite", - className: "BlobShare" + polymorphicDiscriminator: ConnectionInfo.type.polymorphicDiscriminator, + uberParent: "ConnectionInfo", + className: "SqlConnectionInfo" } }, - backupMode: { - serializedName: "backupMode", + targetConnectionInfo: { + required: true, + serializedName: "targetConnectionInfo", type: { - name: "String" + name: "Composite", + polymorphicDiscriminator: ConnectionInfo.type.polymorphicDiscriminator, + uberParent: "ConnectionInfo", + className: "MiSqlConnectionInfo" + } + }, + azureApp: { + required: true, + serializedName: "azureApp", + type: { + name: "Composite", + className: "AzureActiveDirectoryApp" } } } } }; -export const ValidateMigrationInputSqlServerSqlMITaskProperties: msRest.CompositeMapper = { - serializedName: "ValidateMigrationInput.SqlServer.AzureSqlDbMI", +export const ValidateMigrationInputSqlServerSqlMISyncTaskInput: msRest.CompositeMapper = { + serializedName: "ValidateMigrationInputSqlServerSqlMISyncTaskInput", + type: { + name: "Composite", + className: "ValidateMigrationInputSqlServerSqlMISyncTaskInput", + modelProperties: { + ...SqlServerSqlMISyncTaskInput.type.modelProperties + } + } +}; + +export const ValidateMigrationInputSqlServerSqlMISyncTaskProperties: msRest.CompositeMapper = { + serializedName: "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", type: { name: "Composite", polymorphicDiscriminator: ProjectTaskProperties.type.polymorphicDiscriminator, uberParent: "ProjectTaskProperties", - className: "ValidateMigrationInputSqlServerSqlMITaskProperties", + className: "ValidateMigrationInputSqlServerSqlMISyncTaskProperties", modelProperties: { ...ProjectTaskProperties.type.modelProperties, input: { serializedName: "input", type: { name: "Composite", - className: "ValidateMigrationInputSqlServerSqlMITaskInput" + className: "ValidateMigrationInputSqlServerSqlMISyncTaskInput" } }, output: { @@ -1500,7 +1480,7 @@ export const ValidateMigrationInputSqlServerSqlMITaskProperties: msRest.Composit element: { type: { name: "Composite", - className: "ValidateMigrationInputSqlServerSqlMITaskOutput" + className: "ValidateMigrationInputSqlServerSqlMISyncTaskOutput" } } } @@ -1509,126 +1489,195 @@ export const ValidateMigrationInputSqlServerSqlMITaskProperties: msRest.Composit } }; -export const ValidateSyncMigrationInputSqlServerTaskOutput: msRest.CompositeMapper = { - serializedName: "ValidateSyncMigrationInputSqlServerTaskOutput", +export const DatabaseBackupInfo: msRest.CompositeMapper = { + serializedName: "DatabaseBackupInfo", type: { name: "Composite", - className: "ValidateSyncMigrationInputSqlServerTaskOutput", + className: "DatabaseBackupInfo", modelProperties: { - id: { + databaseName: { readOnly: true, - serializedName: "id", + serializedName: "databaseName", type: { name: "String" } }, - name: { + backupType: { readOnly: true, - serializedName: "name", + serializedName: "backupType", type: { name: "String" } }, - validationErrors: { + backupFiles: { readOnly: true, - serializedName: "validationErrors", + serializedName: "backupFiles", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ReportableException" + name: "String" } } } + }, + position: { + readOnly: true, + serializedName: "position", + type: { + name: "Number" + } + }, + isDamaged: { + readOnly: true, + serializedName: "isDamaged", + type: { + name: "Boolean" + } + }, + isCompressed: { + readOnly: true, + serializedName: "isCompressed", + type: { + name: "Boolean" + } + }, + familyCount: { + readOnly: true, + serializedName: "familyCount", + type: { + name: "Number" + } + }, + backupFinishDate: { + readOnly: true, + serializedName: "backupFinishDate", + type: { + name: "DateTime" + } } } } }; -export const MigrateSqlServerSqlDbSyncDatabaseInput: msRest.CompositeMapper = { - serializedName: "MigrateSqlServerSqlDbSyncDatabaseInput", +export const ValidateMigrationInputSqlServerSqlMITaskOutput: msRest.CompositeMapper = { + serializedName: "ValidateMigrationInputSqlServerSqlMITaskOutput", type: { name: "Composite", - className: "MigrateSqlServerSqlDbSyncDatabaseInput", + className: "ValidateMigrationInputSqlServerSqlMITaskOutput", modelProperties: { id: { + readOnly: true, serializedName: "id", type: { name: "String" } }, name: { + readOnly: true, serializedName: "name", type: { name: "String" } }, - targetDatabaseName: { - serializedName: "targetDatabaseName", - type: { - name: "String" - } - }, - schemaName: { - serializedName: "schemaName", + restoreDatabaseNameErrors: { + readOnly: true, + serializedName: "restoreDatabaseNameErrors", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReportableException" + } + } } }, - tableMap: { - serializedName: "tableMap", + backupFolderErrors: { + readOnly: true, + serializedName: "backupFolderErrors", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { - name: "String" + name: "Composite", + className: "ReportableException" } } } }, - migrationSetting: { - serializedName: "migrationSetting", + backupShareCredentialsErrors: { + readOnly: true, + serializedName: "backupShareCredentialsErrors", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { - name: "String" + name: "Composite", + className: "ReportableException" } } } }, - sourceSetting: { - serializedName: "sourceSetting", + backupStorageAccountErrors: { + readOnly: true, + serializedName: "backupStorageAccountErrors", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { - name: "String" + name: "Composite", + className: "ReportableException" } } } }, - targetSetting: { - serializedName: "targetSetting", + existingBackupErrors: { + readOnly: true, + serializedName: "existingBackupErrors", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { - name: "String" + name: "Composite", + className: "ReportableException" } } } + }, + databaseBackupInfo: { + serializedName: "databaseBackupInfo", + type: { + name: "Composite", + className: "DatabaseBackupInfo" + } } } } }; -export const ValidateSyncMigrationInputSqlServerTaskInput: msRest.CompositeMapper = { - serializedName: "ValidateSyncMigrationInputSqlServerTaskInput", +export const BlobShare: msRest.CompositeMapper = { + serializedName: "BlobShare", type: { name: "Composite", - className: "ValidateSyncMigrationInputSqlServerTaskInput", + className: "BlobShare", + modelProperties: { + sasUri: { + required: true, + serializedName: "sasUri", + type: { + name: "String" + } + } + } + } +}; + +export const ValidateMigrationInputSqlServerSqlMITaskInput: msRest.CompositeMapper = { + serializedName: "ValidateMigrationInputSqlServerSqlMITaskInput", + type: { + name: "Composite", + className: "ValidateMigrationInputSqlServerSqlMITaskInput", modelProperties: { sourceConnectionInfo: { required: true, @@ -1658,32 +1707,255 @@ export const ValidateSyncMigrationInputSqlServerTaskInput: msRest.CompositeMappe element: { type: { name: "Composite", - className: "MigrateSqlServerSqlDbSyncDatabaseInput" + className: "MigrateSqlServerSqlMIDatabaseInput" } } } - } - } - } -}; - -export const ValidateMigrationInputSqlServerSqlDbSyncTaskProperties: msRest.CompositeMapper = { - serializedName: "ValidateMigrationInput.SqlServer.SqlDb.Sync", - type: { - name: "Composite", - polymorphicDiscriminator: ProjectTaskProperties.type.polymorphicDiscriminator, - uberParent: "ProjectTaskProperties", - className: "ValidateMigrationInputSqlServerSqlDbSyncTaskProperties", - modelProperties: { - ...ProjectTaskProperties.type.modelProperties, - input: { - serializedName: "input", - type: { - name: "Composite", - className: "ValidateSyncMigrationInputSqlServerTaskInput" - } }, - output: { + selectedLogins: { + serializedName: "selectedLogins", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + backupFileShare: { + serializedName: "backupFileShare", + type: { + name: "Composite", + className: "FileShare" + } + }, + backupBlobShare: { + required: true, + serializedName: "backupBlobShare", + type: { + name: "Composite", + className: "BlobShare" + } + }, + backupMode: { + serializedName: "backupMode", + type: { + name: "String" + } + } + } + } +}; + +export const ValidateMigrationInputSqlServerSqlMITaskProperties: msRest.CompositeMapper = { + serializedName: "ValidateMigrationInput.SqlServer.AzureSqlDbMI", + type: { + name: "Composite", + polymorphicDiscriminator: ProjectTaskProperties.type.polymorphicDiscriminator, + uberParent: "ProjectTaskProperties", + className: "ValidateMigrationInputSqlServerSqlMITaskProperties", + modelProperties: { + ...ProjectTaskProperties.type.modelProperties, + input: { + serializedName: "input", + type: { + name: "Composite", + className: "ValidateMigrationInputSqlServerSqlMITaskInput" + } + }, + output: { + readOnly: true, + serializedName: "output", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ValidateMigrationInputSqlServerSqlMITaskOutput" + } + } + } + } + } + } +}; + +export const ValidateSyncMigrationInputSqlServerTaskOutput: msRest.CompositeMapper = { + serializedName: "ValidateSyncMigrationInputSqlServerTaskOutput", + type: { + name: "Composite", + className: "ValidateSyncMigrationInputSqlServerTaskOutput", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + validationErrors: { + readOnly: true, + serializedName: "validationErrors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReportableException" + } + } + } + } + } + } +}; + +export const MigrateSqlServerSqlDbSyncDatabaseInput: msRest.CompositeMapper = { + serializedName: "MigrateSqlServerSqlDbSyncDatabaseInput", + type: { + name: "Composite", + className: "MigrateSqlServerSqlDbSyncDatabaseInput", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + targetDatabaseName: { + serializedName: "targetDatabaseName", + type: { + name: "String" + } + }, + schemaName: { + serializedName: "schemaName", + type: { + name: "String" + } + }, + tableMap: { + serializedName: "tableMap", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + migrationSetting: { + serializedName: "migrationSetting", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + sourceSetting: { + serializedName: "sourceSetting", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + targetSetting: { + serializedName: "targetSetting", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ValidateSyncMigrationInputSqlServerTaskInput: msRest.CompositeMapper = { + serializedName: "ValidateSyncMigrationInputSqlServerTaskInput", + type: { + name: "Composite", + className: "ValidateSyncMigrationInputSqlServerTaskInput", + modelProperties: { + sourceConnectionInfo: { + required: true, + serializedName: "sourceConnectionInfo", + type: { + name: "Composite", + polymorphicDiscriminator: ConnectionInfo.type.polymorphicDiscriminator, + uberParent: "ConnectionInfo", + className: "SqlConnectionInfo" + } + }, + targetConnectionInfo: { + required: true, + serializedName: "targetConnectionInfo", + type: { + name: "Composite", + polymorphicDiscriminator: ConnectionInfo.type.polymorphicDiscriminator, + uberParent: "ConnectionInfo", + className: "SqlConnectionInfo" + } + }, + selectedDatabases: { + required: true, + serializedName: "selectedDatabases", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MigrateSqlServerSqlDbSyncDatabaseInput" + } + } + } + } + } + } +}; + +export const ValidateMigrationInputSqlServerSqlDbSyncTaskProperties: msRest.CompositeMapper = { + serializedName: "ValidateMigrationInput.SqlServer.SqlDb.Sync", + type: { + name: "Composite", + polymorphicDiscriminator: ProjectTaskProperties.type.polymorphicDiscriminator, + uberParent: "ProjectTaskProperties", + className: "ValidateMigrationInputSqlServerSqlDbSyncTaskProperties", + modelProperties: { + ...ProjectTaskProperties.type.modelProperties, + input: { + serializedName: "input", + type: { + name: "Composite", + className: "ValidateSyncMigrationInputSqlServerTaskInput" + } + }, + output: { readOnly: true, serializedName: "output", type: { @@ -2106,18 +2378,51 @@ export const MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput: msRest.Comp type: { name: "String" } - } - } - } -}; - -export const MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput: msRest.CompositeMapper = { - serializedName: "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput", - type: { - name: "Composite", - className: "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput", - modelProperties: { - selectedDatabases: { + }, + migrationSetting: { + serializedName: "migrationSetting", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + sourceSetting: { + serializedName: "sourceSetting", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + targetSetting: { + serializedName: "targetSetting", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput: msRest.CompositeMapper = { + serializedName: "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput", + type: { + name: "Composite", + className: "MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput", + modelProperties: { + selectedDatabases: { required: true, serializedName: "selectedDatabases", type: { @@ -2567,6 +2872,39 @@ export const MigrateMySqlAzureDbForMySqlSyncDatabaseInput: msRest.CompositeMappe type: { name: "String" } + }, + migrationSetting: { + serializedName: "migrationSetting", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + sourceSetting: { + serializedName: "sourceSetting", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + targetSetting: { + serializedName: "targetSetting", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } } } } @@ -4038,46 +4376,412 @@ export const MigrateSqlServerSqlDbTaskOutputMigrationLevel: msRest.CompositeMapp } } }, - migrationValidationResult: { - serializedName: "migrationValidationResult", + migrationValidationResult: { + serializedName: "migrationValidationResult", + type: { + name: "Composite", + className: "MigrationValidationResult" + } + }, + migrationReportResult: { + serializedName: "migrationReportResult", + type: { + name: "Composite", + className: "MigrationReportResult" + } + }, + sourceServerVersion: { + readOnly: true, + serializedName: "sourceServerVersion", + type: { + name: "String" + } + }, + sourceServerBrandVersion: { + readOnly: true, + serializedName: "sourceServerBrandVersion", + type: { + name: "String" + } + }, + targetServerVersion: { + readOnly: true, + serializedName: "targetServerVersion", + type: { + name: "String" + } + }, + targetServerBrandVersion: { + readOnly: true, + serializedName: "targetServerBrandVersion", + type: { + name: "String" + } + }, + exceptionsAndWarnings: { + readOnly: true, + serializedName: "exceptionsAndWarnings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReportableException" + } + } + } + } + } + } +}; + +export const MigrateSqlServerSqlDbDatabaseInput: msRest.CompositeMapper = { + serializedName: "MigrateSqlServerSqlDbDatabaseInput", + type: { + name: "Composite", + className: "MigrateSqlServerSqlDbDatabaseInput", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + targetDatabaseName: { + serializedName: "targetDatabaseName", + type: { + name: "String" + } + }, + makeSourceDbReadOnly: { + serializedName: "makeSourceDbReadOnly", + type: { + name: "Boolean" + } + }, + tableMap: { + serializedName: "tableMap", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const MigrateSqlServerSqlDbTaskInput: msRest.CompositeMapper = { + serializedName: "MigrateSqlServerSqlDbTaskInput", + type: { + name: "Composite", + className: "MigrateSqlServerSqlDbTaskInput", + modelProperties: { + ...SqlMigrationTaskInput.type.modelProperties, + selectedDatabases: { + required: true, + serializedName: "selectedDatabases", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MigrateSqlServerSqlDbDatabaseInput" + } + } + } + }, + validationOptions: { + serializedName: "validationOptions", + type: { + name: "Composite", + className: "MigrationValidationOptions" + } + } + } + } +}; + +export const MigrateSqlServerSqlDbTaskProperties: msRest.CompositeMapper = { + serializedName: "Migrate.SqlServer.SqlDb", + type: { + name: "Composite", + polymorphicDiscriminator: ProjectTaskProperties.type.polymorphicDiscriminator, + uberParent: "ProjectTaskProperties", + className: "MigrateSqlServerSqlDbTaskProperties", + modelProperties: { + ...ProjectTaskProperties.type.modelProperties, + input: { + serializedName: "input", + type: { + name: "Composite", + className: "MigrateSqlServerSqlDbTaskInput" + } + }, + output: { + readOnly: true, + serializedName: "output", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "resultType", + clientName: "resultType" + }, + uberParent: "MigrateSqlServerSqlDbTaskOutput", + className: "MigrateSqlServerSqlDbTaskOutput" + } + } + } + } + } + } +}; + +export const MigrateSqlServerSqlMISyncTaskOutput: msRest.CompositeMapper = { + serializedName: "MigrateSqlServerSqlMISyncTaskOutput", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "resultType", + clientName: "resultType" + }, + uberParent: "MigrateSqlServerSqlMISyncTaskOutput", + className: "MigrateSqlServerSqlMISyncTaskOutput", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + resultType: { + required: true, + serializedName: "resultType", + type: { + name: "String" + } + } + } + } +}; + +export const MigrateSqlServerSqlMISyncTaskOutputError: msRest.CompositeMapper = { + serializedName: "ErrorOutput", + type: { + name: "Composite", + polymorphicDiscriminator: MigrateSqlServerSqlMISyncTaskOutput.type.polymorphicDiscriminator, + uberParent: "MigrateSqlServerSqlMISyncTaskOutput", + className: "MigrateSqlServerSqlMISyncTaskOutputError", + modelProperties: { + ...MigrateSqlServerSqlMISyncTaskOutput.type.modelProperties, + error: { + readOnly: true, + serializedName: "error", + type: { + name: "Composite", + className: "ReportableException" + } + } + } + } +}; + +export const BackupFileInfo: msRest.CompositeMapper = { + serializedName: "BackupFileInfo", + type: { + name: "Composite", + className: "BackupFileInfo", + modelProperties: { + fileLocation: { + serializedName: "fileLocation", + type: { + name: "String" + } + }, + familySequenceNumber: { + serializedName: "familySequenceNumber", + type: { + name: "Number" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + } + } + } +}; + +export const BackupSetInfo: msRest.CompositeMapper = { + serializedName: "BackupSetInfo", + type: { + name: "Composite", + className: "BackupSetInfo", + modelProperties: { + backupSetId: { + serializedName: "backupSetId", + type: { + name: "String" + } + }, + firstLsn: { + serializedName: "firstLsn", + type: { + name: "String" + } + }, + lastLsn: { + serializedName: "lastLsn", + type: { + name: "String" + } + }, + lastModifiedTime: { + serializedName: "lastModifiedTime", + type: { + name: "DateTime" + } + }, + backupType: { + serializedName: "backupType", + type: { + name: "String" + } + }, + listOfBackupFiles: { + serializedName: "listOfBackupFiles", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BackupFileInfo" + } + } + } + }, + databaseName: { + serializedName: "databaseName", + type: { + name: "String" + } + }, + backupStartDate: { + serializedName: "backupStartDate", + type: { + name: "DateTime" + } + }, + backupFinishedDate: { + serializedName: "backupFinishedDate", + type: { + name: "DateTime" + } + }, + isBackupRestored: { + serializedName: "isBackupRestored", + type: { + name: "Boolean" + } + } + } + } +}; + +export const MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel: msRest.CompositeMapper = { + serializedName: "DatabaseLevelOutput", + type: { + name: "Composite", + polymorphicDiscriminator: MigrateSqlServerSqlMISyncTaskOutput.type.polymorphicDiscriminator, + uberParent: "MigrateSqlServerSqlMISyncTaskOutput", + className: "MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel", + modelProperties: { + ...MigrateSqlServerSqlMISyncTaskOutput.type.modelProperties, + sourceDatabaseName: { + readOnly: true, + serializedName: "sourceDatabaseName", + type: { + name: "String" + } + }, + migrationState: { + readOnly: true, + serializedName: "migrationState", + type: { + name: "String" + } + }, + startedOn: { + readOnly: true, + serializedName: "startedOn", + type: { + name: "DateTime" + } + }, + endedOn: { + readOnly: true, + serializedName: "endedOn", + type: { + name: "DateTime" + } + }, + fullBackupSetInfo: { + readOnly: true, + serializedName: "fullBackupSetInfo", type: { name: "Composite", - className: "MigrationValidationResult" + className: "BackupSetInfo" } }, - migrationReportResult: { - serializedName: "migrationReportResult", + lastRestoredBackupSetInfo: { + readOnly: true, + serializedName: "lastRestoredBackupSetInfo", type: { name: "Composite", - className: "MigrationReportResult" + className: "BackupSetInfo" } }, - sourceServerVersion: { + activeBackupSets: { readOnly: true, - serializedName: "sourceServerVersion", + serializedName: "activeBackupSets", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BackupSetInfo" + } + } } }, - sourceServerBrandVersion: { + containerName: { readOnly: true, - serializedName: "sourceServerBrandVersion", + serializedName: "containerName", type: { name: "String" } }, - targetServerVersion: { + errorPrefix: { readOnly: true, - serializedName: "targetServerVersion", + serializedName: "errorPrefix", type: { name: "String" } }, - targetServerBrandVersion: { + isFullBackupRestored: { readOnly: true, - serializedName: "targetServerBrandVersion", + serializedName: "isFullBackupRestored", type: { - name: "String" + name: "Boolean" } }, exceptionsAndWarnings: { @@ -4097,90 +4801,121 @@ export const MigrateSqlServerSqlDbTaskOutputMigrationLevel: msRest.CompositeMapp } }; -export const MigrateSqlServerSqlDbDatabaseInput: msRest.CompositeMapper = { - serializedName: "MigrateSqlServerSqlDbDatabaseInput", +export const MigrateSqlServerSqlMISyncTaskOutputMigrationLevel: msRest.CompositeMapper = { + serializedName: "MigrationLevelOutput", type: { name: "Composite", - className: "MigrateSqlServerSqlDbDatabaseInput", + polymorphicDiscriminator: MigrateSqlServerSqlMISyncTaskOutput.type.polymorphicDiscriminator, + uberParent: "MigrateSqlServerSqlMISyncTaskOutput", + className: "MigrateSqlServerSqlMISyncTaskOutputMigrationLevel", modelProperties: { - name: { - serializedName: "name", + ...MigrateSqlServerSqlMISyncTaskOutput.type.modelProperties, + databaseCount: { + readOnly: true, + serializedName: "databaseCount", + type: { + name: "Number" + } + }, + state: { + readOnly: true, + serializedName: "state", type: { name: "String" } }, - targetDatabaseName: { - serializedName: "targetDatabaseName", + startedOn: { + readOnly: true, + serializedName: "startedOn", + type: { + name: "DateTime" + } + }, + endedOn: { + readOnly: true, + serializedName: "endedOn", + type: { + name: "DateTime" + } + }, + sourceServerName: { + readOnly: true, + serializedName: "sourceServerName", type: { name: "String" } }, - makeSourceDbReadOnly: { - serializedName: "makeSourceDbReadOnly", + sourceServerVersion: { + readOnly: true, + serializedName: "sourceServerVersion", type: { - name: "Boolean" + name: "String" } }, - tableMap: { - serializedName: "tableMap", + sourceServerBrandVersion: { + readOnly: true, + serializedName: "sourceServerBrandVersion", type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } + name: "String" + } + }, + targetServerName: { + readOnly: true, + serializedName: "targetServerName", + type: { + name: "String" + } + }, + targetServerVersion: { + readOnly: true, + serializedName: "targetServerVersion", + type: { + name: "String" + } + }, + targetServerBrandVersion: { + readOnly: true, + serializedName: "targetServerBrandVersion", + type: { + name: "String" + } + }, + databaseErrorCount: { + readOnly: true, + serializedName: "databaseErrorCount", + type: { + name: "Number" } } } } }; -export const MigrateSqlServerSqlDbTaskInput: msRest.CompositeMapper = { - serializedName: "MigrateSqlServerSqlDbTaskInput", +export const MigrateSqlServerSqlMISyncTaskInput: msRest.CompositeMapper = { + serializedName: "MigrateSqlServerSqlMISyncTaskInput", type: { name: "Composite", - className: "MigrateSqlServerSqlDbTaskInput", + className: "MigrateSqlServerSqlMISyncTaskInput", modelProperties: { - ...SqlMigrationTaskInput.type.modelProperties, - selectedDatabases: { - required: true, - serializedName: "selectedDatabases", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "MigrateSqlServerSqlDbDatabaseInput" - } - } - } - }, - validationOptions: { - serializedName: "validationOptions", - type: { - name: "Composite", - className: "MigrationValidationOptions" - } - } + ...SqlServerSqlMISyncTaskInput.type.modelProperties } } }; -export const MigrateSqlServerSqlDbTaskProperties: msRest.CompositeMapper = { - serializedName: "Migrate.SqlServer.SqlDb", +export const MigrateSqlServerSqlMISyncTaskProperties: msRest.CompositeMapper = { + serializedName: "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", type: { name: "Composite", polymorphicDiscriminator: ProjectTaskProperties.type.polymorphicDiscriminator, uberParent: "ProjectTaskProperties", - className: "MigrateSqlServerSqlDbTaskProperties", + className: "MigrateSqlServerSqlMISyncTaskProperties", modelProperties: { ...ProjectTaskProperties.type.modelProperties, input: { serializedName: "input", type: { name: "Composite", - className: "MigrateSqlServerSqlDbTaskInput" + className: "MigrateSqlServerSqlMISyncTaskInput" } }, output: { @@ -4195,8 +4930,8 @@ export const MigrateSqlServerSqlDbTaskProperties: msRest.CompositeMapper = { serializedName: "resultType", clientName: "resultType" }, - uberParent: "MigrateSqlServerSqlDbTaskOutput", - className: "MigrateSqlServerSqlDbTaskOutput" + uberParent: "MigrateSqlServerSqlMISyncTaskOutput", + className: "MigrateSqlServerSqlMISyncTaskOutput" } } } @@ -4771,7 +5506,126 @@ export const MigrateMongoDbTaskProperties: msRest.CompositeMapper = { serializedName: "input", type: { name: "Composite", - className: "MongoDbMigrationSettings" + className: "MongoDbMigrationSettings" + } + }, + output: { + readOnly: true, + serializedName: "output", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MongoDbProgress" + } + } + } + } + } + } +}; + +export const ConnectToTargetAzureDbForMySqlTaskOutput: msRest.CompositeMapper = { + serializedName: "ConnectToTargetAzureDbForMySqlTaskOutput", + type: { + name: "Composite", + className: "ConnectToTargetAzureDbForMySqlTaskOutput", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + serverVersion: { + readOnly: true, + serializedName: "serverVersion", + type: { + name: "String" + } + }, + databases: { + readOnly: true, + serializedName: "databases", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + targetServerBrandVersion: { + readOnly: true, + serializedName: "targetServerBrandVersion", + type: { + name: "String" + } + }, + validationErrors: { + readOnly: true, + serializedName: "validationErrors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReportableException" + } + } + } + } + } + } +}; + +export const ConnectToTargetAzureDbForMySqlTaskInput: msRest.CompositeMapper = { + serializedName: "ConnectToTargetAzureDbForMySqlTaskInput", + type: { + name: "Composite", + className: "ConnectToTargetAzureDbForMySqlTaskInput", + modelProperties: { + sourceConnectionInfo: { + required: true, + serializedName: "sourceConnectionInfo", + type: { + name: "Composite", + polymorphicDiscriminator: ConnectionInfo.type.polymorphicDiscriminator, + uberParent: "ConnectionInfo", + className: "MySqlConnectionInfo" + } + }, + targetConnectionInfo: { + required: true, + serializedName: "targetConnectionInfo", + type: { + name: "Composite", + polymorphicDiscriminator: ConnectionInfo.type.polymorphicDiscriminator, + uberParent: "ConnectionInfo", + className: "MySqlConnectionInfo" + } + } + } + } +}; + +export const ConnectToTargetAzureDbForMySqlTaskProperties: msRest.CompositeMapper = { + serializedName: "ConnectToTarget.AzureDbForMySql", + type: { + name: "Composite", + polymorphicDiscriminator: ProjectTaskProperties.type.polymorphicDiscriminator, + uberParent: "ProjectTaskProperties", + className: "ConnectToTargetAzureDbForMySqlTaskProperties", + modelProperties: { + ...ProjectTaskProperties.type.modelProperties, + input: { + serializedName: "input", + type: { + name: "Composite", + className: "ConnectToTargetAzureDbForMySqlTaskInput" } }, output: { @@ -4782,7 +5636,7 @@ export const MigrateMongoDbTaskProperties: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "MongoDbProgress" + className: "ConnectToTargetAzureDbForMySqlTaskOutput" } } } @@ -4791,38 +5645,19 @@ export const MigrateMongoDbTaskProperties: msRest.CompositeMapper = { } }; -export const ConnectToTargetAzureDbForMySqlTaskOutput: msRest.CompositeMapper = { - serializedName: "ConnectToTargetAzureDbForMySqlTaskOutput", +export const ConnectToTargetSqlMISyncTaskOutput: msRest.CompositeMapper = { + serializedName: "ConnectToTargetSqlMISyncTaskOutput", type: { name: "Composite", - className: "ConnectToTargetAzureDbForMySqlTaskOutput", + className: "ConnectToTargetSqlMISyncTaskOutput", modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - serverVersion: { + targetServerVersion: { readOnly: true, - serializedName: "serverVersion", + serializedName: "targetServerVersion", type: { name: "String" } }, - databases: { - readOnly: true, - serializedName: "databases", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, targetServerBrandVersion: { readOnly: true, serializedName: "targetServerBrandVersion", @@ -4847,50 +5682,48 @@ export const ConnectToTargetAzureDbForMySqlTaskOutput: msRest.CompositeMapper = } }; -export const ConnectToTargetAzureDbForMySqlTaskInput: msRest.CompositeMapper = { - serializedName: "ConnectToTargetAzureDbForMySqlTaskInput", +export const ConnectToTargetSqlMISyncTaskInput: msRest.CompositeMapper = { + serializedName: "ConnectToTargetSqlMISyncTaskInput", type: { name: "Composite", - className: "ConnectToTargetAzureDbForMySqlTaskInput", + className: "ConnectToTargetSqlMISyncTaskInput", modelProperties: { - sourceConnectionInfo: { + targetConnectionInfo: { required: true, - serializedName: "sourceConnectionInfo", + serializedName: "targetConnectionInfo", type: { name: "Composite", polymorphicDiscriminator: ConnectionInfo.type.polymorphicDiscriminator, uberParent: "ConnectionInfo", - className: "MySqlConnectionInfo" + className: "MiSqlConnectionInfo" } }, - targetConnectionInfo: { + azureApp: { required: true, - serializedName: "targetConnectionInfo", + serializedName: "azureApp", type: { name: "Composite", - polymorphicDiscriminator: ConnectionInfo.type.polymorphicDiscriminator, - uberParent: "ConnectionInfo", - className: "MySqlConnectionInfo" + className: "AzureActiveDirectoryApp" } } } } }; -export const ConnectToTargetAzureDbForMySqlTaskProperties: msRest.CompositeMapper = { - serializedName: "ConnectToTarget.AzureDbForMySql", +export const ConnectToTargetSqlMISyncTaskProperties: msRest.CompositeMapper = { + serializedName: "ConnectToTarget.AzureSqlDbMI.Sync.LRS", type: { name: "Composite", polymorphicDiscriminator: ProjectTaskProperties.type.polymorphicDiscriminator, uberParent: "ProjectTaskProperties", - className: "ConnectToTargetAzureDbForMySqlTaskProperties", + className: "ConnectToTargetSqlMISyncTaskProperties", modelProperties: { ...ProjectTaskProperties.type.modelProperties, input: { serializedName: "input", type: { name: "Composite", - className: "ConnectToTargetAzureDbForMySqlTaskInput" + className: "ConnectToTargetSqlMISyncTaskInput" } }, output: { @@ -4901,7 +5734,7 @@ export const ConnectToTargetAzureDbForMySqlTaskProperties: msRest.CompositeMappe element: { type: { name: "Composite", - className: "ConnectToTargetAzureDbForMySqlTaskOutput" + className: "ConnectToTargetSqlMISyncTaskOutput" } } } @@ -5331,6 +6164,125 @@ export const GetUserTablesSqlTaskProperties: msRest.CompositeMapper = { } }; +export const ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput: msRest.CompositeMapper = { + serializedName: "ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput", + type: { + name: "Composite", + className: "ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + targetServerVersion: { + readOnly: true, + serializedName: "targetServerVersion", + type: { + name: "String" + } + }, + databases: { + readOnly: true, + serializedName: "databases", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + targetServerBrandVersion: { + readOnly: true, + serializedName: "targetServerBrandVersion", + type: { + name: "String" + } + }, + validationErrors: { + readOnly: true, + serializedName: "validationErrors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReportableException" + } + } + } + } + } + } +}; + +export const ConnectToTargetAzureDbForPostgreSqlSyncTaskInput: msRest.CompositeMapper = { + serializedName: "ConnectToTargetAzureDbForPostgreSqlSyncTaskInput", + type: { + name: "Composite", + className: "ConnectToTargetAzureDbForPostgreSqlSyncTaskInput", + modelProperties: { + sourceConnectionInfo: { + required: true, + serializedName: "sourceConnectionInfo", + type: { + name: "Composite", + polymorphicDiscriminator: ConnectionInfo.type.polymorphicDiscriminator, + uberParent: "ConnectionInfo", + className: "PostgreSqlConnectionInfo" + } + }, + targetConnectionInfo: { + required: true, + serializedName: "targetConnectionInfo", + type: { + name: "Composite", + polymorphicDiscriminator: ConnectionInfo.type.polymorphicDiscriminator, + uberParent: "ConnectionInfo", + className: "PostgreSqlConnectionInfo" + } + } + } + } +}; + +export const ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties: msRest.CompositeMapper = { + serializedName: "ConnectToTarget.AzureDbForPostgreSql.Sync", + type: { + name: "Composite", + polymorphicDiscriminator: ProjectTaskProperties.type.polymorphicDiscriminator, + uberParent: "ProjectTaskProperties", + className: "ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties", + modelProperties: { + ...ProjectTaskProperties.type.modelProperties, + input: { + serializedName: "input", + type: { + name: "Composite", + className: "ConnectToTargetAzureDbForPostgreSqlSyncTaskInput" + } + }, + output: { + readOnly: true, + serializedName: "output", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput" + } + } + } + } + } + } +}; + export const ConnectToTargetSqlDbTaskOutput: msRest.CompositeMapper = { serializedName: "ConnectToTargetSqlDbTaskOutput", type: { @@ -5490,6 +6442,115 @@ export const ConnectToTargetSqlDbTaskProperties: msRest.CompositeMapper = { } }; +export const ConnectToSourcePostgreSqlSyncTaskOutput: msRest.CompositeMapper = { + serializedName: "ConnectToSourcePostgreSqlSyncTaskOutput", + type: { + name: "Composite", + className: "ConnectToSourcePostgreSqlSyncTaskOutput", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + sourceServerVersion: { + readOnly: true, + serializedName: "sourceServerVersion", + type: { + name: "String" + } + }, + databases: { + readOnly: true, + serializedName: "databases", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + sourceServerBrandVersion: { + readOnly: true, + serializedName: "sourceServerBrandVersion", + type: { + name: "String" + } + }, + validationErrors: { + readOnly: true, + serializedName: "validationErrors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ReportableException" + } + } + } + } + } + } +}; + +export const ConnectToSourcePostgreSqlSyncTaskInput: msRest.CompositeMapper = { + serializedName: "ConnectToSourcePostgreSqlSyncTaskInput", + type: { + name: "Composite", + className: "ConnectToSourcePostgreSqlSyncTaskInput", + modelProperties: { + sourceConnectionInfo: { + required: true, + serializedName: "sourceConnectionInfo", + type: { + name: "Composite", + polymorphicDiscriminator: ConnectionInfo.type.polymorphicDiscriminator, + uberParent: "ConnectionInfo", + className: "PostgreSqlConnectionInfo" + } + } + } + } +}; + +export const ConnectToSourcePostgreSqlSyncTaskProperties: msRest.CompositeMapper = { + serializedName: "ConnectToSource.PostgreSql.Sync", + type: { + name: "Composite", + polymorphicDiscriminator: ProjectTaskProperties.type.polymorphicDiscriminator, + uberParent: "ProjectTaskProperties", + className: "ConnectToSourcePostgreSqlSyncTaskProperties", + modelProperties: { + ...ProjectTaskProperties.type.modelProperties, + input: { + serializedName: "input", + type: { + name: "Composite", + className: "ConnectToSourcePostgreSqlSyncTaskInput" + } + }, + output: { + readOnly: true, + serializedName: "output", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectToSourcePostgreSqlSyncTaskOutput" + } + } + } + } + } + } +}; + export const MigrationEligibilityInfo: msRest.CompositeMapper = { serializedName: "MigrationEligibilityInfo", type: { @@ -5879,7 +6940,13 @@ export const ConnectToSourceSqlServerTaskInput: msRest.CompositeMapper = { checkPermissionsGroup: { serializedName: "checkPermissionsGroup", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Default", + "MigrationFromSqlServerToAzureDB", + "MigrationFromSqlServerToAzureMI", + "MigrationFromMySQLToAzureDBForMySQL" + ] } }, collectLogins: { @@ -7066,7 +8133,13 @@ export const ConnectToSourceMySqlTaskInput: msRest.CompositeMapper = { checkPermissionsGroup: { serializedName: "checkPermissionsGroup", type: { - name: "String" + name: "Enum", + allowedValues: [ + "Default", + "MigrationFromSqlServerToAzureDB", + "MigrationFromSqlServerToAzureMI", + "MigrationFromMySQLToAzureDBForMySQL" + ] } } } @@ -8449,8 +9522,10 @@ export const FileList: msRest.CompositeMapper = { }; export const discriminators = { + 'CommandProperties.Migrate.SqlServer.AzureDbSqlMi.Complete' : MigrateMISyncCompleteCommandProperties, 'CommandProperties.Migrate.Sync.Complete.Database' : MigrateSyncCompleteCommandProperties, 'Unknown' : CommandProperties, + 'ConnectionInfo.MiSqlConnectionInfo' : MiSqlConnectionInfo, 'ConnectionInfo.PostgreSqlConnectionInfo' : PostgreSqlConnectionInfo, 'ConnectionInfo.MySqlConnectionInfo' : MySqlConnectionInfo, 'ConnectionInfo.MongoDbConnectionInfo' : MongoDbConnectionInfo, @@ -8458,6 +9533,7 @@ export const discriminators = { 'ConnectionInfo.SqlConnectionInfo' : SqlConnectionInfo, 'ProjectTaskProperties.GetTDECertificates.Sql' : GetTdeCertificatesSqlTaskProperties, 'ProjectTaskProperties.Validate.MongoDb' : ValidateMongoDbTaskProperties, + 'ProjectTaskProperties.ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS' : ValidateMigrationInputSqlServerSqlMISyncTaskProperties, 'ProjectTaskProperties.ValidateMigrationInput.SqlServer.AzureSqlDbMI' : ValidateMigrationInputSqlServerSqlMITaskProperties, 'ProjectTaskProperties.ValidateMigrationInput.SqlServer.SqlDb.Sync' : ValidateMigrationInputSqlServerSqlDbSyncTaskProperties, 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput.DatabaseLevelErrorOutput' : MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError, @@ -8487,6 +9563,11 @@ export const discriminators = { 'MigrateSqlServerSqlDbTaskOutput.MigrationLevelOutput' : MigrateSqlServerSqlDbTaskOutputMigrationLevel, 'MigrateSqlServerSqlDbTaskOutput' : MigrateSqlServerSqlDbTaskOutput, 'ProjectTaskProperties.Migrate.SqlServer.SqlDb' : MigrateSqlServerSqlDbTaskProperties, + 'MigrateSqlServerSqlMISyncTaskOutput.ErrorOutput' : MigrateSqlServerSqlMISyncTaskOutputError, + 'MigrateSqlServerSqlMISyncTaskOutput.DatabaseLevelOutput' : MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel, + 'MigrateSqlServerSqlMISyncTaskOutput.MigrationLevelOutput' : MigrateSqlServerSqlMISyncTaskOutputMigrationLevel, + 'MigrateSqlServerSqlMISyncTaskOutput' : MigrateSqlServerSqlMISyncTaskOutput, + 'ProjectTaskProperties.Migrate.SqlServer.AzureSqlDbMI.Sync.LRS' : MigrateSqlServerSqlMISyncTaskProperties, 'MigrateSqlServerSqlMITaskOutput.ErrorOutput' : MigrateSqlServerSqlMITaskOutputError, 'MigrateSqlServerSqlMITaskOutput.LoginLevelOutput' : MigrateSqlServerSqlMITaskOutputLoginLevel, 'MigrateSqlServerSqlMITaskOutput.AgentJobLevelOutput' : MigrateSqlServerSqlMITaskOutputAgentJobLevel, @@ -8496,11 +9577,14 @@ export const discriminators = { 'ProjectTaskProperties.Migrate.SqlServer.AzureSqlDbMI' : MigrateSqlServerSqlMITaskProperties, 'ProjectTaskProperties.Migrate.MongoDb' : MigrateMongoDbTaskProperties, 'ProjectTaskProperties.ConnectToTarget.AzureDbForMySql' : ConnectToTargetAzureDbForMySqlTaskProperties, + 'ProjectTaskProperties.ConnectToTarget.AzureSqlDbMI.Sync.LRS' : ConnectToTargetSqlMISyncTaskProperties, 'ProjectTaskProperties.ConnectToTarget.AzureSqlDbMI' : ConnectToTargetSqlMITaskProperties, 'ProjectTaskProperties.GetUserTables.AzureSqlDb.Sync' : GetUserTablesSqlSyncTaskProperties, 'ProjectTaskProperties.GetUserTables.Sql' : GetUserTablesSqlTaskProperties, + 'ProjectTaskProperties.ConnectToTarget.AzureDbForPostgreSql.Sync' : ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties, 'ProjectTaskProperties.ConnectToTarget.SqlDb.Sync' : ConnectToTargetSqlSqlDbSyncTaskProperties, 'ProjectTaskProperties.ConnectToTarget.SqlDb' : ConnectToTargetSqlDbTaskProperties, + 'ProjectTaskProperties.ConnectToSource.PostgreSql.Sync' : ConnectToSourcePostgreSqlSyncTaskProperties, 'ConnectToSourceSqlServerTaskOutput.AgentJobLevelOutput' : ConnectToSourceSqlServerTaskOutputAgentJobLevel, 'ConnectToSourceSqlServerTaskOutput.LoginLevelOutput' : ConnectToSourceSqlServerTaskOutputLoginLevel, 'ConnectToSourceSqlServerTaskOutput.DatabaseLevelOutput' : ConnectToSourceSqlServerTaskOutputDatabaseLevel, diff --git a/packages/@azure/arm-datamigration/lib/models/parameters.ts b/packages/@azure/arm-datamigration/lib/models/parameters.ts index 7aeaceeadc6d..edad9643d324 100644 --- a/packages/@azure/arm-datamigration/lib/models/parameters.ts +++ b/packages/@azure/arm-datamigration/lib/models/parameters.ts @@ -24,7 +24,9 @@ export const apiVersion: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { required: true, + isConstant: true, serializedName: "api-version", + defaultValue: '2018-07-15-preview', type: { name: "String" } diff --git a/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts b/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts index 631f9113b591..498cb89ac4a6 100644 --- a/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts @@ -21,6 +21,7 @@ export { ODataError, ProjectFile, ProjectFileProperties, + MiSqlConnectionInfo, PostgreSqlConnectionInfo, MySqlConnectionInfo, MongoDbConnectionInfo, @@ -50,6 +51,9 @@ export { MongoDbFinishCommandInput, MongoDbFinishCommand, MongoDbRestartCommand, + MigrateMISyncCompleteCommandProperties, + MigrateMISyncCompleteCommandInput, + MigrateMISyncCompleteCommandOutput, MigrateSyncCompleteCommandProperties, MigrateSyncCompleteCommandInput, MigrateSyncCompleteCommandOutput, @@ -70,9 +74,14 @@ export { MongoDbError, MongoDbDatabaseProgress, MongoDbCollectionProgress, + ValidateMigrationInputSqlServerSqlMISyncTaskProperties, + ValidateMigrationInputSqlServerSqlMISyncTaskInput, + SqlServerSqlMISyncTaskInput, + MigrateSqlServerSqlMIDatabaseInput, + AzureActiveDirectoryApp, + ValidateMigrationInputSqlServerSqlMISyncTaskOutput, ValidateMigrationInputSqlServerSqlMITaskProperties, ValidateMigrationInputSqlServerSqlMITaskInput, - MigrateSqlServerSqlMIDatabaseInput, BlobShare, ValidateMigrationInputSqlServerSqlMITaskOutput, DatabaseBackupInfo, @@ -96,6 +105,9 @@ export { MigrateSqlServerSqlDbDatabaseInput, MigrateSqlServerSqlDbTaskProperties, MigrateSqlServerSqlDbTaskOutput, + MigrateSqlServerSqlMISyncTaskInput, + MigrateSqlServerSqlMISyncTaskProperties, + MigrateSqlServerSqlMISyncTaskOutput, MigrateSqlServerSqlMITaskInput, MigrateSqlServerSqlMITaskProperties, MigrateSqlServerSqlMITaskOutput, @@ -103,6 +115,9 @@ export { ConnectToTargetAzureDbForMySqlTaskProperties, ConnectToTargetAzureDbForMySqlTaskInput, ConnectToTargetAzureDbForMySqlTaskOutput, + ConnectToTargetSqlMISyncTaskProperties, + ConnectToTargetSqlMISyncTaskInput, + ConnectToTargetSqlMISyncTaskOutput, ConnectToTargetSqlMITaskProperties, ConnectToTargetSqlMITaskInput, ConnectToTargetSqlMITaskOutput, @@ -113,11 +128,17 @@ export { GetUserTablesSqlTaskProperties, GetUserTablesSqlTaskInput, GetUserTablesSqlTaskOutput, + ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties, + ConnectToTargetAzureDbForPostgreSqlSyncTaskInput, + ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput, ConnectToTargetSqlSqlDbSyncTaskProperties, ConnectToTargetSqlSqlDbSyncTaskInput, ConnectToTargetSqlDbTaskOutput, ConnectToTargetSqlDbTaskProperties, ConnectToTargetSqlDbTaskInput, + ConnectToSourcePostgreSqlSyncTaskProperties, + ConnectToSourcePostgreSqlSyncTaskInput, + ConnectToSourcePostgreSqlSyncTaskOutput, ConnectToSourceSqlServerSyncTaskProperties, ConnectToSourceSqlServerTaskInput, ConnectToSourceSqlServerTaskOutput, @@ -153,6 +174,11 @@ export { MigrationValidationResult, MigrationValidationDatabaseSummaryResult, MigrationReportResult, + MigrateSqlServerSqlMISyncTaskOutputError, + MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel, + BackupSetInfo, + BackupFileInfo, + MigrateSqlServerSqlMISyncTaskOutputMigrationLevel, MigrateSqlServerSqlMITaskOutputError, MigrateSqlServerSqlMITaskOutputLoginLevel, MigrateSqlServerSqlMITaskOutputAgentJobLevel, diff --git a/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts b/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts index 321ade207068..00c411bbc856 100644 --- a/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts @@ -55,9 +55,13 @@ export { MongoDbFinishCommandInput, MongoDbFinishCommand, MongoDbRestartCommand, + MigrateMISyncCompleteCommandProperties, + MigrateMISyncCompleteCommandInput, + MigrateMISyncCompleteCommandOutput, MigrateSyncCompleteCommandProperties, MigrateSyncCompleteCommandInput, MigrateSyncCompleteCommandOutput, + MiSqlConnectionInfo, PostgreSqlConnectionInfo, MongoDbConnectionInfo, GetTdeCertificatesSqlTaskProperties, @@ -77,9 +81,14 @@ export { MongoDbError, MongoDbDatabaseProgress, MongoDbCollectionProgress, + ValidateMigrationInputSqlServerSqlMISyncTaskProperties, + ValidateMigrationInputSqlServerSqlMISyncTaskInput, + SqlServerSqlMISyncTaskInput, + MigrateSqlServerSqlMIDatabaseInput, + AzureActiveDirectoryApp, + ValidateMigrationInputSqlServerSqlMISyncTaskOutput, ValidateMigrationInputSqlServerSqlMITaskProperties, ValidateMigrationInputSqlServerSqlMITaskInput, - MigrateSqlServerSqlMIDatabaseInput, BlobShare, ValidateMigrationInputSqlServerSqlMITaskOutput, DatabaseBackupInfo, @@ -103,6 +112,9 @@ export { MigrateSqlServerSqlDbDatabaseInput, MigrateSqlServerSqlDbTaskProperties, MigrateSqlServerSqlDbTaskOutput, + MigrateSqlServerSqlMISyncTaskInput, + MigrateSqlServerSqlMISyncTaskProperties, + MigrateSqlServerSqlMISyncTaskOutput, MigrateSqlServerSqlMITaskInput, MigrateSqlServerSqlMITaskProperties, MigrateSqlServerSqlMITaskOutput, @@ -110,6 +122,9 @@ export { ConnectToTargetAzureDbForMySqlTaskProperties, ConnectToTargetAzureDbForMySqlTaskInput, ConnectToTargetAzureDbForMySqlTaskOutput, + ConnectToTargetSqlMISyncTaskProperties, + ConnectToTargetSqlMISyncTaskInput, + ConnectToTargetSqlMISyncTaskOutput, ConnectToTargetSqlMITaskProperties, ConnectToTargetSqlMITaskInput, ConnectToTargetSqlMITaskOutput, @@ -120,11 +135,17 @@ export { GetUserTablesSqlTaskProperties, GetUserTablesSqlTaskInput, GetUserTablesSqlTaskOutput, + ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties, + ConnectToTargetAzureDbForPostgreSqlSyncTaskInput, + ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput, ConnectToTargetSqlSqlDbSyncTaskProperties, ConnectToTargetSqlSqlDbSyncTaskInput, ConnectToTargetSqlDbTaskOutput, ConnectToTargetSqlDbTaskProperties, ConnectToTargetSqlDbTaskInput, + ConnectToSourcePostgreSqlSyncTaskProperties, + ConnectToSourcePostgreSqlSyncTaskInput, + ConnectToSourcePostgreSqlSyncTaskOutput, ConnectToSourceSqlServerSyncTaskProperties, ConnectToSourceSqlServerTaskInput, ConnectToSourceSqlServerTaskOutput, @@ -160,6 +181,11 @@ export { MigrationValidationResult, MigrationValidationDatabaseSummaryResult, MigrationReportResult, + MigrateSqlServerSqlMISyncTaskOutputError, + MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel, + BackupSetInfo, + BackupFileInfo, + MigrateSqlServerSqlMISyncTaskOutputMigrationLevel, MigrateSqlServerSqlMITaskOutputError, MigrateSqlServerSqlMITaskOutputLoginLevel, MigrateSqlServerSqlMITaskOutputAgentJobLevel, diff --git a/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts b/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts index c4d10a034385..85838e051297 100644 --- a/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts @@ -21,10 +21,13 @@ export { TrackedResource, ProjectFile, ProjectFileProperties, + MigrateMISyncCompleteCommandProperties, + MigrateMISyncCompleteCommandInput, + MigrateMISyncCompleteCommandOutput, + ReportableException, MigrateSyncCompleteCommandProperties, MigrateSyncCompleteCommandInput, MigrateSyncCompleteCommandOutput, - ReportableException, GetTdeCertificatesSqlTaskProperties, GetTdeCertificatesSqlTaskInput, SqlConnectionInfo, @@ -45,9 +48,15 @@ export { MongoDbError, MongoDbDatabaseProgress, MongoDbCollectionProgress, + ValidateMigrationInputSqlServerSqlMISyncTaskProperties, + ValidateMigrationInputSqlServerSqlMISyncTaskInput, + SqlServerSqlMISyncTaskInput, + MigrateSqlServerSqlMIDatabaseInput, + MiSqlConnectionInfo, + AzureActiveDirectoryApp, + ValidateMigrationInputSqlServerSqlMISyncTaskOutput, ValidateMigrationInputSqlServerSqlMITaskProperties, ValidateMigrationInputSqlServerSqlMITaskInput, - MigrateSqlServerSqlMIDatabaseInput, BlobShare, ValidateMigrationInputSqlServerSqlMITaskOutput, DatabaseBackupInfo, @@ -74,6 +83,9 @@ export { MigrateSqlServerSqlDbDatabaseInput, MigrateSqlServerSqlDbTaskProperties, MigrateSqlServerSqlDbTaskOutput, + MigrateSqlServerSqlMISyncTaskInput, + MigrateSqlServerSqlMISyncTaskProperties, + MigrateSqlServerSqlMISyncTaskOutput, MigrateSqlServerSqlMITaskInput, MigrateSqlServerSqlMITaskProperties, MigrateSqlServerSqlMITaskOutput, @@ -81,6 +93,9 @@ export { ConnectToTargetAzureDbForMySqlTaskProperties, ConnectToTargetAzureDbForMySqlTaskInput, ConnectToTargetAzureDbForMySqlTaskOutput, + ConnectToTargetSqlMISyncTaskProperties, + ConnectToTargetSqlMISyncTaskInput, + ConnectToTargetSqlMISyncTaskOutput, ConnectToTargetSqlMITaskProperties, ConnectToTargetSqlMITaskInput, ConnectToTargetSqlMITaskOutput, @@ -91,11 +106,17 @@ export { GetUserTablesSqlTaskProperties, GetUserTablesSqlTaskInput, GetUserTablesSqlTaskOutput, + ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties, + ConnectToTargetAzureDbForPostgreSqlSyncTaskInput, + ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput, ConnectToTargetSqlSqlDbSyncTaskProperties, ConnectToTargetSqlSqlDbSyncTaskInput, ConnectToTargetSqlDbTaskOutput, ConnectToTargetSqlDbTaskProperties, ConnectToTargetSqlDbTaskInput, + ConnectToSourcePostgreSqlSyncTaskProperties, + ConnectToSourcePostgreSqlSyncTaskInput, + ConnectToSourcePostgreSqlSyncTaskOutput, ConnectToSourceSqlServerSyncTaskProperties, ConnectToSourceSqlServerTaskInput, ConnectToSourceSqlServerTaskOutput, @@ -153,6 +174,11 @@ export { MigrationValidationResult, MigrationValidationDatabaseSummaryResult, MigrationReportResult, + MigrateSqlServerSqlMISyncTaskOutputError, + MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel, + BackupSetInfo, + BackupFileInfo, + MigrateSqlServerSqlMISyncTaskOutputMigrationLevel, MigrateSqlServerSqlMITaskOutputError, MigrateSqlServerSqlMITaskOutputLoginLevel, MigrateSqlServerSqlMITaskOutputAgentJobLevel, From c1d3c01b0656a757d7723d090b997278a7580b91 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 3 Dec 2018 19:34:23 +0000 Subject: [PATCH 2/5] Generated from e07d78079a8729b1e87661ccd81059be4995165b Fix comments on pull request --- .../lib/dataMigrationServiceClientContext.ts | 2 ++ .../arm-datamigration/lib/models/index.ts | 28 +++++++++---------- .../lib/models/parameters.ts | 2 -- .../arm-datamigration/lib/operations/tasks.ts | 2 +- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts index 2ed0b46a7982..29bdcb443e9e 100644 --- a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts +++ b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts @@ -17,6 +17,7 @@ const packageVersion = "0.1.0"; export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; + apiVersion?: string; subscriptionId: string; /** @@ -43,6 +44,7 @@ export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceC super(credentials, options); + this.apiVersion = '2018-07-15-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/packages/@azure/arm-datamigration/lib/models/index.ts b/packages/@azure/arm-datamigration/lib/models/index.ts index a4cd2e5dc4a3..4b0f75cd72f8 100644 --- a/packages/@azure/arm-datamigration/lib/models/index.ts +++ b/packages/@azure/arm-datamigration/lib/models/index.ts @@ -85,7 +85,7 @@ export interface ProjectFileProperties { */ readonly lastModified?: Date; /** - * @member {string} [mediaType] File content type. This propery can be + * @member {string} [mediaType] File content type. This property can be * modified to reflect the file content type. */ mediaType?: string; @@ -175,8 +175,8 @@ export interface ReportableException { /** * @interface * An interface representing MigrateMISyncCompleteCommandOutput. - * Output for command that completes sync migration for a managed instance - * database. + * Output for command that completes online migration for an Azure SQL Database + * Managed Instance. * */ export interface MigrateMISyncCompleteCommandOutput { @@ -190,8 +190,8 @@ export interface MigrateMISyncCompleteCommandOutput { /** * @interface * An interface representing MigrateMISyncCompleteCommandInput. - * Input for command that completes sync migration for a managed instance - * database. + * Input for command that completes online migration for an Azure SQL Database + * Managed Instance. * */ export interface MigrateMISyncCompleteCommandInput { @@ -238,8 +238,8 @@ export interface CommandProperties { /** * @interface * An interface representing MigrateMISyncCompleteCommandProperties. - * Properties for the command that completes sync migration for a managed - * instance database. + * Properties for the command that completes online migration for an Azure SQL + * Database Managed Instance. * */ export interface MigrateMISyncCompleteCommandProperties { @@ -378,7 +378,7 @@ export interface GetTdeCertificatesSqlTaskOutput { /** * @interface * An interface representing SelectedCertificateInput. - * Info for ertificate to be exported for TDE enabled databases. + * Info for certificate to be exported for TDE enabled databases. * */ export interface SelectedCertificateInput { @@ -5493,8 +5493,8 @@ export interface ConnectToTargetAzureDbForPostgreSqlSyncTaskInput { /** * @interface * An interface representing ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties. - * Properties for the task that validates connection to Azure Db For PostgreSql - * server and target server requirements for online migration + * Properties for the task that validates connection to Azure Database For + * PostgreSQL server and target server requirements for online migration * */ export interface ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties { @@ -5773,7 +5773,7 @@ export interface ConnectToSourcePostgreSqlSyncTaskInput { /** * @interface * An interface representing ConnectToSourcePostgreSqlSyncTaskProperties. - * Properties for the task that validates connection to PostgreSql server and + * Properties for the task that validates connection to PostgreSQL server and * source server requirements for online migration * */ @@ -5926,7 +5926,7 @@ export interface ConnectToSourceSqlServerTaskOutputAgentJobLevel { readonly validationErrors?: ReportableException[]; /** * @member {MigrationEligibilityInfo} [migrationEligibility] Information - * about eligiblity of agent job for migration. + * about eligibility of agent job for migration. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ @@ -5979,7 +5979,7 @@ export interface ConnectToSourceSqlServerTaskOutputLoginLevel { readonly isEnabled?: boolean; /** * @member {MigrationEligibilityInfo} [migrationEligibility] Information - * about eligiblity of login for migration. + * about eligibility of login for migration. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ @@ -6946,7 +6946,7 @@ export interface ResourceSkuRestrictions { /** * @interface * An interface representing ResourceSkuCapabilities. - * Describes The SKU capabilites object. + * Describes The SKU capabilities object. * */ export interface ResourceSkuCapabilities { diff --git a/packages/@azure/arm-datamigration/lib/models/parameters.ts b/packages/@azure/arm-datamigration/lib/models/parameters.ts index edad9643d324..7aeaceeadc6d 100644 --- a/packages/@azure/arm-datamigration/lib/models/parameters.ts +++ b/packages/@azure/arm-datamigration/lib/models/parameters.ts @@ -24,9 +24,7 @@ export const apiVersion: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { required: true, - isConstant: true, serializedName: "api-version", - defaultValue: '2018-07-15-preview', type: { name: "String" } diff --git a/packages/@azure/arm-datamigration/lib/operations/tasks.ts b/packages/@azure/arm-datamigration/lib/operations/tasks.ts index 02e8d3d519d6..3658110e5310 100644 --- a/packages/@azure/arm-datamigration/lib/operations/tasks.ts +++ b/packages/@azure/arm-datamigration/lib/operations/tasks.ts @@ -68,7 +68,7 @@ export class Tasks { /** * The tasks resource is a nested, proxy-only resource representing work performed by a DMS * instance. The PUT method creates a new task or updates an existing one, although since tasks - * have no mutable custom properties, there is little reason to update an exising one. + * have no mutable custom properties, there is little reason to update an existing one. * @summary Create or update task * @param parameters Information about the task * @param groupName Name of the resource group From b075915a6cbca5f217c2106724639972021196f1 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 5 Dec 2018 21:24:42 +0000 Subject: [PATCH 3/5] Generated from b3902e71906cd990fb1d5ffcf435c513be13e5b9 add orphaned user changes to the repo --- .../lib/models/filesMappers.ts | 1 + .../arm-datamigration/lib/models/index.ts | 22 ++++++++++++-- .../arm-datamigration/lib/models/mappers.ts | 29 +++++++++++++++++-- .../lib/models/projectsMappers.ts | 1 + .../lib/models/servicesMappers.ts | 1 + .../lib/models/tasksMappers.ts | 1 + 6 files changed, 49 insertions(+), 6 deletions(-) diff --git a/packages/@azure/arm-datamigration/lib/models/filesMappers.ts b/packages/@azure/arm-datamigration/lib/models/filesMappers.ts index 230713a64638..e5f88de43c8d 100644 --- a/packages/@azure/arm-datamigration/lib/models/filesMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/filesMappers.ts @@ -186,6 +186,7 @@ export { MigrateSqlServerSqlMITaskOutputDatabaseLevel, MigrateSqlServerSqlMITaskOutputMigrationLevel, StartMigrationScenarioServerRoleResult, + OrphanedUserInfo, ConnectToSourceSqlServerTaskOutputAgentJobLevel, MigrationEligibilityInfo, ConnectToSourceSqlServerTaskOutputLoginLevel, diff --git a/packages/@azure/arm-datamigration/lib/models/index.ts b/packages/@azure/arm-datamigration/lib/models/index.ts index 4b0f75cd72f8..1ee64b434fea 100644 --- a/packages/@azure/arm-datamigration/lib/models/index.ts +++ b/packages/@azure/arm-datamigration/lib/models/index.ts @@ -4580,6 +4580,23 @@ export interface MigrateSqlServerSqlMITaskOutputDatabaseLevel { readonly exceptionsAndWarnings?: ReportableException[]; } +/** + * @interface + * An interface representing OrphanedUserInfo. + * Information of orphaned users on the SQL server database. + * + */ +export interface OrphanedUserInfo { + /** + * @member {string} [name] Name of the orphaned user + */ + name?: string; + /** + * @member {string} [databaseName] Parent DB of the user + */ + databaseName?: string; +} + /** * @interface * An interface representing StartMigrationScenarioServerRoleResult. @@ -4682,12 +4699,11 @@ export interface MigrateSqlServerSqlMITaskOutputMigrationLevel { */ readonly serverRoleResults?: { [propertyName: string]: StartMigrationScenarioServerRoleResult }; /** - * @member {{ [propertyName: string]: string }} [orphanedUsers] Map of users - * to database name of orphaned users. + * @member {OrphanedUserInfo[]} [orphanedUsers] List of orphaned users. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly orphanedUsers?: { [propertyName: string]: string }; + readonly orphanedUsers?: OrphanedUserInfo[]; /** * @member {{ [propertyName: string]: string }} [databases] Selected * databases as a map from database name to database id diff --git a/packages/@azure/arm-datamigration/lib/models/mappers.ts b/packages/@azure/arm-datamigration/lib/models/mappers.ts index bd8a96ee2d3e..814e50280758 100644 --- a/packages/@azure/arm-datamigration/lib/models/mappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/mappers.ts @@ -5201,6 +5201,28 @@ export const MigrateSqlServerSqlMITaskOutputDatabaseLevel: msRest.CompositeMappe } }; +export const OrphanedUserInfo: msRest.CompositeMapper = { + serializedName: "OrphanedUserInfo", + type: { + name: "Composite", + className: "OrphanedUserInfo", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + databaseName: { + serializedName: "databaseName", + type: { + name: "String" + } + } + } + } +}; + export const StartMigrationScenarioServerRoleResult: msRest.CompositeMapper = { serializedName: "StartMigrationScenarioServerRoleResult", type: { @@ -5323,10 +5345,11 @@ export const MigrateSqlServerSqlMITaskOutputMigrationLevel: msRest.CompositeMapp readOnly: true, serializedName: "orphanedUsers", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { - name: "String" + name: "Composite", + className: "OrphanedUserInfo" } } } diff --git a/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts b/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts index 498cb89ac4a6..9d93ccde4e7e 100644 --- a/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts @@ -185,6 +185,7 @@ export { MigrateSqlServerSqlMITaskOutputDatabaseLevel, MigrateSqlServerSqlMITaskOutputMigrationLevel, StartMigrationScenarioServerRoleResult, + OrphanedUserInfo, ConnectToSourceSqlServerTaskOutputAgentJobLevel, MigrationEligibilityInfo, ConnectToSourceSqlServerTaskOutputLoginLevel, diff --git a/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts b/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts index 00c411bbc856..85783c83cf57 100644 --- a/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts @@ -192,6 +192,7 @@ export { MigrateSqlServerSqlMITaskOutputDatabaseLevel, MigrateSqlServerSqlMITaskOutputMigrationLevel, StartMigrationScenarioServerRoleResult, + OrphanedUserInfo, ConnectToSourceSqlServerTaskOutputAgentJobLevel, MigrationEligibilityInfo, ConnectToSourceSqlServerTaskOutputLoginLevel, diff --git a/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts b/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts index 85838e051297..3b87b58e4068 100644 --- a/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts @@ -185,6 +185,7 @@ export { MigrateSqlServerSqlMITaskOutputDatabaseLevel, MigrateSqlServerSqlMITaskOutputMigrationLevel, StartMigrationScenarioServerRoleResult, + OrphanedUserInfo, ConnectToSourceSqlServerTaskOutputAgentJobLevel, MigrationEligibilityInfo, ConnectToSourceSqlServerTaskOutputLoginLevel, From 44939d6eb4f9486f0da46767155c979d8632a8f0 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 5 Dec 2018 23:12:00 +0000 Subject: [PATCH 4/5] Generated from 194999dd0c4aa8e525e2ce95920571b28475ec93 minor string fix --- packages/@azure/arm-datamigration/lib/models/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@azure/arm-datamigration/lib/models/index.ts b/packages/@azure/arm-datamigration/lib/models/index.ts index 1ee64b434fea..a4c244b52bfc 100644 --- a/packages/@azure/arm-datamigration/lib/models/index.ts +++ b/packages/@azure/arm-datamigration/lib/models/index.ts @@ -4592,7 +4592,7 @@ export interface OrphanedUserInfo { */ name?: string; /** - * @member {string} [databaseName] Parent DB of the user + * @member {string} [databaseName] Parent database of the user */ databaseName?: string; } From 63da8be859d9a47c0da388273ce007b0422e349f Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 13 Dec 2018 01:22:40 +0000 Subject: [PATCH 5/5] Generated from e2c19668640e42352fe034e8637440426690b683 Change orphanedUsers to orphanedUsersInfo --- packages/@azure/arm-datamigration/lib/models/index.ts | 4 ++-- packages/@azure/arm-datamigration/lib/models/mappers.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/@azure/arm-datamigration/lib/models/index.ts b/packages/@azure/arm-datamigration/lib/models/index.ts index a4c244b52bfc..eddbde053c70 100644 --- a/packages/@azure/arm-datamigration/lib/models/index.ts +++ b/packages/@azure/arm-datamigration/lib/models/index.ts @@ -4699,11 +4699,11 @@ export interface MigrateSqlServerSqlMITaskOutputMigrationLevel { */ readonly serverRoleResults?: { [propertyName: string]: StartMigrationScenarioServerRoleResult }; /** - * @member {OrphanedUserInfo[]} [orphanedUsers] List of orphaned users. + * @member {OrphanedUserInfo[]} [orphanedUsersInfo] List of orphaned users. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly orphanedUsers?: OrphanedUserInfo[]; + readonly orphanedUsersInfo?: OrphanedUserInfo[]; /** * @member {{ [propertyName: string]: string }} [databases] Selected * databases as a map from database name to database id diff --git a/packages/@azure/arm-datamigration/lib/models/mappers.ts b/packages/@azure/arm-datamigration/lib/models/mappers.ts index 814e50280758..f3f90f326ef3 100644 --- a/packages/@azure/arm-datamigration/lib/models/mappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/mappers.ts @@ -5341,9 +5341,9 @@ export const MigrateSqlServerSqlMITaskOutputMigrationLevel: msRest.CompositeMapp } } }, - orphanedUsers: { + orphanedUsersInfo: { readOnly: true, - serializedName: "orphanedUsers", + serializedName: "orphanedUsersInfo", type: { name: "Sequence", element: {