@azure/arm-datamigration 3.0.0-alpha.20250721.1 → 3.0.0-alpha.20250730.1
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 -9
- 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 +16 -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 +5228 -4055
- 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 +363 -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 +363 -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 +319 -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 +89 -77
- 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 +89 -77
- package/dist/browser/operations/databaseMigrationsSqlVm.js.map +1 -1
- package/dist/browser/operations/files.js +43 -44
- 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 +640 -0
- package/dist/browser/operations/migrationServices.js.map +1 -0
- package/dist/browser/operations/operations.js +7 -8
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/projects.js +33 -34
- package/dist/browser/operations/projects.js.map +1 -1
- package/dist/browser/operations/resourceSkus.d.ts +2 -2
- package/dist/browser/operations/resourceSkus.js +12 -13
- 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 +55 -53
- 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 +204 -186
- 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 +116 -106
- package/dist/browser/operations/sqlMigrationServices.js.map +1 -1
- package/dist/browser/operations/tasks.d.ts +20 -20
- package/dist/browser/operations/tasks.js +65 -66
- package/dist/browser/operations/tasks.js.map +1 -1
- package/dist/browser/operations/usages.d.ts +4 -4
- package/dist/browser/operations/usages.js +15 -16
- 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 +4 -4
- 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 -8
- 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 +17 -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 +5235 -4062
- 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 +368 -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 +368 -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 +324 -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 +87 -75
- 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 +87 -75
- package/dist/commonjs/operations/databaseMigrationsSqlVm.js.map +1 -1
- package/dist/commonjs/operations/files.js +43 -44
- 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 +645 -0
- package/dist/commonjs/operations/migrationServices.js.map +1 -0
- package/dist/commonjs/operations/operations.js +7 -8
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/projects.js +33 -34
- package/dist/commonjs/operations/projects.js.map +1 -1
- package/dist/commonjs/operations/resourceSkus.d.ts +2 -2
- package/dist/commonjs/operations/resourceSkus.js +12 -13
- 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 +55 -53
- 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 +202 -184
- 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 +114 -104
- package/dist/commonjs/operations/sqlMigrationServices.js.map +1 -1
- package/dist/commonjs/operations/tasks.d.ts +20 -20
- package/dist/commonjs/operations/tasks.js +65 -66
- package/dist/commonjs/operations/tasks.js.map +1 -1
- package/dist/commonjs/operations/usages.d.ts +4 -4
- package/dist/commonjs/operations/usages.js +15 -16
- 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 +4 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +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 -9
- 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 +16 -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 +5228 -4055
- 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 +363 -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 +363 -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 +319 -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 +89 -77
- 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 +89 -77
- package/dist/esm/operations/databaseMigrationsSqlVm.js.map +1 -1
- package/dist/esm/operations/files.js +43 -44
- 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 +640 -0
- package/dist/esm/operations/migrationServices.js.map +1 -0
- package/dist/esm/operations/operations.js +7 -8
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/projects.js +33 -34
- package/dist/esm/operations/projects.js.map +1 -1
- package/dist/esm/operations/resourceSkus.d.ts +2 -2
- package/dist/esm/operations/resourceSkus.js +12 -13
- 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 +55 -53
- 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 +204 -186
- 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 +116 -106
- package/dist/esm/operations/sqlMigrationServices.js.map +1 -1
- package/dist/esm/operations/tasks.d.ts +20 -20
- package/dist/esm/operations/tasks.js +65 -66
- package/dist/esm/operations/tasks.js.map +1 -1
- package/dist/esm/operations/usages.d.ts +4 -4
- package/dist/esm/operations/usages.js +15 -16
- 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 +4 -4
- 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 -9
- 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 +16 -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 +5228 -4055
- 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 +363 -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 +363 -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 +319 -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 +89 -77
- 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 +89 -77
- package/dist/react-native/operations/databaseMigrationsSqlVm.js.map +1 -1
- package/dist/react-native/operations/files.js +43 -44
- 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 +640 -0
- package/dist/react-native/operations/migrationServices.js.map +1 -0
- package/dist/react-native/operations/operations.js +7 -8
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/projects.js +33 -34
- 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 +12 -13
- 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 +55 -53
- 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 +204 -186
- 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 +116 -106
- 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 +65 -66
- 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 +15 -16
- 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 +4 -4
- 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
@@ -25,7 +25,7 @@ class DatabaseMigrationsSqlMiImpl {
|
|
25
25
|
this.client = client;
|
26
26
|
}
|
27
27
|
/**
|
28
|
-
* Retrieve the
|
28
|
+
* Retrieve the specified database migration for a given SQL Managed Instance.
|
29
29
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
30
30
|
* value from the Azure Resource Manager API or the portal.
|
31
31
|
* @param managedInstanceName
|
@@ -36,7 +36,7 @@ class DatabaseMigrationsSqlMiImpl {
|
|
36
36
|
return this.client.sendOperationRequest({ resourceGroupName, managedInstanceName, targetDbName, options }, getOperationSpec);
|
37
37
|
}
|
38
38
|
/**
|
39
|
-
* Create
|
39
|
+
* Create a new database migration to a given SQL Managed Instance.
|
40
40
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
41
41
|
* value from the Azure Resource Manager API or the portal.
|
42
42
|
* @param managedInstanceName
|
@@ -48,7 +48,7 @@ class DatabaseMigrationsSqlMiImpl {
|
|
48
48
|
const directSendOperation = async (args, spec) => {
|
49
49
|
return this.client.sendOperationRequest(args, spec);
|
50
50
|
};
|
51
|
-
const
|
51
|
+
const sendOperationFn = async (args, spec) => {
|
52
52
|
let currentRawResponse = undefined;
|
53
53
|
const providedCallback = args.options?.onResponse;
|
54
54
|
const callback = (rawResponse, flatResponse) => {
|
@@ -59,8 +59,8 @@ class DatabaseMigrationsSqlMiImpl {
|
|
59
59
|
...args,
|
60
60
|
options: {
|
61
61
|
...args.options,
|
62
|
-
onResponse: callback
|
63
|
-
}
|
62
|
+
onResponse: callback,
|
63
|
+
},
|
64
64
|
};
|
65
65
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
66
66
|
return {
|
@@ -68,26 +68,30 @@ class DatabaseMigrationsSqlMiImpl {
|
|
68
68
|
rawResponse: {
|
69
69
|
statusCode: currentRawResponse.status,
|
70
70
|
body: currentRawResponse.parsedBody,
|
71
|
-
headers: currentRawResponse.headers.toJSON()
|
72
|
-
}
|
71
|
+
headers: currentRawResponse.headers.toJSON(),
|
72
|
+
},
|
73
73
|
};
|
74
74
|
};
|
75
|
-
const lro =
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
75
|
+
const lro = (0, lroImpl_js_1.createLroSpec)({
|
76
|
+
sendOperationFn,
|
77
|
+
args: {
|
78
|
+
resourceGroupName,
|
79
|
+
managedInstanceName,
|
80
|
+
targetDbName,
|
81
|
+
parameters,
|
82
|
+
options,
|
83
|
+
},
|
84
|
+
spec: createOrUpdateOperationSpec,
|
85
|
+
});
|
86
|
+
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
87
|
+
restoreFrom: options?.resumeFrom,
|
88
|
+
intervalInMs: options?.updateIntervalInMs,
|
85
89
|
});
|
86
90
|
await poller.poll();
|
87
91
|
return poller;
|
88
92
|
}
|
89
93
|
/**
|
90
|
-
* Create
|
94
|
+
* Create a new database migration to a given SQL Managed Instance.
|
91
95
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
92
96
|
* value from the Azure Resource Manager API or the portal.
|
93
97
|
* @param managedInstanceName
|
@@ -100,7 +104,7 @@ class DatabaseMigrationsSqlMiImpl {
|
|
100
104
|
return poller.pollUntilDone();
|
101
105
|
}
|
102
106
|
/**
|
103
|
-
* Stop
|
107
|
+
* Stop in-progress database migration to SQL Managed Instance.
|
104
108
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
105
109
|
* value from the Azure Resource Manager API or the portal.
|
106
110
|
* @param managedInstanceName
|
@@ -112,7 +116,7 @@ class DatabaseMigrationsSqlMiImpl {
|
|
112
116
|
const directSendOperation = async (args, spec) => {
|
113
117
|
return this.client.sendOperationRequest(args, spec);
|
114
118
|
};
|
115
|
-
const
|
119
|
+
const sendOperationFn = async (args, spec) => {
|
116
120
|
let currentRawResponse = undefined;
|
117
121
|
const providedCallback = args.options?.onResponse;
|
118
122
|
const callback = (rawResponse, flatResponse) => {
|
@@ -123,8 +127,8 @@ class DatabaseMigrationsSqlMiImpl {
|
|
123
127
|
...args,
|
124
128
|
options: {
|
125
129
|
...args.options,
|
126
|
-
onResponse: callback
|
127
|
-
}
|
130
|
+
onResponse: callback,
|
131
|
+
},
|
128
132
|
};
|
129
133
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
130
134
|
return {
|
@@ -132,26 +136,30 @@ class DatabaseMigrationsSqlMiImpl {
|
|
132
136
|
rawResponse: {
|
133
137
|
statusCode: currentRawResponse.status,
|
134
138
|
body: currentRawResponse.parsedBody,
|
135
|
-
headers: currentRawResponse.headers.toJSON()
|
136
|
-
}
|
139
|
+
headers: currentRawResponse.headers.toJSON(),
|
140
|
+
},
|
137
141
|
};
|
138
142
|
};
|
139
|
-
const lro =
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
143
|
+
const lro = (0, lroImpl_js_1.createLroSpec)({
|
144
|
+
sendOperationFn,
|
145
|
+
args: {
|
146
|
+
resourceGroupName,
|
147
|
+
managedInstanceName,
|
148
|
+
targetDbName,
|
149
|
+
parameters,
|
150
|
+
options,
|
151
|
+
},
|
152
|
+
spec: cancelOperationSpec,
|
153
|
+
});
|
154
|
+
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
155
|
+
restoreFrom: options?.resumeFrom,
|
156
|
+
intervalInMs: options?.updateIntervalInMs,
|
149
157
|
});
|
150
158
|
await poller.poll();
|
151
159
|
return poller;
|
152
160
|
}
|
153
161
|
/**
|
154
|
-
* Stop
|
162
|
+
* Stop in-progress database migration to SQL Managed Instance.
|
155
163
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
156
164
|
* value from the Azure Resource Manager API or the portal.
|
157
165
|
* @param managedInstanceName
|
@@ -164,7 +172,7 @@ class DatabaseMigrationsSqlMiImpl {
|
|
164
172
|
return poller.pollUntilDone();
|
165
173
|
}
|
166
174
|
/**
|
167
|
-
* Initiate cutover for online migration
|
175
|
+
* Initiate cutover for in-progress online database migration to SQL Managed Instance.
|
168
176
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
169
177
|
* value from the Azure Resource Manager API or the portal.
|
170
178
|
* @param managedInstanceName
|
@@ -176,7 +184,7 @@ class DatabaseMigrationsSqlMiImpl {
|
|
176
184
|
const directSendOperation = async (args, spec) => {
|
177
185
|
return this.client.sendOperationRequest(args, spec);
|
178
186
|
};
|
179
|
-
const
|
187
|
+
const sendOperationFn = async (args, spec) => {
|
180
188
|
let currentRawResponse = undefined;
|
181
189
|
const providedCallback = args.options?.onResponse;
|
182
190
|
const callback = (rawResponse, flatResponse) => {
|
@@ -187,8 +195,8 @@ class DatabaseMigrationsSqlMiImpl {
|
|
187
195
|
...args,
|
188
196
|
options: {
|
189
197
|
...args.options,
|
190
|
-
onResponse: callback
|
191
|
-
}
|
198
|
+
onResponse: callback,
|
199
|
+
},
|
192
200
|
};
|
193
201
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
194
202
|
return {
|
@@ -196,26 +204,30 @@ class DatabaseMigrationsSqlMiImpl {
|
|
196
204
|
rawResponse: {
|
197
205
|
statusCode: currentRawResponse.status,
|
198
206
|
body: currentRawResponse.parsedBody,
|
199
|
-
headers: currentRawResponse.headers.toJSON()
|
200
|
-
}
|
207
|
+
headers: currentRawResponse.headers.toJSON(),
|
208
|
+
},
|
201
209
|
};
|
202
210
|
};
|
203
|
-
const lro =
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
211
|
+
const lro = (0, lroImpl_js_1.createLroSpec)({
|
212
|
+
sendOperationFn,
|
213
|
+
args: {
|
214
|
+
resourceGroupName,
|
215
|
+
managedInstanceName,
|
216
|
+
targetDbName,
|
217
|
+
parameters,
|
218
|
+
options,
|
219
|
+
},
|
220
|
+
spec: cutoverOperationSpec,
|
221
|
+
});
|
222
|
+
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
223
|
+
restoreFrom: options?.resumeFrom,
|
224
|
+
intervalInMs: options?.updateIntervalInMs,
|
213
225
|
});
|
214
226
|
await poller.poll();
|
215
227
|
return poller;
|
216
228
|
}
|
217
229
|
/**
|
218
|
-
* Initiate cutover for online migration
|
230
|
+
* Initiate cutover for in-progress online database migration to SQL Managed Instance.
|
219
231
|
* @param resourceGroupName Name of the resource group that contains the resource. You can obtain this
|
220
232
|
* value from the Azure Resource Manager API or the portal.
|
221
233
|
* @param managedInstanceName
|
@@ -236,88 +248,88 @@ const getOperationSpec = {
|
|
236
248
|
httpMethod: "GET",
|
237
249
|
responses: {
|
238
250
|
200: {
|
239
|
-
bodyMapper: Mappers.DatabaseMigrationSqlMi
|
251
|
+
bodyMapper: Mappers.DatabaseMigrationSqlMi,
|
240
252
|
},
|
241
|
-
default: {}
|
253
|
+
default: {},
|
242
254
|
},
|
243
255
|
queryParameters: [
|
256
|
+
Parameters.apiVersion,
|
244
257
|
Parameters.migrationOperationId,
|
245
258
|
Parameters.expand,
|
246
|
-
Parameters.apiVersion
|
247
259
|
],
|
248
260
|
urlParameters: [
|
249
261
|
Parameters.$host,
|
250
262
|
Parameters.resourceGroupName,
|
251
|
-
Parameters.
|
263
|
+
Parameters.subscriptionId,
|
252
264
|
Parameters.targetDbName,
|
253
|
-
Parameters.
|
265
|
+
Parameters.managedInstanceName,
|
254
266
|
],
|
255
267
|
headerParameters: [Parameters.accept],
|
256
|
-
serializer
|
268
|
+
serializer,
|
257
269
|
};
|
258
270
|
const createOrUpdateOperationSpec = {
|
259
271
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}",
|
260
272
|
httpMethod: "PUT",
|
261
273
|
responses: {
|
262
274
|
200: {
|
263
|
-
bodyMapper: Mappers.DatabaseMigrationSqlMi
|
275
|
+
bodyMapper: Mappers.DatabaseMigrationSqlMi,
|
264
276
|
},
|
265
277
|
201: {
|
266
|
-
bodyMapper: Mappers.DatabaseMigrationSqlMi
|
278
|
+
bodyMapper: Mappers.DatabaseMigrationSqlMi,
|
267
279
|
},
|
268
280
|
202: {
|
269
|
-
bodyMapper: Mappers.DatabaseMigrationSqlMi
|
281
|
+
bodyMapper: Mappers.DatabaseMigrationSqlMi,
|
270
282
|
},
|
271
283
|
204: {
|
272
|
-
bodyMapper: Mappers.DatabaseMigrationSqlMi
|
284
|
+
bodyMapper: Mappers.DatabaseMigrationSqlMi,
|
273
285
|
},
|
274
|
-
default: {}
|
286
|
+
default: {},
|
275
287
|
},
|
276
|
-
requestBody: Parameters.
|
288
|
+
requestBody: Parameters.parameters3,
|
277
289
|
queryParameters: [Parameters.apiVersion],
|
278
290
|
urlParameters: [
|
279
291
|
Parameters.$host,
|
280
292
|
Parameters.resourceGroupName,
|
281
|
-
Parameters.
|
293
|
+
Parameters.subscriptionId,
|
282
294
|
Parameters.targetDbName,
|
283
|
-
Parameters.
|
295
|
+
Parameters.managedInstanceName,
|
284
296
|
],
|
285
297
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
286
298
|
mediaType: "json",
|
287
|
-
serializer
|
299
|
+
serializer,
|
288
300
|
};
|
289
301
|
const cancelOperationSpec = {
|
290
302
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cancel",
|
291
303
|
httpMethod: "POST",
|
292
304
|
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
293
|
-
requestBody: Parameters.
|
305
|
+
requestBody: Parameters.parameters2,
|
294
306
|
queryParameters: [Parameters.apiVersion],
|
295
307
|
urlParameters: [
|
296
308
|
Parameters.$host,
|
297
309
|
Parameters.resourceGroupName,
|
298
|
-
Parameters.
|
310
|
+
Parameters.subscriptionId,
|
299
311
|
Parameters.targetDbName,
|
300
|
-
Parameters.
|
312
|
+
Parameters.managedInstanceName,
|
301
313
|
],
|
302
314
|
headerParameters: [Parameters.contentType],
|
303
315
|
mediaType: "json",
|
304
|
-
serializer
|
316
|
+
serializer,
|
305
317
|
};
|
306
318
|
const cutoverOperationSpec = {
|
307
319
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/providers/Microsoft.DataMigration/databaseMigrations/{targetDbName}/cutover",
|
308
320
|
httpMethod: "POST",
|
309
321
|
responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} },
|
310
|
-
requestBody: Parameters.
|
322
|
+
requestBody: Parameters.parameters2,
|
311
323
|
queryParameters: [Parameters.apiVersion],
|
312
324
|
urlParameters: [
|
313
325
|
Parameters.$host,
|
314
326
|
Parameters.resourceGroupName,
|
315
|
-
Parameters.
|
327
|
+
Parameters.subscriptionId,
|
316
328
|
Parameters.targetDbName,
|
317
|
-
Parameters.
|
329
|
+
Parameters.managedInstanceName,
|
318
330
|
],
|
319
331
|
headerParameters: [Parameters.contentType],
|
320
332
|
mediaType: "json",
|
321
|
-
serializer
|
333
|
+
serializer,
|
322
334
|
};
|
323
335
|
//# sourceMappingURL=databaseMigrationsSqlMi.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"databaseMigrationsSqlMi.js","sourceRoot":"","sources":["../../../src/operations/databaseMigrationsSqlMi.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAYxC,2DAA2D;AAC3D,MAAa,2BAA2B;IACrB,MAAM,CAAgC;IAEvD;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CACD,iBAAyB,EACzB,mBAA2B,EAC3B,YAAoB,EACpB,OAAkD;QAElD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,YAAY,EAAE,OAAO,EAAE,EACjE,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,mBAAmB,CACvB,iBAAyB,EACzB,mBAA2B,EAC3B,YAAoB,EACpB,UAAkC,EAClC,OAA6D;QAO7D,MAAM,mBAAmB,GAAG,KAAK,EAC/B,IAAmC,EACnC,IAA8B,EAC0B,EAAE;YAC1D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACtD,CAAC,CAAC;QACF,MAAM,aAAa,GAAG,KAAK,EACzB,IAAmC,EACnC,IAA8B,EAC9B,EAAE;YACF,IAAI,kBAAkB,GAEN,SAAS,CAAC;YAC1B,MAAM,gBAAgB,GAAG,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC;YAClD,MAAM,QAAQ,GAAmC,CAC/C,WAA6C,EAC7C,YAAqB,EACrB,EAAE;gBACF,kBAAkB,GAAG,WAAW,CAAC;gBACjC,gBAAgB,EAAE,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;YAChD,CAAC,CAAC;YACF,MAAM,WAAW,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AU,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;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,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAY9C,2DAA2D;AAC3D,MAAa,2BAA2B;IACrB,MAAM,CAAgC;IAEvD;;;OAGG;IACH,YAAY,MAAqC;QAC/C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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;IACG,0BAA0B,CAC9B,iBAAiB,EAAE,MAAM,EACzB,qBAAqB,EAAE,MAAM,EAC7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