@azure/arm-datamigration 3.0.0-beta.1 → 3.0.0-beta.3
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +2 -2
- package/README.md +12 -1
- package/dist/index.js +981 -288
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/databaseMigrationsSqlMiCancelSample.d.ts +2 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiCancelSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiCancelSample.js +35 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiCancelSample.js.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiCreateOrUpdateSample.js +117 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiCutoverSample.d.ts +2 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiCutoverSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiCutoverSample.js +35 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiCutoverSample.js.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiGetSample.js +32 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlMiGetSample.js.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMCancelSample.d.ts +2 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMCancelSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMCancelSample.js +35 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMCancelSample.js.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMCreateOrUpdateSample.js +117 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMCutoverSample.d.ts +2 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMCutoverSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMCutoverSample.js +35 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMCutoverSample.js.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMGetSample.js +32 -0
- package/dist-esm/samples-dev/databaseMigrationsSqlVMGetSample.js.map +1 -0
- package/dist-esm/samples-dev/filesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/filesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesCreateOrUpdateSample.js +36 -0
- package/dist-esm/samples-dev/filesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/filesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/filesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesDeleteSample.js +33 -0
- package/dist-esm/samples-dev/filesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/filesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/filesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesGetSample.js +33 -0
- package/dist-esm/samples-dev/filesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/filesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/filesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesListSample.js +46 -0
- package/dist-esm/samples-dev/filesListSample.js.map +1 -0
- package/dist-esm/samples-dev/filesReadSample.d.ts +2 -0
- package/dist-esm/samples-dev/filesReadSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesReadSample.js +33 -0
- package/dist-esm/samples-dev/filesReadSample.js.map +1 -0
- package/dist-esm/samples-dev/filesReadWriteSample.d.ts +2 -0
- package/dist-esm/samples-dev/filesReadWriteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesReadWriteSample.js +33 -0
- package/dist-esm/samples-dev/filesReadWriteSample.js.map +1 -0
- package/dist-esm/samples-dev/filesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/filesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/filesUpdateSample.js +36 -0
- package/dist-esm/samples-dev/filesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +43 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/projectsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/projectsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/projectsCreateOrUpdateSample.js +37 -0
- package/dist-esm/samples-dev/projectsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/projectsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/projectsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/projectsDeleteSample.js +32 -0
- package/dist-esm/samples-dev/projectsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/projectsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/projectsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/projectsGetSample.js +32 -0
- package/dist-esm/samples-dev/projectsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/projectsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/projectsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/projectsListSample.js +45 -0
- package/dist-esm/samples-dev/projectsListSample.js.map +1 -0
- package/dist-esm/samples-dev/projectsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/projectsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/projectsUpdateSample.js +37 -0
- package/dist-esm/samples-dev/projectsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/resourceSkusListSkusSample.d.ts +2 -0
- package/dist-esm/samples-dev/resourceSkusListSkusSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/resourceSkusListSkusSample.js +43 -0
- package/dist-esm/samples-dev/resourceSkusListSkusSample.js.map +1 -0
- package/dist-esm/samples-dev/serviceTasksCancelSample.d.ts +2 -0
- package/dist-esm/samples-dev/serviceTasksCancelSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serviceTasksCancelSample.js +32 -0
- package/dist-esm/samples-dev/serviceTasksCancelSample.js.map +1 -0
- package/dist-esm/samples-dev/serviceTasksCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/serviceTasksCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serviceTasksCreateOrUpdateSample.js +38 -0
- package/dist-esm/samples-dev/serviceTasksCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/serviceTasksDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/serviceTasksDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serviceTasksDeleteSample.js +32 -0
- package/dist-esm/samples-dev/serviceTasksDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/serviceTasksGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/serviceTasksGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serviceTasksGetSample.js +32 -0
- package/dist-esm/samples-dev/serviceTasksGetSample.js.map +1 -0
- package/dist-esm/samples-dev/serviceTasksListSample.d.ts +2 -0
- package/dist-esm/samples-dev/serviceTasksListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serviceTasksListSample.js +45 -0
- package/dist-esm/samples-dev/serviceTasksListSample.js.map +1 -0
- package/dist-esm/samples-dev/serviceTasksUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/serviceTasksUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/serviceTasksUpdateSample.js +38 -0
- package/dist-esm/samples-dev/serviceTasksUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/servicesCheckChildrenNameAvailabilitySample.d.ts +2 -0
- package/dist-esm/samples-dev/servicesCheckChildrenNameAvailabilitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesCheckChildrenNameAvailabilitySample.js +32 -0
- package/dist-esm/samples-dev/servicesCheckChildrenNameAvailabilitySample.js.map +1 -0
- package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.d.ts +2 -0
- package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.js +34 -0
- package/dist-esm/samples-dev/servicesCheckNameAvailabilitySample.js.map +1 -0
- package/dist-esm/samples-dev/servicesCheckStatusSample.d.ts +2 -0
- package/dist-esm/samples-dev/servicesCheckStatusSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesCheckStatusSample.js +31 -0
- package/dist-esm/samples-dev/servicesCheckStatusSample.js.map +1 -0
- package/dist-esm/samples-dev/servicesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/servicesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js +36 -0
- package/dist-esm/samples-dev/servicesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/servicesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/servicesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesDeleteSample.js +31 -0
- package/dist-esm/samples-dev/servicesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/servicesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/servicesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesGetSample.js +31 -0
- package/dist-esm/samples-dev/servicesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/servicesListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/servicesListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/servicesListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/servicesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/servicesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesListSample.js +43 -0
- package/dist-esm/samples-dev/servicesListSample.js.map +1 -0
- package/dist-esm/samples-dev/servicesListSkusSample.d.ts +2 -0
- package/dist-esm/samples-dev/servicesListSkusSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesListSkusSample.js +45 -0
- package/dist-esm/samples-dev/servicesListSkusSample.js.map +1 -0
- package/dist-esm/samples-dev/servicesStartSample.d.ts +2 -0
- package/dist-esm/samples-dev/servicesStartSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesStartSample.js +31 -0
- package/dist-esm/samples-dev/servicesStartSample.js.map +1 -0
- package/dist-esm/samples-dev/servicesStopSample.d.ts +2 -0
- package/dist-esm/samples-dev/servicesStopSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesStopSample.js +31 -0
- package/dist-esm/samples-dev/servicesStopSample.js.map +1 -0
- package/dist-esm/samples-dev/servicesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/servicesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/servicesUpdateSample.js +35 -0
- package/dist-esm/samples-dev/servicesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlMigrationServicesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesCreateOrUpdateSample.js +51 -0
- package/dist-esm/samples-dev/sqlMigrationServicesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesDeleteNodeSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlMigrationServicesDeleteNodeSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesDeleteNodeSample.js +35 -0
- package/dist-esm/samples-dev/sqlMigrationServicesDeleteNodeSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlMigrationServicesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesDeleteSample.js +31 -0
- package/dist-esm/samples-dev/sqlMigrationServicesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlMigrationServicesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesGetSample.js +31 -0
- package/dist-esm/samples-dev/sqlMigrationServicesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListAuthKeysSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListAuthKeysSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListAuthKeysSample.js +31 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListAuthKeysSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListBySubscriptionSample.js +43 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListMigrationsSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListMigrationsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListMigrationsSample.js +45 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListMigrationsSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListMonitoringDataSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListMonitoringDataSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListMonitoringDataSample.js +31 -0
- package/dist-esm/samples-dev/sqlMigrationServicesListMonitoringDataSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesRegenerateAuthKeysSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlMigrationServicesRegenerateAuthKeysSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesRegenerateAuthKeysSample.js +32 -0
- package/dist-esm/samples-dev/sqlMigrationServicesRegenerateAuthKeysSample.js.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/sqlMigrationServicesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sqlMigrationServicesUpdateSample.js +32 -0
- package/dist-esm/samples-dev/sqlMigrationServicesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/tasksCancelSample.d.ts +2 -0
- package/dist-esm/samples-dev/tasksCancelSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksCancelSample.js +33 -0
- package/dist-esm/samples-dev/tasksCancelSample.js.map +1 -0
- package/dist-esm/samples-dev/tasksCommandSample.d.ts +2 -0
- package/dist-esm/samples-dev/tasksCommandSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksCommandSample.js +37 -0
- package/dist-esm/samples-dev/tasksCommandSample.js.map +1 -0
- package/dist-esm/samples-dev/tasksCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/tasksCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksCreateOrUpdateSample.js +49 -0
- package/dist-esm/samples-dev/tasksCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/tasksDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/tasksDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksDeleteSample.js +33 -0
- package/dist-esm/samples-dev/tasksDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/tasksGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/tasksGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksGetSample.js +33 -0
- package/dist-esm/samples-dev/tasksGetSample.js.map +1 -0
- package/dist-esm/samples-dev/tasksListSample.d.ts +2 -0
- package/dist-esm/samples-dev/tasksListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksListSample.js +46 -0
- package/dist-esm/samples-dev/tasksListSample.js.map +1 -0
- package/dist-esm/samples-dev/tasksUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/tasksUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/tasksUpdateSample.js +49 -0
- package/dist-esm/samples-dev/tasksUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/usagesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/usagesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/usagesListSample.js +44 -0
- package/dist-esm/samples-dev/usagesListSample.js.map +1 -0
- package/dist-esm/src/dataMigrationManagementClient.d.ts +2 -0
- package/dist-esm/src/dataMigrationManagementClient.d.ts.map +1 -1
- package/dist-esm/src/dataMigrationManagementClient.js +54 -5
- package/dist-esm/src/dataMigrationManagementClient.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +556 -240
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +314 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/operations/databaseMigrationsSqlMi.d.ts.map +1 -1
- package/dist-esm/src/operations/databaseMigrationsSqlMi.js +9 -3
- package/dist-esm/src/operations/databaseMigrationsSqlMi.js.map +1 -1
- package/dist-esm/src/operations/databaseMigrationsSqlVm.d.ts.map +1 -1
- package/dist-esm/src/operations/databaseMigrationsSqlVm.js +9 -3
- package/dist-esm/src/operations/databaseMigrationsSqlVm.js.map +1 -1
- package/dist-esm/src/operations/files.d.ts.map +1 -1
- package/dist-esm/src/operations/files.js +19 -7
- package/dist-esm/src/operations/files.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -7
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/projects.d.ts.map +1 -1
- package/dist-esm/src/operations/projects.js +19 -7
- package/dist-esm/src/operations/projects.js.map +1 -1
- package/dist-esm/src/operations/resourceSkus.d.ts.map +1 -1
- package/dist-esm/src/operations/resourceSkus.js +19 -7
- package/dist-esm/src/operations/resourceSkus.js.map +1 -1
- package/dist-esm/src/operations/serviceTasks.d.ts.map +1 -1
- package/dist-esm/src/operations/serviceTasks.js +19 -7
- package/dist-esm/src/operations/serviceTasks.js.map +1 -1
- package/dist-esm/src/operations/services.d.ts.map +1 -1
- package/dist-esm/src/operations/services.js +70 -26
- package/dist-esm/src/operations/services.js.map +1 -1
- package/dist-esm/src/operations/sqlMigrationServices.d.ts.map +1 -1
- package/dist-esm/src/operations/sqlMigrationServices.js +64 -24
- package/dist-esm/src/operations/sqlMigrationServices.js.map +1 -1
- package/dist-esm/src/operations/tasks.d.ts.map +1 -1
- package/dist-esm/src/operations/tasks.js +19 -7
- package/dist-esm/src/operations/tasks.js.map +1 -1
- package/dist-esm/src/operations/usages.d.ts.map +1 -1
- package/dist-esm/src/operations/usages.js +19 -7
- package/dist-esm/src/operations/usages.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +38 -22
- package/review/arm-datamigration.api.md +564 -872
- package/rollup.config.js +6 -72
- package/src/dataMigrationManagementClient.ts +70 -5
- package/src/index.ts +1 -0
- package/src/models/index.ts +646 -246
- package/src/operations/databaseMigrationsSqlMi.ts +9 -3
- package/src/operations/databaseMigrationsSqlVm.ts +9 -3
- package/src/operations/files.ts +22 -8
- package/src/operations/operations.ts +21 -8
- package/src/operations/projects.ts +21 -8
- package/src/operations/resourceSkus.ts +21 -8
- package/src/operations/serviceTasks.ts +21 -8
- package/src/operations/services.ts +82 -30
- package/src/operations/sqlMigrationServices.ts +80 -32
- package/src/operations/tasks.ts +22 -8
- package/src/operations/usages.ts +21 -8
- package/src/pagingHelper.ts +39 -0
- package/tsconfig.json +18 -5
- package/types/arm-datamigration.d.ts +567 -240
- package/types/tsdoc-metadata.json +1 -1
- package/LICENSE.txt +0 -21
@@ -0,0 +1,33 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { DataMigrationManagementClient } from "@azure/arm-datamigration";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to This method deletes a file.
|
15
|
+
*
|
16
|
+
* @summary This method deletes a file.
|
17
|
+
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Files_Delete.json
|
18
|
+
*/
|
19
|
+
function filesDelete() {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f";
|
22
|
+
const groupName = "DmsSdkRg";
|
23
|
+
const serviceName = "DmsSdkService";
|
24
|
+
const projectName = "DmsSdkProject";
|
25
|
+
const fileName = "x114d023d8";
|
26
|
+
const credential = new DefaultAzureCredential();
|
27
|
+
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
28
|
+
const result = yield client.files.delete(groupName, serviceName, projectName, fileName);
|
29
|
+
console.log(result);
|
30
|
+
});
|
31
|
+
}
|
32
|
+
filesDelete().catch(console.error);
|
33
|
+
//# sourceMappingURL=filesDeleteSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"filesDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/filesDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,WAAW;;QACxB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,SAAS,GAAG,UAAU,CAAC;QAC7B,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,QAAQ,GAAG,YAAY,CAAC;QAC9B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,MAAM,CACtC,SAAS,EACT,WAAW,EACX,WAAW,EACX,QAAQ,CACT,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,WAAW,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"filesGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/filesGetSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { DataMigrationManagementClient } from "@azure/arm-datamigration";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to The files resource is a nested, proxy-only resource representing a file stored under the project resource. This method retrieves information about a file.
|
15
|
+
*
|
16
|
+
* @summary The files resource is a nested, proxy-only resource representing a file stored under the project resource. This method retrieves information about a file.
|
17
|
+
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Files_Get.json
|
18
|
+
*/
|
19
|
+
function filesList() {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f";
|
22
|
+
const groupName = "DmsSdkRg";
|
23
|
+
const serviceName = "DmsSdkService";
|
24
|
+
const projectName = "DmsSdkProject";
|
25
|
+
const fileName = "x114d023d8";
|
26
|
+
const credential = new DefaultAzureCredential();
|
27
|
+
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
28
|
+
const result = yield client.files.get(groupName, serviceName, projectName, fileName);
|
29
|
+
console.log(result);
|
30
|
+
});
|
31
|
+
}
|
32
|
+
filesList().catch(console.error);
|
33
|
+
//# sourceMappingURL=filesGetSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"filesGetSample.js","sourceRoot":"","sources":["../../samples-dev/filesGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,SAAS;;QACtB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,SAAS,GAAG,UAAU,CAAC;QAC7B,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,QAAQ,GAAG,YAAY,CAAC;QAC9B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,GAAG,CACnC,SAAS,EACT,WAAW,EACX,WAAW,EACX,QAAQ,CACT,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAS,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"filesListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/filesListSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { DataMigrationManagementClient } from "@azure/arm-datamigration";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to The project resource is a nested resource representing a stored migration project. This method returns a list of files owned by a project resource.
|
15
|
+
*
|
16
|
+
* @summary The project resource is a nested resource representing a stored migration project. This method returns a list of files owned by a project resource.
|
17
|
+
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Files_List.json
|
18
|
+
*/
|
19
|
+
function filesList() {
|
20
|
+
var e_1, _a;
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
22
|
+
const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f";
|
23
|
+
const groupName = "DmsSdkRg";
|
24
|
+
const serviceName = "DmsSdkService";
|
25
|
+
const projectName = "DmsSdkProject";
|
26
|
+
const credential = new DefaultAzureCredential();
|
27
|
+
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
28
|
+
const resArray = new Array();
|
29
|
+
try {
|
30
|
+
for (var _b = __asyncValues(client.files.list(groupName, serviceName, projectName)), _c; _c = yield _b.next(), !_c.done;) {
|
31
|
+
let item = _c.value;
|
32
|
+
resArray.push(item);
|
33
|
+
}
|
34
|
+
}
|
35
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
36
|
+
finally {
|
37
|
+
try {
|
38
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
39
|
+
}
|
40
|
+
finally { if (e_1) throw e_1.error; }
|
41
|
+
}
|
42
|
+
console.log(resArray);
|
43
|
+
});
|
44
|
+
}
|
45
|
+
filesList().catch(console.error);
|
46
|
+
//# sourceMappingURL=filesListSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"filesListSample.js","sourceRoot":"","sources":["../../samples-dev/filesListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,SAAS;;;QACtB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,SAAS,GAAG,UAAU,CAAC;QAC7B,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,KAAK,CAAC,IAAI,CACtC,SAAS,EACT,WAAW,EACX,WAAW,CACZ,CAAA,IAAA;gBAJU,IAAI,IAAI,WAAA,CAAA;gBAKjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAS,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"filesReadSample.d.ts","sourceRoot":"","sources":["../../samples-dev/filesReadSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { DataMigrationManagementClient } from "@azure/arm-datamigration";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to This method is used for requesting storage information using which contents of the file can be downloaded.
|
15
|
+
*
|
16
|
+
* @summary This method is used for requesting storage information using which contents of the file can be downloaded.
|
17
|
+
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Files_Read.json
|
18
|
+
*/
|
19
|
+
function filesList() {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f";
|
22
|
+
const groupName = "DmsSdkRg";
|
23
|
+
const serviceName = "DmsSdkService";
|
24
|
+
const projectName = "DmsSdkProject";
|
25
|
+
const fileName = "x114d023d8";
|
26
|
+
const credential = new DefaultAzureCredential();
|
27
|
+
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
28
|
+
const result = yield client.files.read(groupName, serviceName, projectName, fileName);
|
29
|
+
console.log(result);
|
30
|
+
});
|
31
|
+
}
|
32
|
+
filesList().catch(console.error);
|
33
|
+
//# sourceMappingURL=filesReadSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"filesReadSample.js","sourceRoot":"","sources":["../../samples-dev/filesReadSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,SAAS;;QACtB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,SAAS,GAAG,UAAU,CAAC;QAC7B,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,QAAQ,GAAG,YAAY,CAAC;QAC9B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,IAAI,CACpC,SAAS,EACT,WAAW,EACX,WAAW,EACX,QAAQ,CACT,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAS,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"filesReadWriteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/filesReadWriteSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { DataMigrationManagementClient } from "@azure/arm-datamigration";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to This method is used for requesting information for reading and writing the file content.
|
15
|
+
*
|
16
|
+
* @summary This method is used for requesting information for reading and writing the file content.
|
17
|
+
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Files_ReadWrite.json
|
18
|
+
*/
|
19
|
+
function filesList() {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f";
|
22
|
+
const groupName = "DmsSdkRg";
|
23
|
+
const serviceName = "DmsSdkService";
|
24
|
+
const projectName = "DmsSdkProject";
|
25
|
+
const fileName = "x114d023d8";
|
26
|
+
const credential = new DefaultAzureCredential();
|
27
|
+
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
28
|
+
const result = yield client.files.readWrite(groupName, serviceName, projectName, fileName);
|
29
|
+
console.log(result);
|
30
|
+
});
|
31
|
+
}
|
32
|
+
filesList().catch(console.error);
|
33
|
+
//# sourceMappingURL=filesReadWriteSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"filesReadWriteSample.js","sourceRoot":"","sources":["../../samples-dev/filesReadWriteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,SAAS;;QACtB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,SAAS,GAAG,UAAU,CAAC;QAC7B,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,QAAQ,GAAG,YAAY,CAAC;QAC9B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,SAAS,CACzC,SAAS,EACT,WAAW,EACX,WAAW,EACX,QAAQ,CACT,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAS,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"filesUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/filesUpdateSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { DataMigrationManagementClient } from "@azure/arm-datamigration";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to This method updates an existing file.
|
15
|
+
*
|
16
|
+
* @summary This method updates an existing file.
|
17
|
+
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Files_Update.json
|
18
|
+
*/
|
19
|
+
function filesUpdate() {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f";
|
22
|
+
const groupName = "DmsSdkRg";
|
23
|
+
const serviceName = "DmsSdkService";
|
24
|
+
const projectName = "DmsSdkProject";
|
25
|
+
const fileName = "x114d023d8";
|
26
|
+
const parameters = {
|
27
|
+
properties: { filePath: "DmsSdkFilePath/DmsSdkFile.sql" }
|
28
|
+
};
|
29
|
+
const credential = new DefaultAzureCredential();
|
30
|
+
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
31
|
+
const result = yield client.files.update(groupName, serviceName, projectName, fileName, parameters);
|
32
|
+
console.log(result);
|
33
|
+
});
|
34
|
+
}
|
35
|
+
filesUpdate().catch(console.error);
|
36
|
+
//# sourceMappingURL=filesUpdateSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"filesUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/filesUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,6BAA6B,EAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,WAAW;;QACxB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,SAAS,GAAG,UAAU,CAAC;QAC7B,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,QAAQ,GAAG,YAAY,CAAC;QAC9B,MAAM,UAAU,GAAgB;YAC9B,UAAU,EAAE,EAAE,QAAQ,EAAE,+BAA+B,EAAE;SAC1D,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,MAAM,CACtC,SAAS,EACT,WAAW,EACX,WAAW,EACX,QAAQ,EACR,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,WAAW,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"operationsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { DataMigrationManagementClient } from "@azure/arm-datamigration";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to Lists all of the available SQL Migration REST API operations.
|
15
|
+
*
|
16
|
+
* @summary Lists all of the available SQL Migration REST API operations.
|
17
|
+
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/ListOperation.json
|
18
|
+
*/
|
19
|
+
function listsAllOfTheAvailableSqlRestApiOperations() {
|
20
|
+
var e_1, _a;
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
22
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
23
|
+
const credential = new DefaultAzureCredential();
|
24
|
+
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
25
|
+
const resArray = new Array();
|
26
|
+
try {
|
27
|
+
for (var _b = __asyncValues(client.operations.list()), _c; _c = yield _b.next(), !_c.done;) {
|
28
|
+
let item = _c.value;
|
29
|
+
resArray.push(item);
|
30
|
+
}
|
31
|
+
}
|
32
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
33
|
+
finally {
|
34
|
+
try {
|
35
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
36
|
+
}
|
37
|
+
finally { if (e_1) throw e_1.error; }
|
38
|
+
}
|
39
|
+
console.log(resArray);
|
40
|
+
});
|
41
|
+
}
|
42
|
+
listsAllOfTheAvailableSqlRestApiOperations().catch(console.error);
|
43
|
+
//# sourceMappingURL=operationsListSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,0CAA0C;;;QACvD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;gBAApC,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,0CAA0C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"projectsCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/projectsCreateOrUpdateSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { DataMigrationManagementClient } from "@azure/arm-datamigration";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to The project resource is a nested resource representing a stored migration project. The PUT method creates a new project or updates an existing one.
|
15
|
+
*
|
16
|
+
* @summary The project resource is a nested resource representing a stored migration project. The PUT method creates a new project or updates an existing one.
|
17
|
+
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Projects_CreateOrUpdate.json
|
18
|
+
*/
|
19
|
+
function projectsCreateOrUpdate() {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f";
|
22
|
+
const groupName = "DmsSdkRg";
|
23
|
+
const serviceName = "DmsSdkService";
|
24
|
+
const projectName = "DmsSdkProject";
|
25
|
+
const parameters = {
|
26
|
+
location: "southcentralus",
|
27
|
+
sourcePlatform: "SQL",
|
28
|
+
targetPlatform: "SQLDB"
|
29
|
+
};
|
30
|
+
const credential = new DefaultAzureCredential();
|
31
|
+
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
32
|
+
const result = yield client.projects.createOrUpdate(groupName, serviceName, projectName, parameters);
|
33
|
+
console.log(result);
|
34
|
+
});
|
35
|
+
}
|
36
|
+
projectsCreateOrUpdate().catch(console.error);
|
37
|
+
//# sourceMappingURL=projectsCreateOrUpdateSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"projectsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/projectsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,6BAA6B,EAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,sBAAsB;;QACnC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,SAAS,GAAG,UAAU,CAAC;QAC7B,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,UAAU,GAAY;YAC1B,QAAQ,EAAE,gBAAgB;YAC1B,cAAc,EAAE,KAAK;YACrB,cAAc,EAAE,OAAO;SACxB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,cAAc,CACjD,SAAS,EACT,WAAW,EACX,WAAW,EACX,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,sBAAsB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"projectsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/projectsDeleteSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { DataMigrationManagementClient } from "@azure/arm-datamigration";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to The project resource is a nested resource representing a stored migration project. The DELETE method deletes a project.
|
15
|
+
*
|
16
|
+
* @summary The project resource is a nested resource representing a stored migration project. The DELETE method deletes a project.
|
17
|
+
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Projects_Delete.json
|
18
|
+
*/
|
19
|
+
function projectsDelete() {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f";
|
22
|
+
const groupName = "DmsSdkRg";
|
23
|
+
const serviceName = "DmsSdkService";
|
24
|
+
const projectName = "DmsSdkProject";
|
25
|
+
const credential = new DefaultAzureCredential();
|
26
|
+
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
27
|
+
const result = yield client.projects.delete(groupName, serviceName, projectName);
|
28
|
+
console.log(result);
|
29
|
+
});
|
30
|
+
}
|
31
|
+
projectsDelete().catch(console.error);
|
32
|
+
//# sourceMappingURL=projectsDeleteSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"projectsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/projectsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,cAAc;;QAC3B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,SAAS,GAAG,UAAU,CAAC;QAC7B,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,MAAM,CACzC,SAAS,EACT,WAAW,EACX,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,cAAc,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"projectsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/projectsGetSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { DataMigrationManagementClient } from "@azure/arm-datamigration";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to The project resource is a nested resource representing a stored migration project. The GET method retrieves information about a project.
|
15
|
+
*
|
16
|
+
* @summary The project resource is a nested resource representing a stored migration project. The GET method retrieves information about a project.
|
17
|
+
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Projects_Get.json
|
18
|
+
*/
|
19
|
+
function projectsGet() {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f";
|
22
|
+
const groupName = "DmsSdkRg";
|
23
|
+
const serviceName = "DmsSdkService";
|
24
|
+
const projectName = "DmsSdkProject";
|
25
|
+
const credential = new DefaultAzureCredential();
|
26
|
+
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
27
|
+
const result = yield client.projects.get(groupName, serviceName, projectName);
|
28
|
+
console.log(result);
|
29
|
+
});
|
30
|
+
}
|
31
|
+
projectsGet().catch(console.error);
|
32
|
+
//# sourceMappingURL=projectsGetSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"projectsGetSample.js","sourceRoot":"","sources":["../../samples-dev/projectsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,WAAW;;QACxB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,SAAS,GAAG,UAAU,CAAC;QAC7B,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;QAC9E,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,WAAW,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"projectsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/projectsListSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { DataMigrationManagementClient } from "@azure/arm-datamigration";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to The project resource is a nested resource representing a stored migration project. This method returns a list of projects owned by a service resource.
|
15
|
+
*
|
16
|
+
* @summary The project resource is a nested resource representing a stored migration project. This method returns a list of projects owned by a service resource.
|
17
|
+
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Projects_List.json
|
18
|
+
*/
|
19
|
+
function projectsList() {
|
20
|
+
var e_1, _a;
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
22
|
+
const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f";
|
23
|
+
const groupName = "DmsSdkRg";
|
24
|
+
const serviceName = "DmsSdkService";
|
25
|
+
const credential = new DefaultAzureCredential();
|
26
|
+
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
27
|
+
const resArray = new Array();
|
28
|
+
try {
|
29
|
+
for (var _b = __asyncValues(client.projects.list(groupName, serviceName)), _c; _c = yield _b.next(), !_c.done;) {
|
30
|
+
let item = _c.value;
|
31
|
+
resArray.push(item);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
35
|
+
finally {
|
36
|
+
try {
|
37
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
38
|
+
}
|
39
|
+
finally { if (e_1) throw e_1.error; }
|
40
|
+
}
|
41
|
+
console.log(resArray);
|
42
|
+
});
|
43
|
+
}
|
44
|
+
projectsList().catch(console.error);
|
45
|
+
//# sourceMappingURL=projectsListSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"projectsListSample.js","sourceRoot":"","sources":["../../samples-dev/projectsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,YAAY;;;QACzB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,SAAS,GAAG,UAAU,CAAC;QAC7B,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC,CAAA,IAAA;gBAAxD,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,YAAY,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"projectsUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/projectsUpdateSample.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { DataMigrationManagementClient } from "@azure/arm-datamigration";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
/**
|
14
|
+
* This sample demonstrates how to The project resource is a nested resource representing a stored migration project. The PATCH method updates an existing project.
|
15
|
+
*
|
16
|
+
* @summary The project resource is a nested resource representing a stored migration project. The PATCH method updates an existing project.
|
17
|
+
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Projects_Update.json
|
18
|
+
*/
|
19
|
+
function projectsUpdate() {
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
21
|
+
const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f";
|
22
|
+
const groupName = "DmsSdkRg";
|
23
|
+
const serviceName = "DmsSdkService";
|
24
|
+
const projectName = "DmsSdkProject";
|
25
|
+
const parameters = {
|
26
|
+
location: "southcentralus",
|
27
|
+
sourcePlatform: "SQL",
|
28
|
+
targetPlatform: "SQLDB"
|
29
|
+
};
|
30
|
+
const credential = new DefaultAzureCredential();
|
31
|
+
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
32
|
+
const result = yield client.projects.update(groupName, serviceName, projectName, parameters);
|
33
|
+
console.log(result);
|
34
|
+
});
|
35
|
+
}
|
36
|
+
projectsUpdate().catch(console.error);
|
37
|
+
//# sourceMappingURL=projectsUpdateSample.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"projectsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/projectsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,6BAA6B,EAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,cAAc;;QAC3B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,SAAS,GAAG,UAAU,CAAC;QAC7B,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,UAAU,GAAY;YAC1B,QAAQ,EAAE,gBAAgB;YAC1B,cAAc,EAAE,KAAK;YACrB,cAAc,EAAE,OAAO;SACxB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,6BAA6B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,MAAM,CACzC,SAAS,EACT,WAAW,EACX,WAAW,EACX,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,cAAc,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"resourceSkusListSkusSample.d.ts","sourceRoot":"","sources":["../../samples-dev/resourceSkusListSkusSample.ts"],"names":[],"mappings":""}
|