@azure/arm-datamigration 3.0.0-alpha.20250721.1 → 3.0.0-alpha.20250723.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +0 -3
- package/dist/browser/dataMigrationManagementClient.d.ts +5 -1
- package/dist/browser/dataMigrationManagementClient.d.ts.map +1 -1
- package/dist/browser/dataMigrationManagementClient.js +19 -32
- package/dist/browser/dataMigrationManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.d.ts +6 -11
- package/dist/browser/lroImpl.d.ts.map +1 -1
- package/dist/browser/lroImpl.js +12 -24
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/index.d.ts +968 -216
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +52 -8
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/mappers.d.ts +47 -14
- package/dist/browser/models/mappers.d.ts.map +1 -1
- package/dist/browser/models/mappers.js +5531 -5222
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/models/parameters.d.ts +21 -12
- package/dist/browser/models/parameters.d.ts.map +1 -1
- package/dist/browser/models/parameters.js +184 -110
- package/dist/browser/models/parameters.js.map +1 -1
- package/dist/browser/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts +89 -0
- package/dist/browser/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -0
- package/dist/browser/operations/databaseMigrationsMongoToCosmosDbRUMongo.js +370 -0
- package/dist/browser/operations/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -0
- package/dist/browser/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts +89 -0
- package/dist/browser/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -0
- package/dist/browser/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js +370 -0
- package/dist/browser/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -0
- package/dist/browser/operations/databaseMigrationsSqlDb.d.ts +81 -0
- package/dist/browser/operations/databaseMigrationsSqlDb.d.ts.map +1 -0
- package/dist/browser/operations/databaseMigrationsSqlDb.js +303 -0
- package/dist/browser/operations/databaseMigrationsSqlDb.js.map +1 -0
- package/dist/browser/operations/databaseMigrationsSqlMi.d.ts +11 -11
- package/dist/browser/operations/databaseMigrationsSqlMi.d.ts.map +1 -1
- package/dist/browser/operations/databaseMigrationsSqlMi.js +95 -99
- package/dist/browser/operations/databaseMigrationsSqlMi.js.map +1 -1
- package/dist/browser/operations/databaseMigrationsSqlVm.d.ts +11 -11
- package/dist/browser/operations/databaseMigrationsSqlVm.d.ts.map +1 -1
- package/dist/browser/operations/databaseMigrationsSqlVm.js +95 -99
- package/dist/browser/operations/databaseMigrationsSqlVm.js.map +1 -1
- package/dist/browser/operations/files.js +83 -67
- package/dist/browser/operations/files.js.map +1 -1
- package/dist/browser/operations/index.d.ts +4 -0
- package/dist/browser/operations/index.d.ts.map +1 -1
- package/dist/browser/operations/index.js +4 -0
- package/dist/browser/operations/index.js.map +1 -1
- package/dist/browser/operations/migrationServices.d.ts +144 -0
- package/dist/browser/operations/migrationServices.d.ts.map +1 -0
- package/dist/browser/operations/migrationServices.js +676 -0
- package/dist/browser/operations/migrationServices.js.map +1 -0
- package/dist/browser/operations/operations.js +47 -31
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/projects.js +73 -57
- package/dist/browser/operations/projects.js.map +1 -1
- package/dist/browser/operations/resourceSkus.d.ts +2 -2
- package/dist/browser/operations/resourceSkus.js +52 -36
- package/dist/browser/operations/resourceSkus.js.map +1 -1
- package/dist/browser/operations/serviceTasks.d.ts +16 -13
- package/dist/browser/operations/serviceTasks.d.ts.map +1 -1
- package/dist/browser/operations/serviceTasks.js +95 -76
- package/dist/browser/operations/serviceTasks.js.map +1 -1
- package/dist/browser/operations/services.d.ts +59 -58
- package/dist/browser/operations/services.d.ts.map +1 -1
- package/dist/browser/operations/services.js +332 -288
- package/dist/browser/operations/services.js.map +1 -1
- package/dist/browser/operations/sqlMigrationServices.d.ts +13 -12
- package/dist/browser/operations/sqlMigrationServices.d.ts.map +1 -1
- package/dist/browser/operations/sqlMigrationServices.js +240 -194
- package/dist/browser/operations/sqlMigrationServices.js.map +1 -1
- package/dist/browser/operations/tasks.d.ts +20 -20
- package/dist/browser/operations/tasks.js +105 -89
- package/dist/browser/operations/tasks.js.map +1 -1
- package/dist/browser/operations/usages.d.ts +4 -4
- package/dist/browser/operations/usages.js +55 -39
- package/dist/browser/operations/usages.js.map +1 -1
- package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts +62 -0
- package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js +9 -0
- package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -0
- package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts +62 -0
- package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js +9 -0
- package/dist/browser/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -0
- package/dist/browser/operationsInterfaces/databaseMigrationsSqlDb.d.ts +73 -0
- package/dist/browser/operationsInterfaces/databaseMigrationsSqlDb.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/databaseMigrationsSqlDb.js +9 -0
- package/dist/browser/operationsInterfaces/databaseMigrationsSqlDb.js.map +1 -0
- package/dist/browser/operationsInterfaces/databaseMigrationsSqlMi.d.ts +11 -11
- package/dist/browser/operationsInterfaces/databaseMigrationsSqlMi.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/databaseMigrationsSqlMi.js.map +1 -1
- package/dist/browser/operationsInterfaces/databaseMigrationsSqlVm.d.ts +11 -11
- package/dist/browser/operationsInterfaces/databaseMigrationsSqlVm.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/databaseMigrationsSqlVm.js.map +1 -1
- package/dist/browser/operationsInterfaces/files.js.map +1 -1
- package/dist/browser/operationsInterfaces/index.d.ts +4 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/index.js +4 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -1
- package/dist/browser/operationsInterfaces/migrationServices.d.ts +87 -0
- package/dist/browser/operationsInterfaces/migrationServices.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/migrationServices.js +9 -0
- package/dist/browser/operationsInterfaces/migrationServices.js.map +1 -0
- package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operations.js.map +1 -1
- package/dist/browser/operationsInterfaces/projects.js.map +1 -1
- package/dist/browser/operationsInterfaces/resourceSkus.d.ts +1 -1
- package/dist/browser/operationsInterfaces/resourceSkus.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/resourceSkus.js.map +1 -1
- package/dist/browser/operationsInterfaces/serviceTasks.d.ts +12 -10
- package/dist/browser/operationsInterfaces/serviceTasks.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/serviceTasks.js.map +1 -1
- package/dist/browser/operationsInterfaces/services.d.ts +53 -52
- package/dist/browser/operationsInterfaces/services.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/services.js.map +1 -1
- package/dist/browser/operationsInterfaces/sqlMigrationServices.d.ts +13 -12
- package/dist/browser/operationsInterfaces/sqlMigrationServices.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/sqlMigrationServices.js.map +1 -1
- package/dist/browser/operationsInterfaces/tasks.d.ts +17 -17
- package/dist/browser/operationsInterfaces/tasks.js.map +1 -1
- package/dist/browser/operationsInterfaces/usages.d.ts +2 -2
- package/dist/browser/operationsInterfaces/usages.js.map +1 -1
- package/dist/browser/pagingHelper.d.ts +4 -4
- package/dist/browser/pagingHelper.js +8 -6
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/dataMigrationManagementClient.d.ts +5 -1
- package/dist/commonjs/dataMigrationManagementClient.d.ts.map +1 -1
- package/dist/commonjs/dataMigrationManagementClient.js +18 -31
- package/dist/commonjs/dataMigrationManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.d.ts +6 -11
- package/dist/commonjs/lroImpl.d.ts.map +1 -1
- package/dist/commonjs/lroImpl.js +13 -26
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +968 -216
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +54 -10
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/mappers.d.ts +47 -14
- package/dist/commonjs/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/models/mappers.js +5538 -5229
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/models/parameters.d.ts +21 -12
- package/dist/commonjs/models/parameters.d.ts.map +1 -1
- package/dist/commonjs/models/parameters.js +184 -110
- package/dist/commonjs/models/parameters.js.map +1 -1
- package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts +89 -0
- package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -0
- package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbRUMongo.js +374 -0
- package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -0
- package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts +89 -0
- package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -0
- package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js +374 -0
- package/dist/commonjs/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -0
- package/dist/commonjs/operations/databaseMigrationsSqlDb.d.ts +81 -0
- package/dist/commonjs/operations/databaseMigrationsSqlDb.d.ts.map +1 -0
- package/dist/commonjs/operations/databaseMigrationsSqlDb.js +308 -0
- package/dist/commonjs/operations/databaseMigrationsSqlDb.js.map +1 -0
- package/dist/commonjs/operations/databaseMigrationsSqlMi.d.ts +11 -11
- package/dist/commonjs/operations/databaseMigrationsSqlMi.d.ts.map +1 -1
- package/dist/commonjs/operations/databaseMigrationsSqlMi.js +93 -97
- package/dist/commonjs/operations/databaseMigrationsSqlMi.js.map +1 -1
- package/dist/commonjs/operations/databaseMigrationsSqlVm.d.ts +11 -11
- package/dist/commonjs/operations/databaseMigrationsSqlVm.d.ts.map +1 -1
- package/dist/commonjs/operations/databaseMigrationsSqlVm.js +93 -97
- package/dist/commonjs/operations/databaseMigrationsSqlVm.js.map +1 -1
- package/dist/commonjs/operations/files.js +82 -67
- package/dist/commonjs/operations/files.js.map +1 -1
- package/dist/commonjs/operations/index.d.ts +4 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -1
- package/dist/commonjs/operations/index.js +4 -0
- package/dist/commonjs/operations/index.js.map +1 -1
- package/dist/commonjs/operations/migrationServices.d.ts +144 -0
- package/dist/commonjs/operations/migrationServices.d.ts.map +1 -0
- package/dist/commonjs/operations/migrationServices.js +680 -0
- package/dist/commonjs/operations/migrationServices.js.map +1 -0
- package/dist/commonjs/operations/operations.js +46 -31
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/projects.js +72 -57
- package/dist/commonjs/operations/projects.js.map +1 -1
- package/dist/commonjs/operations/resourceSkus.d.ts +2 -2
- package/dist/commonjs/operations/resourceSkus.js +51 -36
- package/dist/commonjs/operations/resourceSkus.js.map +1 -1
- package/dist/commonjs/operations/serviceTasks.d.ts +16 -13
- package/dist/commonjs/operations/serviceTasks.d.ts.map +1 -1
- package/dist/commonjs/operations/serviceTasks.js +94 -76
- package/dist/commonjs/operations/serviceTasks.js.map +1 -1
- package/dist/commonjs/operations/services.d.ts +59 -58
- package/dist/commonjs/operations/services.d.ts.map +1 -1
- package/dist/commonjs/operations/services.js +329 -286
- package/dist/commonjs/operations/services.js.map +1 -1
- package/dist/commonjs/operations/sqlMigrationServices.d.ts +13 -12
- package/dist/commonjs/operations/sqlMigrationServices.d.ts.map +1 -1
- package/dist/commonjs/operations/sqlMigrationServices.js +237 -192
- package/dist/commonjs/operations/sqlMigrationServices.js.map +1 -1
- package/dist/commonjs/operations/tasks.d.ts +20 -20
- package/dist/commonjs/operations/tasks.js +104 -89
- package/dist/commonjs/operations/tasks.js.map +1 -1
- package/dist/commonjs/operations/usages.d.ts +4 -4
- package/dist/commonjs/operations/usages.js +54 -39
- package/dist/commonjs/operations/usages.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts +62 -0
- package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js +10 -0
- package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts +62 -0
- package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js +10 -0
- package/dist/commonjs/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlDb.d.ts +73 -0
- package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlDb.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlDb.js +10 -0
- package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlDb.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlMi.d.ts +11 -11
- package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlMi.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlMi.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlVm.d.ts +11 -11
- package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlVm.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/databaseMigrationsSqlVm.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/files.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.d.ts +4 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.js +4 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/migrationServices.d.ts +87 -0
- package/dist/commonjs/operationsInterfaces/migrationServices.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/migrationServices.js +10 -0
- package/dist/commonjs/operationsInterfaces/migrationServices.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/projects.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/resourceSkus.d.ts +1 -1
- package/dist/commonjs/operationsInterfaces/resourceSkus.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/resourceSkus.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/serviceTasks.d.ts +12 -10
- package/dist/commonjs/operationsInterfaces/serviceTasks.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/serviceTasks.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/services.d.ts +53 -52
- package/dist/commonjs/operationsInterfaces/services.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/services.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/sqlMigrationServices.d.ts +13 -12
- package/dist/commonjs/operationsInterfaces/sqlMigrationServices.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/sqlMigrationServices.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/tasks.d.ts +17 -17
- package/dist/commonjs/operationsInterfaces/tasks.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/usages.d.ts +2 -2
- package/dist/commonjs/operationsInterfaces/usages.js.map +1 -1
- package/dist/commonjs/pagingHelper.d.ts +4 -4
- package/dist/commonjs/pagingHelper.js +8 -6
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/esm/dataMigrationManagementClient.d.ts +5 -1
- package/dist/esm/dataMigrationManagementClient.d.ts.map +1 -1
- package/dist/esm/dataMigrationManagementClient.js +19 -32
- package/dist/esm/dataMigrationManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.d.ts +6 -11
- package/dist/esm/lroImpl.d.ts.map +1 -1
- package/dist/esm/lroImpl.js +12 -24
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/index.d.ts +968 -216
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +52 -8
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/mappers.d.ts +47 -14
- package/dist/esm/models/mappers.d.ts.map +1 -1
- package/dist/esm/models/mappers.js +5531 -5222
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/models/parameters.d.ts +21 -12
- package/dist/esm/models/parameters.d.ts.map +1 -1
- package/dist/esm/models/parameters.js +184 -110
- package/dist/esm/models/parameters.js.map +1 -1
- package/dist/esm/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts +89 -0
- package/dist/esm/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -0
- package/dist/esm/operations/databaseMigrationsMongoToCosmosDbRUMongo.js +370 -0
- package/dist/esm/operations/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -0
- package/dist/esm/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts +89 -0
- package/dist/esm/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -0
- package/dist/esm/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js +370 -0
- package/dist/esm/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -0
- package/dist/esm/operations/databaseMigrationsSqlDb.d.ts +81 -0
- package/dist/esm/operations/databaseMigrationsSqlDb.d.ts.map +1 -0
- package/dist/esm/operations/databaseMigrationsSqlDb.js +303 -0
- package/dist/esm/operations/databaseMigrationsSqlDb.js.map +1 -0
- package/dist/esm/operations/databaseMigrationsSqlMi.d.ts +11 -11
- package/dist/esm/operations/databaseMigrationsSqlMi.d.ts.map +1 -1
- package/dist/esm/operations/databaseMigrationsSqlMi.js +95 -99
- package/dist/esm/operations/databaseMigrationsSqlMi.js.map +1 -1
- package/dist/esm/operations/databaseMigrationsSqlVm.d.ts +11 -11
- package/dist/esm/operations/databaseMigrationsSqlVm.d.ts.map +1 -1
- package/dist/esm/operations/databaseMigrationsSqlVm.js +95 -99
- package/dist/esm/operations/databaseMigrationsSqlVm.js.map +1 -1
- package/dist/esm/operations/files.js +83 -67
- package/dist/esm/operations/files.js.map +1 -1
- package/dist/esm/operations/index.d.ts +4 -0
- package/dist/esm/operations/index.d.ts.map +1 -1
- package/dist/esm/operations/index.js +4 -0
- package/dist/esm/operations/index.js.map +1 -1
- package/dist/esm/operations/migrationServices.d.ts +144 -0
- package/dist/esm/operations/migrationServices.d.ts.map +1 -0
- package/dist/esm/operations/migrationServices.js +676 -0
- package/dist/esm/operations/migrationServices.js.map +1 -0
- package/dist/esm/operations/operations.js +47 -31
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/projects.js +73 -57
- package/dist/esm/operations/projects.js.map +1 -1
- package/dist/esm/operations/resourceSkus.d.ts +2 -2
- package/dist/esm/operations/resourceSkus.js +52 -36
- package/dist/esm/operations/resourceSkus.js.map +1 -1
- package/dist/esm/operations/serviceTasks.d.ts +16 -13
- package/dist/esm/operations/serviceTasks.d.ts.map +1 -1
- package/dist/esm/operations/serviceTasks.js +95 -76
- package/dist/esm/operations/serviceTasks.js.map +1 -1
- package/dist/esm/operations/services.d.ts +59 -58
- package/dist/esm/operations/services.d.ts.map +1 -1
- package/dist/esm/operations/services.js +332 -288
- package/dist/esm/operations/services.js.map +1 -1
- package/dist/esm/operations/sqlMigrationServices.d.ts +13 -12
- package/dist/esm/operations/sqlMigrationServices.d.ts.map +1 -1
- package/dist/esm/operations/sqlMigrationServices.js +240 -194
- package/dist/esm/operations/sqlMigrationServices.js.map +1 -1
- package/dist/esm/operations/tasks.d.ts +20 -20
- package/dist/esm/operations/tasks.js +105 -89
- package/dist/esm/operations/tasks.js.map +1 -1
- package/dist/esm/operations/usages.d.ts +4 -4
- package/dist/esm/operations/usages.js +55 -39
- package/dist/esm/operations/usages.js.map +1 -1
- package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts +62 -0
- package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js +9 -0
- package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -0
- package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts +62 -0
- package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js +9 -0
- package/dist/esm/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -0
- package/dist/esm/operationsInterfaces/databaseMigrationsSqlDb.d.ts +73 -0
- package/dist/esm/operationsInterfaces/databaseMigrationsSqlDb.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/databaseMigrationsSqlDb.js +9 -0
- package/dist/esm/operationsInterfaces/databaseMigrationsSqlDb.js.map +1 -0
- package/dist/esm/operationsInterfaces/databaseMigrationsSqlMi.d.ts +11 -11
- package/dist/esm/operationsInterfaces/databaseMigrationsSqlMi.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/databaseMigrationsSqlMi.js.map +1 -1
- package/dist/esm/operationsInterfaces/databaseMigrationsSqlVm.d.ts +11 -11
- package/dist/esm/operationsInterfaces/databaseMigrationsSqlVm.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/databaseMigrationsSqlVm.js.map +1 -1
- package/dist/esm/operationsInterfaces/files.js.map +1 -1
- package/dist/esm/operationsInterfaces/index.d.ts +4 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/index.js +4 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -1
- package/dist/esm/operationsInterfaces/migrationServices.d.ts +87 -0
- package/dist/esm/operationsInterfaces/migrationServices.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/migrationServices.js +9 -0
- package/dist/esm/operationsInterfaces/migrationServices.js.map +1 -0
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/operations.js.map +1 -1
- package/dist/esm/operationsInterfaces/projects.js.map +1 -1
- package/dist/esm/operationsInterfaces/resourceSkus.d.ts +1 -1
- package/dist/esm/operationsInterfaces/resourceSkus.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/resourceSkus.js.map +1 -1
- package/dist/esm/operationsInterfaces/serviceTasks.d.ts +12 -10
- package/dist/esm/operationsInterfaces/serviceTasks.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/serviceTasks.js.map +1 -1
- package/dist/esm/operationsInterfaces/services.d.ts +53 -52
- package/dist/esm/operationsInterfaces/services.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/services.js.map +1 -1
- package/dist/esm/operationsInterfaces/sqlMigrationServices.d.ts +13 -12
- package/dist/esm/operationsInterfaces/sqlMigrationServices.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/sqlMigrationServices.js.map +1 -1
- package/dist/esm/operationsInterfaces/tasks.d.ts +17 -17
- package/dist/esm/operationsInterfaces/tasks.js.map +1 -1
- package/dist/esm/operationsInterfaces/usages.d.ts +2 -2
- package/dist/esm/operationsInterfaces/usages.js.map +1 -1
- package/dist/esm/pagingHelper.d.ts +4 -4
- package/dist/esm/pagingHelper.js +8 -6
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/dataMigrationManagementClient.d.ts +5 -1
- package/dist/react-native/dataMigrationManagementClient.d.ts.map +1 -1
- package/dist/react-native/dataMigrationManagementClient.js +19 -32
- package/dist/react-native/dataMigrationManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.d.ts +6 -11
- package/dist/react-native/lroImpl.d.ts.map +1 -1
- package/dist/react-native/lroImpl.js +12 -24
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/index.d.ts +968 -216
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +52 -8
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/mappers.d.ts +47 -14
- package/dist/react-native/models/mappers.d.ts.map +1 -1
- package/dist/react-native/models/mappers.js +5531 -5222
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/models/parameters.d.ts +21 -12
- package/dist/react-native/models/parameters.d.ts.map +1 -1
- package/dist/react-native/models/parameters.js +184 -110
- package/dist/react-native/models/parameters.js.map +1 -1
- package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts +89 -0
- package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -0
- package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbRUMongo.js +370 -0
- package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -0
- package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts +89 -0
- package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -0
- package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js +370 -0
- package/dist/react-native/operations/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -0
- package/dist/react-native/operations/databaseMigrationsSqlDb.d.ts +81 -0
- package/dist/react-native/operations/databaseMigrationsSqlDb.d.ts.map +1 -0
- package/dist/react-native/operations/databaseMigrationsSqlDb.js +303 -0
- package/dist/react-native/operations/databaseMigrationsSqlDb.js.map +1 -0
- package/dist/react-native/operations/databaseMigrationsSqlMi.d.ts +11 -11
- package/dist/react-native/operations/databaseMigrationsSqlMi.d.ts.map +1 -1
- package/dist/react-native/operations/databaseMigrationsSqlMi.js +95 -99
- package/dist/react-native/operations/databaseMigrationsSqlMi.js.map +1 -1
- package/dist/react-native/operations/databaseMigrationsSqlVm.d.ts +11 -11
- package/dist/react-native/operations/databaseMigrationsSqlVm.d.ts.map +1 -1
- package/dist/react-native/operations/databaseMigrationsSqlVm.js +95 -99
- package/dist/react-native/operations/databaseMigrationsSqlVm.js.map +1 -1
- package/dist/react-native/operations/files.js +83 -67
- package/dist/react-native/operations/files.js.map +1 -1
- package/dist/react-native/operations/index.d.ts +4 -0
- package/dist/react-native/operations/index.d.ts.map +1 -1
- package/dist/react-native/operations/index.js +4 -0
- package/dist/react-native/operations/index.js.map +1 -1
- package/dist/react-native/operations/migrationServices.d.ts +144 -0
- package/dist/react-native/operations/migrationServices.d.ts.map +1 -0
- package/dist/react-native/operations/migrationServices.js +676 -0
- package/dist/react-native/operations/migrationServices.js.map +1 -0
- package/dist/react-native/operations/operations.js +47 -31
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/projects.js +73 -57
- package/dist/react-native/operations/projects.js.map +1 -1
- package/dist/react-native/operations/resourceSkus.d.ts +2 -2
- package/dist/react-native/operations/resourceSkus.js +52 -36
- package/dist/react-native/operations/resourceSkus.js.map +1 -1
- package/dist/react-native/operations/serviceTasks.d.ts +16 -13
- package/dist/react-native/operations/serviceTasks.d.ts.map +1 -1
- package/dist/react-native/operations/serviceTasks.js +95 -76
- package/dist/react-native/operations/serviceTasks.js.map +1 -1
- package/dist/react-native/operations/services.d.ts +59 -58
- package/dist/react-native/operations/services.d.ts.map +1 -1
- package/dist/react-native/operations/services.js +332 -288
- package/dist/react-native/operations/services.js.map +1 -1
- package/dist/react-native/operations/sqlMigrationServices.d.ts +13 -12
- package/dist/react-native/operations/sqlMigrationServices.d.ts.map +1 -1
- package/dist/react-native/operations/sqlMigrationServices.js +240 -194
- package/dist/react-native/operations/sqlMigrationServices.js.map +1 -1
- package/dist/react-native/operations/tasks.d.ts +20 -20
- package/dist/react-native/operations/tasks.js +105 -89
- package/dist/react-native/operations/tasks.js.map +1 -1
- package/dist/react-native/operations/usages.d.ts +4 -4
- package/dist/react-native/operations/usages.js +55 -39
- package/dist/react-native/operations/usages.js.map +1 -1
- package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts +62 -0
- package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js +9 -0
- package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbRUMongo.js.map +1 -0
- package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts +62 -0
- package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js +9 -0
- package/dist/react-native/operationsInterfaces/databaseMigrationsMongoToCosmosDbvCoreMongo.js.map +1 -0
- package/dist/react-native/operationsInterfaces/databaseMigrationsSqlDb.d.ts +73 -0
- package/dist/react-native/operationsInterfaces/databaseMigrationsSqlDb.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/databaseMigrationsSqlDb.js +9 -0
- package/dist/react-native/operationsInterfaces/databaseMigrationsSqlDb.js.map +1 -0
- package/dist/react-native/operationsInterfaces/databaseMigrationsSqlMi.d.ts +11 -11
- package/dist/react-native/operationsInterfaces/databaseMigrationsSqlMi.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/databaseMigrationsSqlMi.js.map +1 -1
- package/dist/react-native/operationsInterfaces/databaseMigrationsSqlVm.d.ts +11 -11
- package/dist/react-native/operationsInterfaces/databaseMigrationsSqlVm.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/databaseMigrationsSqlVm.js.map +1 -1
- package/dist/react-native/operationsInterfaces/files.js.map +1 -1
- package/dist/react-native/operationsInterfaces/index.d.ts +4 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/index.js +4 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -1
- package/dist/react-native/operationsInterfaces/migrationServices.d.ts +87 -0
- package/dist/react-native/operationsInterfaces/migrationServices.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/migrationServices.js +9 -0
- package/dist/react-native/operationsInterfaces/migrationServices.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -1
- package/dist/react-native/operationsInterfaces/projects.js.map +1 -1
- package/dist/react-native/operationsInterfaces/resourceSkus.d.ts +1 -1
- package/dist/react-native/operationsInterfaces/resourceSkus.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/resourceSkus.js.map +1 -1
- package/dist/react-native/operationsInterfaces/serviceTasks.d.ts +12 -10
- package/dist/react-native/operationsInterfaces/serviceTasks.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/serviceTasks.js.map +1 -1
- package/dist/react-native/operationsInterfaces/services.d.ts +53 -52
- package/dist/react-native/operationsInterfaces/services.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/services.js.map +1 -1
- package/dist/react-native/operationsInterfaces/sqlMigrationServices.d.ts +13 -12
- package/dist/react-native/operationsInterfaces/sqlMigrationServices.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/sqlMigrationServices.js.map +1 -1
- package/dist/react-native/operationsInterfaces/tasks.d.ts +17 -17
- package/dist/react-native/operationsInterfaces/tasks.js.map +1 -1
- package/dist/react-native/operationsInterfaces/usages.d.ts +2 -2
- package/dist/react-native/operationsInterfaces/usages.js.map +1 -1
- package/dist/react-native/pagingHelper.d.ts +4 -4
- package/dist/react-native/pagingHelper.js +8 -6
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +26 -27
- package/CHANGELOG.md +0 -21
- package/review/arm-datamigration-node.api.md +0 -4103
@@ -8,11 +8,10 @@
|
|
8
8
|
import * as coreClient from "@azure/core-client";
|
9
9
|
import * as Mappers from "../models/mappers.js";
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
11
|
-
import {
|
12
|
-
import {
|
11
|
+
import { createHttpPoller, } from "@azure/core-lro";
|
12
|
+
import { createLroSpec } from "../lroImpl.js";
|
13
13
|
/** Class containing DatabaseMigrationsSqlMi operations. */
|
14
14
|
export class DatabaseMigrationsSqlMiImpl {
|
15
|
-
client;
|
16
15
|
/**
|
17
16
|
* Initialize a new instance of the class DatabaseMigrationsSqlMi class.
|
18
17
|
* @param client Reference to the service client
|
@@ -21,7 +20,7 @@ export class DatabaseMigrationsSqlMiImpl {
|
|
21
20
|
this.client = client;
|
22
21
|
}
|
23
22
|
/**
|
24
|
-
* Retrieve the
|
23
|
+
* Retrieve the specified database migration for a given SQL Managed Instance.
|
25
24
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
26
25
|
* value from the Azure Resource Manager API or the portal.
|
27
26
|
* @param managedInstanceName
|
@@ -32,7 +31,7 @@ export class DatabaseMigrationsSqlMiImpl {
|
|
32
31
|
return this.client.sendOperationRequest({ resourceGroupName, managedInstanceName, targetDbName, options }, getOperationSpec);
|
33
32
|
}
|
34
33
|
/**
|
35
|
-
* Create
|
34
|
+
* Create a new database migration to a given SQL Managed Instance.
|
36
35
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
37
36
|
* value from the Azure Resource Manager API or the portal.
|
38
37
|
* @param managedInstanceName
|
@@ -44,46 +43,45 @@ export class DatabaseMigrationsSqlMiImpl {
|
|
44
43
|
const directSendOperation = async (args, spec) => {
|
45
44
|
return this.client.sendOperationRequest(args, spec);
|
46
45
|
};
|
47
|
-
const
|
46
|
+
const sendOperationFn = async (args, spec) => {
|
47
|
+
var _a;
|
48
48
|
let currentRawResponse = undefined;
|
49
|
-
const providedCallback = args.options
|
49
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
50
50
|
const callback = (rawResponse, flatResponse) => {
|
51
51
|
currentRawResponse = rawResponse;
|
52
|
-
providedCallback
|
53
|
-
};
|
54
|
-
const updatedArgs = {
|
55
|
-
...args,
|
56
|
-
options: {
|
57
|
-
...args.options,
|
58
|
-
onResponse: callback
|
59
|
-
}
|
52
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
60
53
|
};
|
54
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
61
55
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
62
56
|
return {
|
63
57
|
flatResponse,
|
64
58
|
rawResponse: {
|
65
59
|
statusCode: currentRawResponse.status,
|
66
60
|
body: currentRawResponse.parsedBody,
|
67
|
-
headers: currentRawResponse.headers.toJSON()
|
68
|
-
}
|
61
|
+
headers: currentRawResponse.headers.toJSON(),
|
62
|
+
},
|
69
63
|
};
|
70
64
|
};
|
71
|
-
const lro =
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
65
|
+
const lro = createLroSpec({
|
66
|
+
sendOperationFn,
|
67
|
+
args: {
|
68
|
+
resourceGroupName,
|
69
|
+
managedInstanceName,
|
70
|
+
targetDbName,
|
71
|
+
parameters,
|
72
|
+
options,
|
73
|
+
},
|
74
|
+
spec: createOrUpdateOperationSpec,
|
75
|
+
});
|
76
|
+
const poller = await createHttpPoller(lro, {
|
77
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
78
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
81
79
|
});
|
82
80
|
await poller.poll();
|
83
81
|
return poller;
|
84
82
|
}
|
85
83
|
/**
|
86
|
-
* Create
|
84
|
+
* Create a new database migration to a given SQL Managed Instance.
|
87
85
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
88
86
|
* value from the Azure Resource Manager API or the portal.
|
89
87
|
* @param managedInstanceName
|
@@ -96,7 +94,7 @@ export class DatabaseMigrationsSqlMiImpl {
|
|
96
94
|
return poller.pollUntilDone();
|
97
95
|
}
|
98
96
|
/**
|
99
|
-
* Stop
|
97
|
+
* Stop in-progress database migration to SQL Managed Instance.
|
100
98
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
101
99
|
* value from the Azure Resource Manager API or the portal.
|
102
100
|
* @param managedInstanceName
|
@@ -108,46 +106,45 @@ export class DatabaseMigrationsSqlMiImpl {
|
|
108
106
|
const directSendOperation = async (args, spec) => {
|
109
107
|
return this.client.sendOperationRequest(args, spec);
|
110
108
|
};
|
111
|
-
const
|
109
|
+
const sendOperationFn = async (args, spec) => {
|
110
|
+
var _a;
|
112
111
|
let currentRawResponse = undefined;
|
113
|
-
const providedCallback = args.options
|
112
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
114
113
|
const callback = (rawResponse, flatResponse) => {
|
115
114
|
currentRawResponse = rawResponse;
|
116
|
-
providedCallback
|
117
|
-
};
|
118
|
-
const updatedArgs = {
|
119
|
-
...args,
|
120
|
-
options: {
|
121
|
-
...args.options,
|
122
|
-
onResponse: callback
|
123
|
-
}
|
115
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
124
116
|
};
|
117
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
125
118
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
126
119
|
return {
|
127
120
|
flatResponse,
|
128
121
|
rawResponse: {
|
129
122
|
statusCode: currentRawResponse.status,
|
130
123
|
body: currentRawResponse.parsedBody,
|
131
|
-
headers: currentRawResponse.headers.toJSON()
|
132
|
-
}
|
124
|
+
headers: currentRawResponse.headers.toJSON(),
|
125
|
+
},
|
133
126
|
};
|
134
127
|
};
|
135
|
-
const lro =
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
128
|
+
const lro = createLroSpec({
|
129
|
+
sendOperationFn,
|
130
|
+
args: {
|
131
|
+
resourceGroupName,
|
132
|
+
managedInstanceName,
|
133
|
+
targetDbName,
|
134
|
+
parameters,
|
135
|
+
options,
|
136
|
+
},
|
137
|
+
spec: cancelOperationSpec,
|
138
|
+
});
|
139
|
+
const poller = await createHttpPoller(lro, {
|
140
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
141
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
145
142
|
});
|
146
143
|
await poller.poll();
|
147
144
|
return poller;
|
148
145
|
}
|
149
146
|
/**
|
150
|
-
* Stop
|
147
|
+
* Stop in-progress database migration to SQL Managed Instance.
|
151
148
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
152
149
|
* value from the Azure Resource Manager API or the portal.
|
153
150
|
* @param managedInstanceName
|
@@ -160,7 +157,7 @@ export class DatabaseMigrationsSqlMiImpl {
|
|
160
157
|
return poller.pollUntilDone();
|
161
158
|
}
|
162
159
|
/**
|
163
|
-
* Initiate cutover for online migration
|
160
|
+
* Initiate cutover for in-progress online database migration to SQL Managed Instance.
|
164
161
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
165
162
|
* value from the Azure Resource Manager API or the portal.
|
166
163
|
* @param managedInstanceName
|
@@ -172,46 +169,45 @@ export class DatabaseMigrationsSqlMiImpl {
|
|
172
169
|
const directSendOperation = async (args, spec) => {
|
173
170
|
return this.client.sendOperationRequest(args, spec);
|
174
171
|
};
|
175
|
-
const
|
172
|
+
const sendOperationFn = async (args, spec) => {
|
173
|
+
var _a;
|
176
174
|
let currentRawResponse = undefined;
|
177
|
-
const providedCallback = args.options
|
175
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
178
176
|
const callback = (rawResponse, flatResponse) => {
|
179
177
|
currentRawResponse = rawResponse;
|
180
|
-
providedCallback
|
181
|
-
};
|
182
|
-
const updatedArgs = {
|
183
|
-
...args,
|
184
|
-
options: {
|
185
|
-
...args.options,
|
186
|
-
onResponse: callback
|
187
|
-
}
|
178
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
188
179
|
};
|
180
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
189
181
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
190
182
|
return {
|
191
183
|
flatResponse,
|
192
184
|
rawResponse: {
|
193
185
|
statusCode: currentRawResponse.status,
|
194
186
|
body: currentRawResponse.parsedBody,
|
195
|
-
headers: currentRawResponse.headers.toJSON()
|
196
|
-
}
|
187
|
+
headers: currentRawResponse.headers.toJSON(),
|
188
|
+
},
|
197
189
|
};
|
198
190
|
};
|
199
|
-
const lro =
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
191
|
+
const lro = createLroSpec({
|
192
|
+
sendOperationFn,
|
193
|
+
args: {
|
194
|
+
resourceGroupName,
|
195
|
+
managedInstanceName,
|
196
|
+
targetDbName,
|
197
|
+
parameters,
|
198
|
+
options,
|
199
|
+
},
|
200
|
+
spec: cutoverOperationSpec,
|
201
|
+
});
|
202
|
+
const poller = await createHttpPoller(lro, {
|
203
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
204
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
209
205
|
});
|
210
206
|
await poller.poll();
|
211
207
|
return poller;
|
212
208
|
}
|
213
209
|
/**
|
214
|
-
* Initiate cutover for online migration
|
210
|
+
* Initiate cutover for in-progress online database migration to SQL Managed Instance.
|
215
211
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
216
212
|
* value from the Azure Resource Manager API or the portal.
|
217
213
|
* @param managedInstanceName
|
@@ -231,88 +227,88 @@ const getOperationSpec = {
|
|
231
227
|
httpMethod: "GET",
|
232
228
|
responses: {
|
233
229
|
200: {
|
234
|
-
bodyMapper: Mappers.DatabaseMigrationSqlMi
|
230
|
+
bodyMapper: Mappers.DatabaseMigrationSqlMi,
|
235
231
|
},
|
236
|
-
default: {}
|
232
|
+
default: {},
|
237
233
|
},
|
238
234
|
queryParameters: [
|
235
|
+
Parameters.apiVersion,
|
239
236
|
Parameters.migrationOperationId,
|
240
237
|
Parameters.expand,
|
241
|
-
Parameters.apiVersion
|
242
238
|
],
|
243
239
|
urlParameters: [
|
244
240
|
Parameters.$host,
|
245
241
|
Parameters.resourceGroupName,
|
246
|
-
Parameters.
|
242
|
+
Parameters.subscriptionId,
|
247
243
|
Parameters.targetDbName,
|
248
|
-
Parameters.
|
244
|
+
Parameters.managedInstanceName,
|
249
245
|
],
|
250
246
|
headerParameters: [Parameters.accept],
|
251
|
-
serializer
|
247
|
+
serializer,
|
252
248
|
};
|
253
249
|
const createOrUpdateOperationSpec = {
|
254
250
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}",
|
255
251
|
httpMethod: "PUT",
|
256
252
|
responses: {
|
257
253
|
200: {
|
258
|
-
bodyMapper: Mappers.DatabaseMigrationSqlMi
|
254
|
+
bodyMapper: Mappers.DatabaseMigrationSqlMi,
|
259
255
|
},
|
260
256
|
201: {
|
261
|
-
bodyMapper: Mappers.DatabaseMigrationSqlMi
|
257
|
+
bodyMapper: Mappers.DatabaseMigrationSqlMi,
|
262
258
|
},
|
263
259
|
202: {
|
264
|
-
bodyMapper: Mappers.DatabaseMigrationSqlMi
|
260
|
+
bodyMapper: Mappers.DatabaseMigrationSqlMi,
|
265
261
|
},
|
266
262
|
204: {
|
267
|
-
bodyMapper: Mappers.DatabaseMigrationSqlMi
|
263
|
+
bodyMapper: Mappers.DatabaseMigrationSqlMi,
|
268
264
|
},
|
269
|
-
default: {}
|
265
|
+
default: {},
|
270
266
|
},
|
271
|
-
requestBody: Parameters.
|
267
|
+
requestBody: Parameters.parameters3,
|
272
268
|
queryParameters: [Parameters.apiVersion],
|
273
269
|
urlParameters: [
|
274
270
|
Parameters.$host,
|
275
271
|
Parameters.resourceGroupName,
|
276
|
-
Parameters.
|
272
|
+
Parameters.subscriptionId,
|
277
273
|
Parameters.targetDbName,
|
278
|
-
Parameters.
|
274
|
+
Parameters.managedInstanceName,
|
279
275
|
],
|
280
276
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
281
277
|
mediaType: "json",
|
282
|
-
serializer
|
278
|
+
serializer,
|
283
279
|
};
|
284
280
|
const cancelOperationSpec = {
|
285
281
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel",
|
286
282
|
httpMethod: "POST",
|
287
283
|
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
288
|
-
requestBody: Parameters.
|
284
|
+
requestBody: Parameters.parameters2,
|
289
285
|
queryParameters: [Parameters.apiVersion],
|
290
286
|
urlParameters: [
|
291
287
|
Parameters.$host,
|
292
288
|
Parameters.resourceGroupName,
|
293
|
-
Parameters.
|
289
|
+
Parameters.subscriptionId,
|
294
290
|
Parameters.targetDbName,
|
295
|
-
Parameters.
|
291
|
+
Parameters.managedInstanceName,
|
296
292
|
],
|
297
293
|
headerParameters: [Parameters.contentType],
|
298
294
|
mediaType: "json",
|
299
|
-
serializer
|
295
|
+
serializer,
|
300
296
|
};
|
301
297
|
const cutoverOperationSpec = {
|
302
298
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cutover",
|
303
299
|
httpMethod: "POST",
|
304
300
|
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
305
|
-
requestBody: Parameters.
|
301
|
+
requestBody: Parameters.parameters2,
|
306
302
|
queryParameters: [Parameters.apiVersion],
|
307
303
|
urlParameters: [
|
308
304
|
Parameters.$host,
|
309
305
|
Parameters.resourceGroupName,
|
310
|
-
Parameters.
|
306
|
+
Parameters.subscriptionId,
|
311
307
|
Parameters.targetDbName,
|
312
|
-
Parameters.
|
308
|
+
Parameters.managedInstanceName,
|
313
309
|
],
|
314
310
|
headerParameters: [Parameters.contentType],
|
315
311
|
mediaType: "json",
|
316
|
-
serializer
|
312
|
+
serializer,
|
317
313
|
};
|
318
314
|
//# sourceMappingURL=databaseMigrationsSqlMi.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"databaseMigrationsSqlMi.js","sourceRoot":"","sources":["../../../src/operations/databaseMigrationsSqlMi.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO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AC,UAAU,CAAC,WAAW,CAAC;IAC1C,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,oBAAoB,GAA6B;IACrD,IAAI,EACF,+MAA+M;IACjN,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAC9D,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,mBAAmB;QAC9B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IAC1C,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { DatabaseMigrationsSqlMi } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DataMigrationManagementClient } from \"../dataMigrationManagementClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n DatabaseMigrationsSqlMiGetOptionalParams,\n DatabaseMigrationsSqlMiGetResponse,\n DatabaseMigrationSqlMi,\n DatabaseMigrationsSqlMiCreateOrUpdateOptionalParams,\n DatabaseMigrationsSqlMiCreateOrUpdateResponse,\n MigrationOperationInput,\n DatabaseMigrationsSqlMiCancelOptionalParams,\n DatabaseMigrationsSqlMiCutoverOptionalParams\n} from \"../models/index.js\";\n\n/** Class containing DatabaseMigrationsSqlMi operations. */\nexport class DatabaseMigrationsSqlMiImpl implements DatabaseMigrationsSqlMi {\n private readonly client: DataMigrationManagementClient;\n\n /**\n * Initialize a new instance of the class DatabaseMigrationsSqlMi class.\n * @param client Reference to the service client\n */\n constructor(client: DataMigrationManagementClient) {\n this.client = client;\n }\n\n /**\n * Retrieve the Database Migration resource.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param managedInstanceName\n * @param targetDbName The name of the target database.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n managedInstanceName: string,\n targetDbName: string,\n options?: DatabaseMigrationsSqlMiGetOptionalParams\n ): Promise<DatabaseMigrationsSqlMiGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, managedInstanceName, targetDbName, options },\n getOperationSpec\n );\n }\n\n /**\n * Create or Update Database Migration resource.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param managedInstanceName\n * @param targetDbName The name of the target database.\n * @param parameters Details of SqlMigrationService resource.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n managedInstanceName: string,\n targetDbName: string,\n parameters: DatabaseMigrationSqlMi,\n options?: DatabaseMigrationsSqlMiCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<DatabaseMigrationsSqlMiCreateOrUpdateResponse>,\n DatabaseMigrationsSqlMiCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<DatabaseMigrationsSqlMiCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n {\n resourceGroupName,\n managedInstanceName,\n targetDbName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or Update Database Migration resource.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param managedInstanceName\n * @param targetDbName The name of the target database.\n * @param parameters Details of SqlMigrationService resource.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n managedInstanceName: string,\n targetDbName: string,\n parameters: DatabaseMigrationSqlMi,\n options?: DatabaseMigrationsSqlMiCreateOrUpdateOptionalParams\n ): Promise<DatabaseMigrationsSqlMiCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n managedInstanceName,\n targetDbName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Stop migrations in progress for the database\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param managedInstanceName\n * @param targetDbName The name of the target database.\n * @param parameters Required migration operation ID for which cancel will be initiated.\n * @param options The options parameters.\n */\n async beginCancel(\n resourceGroupName: string,\n managedInstanceName: string,\n targetDbName: string,\n parameters: MigrationOperationInput,\n options?: DatabaseMigrationsSqlMiCancelOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n {\n resourceGroupName,\n managedInstanceName,\n targetDbName,\n parameters,\n options\n },\n cancelOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Stop migrations in progress for the database\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param managedInstanceName\n * @param targetDbName The name of the target database.\n * @param parameters Required migration operation ID for which cancel will be initiated.\n * @param options The options parameters.\n */\n async beginCancelAndWait(\n resourceGroupName: string,\n managedInstanceName: string,\n targetDbName: string,\n parameters: MigrationOperationInput,\n options?: DatabaseMigrationsSqlMiCancelOptionalParams\n ): Promise<void> {\n const poller = await this.beginCancel(\n resourceGroupName,\n managedInstanceName,\n targetDbName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Initiate cutover for online migration in progress for the database.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param managedInstanceName\n * @param targetDbName The name of the target database.\n * @param parameters Required migration operation ID for which cutover will be initiated.\n * @param options The options parameters.\n */\n async beginCutover(\n resourceGroupName: string,\n managedInstanceName: string,\n targetDbName: string,\n parameters: MigrationOperationInput,\n options?: DatabaseMigrationsSqlMiCutoverOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n {\n resourceGroupName,\n managedInstanceName,\n targetDbName,\n parameters,\n options\n },\n cutoverOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Initiate cutover for online migration in progress for the database.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param managedInstanceName\n * @param targetDbName The name of the target database.\n * @param parameters Required migration operation ID for which cutover will be initiated.\n * @param options The options parameters.\n */\n async beginCutoverAndWait(\n resourceGroupName: string,\n managedInstanceName: string,\n targetDbName: string,\n parameters: MigrationOperationInput,\n options?: DatabaseMigrationsSqlMiCutoverOptionalParams\n ): Promise<void> {\n const poller = await this.beginCutover(\n resourceGroupName,\n managedInstanceName,\n targetDbName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DatabaseMigrationSqlMi\n },\n default: {}\n },\n queryParameters: [\n Parameters.migrationOperationId,\n Parameters.expand,\n Parameters.apiVersion\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.managedInstanceName,\n Parameters.targetDbName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DatabaseMigrationSqlMi\n },\n 201: {\n bodyMapper: Mappers.DatabaseMigrationSqlMi\n },\n 202: {\n bodyMapper: Mappers.DatabaseMigrationSqlMi\n },\n 204: {\n bodyMapper: Mappers.DatabaseMigrationSqlMi\n },\n default: {}\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.managedInstanceName,\n Parameters.targetDbName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel\",\n httpMethod: \"POST\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.managedInstanceName,\n Parameters.targetDbName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst cutoverOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cutover\",\n httpMethod: \"POST\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.managedInstanceName,\n Parameters.targetDbName,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
|
1
|
+
{"version":3,"file":"databaseMigrationsSqlMi.js","sourceRoot":"","sources":["../../../src/operations/databaseMigrationsSqlMi.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAY9C,2DAA2D;AAC3D,MAAM,OAAO,2BAA2B;IAGtC;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;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B;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,mBAAmB;KAC/B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IAC1C,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,oBAAoB,GAA6B;IACrD,IAAI,EAAE,+MAA+M;IACrN,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;IAC9D,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,mBAAmB;KAC/B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IAC1C,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { DatabaseMigrationsSqlMi } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DataMigrationManagementClient } from \"../dataMigrationManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n DatabaseMigrationsSqlMiGetOptionalParams,\n DatabaseMigrationsSqlMiGetResponse,\n DatabaseMigrationSqlMi,\n DatabaseMigrationsSqlMiCreateOrUpdateOptionalParams,\n DatabaseMigrationsSqlMiCreateOrUpdateResponse,\n MigrationOperationInput,\n DatabaseMigrationsSqlMiCancelOptionalParams,\n DatabaseMigrationsSqlMiCutoverOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing DatabaseMigrationsSqlMi operations. */\nexport class DatabaseMigrationsSqlMiImpl implements DatabaseMigrationsSqlMi {\n private readonly client: DataMigrationManagementClient;\n\n /**\n * Initialize a new instance of the class DatabaseMigrationsSqlMi class.\n * @param client Reference to the service client\n */\n constructor(client: DataMigrationManagementClient) {\n this.client = client;\n }\n\n /**\n * Retrieve the specified database migration for a given SQL Managed Instance.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param managedInstanceName\n * @param targetDbName The name of the target database.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n managedInstanceName: string,\n targetDbName: string,\n options?: DatabaseMigrationsSqlMiGetOptionalParams,\n ): Promise<DatabaseMigrationsSqlMiGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, managedInstanceName, targetDbName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create a new database migration to a given SQL Managed Instance.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param managedInstanceName\n * @param targetDbName The name of the target database.\n * @param parameters Details of SqlMigrationService resource.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n managedInstanceName: string,\n targetDbName: string,\n parameters: DatabaseMigrationSqlMi,\n options?: DatabaseMigrationsSqlMiCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DatabaseMigrationsSqlMiCreateOrUpdateResponse>,\n DatabaseMigrationsSqlMiCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DatabaseMigrationsSqlMiCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n managedInstanceName,\n targetDbName,\n parameters,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n DatabaseMigrationsSqlMiCreateOrUpdateResponse,\n OperationState<DatabaseMigrationsSqlMiCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create a new database migration to a given SQL Managed Instance.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param managedInstanceName\n * @param targetDbName The name of the target database.\n * @param parameters Details of SqlMigrationService resource.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n managedInstanceName: string,\n targetDbName: string,\n parameters: DatabaseMigrationSqlMi,\n options?: DatabaseMigrationsSqlMiCreateOrUpdateOptionalParams,\n ): Promise<DatabaseMigrationsSqlMiCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n managedInstanceName,\n targetDbName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Stop in-progress database migration to SQL Managed Instance.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param managedInstanceName\n * @param targetDbName The name of the target database.\n * @param parameters Required migration operation ID for which cancel will be initiated.\n * @param options The options parameters.\n */\n async beginCancel(\n resourceGroupName: string,\n managedInstanceName: string,\n targetDbName: string,\n parameters: MigrationOperationInput,\n options?: DatabaseMigrationsSqlMiCancelOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n managedInstanceName,\n targetDbName,\n parameters,\n options,\n },\n spec: cancelOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Stop in-progress database migration to SQL Managed Instance.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param managedInstanceName\n * @param targetDbName The name of the target database.\n * @param parameters Required migration operation ID for which cancel will be initiated.\n * @param options The options parameters.\n */\n async beginCancelAndWait(\n resourceGroupName: string,\n managedInstanceName: string,\n targetDbName: string,\n parameters: MigrationOperationInput,\n options?: DatabaseMigrationsSqlMiCancelOptionalParams,\n ): Promise<void> {\n const poller = await this.beginCancel(\n resourceGroupName,\n managedInstanceName,\n targetDbName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Initiate cutover for in-progress online database migration to SQL Managed Instance.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param managedInstanceName\n * @param targetDbName The name of the target database.\n * @param parameters Required migration operation ID for which cutover will be initiated.\n * @param options The options parameters.\n */\n async beginCutover(\n resourceGroupName: string,\n managedInstanceName: string,\n targetDbName: string,\n parameters: MigrationOperationInput,\n options?: DatabaseMigrationsSqlMiCutoverOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n managedInstanceName,\n targetDbName,\n parameters,\n options,\n },\n spec: cutoverOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Initiate cutover for in-progress online database migration to SQL Managed Instance.\n * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this\n * value from the Azure Resource Manager API or the portal.\n * @param managedInstanceName\n * @param targetDbName The name of the target database.\n * @param parameters Required migration operation ID for which cutover will be initiated.\n * @param options The options parameters.\n */\n async beginCutoverAndWait(\n resourceGroupName: string,\n managedInstanceName: string,\n targetDbName: string,\n parameters: MigrationOperationInput,\n options?: DatabaseMigrationsSqlMiCutoverOptionalParams,\n ): Promise<void> {\n const poller = await this.beginCutover(\n resourceGroupName,\n managedInstanceName,\n targetDbName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DatabaseMigrationSqlMi,\n },\n default: {},\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.migrationOperationId,\n Parameters.expand,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.targetDbName,\n Parameters.managedInstanceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DatabaseMigrationSqlMi,\n },\n 201: {\n bodyMapper: Mappers.DatabaseMigrationSqlMi,\n },\n 202: {\n bodyMapper: Mappers.DatabaseMigrationSqlMi,\n },\n 204: {\n bodyMapper: Mappers.DatabaseMigrationSqlMi,\n },\n default: {},\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.targetDbName,\n Parameters.managedInstanceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel\",\n httpMethod: \"POST\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.targetDbName,\n Parameters.managedInstanceName,\n ],\n headerParameters: [Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst cutoverOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cutover\",\n httpMethod: \"POST\",\n responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.targetDbName,\n Parameters.managedInstanceName,\n ],\n headerParameters: [Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { DatabaseMigrationsSqlVm } from "../operationsInterfaces/index.js";
|
2
2
|
import { DataMigrationManagementClient } from "../dataMigrationManagementClient.js";
|
3
|
-
import {
|
3
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
4
4
|
import { DatabaseMigrationsSqlVmGetOptionalParams, DatabaseMigrationsSqlVmGetResponse, DatabaseMigrationSqlVm, DatabaseMigrationsSqlVmCreateOrUpdateOptionalParams, DatabaseMigrationsSqlVmCreateOrUpdateResponse, MigrationOperationInput, DatabaseMigrationsSqlVmCancelOptionalParams, DatabaseMigrationsSqlVmCutoverOptionalParams } from "../models/index.js";
|
5
5
|
/** Class containing DatabaseMigrationsSqlVm operations. */
|
6
6
|
export declare class DatabaseMigrationsSqlVmImpl implements DatabaseMigrationsSqlVm {
|
@@ -11,7 +11,7 @@ export declare class DatabaseMigrationsSqlVmImpl implements DatabaseMigrationsSq
|
|
11
11
|
*/
|
12
12
|
constructor(client: DataMigrationManagementClient);
|
13
13
|
/**
|
14
|
-
* Retrieve the
|
14
|
+
* Retrieve the specified database migration for a given SQL VM.
|
15
15
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
16
16
|
* value from the Azure Resource Manager API or the portal.
|
17
17
|
* @param sqlVirtualMachineName
|
@@ -20,7 +20,7 @@ export declare class DatabaseMigrationsSqlVmImpl implements DatabaseMigrationsSq
|
|
20
20
|
*/
|
21
21
|
get(resourceGroupName: string, sqlVirtualMachineName: string, targetDbName: string, options?: DatabaseMigrationsSqlVmGetOptionalParams): Promise<DatabaseMigrationsSqlVmGetResponse>;
|
22
22
|
/**
|
23
|
-
* Create
|
23
|
+
* Create a new database migration to a given SQL VM.
|
24
24
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
25
25
|
* value from the Azure Resource Manager API or the portal.
|
26
26
|
* @param sqlVirtualMachineName
|
@@ -28,9 +28,9 @@ export declare class DatabaseMigrationsSqlVmImpl implements DatabaseMigrationsSq
|
|
28
28
|
* @param parameters Details of SqlMigrationService resource.
|
29
29
|
* @param options The options parameters.
|
30
30
|
*/
|
31
|
-
beginCreateOrUpdate(resourceGroupName: string, sqlVirtualMachineName: string, targetDbName: string, parameters: DatabaseMigrationSqlVm, options?: DatabaseMigrationsSqlVmCreateOrUpdateOptionalParams): Promise<
|
31
|
+
beginCreateOrUpdate(resourceGroupName: string, sqlVirtualMachineName: string, targetDbName: string, parameters: DatabaseMigrationSqlVm, options?: DatabaseMigrationsSqlVmCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<DatabaseMigrationsSqlVmCreateOrUpdateResponse>, DatabaseMigrationsSqlVmCreateOrUpdateResponse>>;
|
32
32
|
/**
|
33
|
-
* Create
|
33
|
+
* Create a new database migration to a given SQL VM.
|
34
34
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
35
35
|
* value from the Azure Resource Manager API or the portal.
|
36
36
|
* @param sqlVirtualMachineName
|
@@ -40,7 +40,7 @@ export declare class DatabaseMigrationsSqlVmImpl implements DatabaseMigrationsSq
|
|
40
40
|
*/
|
41
41
|
beginCreateOrUpdateAndWait(resourceGroupName: string, sqlVirtualMachineName: string, targetDbName: string, parameters: DatabaseMigrationSqlVm, options?: DatabaseMigrationsSqlVmCreateOrUpdateOptionalParams): Promise<DatabaseMigrationsSqlVmCreateOrUpdateResponse>;
|
42
42
|
/**
|
43
|
-
* Stop
|
43
|
+
* Stop in-progress database migration to SQL VM.
|
44
44
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
45
45
|
* value from the Azure Resource Manager API or the portal.
|
46
46
|
* @param sqlVirtualMachineName
|
@@ -48,9 +48,9 @@ export declare class DatabaseMigrationsSqlVmImpl implements DatabaseMigrationsSq
|
|
48
48
|
* @param parameters Migration Operation Input
|
49
49
|
* @param options The options parameters.
|
50
50
|
*/
|
51
|
-
beginCancel(resourceGroupName: string, sqlVirtualMachineName: string, targetDbName: string, parameters: MigrationOperationInput, options?: DatabaseMigrationsSqlVmCancelOptionalParams): Promise<
|
51
|
+
beginCancel(resourceGroupName: string, sqlVirtualMachineName: string, targetDbName: string, parameters: MigrationOperationInput, options?: DatabaseMigrationsSqlVmCancelOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
52
52
|
/**
|
53
|
-
* Stop
|
53
|
+
* Stop in-progress database migration to SQL VM.
|
54
54
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
55
55
|
* value from the Azure Resource Manager API or the portal.
|
56
56
|
* @param sqlVirtualMachineName
|
@@ -60,7 +60,7 @@ export declare class DatabaseMigrationsSqlVmImpl implements DatabaseMigrationsSq
|
|
60
60
|
*/
|
61
61
|
beginCancelAndWait(resourceGroupName: string, sqlVirtualMachineName: string, targetDbName: string, parameters: MigrationOperationInput, options?: DatabaseMigrationsSqlVmCancelOptionalParams): Promise<void>;
|
62
62
|
/**
|
63
|
-
*
|
63
|
+
* Initiate cutover for in-progress online database migration to SQL VM.
|
64
64
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
65
65
|
* value from the Azure Resource Manager API or the portal.
|
66
66
|
* @param sqlVirtualMachineName
|
@@ -68,9 +68,9 @@ export declare class DatabaseMigrationsSqlVmImpl implements DatabaseMigrationsSq
|
|
68
68
|
* @param parameters Migration Operation Input
|
69
69
|
* @param options The options parameters.
|
70
70
|
*/
|
71
|
-
beginCutover(resourceGroupName: string, sqlVirtualMachineName: string, targetDbName: string, parameters: MigrationOperationInput, options?: DatabaseMigrationsSqlVmCutoverOptionalParams): Promise<
|
71
|
+
beginCutover(resourceGroupName: string, sqlVirtualMachineName: string, targetDbName: string, parameters: MigrationOperationInput, options?: DatabaseMigrationsSqlVmCutoverOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
72
72
|
/**
|
73
|
-
*
|
73
|
+
* Initiate cutover for in-progress online database migration to SQL VM.
|
74
74
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
75
75
|
* value from the Azure Resource Manager API or the portal.
|
76
76
|
* @param sqlVirtualMachineName
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"databaseMigrationsSqlVm.d.ts","sourceRoot":"","sources":["../../../src/operations/databaseMigrationsSqlVm.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAI3E,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,
|
1
|
+
{"version":3,"file":"databaseMigrationsSqlVm.d.ts","sourceRoot":"","sources":["../../../src/operations/databaseMigrationsSqlVm.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAI3E,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,wCAAwC,EACxC,kCAAkC,EAClC,sBAAsB,EACtB,mDAAmD,EACnD,6CAA6C,EAC7C,uBAAuB,EACvB,2CAA2C,EAC3C,4CAA4C,EAC7C,MAAM,oBAAoB,CAAC;AAE5B,2DAA2D;AAC3D,qBAAa,2BAA4B,YAAW,uBAAuB;IACzE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgC;IAEvD;;;OAGG;gBACS,MAAM,EAAE,6BAA6B;IAIjD;;;;;;;OAOG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,qBAAqB,EAAE,MAAM,EAC7B,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kCAAkC,CAAC;IAO9C;;;;;;;;OAQG;IACG,mBAAmB,CACvB,iBAAiB,EAAE,MAAM,EACzB,qBAAqB,EAAE,MAAM,EAC7B,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,sBAAsB,EAClC,OAAO,CAAC,EAAE,mDAAmD,GAC5D,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,6CAA6C,CAAC,EAC7D,6CAA6C,CAC9C,CACF;IA6DD;;;;;;;;OAQG;IAC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