@azure/arm-datamigration 3.0.0-alpha.20250718.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 +14 -8
- 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 +11 -15
- 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 +4993 -3891
- 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 +83 -71
- 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 +83 -71
- 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 +676 -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 +194 -176
- 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 +110 -100
- 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 +13 -7
- 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 +12 -17
- 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 +5000 -3898
- 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 +81 -69
- 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 +81 -69
- 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 +680 -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 +192 -174
- 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 +108 -98
- 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/esm/dataMigrationManagementClient.d.ts +5 -1
- package/dist/esm/dataMigrationManagementClient.d.ts.map +1 -1
- package/dist/esm/dataMigrationManagementClient.js +14 -8
- 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 +11 -15
- 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 +4993 -3891
- 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 +83 -71
- 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 +83 -71
- 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 +676 -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 +194 -176
- 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 +110 -100
- 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 +14 -8
- 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 +11 -15
- 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 +4993 -3891
- 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 +83 -71
- 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 +83 -71
- 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 +676 -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 +194 -176
- 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 +110 -100
- 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 +25 -26
- package/CHANGELOG.md +0 -21
- package/review/arm-datamigration-node.api.md +0 -4103
@@ -21,9 +21,9 @@ export class TasksImpl {
|
|
21
21
|
this.client = client;
|
22
22
|
}
|
23
23
|
/**
|
24
|
-
* The services resource is the top-level resource that represents the Database Migration Service
|
25
|
-
* method returns a list of tasks owned by a service resource. Some tasks may have a
|
26
|
-
* which indicates that an error occurred while querying the status of that task.
|
24
|
+
* The services resource is the top-level resource that represents the Azure Database Migration Service
|
25
|
+
* (classic). This method returns a list of tasks owned by a service resource. Some tasks may have a
|
26
|
+
* status of Unknown, which indicates that an error occurred while querying the status of that task.
|
27
27
|
* @param groupName Name of the resource group
|
28
28
|
* @param serviceName Name of the service
|
29
29
|
* @param projectName Name of the project
|
@@ -43,7 +43,7 @@ export class TasksImpl {
|
|
43
43
|
throw new Error("maxPageSize is not supported by this operation.");
|
44
44
|
}
|
45
45
|
return this.listPagingPage(groupName, serviceName, projectName, options, settings);
|
46
|
-
}
|
46
|
+
},
|
47
47
|
};
|
48
48
|
}
|
49
49
|
listPagingPage(groupName, serviceName, projectName, options, settings) {
|
@@ -87,9 +87,9 @@ export class TasksImpl {
|
|
87
87
|
});
|
88
88
|
}
|
89
89
|
/**
|
90
|
-
* The services resource is the top-level resource that represents the Database Migration Service
|
91
|
-
* method returns a list of tasks owned by a service resource. Some tasks may have a
|
92
|
-
* which indicates that an error occurred while querying the status of that task.
|
90
|
+
* The services resource is the top-level resource that represents the Azure Database Migration Service
|
91
|
+
* (classic). This method returns a list of tasks owned by a service resource. Some tasks may have a
|
92
|
+
* status of Unknown, which indicates that an error occurred while querying the status of that task.
|
93
93
|
* @param groupName Name of the resource group
|
94
94
|
* @param serviceName Name of the service
|
95
95
|
* @param projectName Name of the project
|
@@ -99,9 +99,9 @@ export class TasksImpl {
|
|
99
99
|
return this.client.sendOperationRequest({ groupName, serviceName, projectName, options }, listOperationSpec);
|
100
100
|
}
|
101
101
|
/**
|
102
|
-
* The tasks resource is a nested, proxy-only resource representing work performed by a DMS
|
103
|
-
* The PUT method creates a new task or updates an existing one, although since tasks have no
|
104
|
-
* custom properties, there is little reason to update an existing one.
|
102
|
+
* The tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic)
|
103
|
+
* instance. The PUT method creates a new task or updates an existing one, although since tasks have no
|
104
|
+
* mutable custom properties, there is little reason to update an existing one.
|
105
105
|
* @param groupName Name of the resource group
|
106
106
|
* @param serviceName Name of the service
|
107
107
|
* @param projectName Name of the project
|
@@ -113,8 +113,8 @@ export class TasksImpl {
|
|
113
113
|
return this.client.sendOperationRequest({ groupName, serviceName, projectName, taskName, parameters, options }, createOrUpdateOperationSpec);
|
114
114
|
}
|
115
115
|
/**
|
116
|
-
* The tasks resource is a nested, proxy-only resource representing work performed by a DMS
|
117
|
-
* The GET method retrieves information about a task.
|
116
|
+
* The tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic)
|
117
|
+
* instance. The GET method retrieves information about a task.
|
118
118
|
* @param groupName Name of the resource group
|
119
119
|
* @param serviceName Name of the service
|
120
120
|
* @param projectName Name of the project
|
@@ -125,8 +125,8 @@ export class TasksImpl {
|
|
125
125
|
return this.client.sendOperationRequest({ groupName, serviceName, projectName, taskName, options }, getOperationSpec);
|
126
126
|
}
|
127
127
|
/**
|
128
|
-
* The tasks resource is a nested, proxy-only resource representing work performed by a DMS
|
129
|
-
* The DELETE method deletes a task, canceling it first if it's running.
|
128
|
+
* The tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic)
|
129
|
+
* instance. The DELETE method deletes a task, canceling it first if it's running.
|
130
130
|
* @param groupName Name of the resource group
|
131
131
|
* @param serviceName Name of the service
|
132
132
|
* @param projectName Name of the project
|
@@ -137,9 +137,9 @@ export class TasksImpl {
|
|
137
137
|
return this.client.sendOperationRequest({ groupName, serviceName, projectName, taskName, options }, deleteOperationSpec);
|
138
138
|
}
|
139
139
|
/**
|
140
|
-
* The tasks resource is a nested, proxy-only resource representing work performed by a DMS
|
141
|
-
* The PATCH method updates an existing task, but since tasks have no mutable custom
|
142
|
-
* is little reason to do so.
|
140
|
+
* The tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic)
|
141
|
+
* instance. The PATCH method updates an existing task, but since tasks have no mutable custom
|
142
|
+
* properties, there is little reason to do so.
|
143
143
|
* @param groupName Name of the resource group
|
144
144
|
* @param serviceName Name of the service
|
145
145
|
* @param projectName Name of the project
|
@@ -151,8 +151,8 @@ export class TasksImpl {
|
|
151
151
|
return this.client.sendOperationRequest({ groupName, serviceName, projectName, taskName, parameters, options }, updateOperationSpec);
|
152
152
|
}
|
153
153
|
/**
|
154
|
-
* The tasks resource is a nested, proxy-only resource representing work performed by a DMS
|
155
|
-
* This method cancels a task if it's currently queued or running.
|
154
|
+
* The tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic)
|
155
|
+
* instance. This method cancels a task if it's currently queued or running.
|
156
156
|
* @param groupName Name of the resource group
|
157
157
|
* @param serviceName Name of the service
|
158
158
|
* @param projectName Name of the project
|
@@ -163,8 +163,8 @@ export class TasksImpl {
|
|
163
163
|
return this.client.sendOperationRequest({ groupName, serviceName, projectName, taskName, options }, cancelOperationSpec);
|
164
164
|
}
|
165
165
|
/**
|
166
|
-
* The tasks resource is a nested, proxy-only resource representing work performed by a DMS
|
167
|
-
* This method executes a command on a running task.
|
166
|
+
* The tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic)
|
167
|
+
* instance. This method executes a command on a running task.
|
168
168
|
* @param groupName Name of the resource group
|
169
169
|
* @param serviceName Name of the service
|
170
170
|
* @param projectName Name of the project
|
@@ -194,11 +194,11 @@ const listOperationSpec = {
|
|
194
194
|
httpMethod: "GET",
|
195
195
|
responses: {
|
196
196
|
200: {
|
197
|
-
bodyMapper: Mappers.TaskList
|
197
|
+
bodyMapper: Mappers.TaskList,
|
198
198
|
},
|
199
199
|
default: {
|
200
|
-
bodyMapper: Mappers.ApiError
|
201
|
-
}
|
200
|
+
bodyMapper: Mappers.ApiError,
|
201
|
+
},
|
202
202
|
},
|
203
203
|
queryParameters: [Parameters.apiVersion, Parameters.taskType],
|
204
204
|
urlParameters: [
|
@@ -206,26 +206,26 @@ const listOperationSpec = {
|
|
206
206
|
Parameters.subscriptionId,
|
207
207
|
Parameters.groupName,
|
208
208
|
Parameters.serviceName,
|
209
|
-
Parameters.projectName
|
209
|
+
Parameters.projectName,
|
210
210
|
],
|
211
211
|
headerParameters: [Parameters.accept],
|
212
|
-
serializer
|
212
|
+
serializer,
|
213
213
|
};
|
214
214
|
const createOrUpdateOperationSpec = {
|
215
215
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}",
|
216
216
|
httpMethod: "PUT",
|
217
217
|
responses: {
|
218
218
|
200: {
|
219
|
-
bodyMapper: Mappers.ProjectTask
|
219
|
+
bodyMapper: Mappers.ProjectTask,
|
220
220
|
},
|
221
221
|
201: {
|
222
|
-
bodyMapper: Mappers.ProjectTask
|
222
|
+
bodyMapper: Mappers.ProjectTask,
|
223
223
|
},
|
224
224
|
default: {
|
225
|
-
bodyMapper: Mappers.ApiError
|
226
|
-
}
|
225
|
+
bodyMapper: Mappers.ApiError,
|
226
|
+
},
|
227
227
|
},
|
228
|
-
requestBody: Parameters.
|
228
|
+
requestBody: Parameters.parameters13,
|
229
229
|
queryParameters: [Parameters.apiVersion],
|
230
230
|
urlParameters: [
|
231
231
|
Parameters.$host,
|
@@ -233,34 +233,34 @@ const createOrUpdateOperationSpec = {
|
|
233
233
|
Parameters.groupName,
|
234
234
|
Parameters.serviceName,
|
235
235
|
Parameters.projectName,
|
236
|
-
Parameters.taskName
|
236
|
+
Parameters.taskName,
|
237
237
|
],
|
238
238
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
239
239
|
mediaType: "json",
|
240
|
-
serializer
|
240
|
+
serializer,
|
241
241
|
};
|
242
242
|
const getOperationSpec = {
|
243
243
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}",
|
244
244
|
httpMethod: "GET",
|
245
245
|
responses: {
|
246
246
|
200: {
|
247
|
-
bodyMapper: Mappers.ProjectTask
|
247
|
+
bodyMapper: Mappers.ProjectTask,
|
248
248
|
},
|
249
249
|
default: {
|
250
|
-
bodyMapper: Mappers.ApiError
|
251
|
-
}
|
250
|
+
bodyMapper: Mappers.ApiError,
|
251
|
+
},
|
252
252
|
},
|
253
|
-
queryParameters: [Parameters.
|
253
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
254
254
|
urlParameters: [
|
255
255
|
Parameters.$host,
|
256
256
|
Parameters.subscriptionId,
|
257
257
|
Parameters.groupName,
|
258
258
|
Parameters.serviceName,
|
259
259
|
Parameters.projectName,
|
260
|
-
Parameters.taskName
|
260
|
+
Parameters.taskName,
|
261
261
|
],
|
262
262
|
headerParameters: [Parameters.accept],
|
263
|
-
serializer
|
263
|
+
serializer,
|
264
264
|
};
|
265
265
|
const deleteOperationSpec = {
|
266
266
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}",
|
@@ -269,8 +269,8 @@ const deleteOperationSpec = {
|
|
269
269
|
200: {},
|
270
270
|
204: {},
|
271
271
|
default: {
|
272
|
-
bodyMapper: Mappers.ApiError
|
273
|
-
}
|
272
|
+
bodyMapper: Mappers.ApiError,
|
273
|
+
},
|
274
274
|
},
|
275
275
|
queryParameters: [Parameters.apiVersion, Parameters.deleteRunningTasks],
|
276
276
|
urlParameters: [
|
@@ -279,23 +279,23 @@ const deleteOperationSpec = {
|
|
279
279
|
Parameters.groupName,
|
280
280
|
Parameters.serviceName,
|
281
281
|
Parameters.projectName,
|
282
|
-
Parameters.taskName
|
282
|
+
Parameters.taskName,
|
283
283
|
],
|
284
284
|
headerParameters: [Parameters.accept],
|
285
|
-
serializer
|
285
|
+
serializer,
|
286
286
|
};
|
287
287
|
const updateOperationSpec = {
|
288
288
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}",
|
289
289
|
httpMethod: "PATCH",
|
290
290
|
responses: {
|
291
291
|
200: {
|
292
|
-
bodyMapper: Mappers.ProjectTask
|
292
|
+
bodyMapper: Mappers.ProjectTask,
|
293
293
|
},
|
294
294
|
default: {
|
295
|
-
bodyMapper: Mappers.ApiError
|
296
|
-
}
|
295
|
+
bodyMapper: Mappers.ApiError,
|
296
|
+
},
|
297
297
|
},
|
298
|
-
requestBody: Parameters.
|
298
|
+
requestBody: Parameters.parameters13,
|
299
299
|
queryParameters: [Parameters.apiVersion],
|
300
300
|
urlParameters: [
|
301
301
|
Parameters.$host,
|
@@ -303,22 +303,22 @@ const updateOperationSpec = {
|
|
303
303
|
Parameters.groupName,
|
304
304
|
Parameters.serviceName,
|
305
305
|
Parameters.projectName,
|
306
|
-
Parameters.taskName
|
306
|
+
Parameters.taskName,
|
307
307
|
],
|
308
308
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
309
309
|
mediaType: "json",
|
310
|
-
serializer
|
310
|
+
serializer,
|
311
311
|
};
|
312
312
|
const cancelOperationSpec = {
|
313
313
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}/cancel",
|
314
314
|
httpMethod: "POST",
|
315
315
|
responses: {
|
316
316
|
200: {
|
317
|
-
bodyMapper: Mappers.ProjectTask
|
317
|
+
bodyMapper: Mappers.ProjectTask,
|
318
318
|
},
|
319
319
|
default: {
|
320
|
-
bodyMapper: Mappers.ApiError
|
321
|
-
}
|
320
|
+
bodyMapper: Mappers.ApiError,
|
321
|
+
},
|
322
322
|
},
|
323
323
|
queryParameters: [Parameters.apiVersion],
|
324
324
|
urlParameters: [
|
@@ -327,23 +327,23 @@ const cancelOperationSpec = {
|
|
327
327
|
Parameters.groupName,
|
328
328
|
Parameters.serviceName,
|
329
329
|
Parameters.projectName,
|
330
|
-
Parameters.taskName
|
330
|
+
Parameters.taskName,
|
331
331
|
],
|
332
332
|
headerParameters: [Parameters.accept],
|
333
|
-
serializer
|
333
|
+
serializer,
|
334
334
|
};
|
335
335
|
const commandOperationSpec = {
|
336
336
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}/command",
|
337
337
|
httpMethod: "POST",
|
338
338
|
responses: {
|
339
339
|
200: {
|
340
|
-
bodyMapper: Mappers.CommandProperties
|
340
|
+
bodyMapper: Mappers.CommandProperties,
|
341
341
|
},
|
342
342
|
default: {
|
343
|
-
bodyMapper: Mappers.ApiError
|
344
|
-
}
|
343
|
+
bodyMapper: Mappers.ApiError,
|
344
|
+
},
|
345
345
|
},
|
346
|
-
requestBody: Parameters.
|
346
|
+
requestBody: Parameters.parameters14,
|
347
347
|
queryParameters: [Parameters.apiVersion],
|
348
348
|
urlParameters: [
|
349
349
|
Parameters.$host,
|
@@ -351,33 +351,32 @@ const commandOperationSpec = {
|
|
351
351
|
Parameters.groupName,
|
352
352
|
Parameters.serviceName,
|
353
353
|
Parameters.projectName,
|
354
|
-
Parameters.taskName
|
354
|
+
Parameters.taskName,
|
355
355
|
],
|
356
356
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
357
357
|
mediaType: "json",
|
358
|
-
serializer
|
358
|
+
serializer,
|
359
359
|
};
|
360
360
|
const listNextOperationSpec = {
|
361
361
|
path: "{nextLink}",
|
362
362
|
httpMethod: "GET",
|
363
363
|
responses: {
|
364
364
|
200: {
|
365
|
-
bodyMapper: Mappers.TaskList
|
365
|
+
bodyMapper: Mappers.TaskList,
|
366
366
|
},
|
367
367
|
default: {
|
368
|
-
bodyMapper: Mappers.ApiError
|
369
|
-
}
|
368
|
+
bodyMapper: Mappers.ApiError,
|
369
|
+
},
|
370
370
|
},
|
371
|
-
queryParameters: [Parameters.apiVersion, Parameters.taskType],
|
372
371
|
urlParameters: [
|
373
372
|
Parameters.$host,
|
374
373
|
Parameters.subscriptionId,
|
375
374
|
Parameters.nextLink,
|
376
375
|
Parameters.groupName,
|
377
376
|
Parameters.serviceName,
|
378
|
-
Parameters.projectName
|
377
|
+
Parameters.projectName,
|
379
378
|
],
|
380
379
|
headerParameters: [Parameters.accept],
|
381
|
-
serializer
|
380
|
+
serializer,
|
382
381
|
};
|
383
382
|
//# sourceMappingURL=tasks.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tasks.js","sourceRoot":"","sources":["../../../src/operations/tasks.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAsBtD,4CAA4C;AAC5C,yCAAyC;AACzC,MAAM,OAAO,SAAS;IAGpB;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,IAAI,CACT,SAAiB,EACjB,WAAmB,EACnB,WAAmB,EACnB,OAAiC;QAEjC,MAAM,IAAI,GAAG,IAAI,CAA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AAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,YAAY;IACpC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC;IAC7D,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Tasks } 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 ProjectTask,\n TasksListNextOptionalParams,\n TasksListOptionalParams,\n TasksListResponse,\n TasksCreateOrUpdateOptionalParams,\n TasksCreateOrUpdateResponse,\n TasksGetOptionalParams,\n TasksGetResponse,\n TasksDeleteOptionalParams,\n TasksUpdateOptionalParams,\n TasksUpdateResponse,\n TasksCancelOptionalParams,\n TasksCancelResponse,\n CommandPropertiesUnion,\n TasksCommandOptionalParams,\n TasksCommandResponse,\n TasksListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Tasks operations. */\nexport class TasksImpl implements Tasks {\n private readonly client: DataMigrationManagementClient;\n\n /**\n * Initialize a new instance of the class Tasks class.\n * @param client Reference to the service client\n */\n constructor(client: DataMigrationManagementClient) {\n this.client = client;\n }\n\n /**\n * The services resource is the top-level resource that represents the Database Migration Service. This\n * method returns a list of tasks owned by a service resource. Some tasks may have a status of Unknown,\n * which indicates that an error occurred while querying the status of that task.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param options The options parameters.\n */\n public list(\n groupName: string,\n serviceName: string,\n projectName: string,\n options?: TasksListOptionalParams\n ): PagedAsyncIterableIterator<ProjectTask> {\n const iter = this.listPagingAll(\n groupName,\n serviceName,\n projectName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n groupName,\n serviceName,\n projectName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n groupName: string,\n serviceName: string,\n projectName: string,\n options?: TasksListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ProjectTask[]> {\n let result: TasksListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(groupName, serviceName, projectName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n groupName,\n serviceName,\n projectName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n groupName: string,\n serviceName: string,\n projectName: string,\n options?: TasksListOptionalParams\n ): AsyncIterableIterator<ProjectTask> {\n for await (const page of this.listPagingPage(\n groupName,\n serviceName,\n projectName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * The services resource is the top-level resource that represents the Database Migration Service. This\n * method returns a list of tasks owned by a service resource. Some tasks may have a status of Unknown,\n * which indicates that an error occurred while querying the status of that task.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param options The options parameters.\n */\n private _list(\n groupName: string,\n serviceName: string,\n projectName: string,\n options?: TasksListOptionalParams\n ): Promise<TasksListResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, options },\n listOperationSpec\n );\n }\n\n /**\n * The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance.\n * The PUT method creates a new task or updates an existing one, although since tasks have no mutable\n * custom properties, there is little reason to update an existing one.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param taskName Name of the Task\n * @param parameters Information about the task\n * @param options The options parameters.\n */\n createOrUpdate(\n groupName: string,\n serviceName: string,\n projectName: string,\n taskName: string,\n parameters: ProjectTask,\n options?: TasksCreateOrUpdateOptionalParams\n ): Promise<TasksCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, taskName, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance.\n * The GET method retrieves information about a task.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param taskName Name of the Task\n * @param options The options parameters.\n */\n get(\n groupName: string,\n serviceName: string,\n projectName: string,\n taskName: string,\n options?: TasksGetOptionalParams\n ): Promise<TasksGetResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, taskName, options },\n getOperationSpec\n );\n }\n\n /**\n * The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance.\n * The DELETE method deletes a task, canceling it first if it's running.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param taskName Name of the Task\n * @param options The options parameters.\n */\n delete(\n groupName: string,\n serviceName: string,\n projectName: string,\n taskName: string,\n options?: TasksDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, taskName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance.\n * The PATCH method updates an existing task, but since tasks have no mutable custom properties, there\n * is little reason to do so.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param taskName Name of the Task\n * @param parameters Information about the task\n * @param options The options parameters.\n */\n update(\n groupName: string,\n serviceName: string,\n projectName: string,\n taskName: string,\n parameters: ProjectTask,\n options?: TasksUpdateOptionalParams\n ): Promise<TasksUpdateResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, taskName, parameters, options },\n updateOperationSpec\n );\n }\n\n /**\n * The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance.\n * This method cancels a task if it's currently queued or running.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param taskName Name of the Task\n * @param options The options parameters.\n */\n cancel(\n groupName: string,\n serviceName: string,\n projectName: string,\n taskName: string,\n options?: TasksCancelOptionalParams\n ): Promise<TasksCancelResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, taskName, options },\n cancelOperationSpec\n );\n }\n\n /**\n * The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance.\n * This method executes a command on a running task.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param taskName Name of the Task\n * @param parameters Command to execute\n * @param options The options parameters.\n */\n command(\n groupName: string,\n serviceName: string,\n projectName: string,\n taskName: string,\n parameters: CommandPropertiesUnion,\n options?: TasksCommandOptionalParams\n ): Promise<TasksCommandResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, taskName, parameters, options },\n commandOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n groupName: string,\n serviceName: string,\n projectName: string,\n nextLink: string,\n options?: TasksListNextOptionalParams\n ): Promise<TasksListNextResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskList\n },\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.taskType],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectTask\n },\n 201: {\n bodyMapper: Mappers.ProjectTask\n },\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n requestBody: Parameters.parameters9,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n Parameters.taskName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectTask\n },\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n queryParameters: [Parameters.expand, Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n Parameters.taskName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.deleteRunningTasks],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n Parameters.taskName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectTask\n },\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n requestBody: Parameters.parameters9,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n Parameters.taskName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}/cancel\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectTask\n },\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n Parameters.taskName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst commandOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}/command\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CommandProperties\n },\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n requestBody: Parameters.parameters10,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n Parameters.taskName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskList\n },\n default: {\n bodyMapper: Mappers.ApiError\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.taskType],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
1
|
+
{"version":3,"file":"tasks.js","sourceRoot":"","sources":["../../../src/operations/tasks.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAsBtD,4CAA4C;AAC5C,yCAAyC;AACzC,MAAM,OAAO,SAAS;IAGpB;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,IAAI,CACT,SAAiB,EACjB,WAAmB,EACnB,WAAmB,EACnB,OAAiC;QAEjC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,SAAS,EACT,WAAW,EACX,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,SAAS,EACT,WAAW,EACX,WAAW,EACX,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,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X,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Tasks } 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 ProjectTask,\n TasksListNextOptionalParams,\n TasksListOptionalParams,\n TasksListResponse,\n TasksCreateOrUpdateOptionalParams,\n TasksCreateOrUpdateResponse,\n TasksGetOptionalParams,\n TasksGetResponse,\n TasksDeleteOptionalParams,\n TasksUpdateOptionalParams,\n TasksUpdateResponse,\n TasksCancelOptionalParams,\n TasksCancelResponse,\n CommandPropertiesUnion,\n TasksCommandOptionalParams,\n TasksCommandResponse,\n TasksListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Tasks operations. */\nexport class TasksImpl implements Tasks {\n private readonly client: DataMigrationManagementClient;\n\n /**\n * Initialize a new instance of the class Tasks class.\n * @param client Reference to the service client\n */\n constructor(client: DataMigrationManagementClient) {\n this.client = client;\n }\n\n /**\n * The services resource is the top-level resource that represents the Azure Database Migration Service\n * (classic). This method returns a list of tasks owned by a service resource. Some tasks may have a\n * status of Unknown, which indicates that an error occurred while querying the status of that task.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param options The options parameters.\n */\n public list(\n groupName: string,\n serviceName: string,\n projectName: string,\n options?: TasksListOptionalParams,\n ): PagedAsyncIterableIterator<ProjectTask> {\n const iter = this.listPagingAll(\n groupName,\n serviceName,\n projectName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(\n groupName,\n serviceName,\n projectName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n groupName: string,\n serviceName: string,\n projectName: string,\n options?: TasksListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ProjectTask[]> {\n let result: TasksListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(groupName, serviceName, projectName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n groupName,\n serviceName,\n projectName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n groupName: string,\n serviceName: string,\n projectName: string,\n options?: TasksListOptionalParams,\n ): AsyncIterableIterator<ProjectTask> {\n for await (const page of this.listPagingPage(\n groupName,\n serviceName,\n projectName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * The services resource is the top-level resource that represents the Azure Database Migration Service\n * (classic). This method returns a list of tasks owned by a service resource. Some tasks may have a\n * status of Unknown, which indicates that an error occurred while querying the status of that task.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param options The options parameters.\n */\n private _list(\n groupName: string,\n serviceName: string,\n projectName: string,\n options?: TasksListOptionalParams,\n ): Promise<TasksListResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, options },\n listOperationSpec,\n );\n }\n\n /**\n * The tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic)\n * instance. The PUT method creates a new task or updates an existing one, although since tasks have no\n * mutable custom properties, there is little reason to update an existing one.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param taskName Name of the Task\n * @param parameters Information about the task\n * @param options The options parameters.\n */\n createOrUpdate(\n groupName: string,\n serviceName: string,\n projectName: string,\n taskName: string,\n parameters: ProjectTask,\n options?: TasksCreateOrUpdateOptionalParams,\n ): Promise<TasksCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, taskName, parameters, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * The tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic)\n * instance. The GET method retrieves information about a task.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param taskName Name of the Task\n * @param options The options parameters.\n */\n get(\n groupName: string,\n serviceName: string,\n projectName: string,\n taskName: string,\n options?: TasksGetOptionalParams,\n ): Promise<TasksGetResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, taskName, options },\n getOperationSpec,\n );\n }\n\n /**\n * The tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic)\n * instance. The DELETE method deletes a task, canceling it first if it's running.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param taskName Name of the Task\n * @param options The options parameters.\n */\n delete(\n groupName: string,\n serviceName: string,\n projectName: string,\n taskName: string,\n options?: TasksDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, taskName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * The tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic)\n * instance. The PATCH method updates an existing task, but since tasks have no mutable custom\n * properties, there is little reason to do so.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param taskName Name of the Task\n * @param parameters Information about the task\n * @param options The options parameters.\n */\n update(\n groupName: string,\n serviceName: string,\n projectName: string,\n taskName: string,\n parameters: ProjectTask,\n options?: TasksUpdateOptionalParams,\n ): Promise<TasksUpdateResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, taskName, parameters, options },\n updateOperationSpec,\n );\n }\n\n /**\n * The tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic)\n * instance. This method cancels a task if it's currently queued or running.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param taskName Name of the Task\n * @param options The options parameters.\n */\n cancel(\n groupName: string,\n serviceName: string,\n projectName: string,\n taskName: string,\n options?: TasksCancelOptionalParams,\n ): Promise<TasksCancelResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, taskName, options },\n cancelOperationSpec,\n );\n }\n\n /**\n * The tasks resource is a nested, proxy-only resource representing work performed by a DMS (classic)\n * instance. This method executes a command on a running task.\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param taskName Name of the Task\n * @param parameters Command to execute\n * @param options The options parameters.\n */\n command(\n groupName: string,\n serviceName: string,\n projectName: string,\n taskName: string,\n parameters: CommandPropertiesUnion,\n options?: TasksCommandOptionalParams,\n ): Promise<TasksCommandResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, taskName, parameters, options },\n commandOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param groupName Name of the resource group\n * @param serviceName Name of the service\n * @param projectName Name of the project\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n groupName: string,\n serviceName: string,\n projectName: string,\n nextLink: string,\n options?: TasksListNextOptionalParams,\n ): Promise<TasksListNextResponse> {\n return this.client.sendOperationRequest(\n { groupName, serviceName, projectName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskList,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.taskType],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectTask,\n },\n 201: {\n bodyMapper: Mappers.ProjectTask,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n requestBody: Parameters.parameters13,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n Parameters.taskName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectTask,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n Parameters.taskName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.deleteRunningTasks],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n Parameters.taskName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectTask,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n requestBody: Parameters.parameters13,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n Parameters.taskName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}/cancel\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProjectTask,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n Parameters.taskName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst commandOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.DataMigration/services/{serviceName}/projects/{projectName}/tasks/{taskName}/command\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CommandProperties,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n requestBody: Parameters.parameters14,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n Parameters.taskName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TaskList,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.groupName,\n Parameters.serviceName,\n Parameters.projectName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
@@ -11,8 +11,8 @@ export declare class UsagesImpl implements Usages {
|
|
11
11
|
*/
|
12
12
|
constructor(client: DataMigrationManagementClient);
|
13
13
|
/**
|
14
|
-
* This method returns region-specific quotas and resource usage information for the Database
|
15
|
-
* Service.
|
14
|
+
* This method returns region-specific quotas and resource usage information for the Azure Database
|
15
|
+
* Migration Service (classic).
|
16
16
|
* @param location The Azure region of the operation
|
17
17
|
* @param options The options parameters.
|
18
18
|
*/
|
@@ -20,8 +20,8 @@ export declare class UsagesImpl implements Usages {
|
|
20
20
|
private listPagingPage;
|
21
21
|
private listPagingAll;
|
22
22
|
/**
|
23
|
-
* This method returns region-specific quotas and resource usage information for the Database
|
24
|
-
* Service.
|
23
|
+
* This method returns region-specific quotas and resource usage information for the Azure Database
|
24
|
+
* Migration Service (classic).
|
25
25
|
* @param location The Azure region of the operation
|
26
26
|
* @param options The options parameters.
|
27
27
|
*/
|
@@ -21,8 +21,8 @@ export class UsagesImpl {
|
|
21
21
|
this.client = client;
|
22
22
|
}
|
23
23
|
/**
|
24
|
-
* This method returns region-specific quotas and resource usage information for the Database
|
25
|
-
* Service.
|
24
|
+
* This method returns region-specific quotas and resource usage information for the Azure Database
|
25
|
+
* Migration Service (classic).
|
26
26
|
* @param location The Azure region of the operation
|
27
27
|
* @param options The options parameters.
|
28
28
|
*/
|
@@ -40,7 +40,7 @@ export class UsagesImpl {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
41
41
|
}
|
42
42
|
return this.listPagingPage(location, options, settings);
|
43
|
-
}
|
43
|
+
},
|
44
44
|
};
|
45
45
|
}
|
46
46
|
listPagingPage(location, options, settings) {
|
@@ -84,8 +84,8 @@ export class UsagesImpl {
|
|
84
84
|
});
|
85
85
|
}
|
86
86
|
/**
|
87
|
-
* This method returns region-specific quotas and resource usage information for the Database
|
88
|
-
* Service.
|
87
|
+
* This method returns region-specific quotas and resource usage information for the Azure Database
|
88
|
+
* Migration Service (classic).
|
89
89
|
* @param location The Azure region of the operation
|
90
90
|
* @param options The options parameters.
|
91
91
|
*/
|
@@ -109,40 +109,39 @@ const listOperationSpec = {
|
|
109
109
|
httpMethod: "GET",
|
110
110
|
responses: {
|
111
111
|
200: {
|
112
|
-
bodyMapper: Mappers.QuotaList
|
112
|
+
bodyMapper: Mappers.QuotaList,
|
113
113
|
},
|
114
114
|
default: {
|
115
|
-
bodyMapper: Mappers.ApiError
|
116
|
-
}
|
115
|
+
bodyMapper: Mappers.ApiError,
|
116
|
+
},
|
117
117
|
},
|
118
118
|
queryParameters: [Parameters.apiVersion],
|
119
119
|
urlParameters: [
|
120
120
|
Parameters.$host,
|
121
121
|
Parameters.subscriptionId,
|
122
|
-
Parameters.location
|
122
|
+
Parameters.location,
|
123
123
|
],
|
124
124
|
headerParameters: [Parameters.accept],
|
125
|
-
serializer
|
125
|
+
serializer,
|
126
126
|
};
|
127
127
|
const listNextOperationSpec = {
|
128
128
|
path: "{nextLink}",
|
129
129
|
httpMethod: "GET",
|
130
130
|
responses: {
|
131
131
|
200: {
|
132
|
-
bodyMapper: Mappers.QuotaList
|
132
|
+
bodyMapper: Mappers.QuotaList,
|
133
133
|
},
|
134
134
|
default: {
|
135
|
-
bodyMapper: Mappers.ApiError
|
136
|
-
}
|
135
|
+
bodyMapper: Mappers.ApiError,
|
136
|
+
},
|
137
137
|
},
|
138
|
-
queryParameters: [Parameters.apiVersion],
|
139
138
|
urlParameters: [
|
140
139
|
Parameters.$host,
|
141
140
|
Parameters.subscriptionId,
|
142
141
|
Parameters.nextLink,
|
143
|
-
Parameters.location
|
142
|
+
Parameters.location,
|
144
143
|
],
|
145
144
|
headerParameters: [Parameters.accept],
|
146
|
-
serializer
|
145
|
+
serializer,
|
147
146
|
};
|
148
147
|
//# sourceMappingURL=usages.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"usages.js","sourceRoot":"","sources":["../../../src/operations/usages.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAM,OAAO,UAAU;IAGrB;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,QAAgB,EAChB,OAAkC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A6B;IAClD,IAAI,EAAE,+FAA+F;IACrG,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,SAAS;SAC9B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,SAAS;SAC9B;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,QAAQ;SAC7B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Usages } 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 Quota,\n UsagesListNextOptionalParams,\n UsagesListOptionalParams,\n UsagesListResponse,\n UsagesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Usages operations. */\nexport class UsagesImpl implements Usages {\n private readonly client: DataMigrationManagementClient;\n\n /**\n * Initialize a new instance of the class Usages class.\n * @param client Reference to the service client\n */\n constructor(client: DataMigrationManagementClient) {\n this.client = client;\n }\n\n /**\n * This method returns region-specific quotas and resource usage information for the Azure Database\n * Migration Service (classic).\n * @param location The Azure region of the operation\n * @param options The options parameters.\n */\n public list(\n location: string,\n options?: UsagesListOptionalParams,\n ): PagedAsyncIterableIterator<Quota> {\n const iter = this.listPagingAll(location, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(location, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n location: string,\n options?: UsagesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Quota[]> {\n let result: UsagesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(location, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(location, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n location: string,\n options?: UsagesListOptionalParams,\n ): AsyncIterableIterator<Quota> {\n for await (const page of this.listPagingPage(location, options)) {\n yield* page;\n }\n }\n\n /**\n * This method returns region-specific quotas and resource usage information for the Azure Database\n * Migration Service (classic).\n * @param location The Azure region of the operation\n * @param options The options parameters.\n */\n private _list(\n location: string,\n options?: UsagesListOptionalParams,\n ): Promise<UsagesListResponse> {\n return this.client.sendOperationRequest(\n { location, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param location The Azure region of the operation\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n location: string,\n nextLink: string,\n options?: UsagesListNextOptionalParams,\n ): Promise<UsagesListNextResponse> {\n return this.client.sendOperationRequest(\n { location, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.DataMigration/locations/{location}/usages\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QuotaList,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QuotaList,\n },\n default: {\n bodyMapper: Mappers.ApiError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.location,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|