@azure/arm-datamigration 3.0.0-alpha.20230321.1 → 3.0.0-alpha.20230501.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +156 -65
- 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/filesListSample.js +12 -5
- package/dist-esm/samples-dev/filesListSample.js.map +1 -1
- package/dist-esm/samples-dev/getMigrationServicesInTheResourceGroup.js +12 -5
- package/dist-esm/samples-dev/getMigrationServicesInTheResourceGroup.js.map +1 -1
- package/dist-esm/samples-dev/getServicesInTheSubscriptions.js +12 -5
- package/dist-esm/samples-dev/getServicesInTheSubscriptions.js.map +1 -1
- package/dist-esm/samples-dev/listDatabaseMigrationsAttachedToTheService.js +12 -5
- package/dist-esm/samples-dev/listDatabaseMigrationsAttachedToTheService.js.map +1 -1
- package/dist-esm/samples-dev/listSkus.js +12 -5
- package/dist-esm/samples-dev/listSkus.js.map +1 -1
- package/dist-esm/samples-dev/listsAllOfTheAvailableSqlRestApiOperations.js +12 -5
- package/dist-esm/samples-dev/listsAllOfTheAvailableSqlRestApiOperations.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +12 -5
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/projectsList.js +12 -5
- package/dist-esm/samples-dev/projectsList.js.map +1 -1
- package/dist-esm/samples-dev/projectsListSample.js +12 -5
- package/dist-esm/samples-dev/projectsListSample.js.map +1 -1
- package/dist-esm/samples-dev/resourceSkusListSkusSample.js +12 -5
- package/dist-esm/samples-dev/resourceSkusListSkusSample.js.map +1 -1
- package/dist-esm/samples-dev/serviceTasksList.js +12 -5
- package/dist-esm/samples-dev/serviceTasksList.js.map +1 -1
- package/dist-esm/samples-dev/serviceTasksListSample.js +12 -5
- package/dist-esm/samples-dev/serviceTasksListSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesList.js +12 -5
- package/dist-esm/samples-dev/servicesList.js.map +1 -1
- package/dist-esm/samples-dev/servicesListByResourceGroup.js +12 -5
- package/dist-esm/samples-dev/servicesListByResourceGroup.js.map +1 -1
- package/dist-esm/samples-dev/servicesListByResourceGroupSample.js +12 -5
- package/dist-esm/samples-dev/servicesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesListSample.js +12 -5
- package/dist-esm/samples-dev/servicesListSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesListSkus.js +12 -5
- package/dist-esm/samples-dev/servicesListSkus.js.map +1 -1
- package/dist-esm/samples-dev/servicesListSkusSample.js +12 -5
- package/dist-esm/samples-dev/servicesListSkusSample.js.map +1 -1
- package/dist-esm/samples-dev/servicesUsages.js +12 -5
- package/dist-esm/samples-dev/servicesUsages.js.map +1 -1
- package/dist-esm/samples-dev/sqlMigrationServicesListByResourceGroupSample.js +12 -5
- package/dist-esm/samples-dev/sqlMigrationServicesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlMigrationServicesListBySubscriptionSample.js +12 -5
- package/dist-esm/samples-dev/sqlMigrationServicesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/sqlMigrationServicesListMigrationsSample.js +12 -5
- package/dist-esm/samples-dev/sqlMigrationServicesListMigrationsSample.js.map +1 -1
- package/dist-esm/samples-dev/tasksList.js +12 -5
- package/dist-esm/samples-dev/tasksList.js.map +1 -1
- package/dist-esm/samples-dev/tasksListSample.js +12 -5
- package/dist-esm/samples-dev/tasksListSample.js.map +1 -1
- package/dist-esm/samples-dev/usagesListSample.js +12 -5
- package/dist-esm/samples-dev/usagesListSample.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +130 -130
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/operations/files.js +12 -5
- package/dist-esm/src/operations/files.js.map +1 -1
- package/dist-esm/src/operations/operations.js +12 -5
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/projects.js +12 -5
- package/dist-esm/src/operations/projects.js.map +1 -1
- package/dist-esm/src/operations/resourceSkus.js +12 -5
- package/dist-esm/src/operations/resourceSkus.js.map +1 -1
- package/dist-esm/src/operations/serviceTasks.js +12 -5
- package/dist-esm/src/operations/serviceTasks.js.map +1 -1
- package/dist-esm/src/operations/services.js +36 -15
- package/dist-esm/src/operations/services.js.map +1 -1
- package/dist-esm/src/operations/sqlMigrationServices.js +36 -15
- package/dist-esm/src/operations/sqlMigrationServices.js.map +1 -1
- package/dist-esm/src/operations/tasks.js +12 -5
- package/dist-esm/src/operations/tasks.js.map +1 -1
- package/dist-esm/src/operations/usages.js +12 -5
- package/dist-esm/src/operations/usages.js.map +1 -1
- package/package.json +2 -2
- package/types/tsdoc-metadata.json +1 -1
@@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
17
17
|
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Services_ListByResourceGroup.json
|
18
18
|
*/
|
19
19
|
function servicesListByResourceGroup() {
|
20
|
-
var e_1,
|
20
|
+
var _a, e_1, _b, _c;
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
22
|
const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f";
|
23
23
|
const groupName = "DmsSdkRg";
|
@@ -25,15 +25,22 @@ function servicesListByResourceGroup() {
|
|
25
25
|
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
26
26
|
const resArray = new Array();
|
27
27
|
try {
|
28
|
-
for (var
|
29
|
-
|
30
|
-
|
28
|
+
for (var _d = true, _e = __asyncValues(client.services.listByResourceGroup(groupName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
29
|
+
_c = _f.value;
|
30
|
+
_d = false;
|
31
|
+
try {
|
32
|
+
let item = _c;
|
33
|
+
resArray.push(item);
|
34
|
+
}
|
35
|
+
finally {
|
36
|
+
_d = true;
|
37
|
+
}
|
31
38
|
}
|
32
39
|
}
|
33
40
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
34
41
|
finally {
|
35
42
|
try {
|
36
|
-
if (
|
43
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
37
44
|
}
|
38
45
|
finally { if (e_1) throw e_1.error; }
|
39
46
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"servicesListByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/servicesListByResourceGroupSample.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,2BAA2B;;;QACxC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,SAAS,GAAG,UAAU,CAAC;QAC7B,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,
|
1
|
+
{"version":3,"file":"servicesListByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/servicesListByResourceGroupSample.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,2BAA2B;;;QACxC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,SAAS,GAAG,UAAU,CAAC;QAC7B,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,eAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAA,IAAA;gBAA9C,cAA8C;gBAA9C,WAA8C;;oBAA1D,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,2BAA2B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -17,22 +17,29 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
17
17
|
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Services_List.json
|
18
18
|
*/
|
19
19
|
function servicesList() {
|
20
|
-
var e_1,
|
20
|
+
var _a, e_1, _b, _c;
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
22
|
const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f";
|
23
23
|
const credential = new DefaultAzureCredential();
|
24
24
|
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
25
25
|
const resArray = new Array();
|
26
26
|
try {
|
27
|
-
for (var
|
28
|
-
|
29
|
-
|
27
|
+
for (var _d = true, _e = __asyncValues(client.services.list()), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
28
|
+
_c = _f.value;
|
29
|
+
_d = false;
|
30
|
+
try {
|
31
|
+
let item = _c;
|
32
|
+
resArray.push(item);
|
33
|
+
}
|
34
|
+
finally {
|
35
|
+
_d = true;
|
36
|
+
}
|
30
37
|
}
|
31
38
|
}
|
32
39
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
33
40
|
finally {
|
34
41
|
try {
|
35
|
-
if (
|
42
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
36
43
|
}
|
37
44
|
finally { if (e_1) throw e_1.error; }
|
38
45
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"servicesListSample.js","sourceRoot":"","sources":["../../samples-dev/servicesListSample.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,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,
|
1
|
+
{"version":3,"file":"servicesListSample.js","sourceRoot":"","sources":["../../samples-dev/servicesListSample.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,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,eAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAA,IAAA;gBAAtB,cAAsB;gBAAtB,WAAsB;;oBAAlC,IAAI,IAAI,KAAA,CAAA;oBACjB,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"}
|
@@ -17,7 +17,7 @@ import { __asyncValues, __awaiter } from "tslib";
|
|
17
17
|
import { DataMigrationManagementClient } from "@azure/arm-datamigration";
|
18
18
|
import { DefaultAzureCredential } from "@azure/identity";
|
19
19
|
function servicesListSkus() {
|
20
|
-
var e_1,
|
20
|
+
var _a, e_1, _b, _c;
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
22
|
const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f";
|
23
23
|
const groupName = "DmsSdkRg";
|
@@ -26,15 +26,22 @@ function servicesListSkus() {
|
|
26
26
|
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
27
27
|
const resArray = new Array();
|
28
28
|
try {
|
29
|
-
for (var
|
30
|
-
|
31
|
-
|
29
|
+
for (var _d = true, _e = __asyncValues(client.services.listSkus(groupName, serviceName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
30
|
+
_c = _f.value;
|
31
|
+
_d = false;
|
32
|
+
try {
|
33
|
+
let item = _c;
|
34
|
+
resArray.push(item);
|
35
|
+
}
|
36
|
+
finally {
|
37
|
+
_d = true;
|
38
|
+
}
|
32
39
|
}
|
33
40
|
}
|
34
41
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
35
42
|
finally {
|
36
43
|
try {
|
37
|
-
if (
|
44
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
38
45
|
}
|
39
46
|
finally { if (e_1) throw e_1.error; }
|
40
47
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"servicesListSkus.js","sourceRoot":"","sources":["../../samples-dev/servicesListSkus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AA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CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,gBAAgB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
17
17
|
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Services_ListSkus.json
|
18
18
|
*/
|
19
19
|
function servicesListSkus() {
|
20
|
-
var e_1,
|
20
|
+
var _a, e_1, _b, _c;
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
22
|
const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f";
|
23
23
|
const groupName = "DmsSdkRg";
|
@@ -26,15 +26,22 @@ function servicesListSkus() {
|
|
26
26
|
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
27
27
|
const resArray = new Array();
|
28
28
|
try {
|
29
|
-
for (var
|
30
|
-
|
31
|
-
|
29
|
+
for (var _d = true, _e = __asyncValues(client.services.listSkus(groupName, serviceName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
30
|
+
_c = _f.value;
|
31
|
+
_d = false;
|
32
|
+
try {
|
33
|
+
let item = _c;
|
34
|
+
resArray.push(item);
|
35
|
+
}
|
36
|
+
finally {
|
37
|
+
_d = true;
|
38
|
+
}
|
32
39
|
}
|
33
40
|
}
|
34
41
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
35
42
|
finally {
|
36
43
|
try {
|
37
|
-
if (
|
44
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
38
45
|
}
|
39
46
|
finally { if (e_1) throw e_1.error; }
|
40
47
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"servicesListSkusSample.js","sourceRoot":"","sources":["../../samples-dev/servicesListSkusSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;A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C,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,gBAAgB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -17,7 +17,7 @@ import { __asyncValues, __awaiter } from "tslib";
|
|
17
17
|
import { DataMigrationManagementClient } from "@azure/arm-datamigration";
|
18
18
|
import { DefaultAzureCredential } from "@azure/identity";
|
19
19
|
function servicesUsages() {
|
20
|
-
var e_1,
|
20
|
+
var _a, e_1, _b, _c;
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
22
|
const subscriptionId = "90fb80a6-0f71-4761-8f03-921e7396f3c0";
|
23
23
|
const location = "westus";
|
@@ -25,15 +25,22 @@ function servicesUsages() {
|
|
25
25
|
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
26
26
|
const resArray = new Array();
|
27
27
|
try {
|
28
|
-
for (var
|
29
|
-
|
30
|
-
|
28
|
+
for (var _d = true, _e = __asyncValues(client.usages.list(location)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
29
|
+
_c = _f.value;
|
30
|
+
_d = false;
|
31
|
+
try {
|
32
|
+
let item = _c;
|
33
|
+
resArray.push(item);
|
34
|
+
}
|
35
|
+
finally {
|
36
|
+
_d = true;
|
37
|
+
}
|
31
38
|
}
|
32
39
|
}
|
33
40
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
34
41
|
finally {
|
35
42
|
try {
|
36
|
-
if (
|
43
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
37
44
|
}
|
38
45
|
finally { if (e_1) throw e_1.error; }
|
39
46
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"servicesUsages.js","sourceRoot":"","sources":["../../samples-dev/servicesUsages.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GA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EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
17
17
|
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/ListByResourceGroupMigrationService.json
|
18
18
|
*/
|
19
19
|
function getMigrationServicesInTheResourceGroup() {
|
20
|
-
var e_1,
|
20
|
+
var _a, e_1, _b, _c;
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
22
|
const subscriptionId = "00000000-1111-2222-3333-444444444444";
|
23
23
|
const resourceGroupName = "testrg";
|
@@ -25,15 +25,22 @@ function getMigrationServicesInTheResourceGroup() {
|
|
25
25
|
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
26
26
|
const resArray = new Array();
|
27
27
|
try {
|
28
|
-
for (var
|
29
|
-
|
30
|
-
|
28
|
+
for (var _d = true, _e = __asyncValues(client.sqlMigrationServices.listByResourceGroup(resourceGroupName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
29
|
+
_c = _f.value;
|
30
|
+
_d = false;
|
31
|
+
try {
|
32
|
+
let item = _c;
|
33
|
+
resArray.push(item);
|
34
|
+
}
|
35
|
+
finally {
|
36
|
+
_d = true;
|
37
|
+
}
|
31
38
|
}
|
32
39
|
}
|
33
40
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
34
41
|
finally {
|
35
42
|
try {
|
36
|
-
if (
|
43
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
37
44
|
}
|
38
45
|
finally { if (e_1) throw e_1.error; }
|
39
46
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sqlMigrationServicesListByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/sqlMigrationServicesListByResourceGroupSample.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,sCAAsC;;;QACnD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,QAAQ,CAAC;QACnC,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,
|
1
|
+
{"version":3,"file":"sqlMigrationServicesListByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/sqlMigrationServicesListByResourceGroupSample.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,sCAAsC;;;QACnD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,QAAQ,CAAC;QACnC,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,eAAA,KAAA,cAAA,MAAM,CAAC,oBAAoB,CAAC,mBAAmB,CACpE,iBAAiB,CAClB,CAAA,IAAA;gBAFsB,cAEtB;gBAFsB,WAEtB;;oBAFU,IAAI,IAAI,KAAA,CAAA;oBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,sCAAsC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -17,22 +17,29 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
17
17
|
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/ListBySubscriptionMigrationService.json
|
18
18
|
*/
|
19
19
|
function getServicesInTheSubscriptions() {
|
20
|
-
var e_1,
|
20
|
+
var _a, e_1, _b, _c;
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
22
|
const subscriptionId = "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/managedInstance1";
|
23
23
|
const credential = new DefaultAzureCredential();
|
24
24
|
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
25
25
|
const resArray = new Array();
|
26
26
|
try {
|
27
|
-
for (var
|
28
|
-
|
29
|
-
|
27
|
+
for (var _d = true, _e = __asyncValues(client.sqlMigrationServices.listBySubscription()), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
28
|
+
_c = _f.value;
|
29
|
+
_d = false;
|
30
|
+
try {
|
31
|
+
let item = _c;
|
32
|
+
resArray.push(item);
|
33
|
+
}
|
34
|
+
finally {
|
35
|
+
_d = true;
|
36
|
+
}
|
30
37
|
}
|
31
38
|
}
|
32
39
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
33
40
|
finally {
|
34
41
|
try {
|
35
|
-
if (
|
42
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
36
43
|
}
|
37
44
|
finally { if (e_1) throw e_1.error; }
|
38
45
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sqlMigrationServicesListBySubscriptionSample.js","sourceRoot":"","sources":["../../samples-dev/sqlMigrationServicesListBySubscriptionSample.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,6BAA6B;;;QAC1C,MAAM,cAAc,GAClB,oIAAoI,CAAC;QACvI,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,
|
1
|
+
{"version":3,"file":"sqlMigrationServicesListBySubscriptionSample.js","sourceRoot":"","sources":["../../samples-dev/sqlMigrationServicesListBySubscriptionSample.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,6BAA6B;;;QAC1C,MAAM,cAAc,GAClB,oIAAoI,CAAC;QACvI,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,eAAA,KAAA,cAAA,MAAM,CAAC,oBAAoB,CAAC,kBAAkB,EAAE,CAAA,IAAA;gBAAhD,cAAgD;gBAAhD,WAAgD;;oBAA5D,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,6BAA6B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
@@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
17
17
|
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/ListMigrationsByMigrationService.json
|
18
18
|
*/
|
19
19
|
function listDatabaseMigrationsAttachedToTheService() {
|
20
|
-
var e_1,
|
20
|
+
var _a, e_1, _b, _c;
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
22
|
const subscriptionId = "00000000-1111-2222-3333-444444444444";
|
23
23
|
const resourceGroupName = "testrg";
|
@@ -26,15 +26,22 @@ function listDatabaseMigrationsAttachedToTheService() {
|
|
26
26
|
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
27
27
|
const resArray = new Array();
|
28
28
|
try {
|
29
|
-
for (var
|
30
|
-
|
31
|
-
|
29
|
+
for (var _d = true, _e = __asyncValues(client.sqlMigrationServices.listMigrations(resourceGroupName, sqlMigrationServiceName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
30
|
+
_c = _f.value;
|
31
|
+
_d = false;
|
32
|
+
try {
|
33
|
+
let item = _c;
|
34
|
+
resArray.push(item);
|
35
|
+
}
|
36
|
+
finally {
|
37
|
+
_d = true;
|
38
|
+
}
|
32
39
|
}
|
33
40
|
}
|
34
41
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
35
42
|
finally {
|
36
43
|
try {
|
37
|
-
if (
|
44
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
38
45
|
}
|
39
46
|
finally { if (e_1) throw e_1.error; }
|
40
47
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sqlMigrationServicesListMigrationsSample.js","sourceRoot":"","sources":["../../samples-dev/sqlMigrationServicesListMigrationsSample.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,iBAAiB,GAAG,QAAQ,CAAC;QACnC,MAAM,uBAAuB,GAAG,UAAU,CAAC;QAC3C,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,
|
1
|
+
{"version":3,"file":"sqlMigrationServicesListMigrationsSample.js","sourceRoot":"","sources":["../../samples-dev/sqlMigrationServicesListMigrationsSample.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,iBAAiB,GAAG,QAAQ,CAAC;QACnC,MAAM,uBAAuB,GAAG,UAAU,CAAC;QAC3C,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,eAAA,KAAA,cAAA,MAAM,CAAC,oBAAoB,CAAC,cAAc,CAC/D,iBAAiB,EACjB,uBAAuB,CACxB,CAAA,IAAA;gBAHsB,cAGtB;gBAHsB,WAGtB;;oBAHU,IAAI,IAAI,KAAA,CAAA;oBAIjB,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"}
|
@@ -17,7 +17,7 @@ import { __asyncValues, __awaiter } from "tslib";
|
|
17
17
|
import { DataMigrationManagementClient } from "@azure/arm-datamigration";
|
18
18
|
import { DefaultAzureCredential } from "@azure/identity";
|
19
19
|
function tasksList() {
|
20
|
-
var e_1,
|
20
|
+
var _a, e_1, _b, _c;
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
22
|
const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f";
|
23
23
|
const groupName = "DmsSdkRg";
|
@@ -27,15 +27,22 @@ function tasksList() {
|
|
27
27
|
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
28
28
|
const resArray = new Array();
|
29
29
|
try {
|
30
|
-
for (var
|
31
|
-
|
32
|
-
|
30
|
+
for (var _d = true, _e = __asyncValues(client.tasks.list(groupName, serviceName, projectName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
31
|
+
_c = _f.value;
|
32
|
+
_d = false;
|
33
|
+
try {
|
34
|
+
let item = _c;
|
35
|
+
resArray.push(item);
|
36
|
+
}
|
37
|
+
finally {
|
38
|
+
_d = true;
|
39
|
+
}
|
33
40
|
}
|
34
41
|
}
|
35
42
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
36
43
|
finally {
|
37
44
|
try {
|
38
|
-
if (
|
45
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
39
46
|
}
|
40
47
|
finally { if (e_1) throw e_1.error; }
|
41
48
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tasksList.js","sourceRoot":"","sources":["../../samples-dev/tasksList.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,6BAA6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,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"}
|
@@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
17
17
|
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Tasks_List.json
|
18
18
|
*/
|
19
19
|
function tasksList() {
|
20
|
-
var e_1,
|
20
|
+
var _a, e_1, _b, _c;
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
22
|
const subscriptionId = "fc04246f-04c5-437e-ac5e-206a19e7193f";
|
23
23
|
const groupName = "DmsSdkRg";
|
@@ -27,15 +27,22 @@ function tasksList() {
|
|
27
27
|
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
28
28
|
const resArray = new Array();
|
29
29
|
try {
|
30
|
-
for (var
|
31
|
-
|
32
|
-
|
30
|
+
for (var _d = true, _e = __asyncValues(client.tasks.list(groupName, serviceName, projectName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
31
|
+
_c = _f.value;
|
32
|
+
_d = false;
|
33
|
+
try {
|
34
|
+
let item = _c;
|
35
|
+
resArray.push(item);
|
36
|
+
}
|
37
|
+
finally {
|
38
|
+
_d = true;
|
39
|
+
}
|
33
40
|
}
|
34
41
|
}
|
35
42
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
36
43
|
finally {
|
37
44
|
try {
|
38
|
-
if (
|
45
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
39
46
|
}
|
40
47
|
finally { if (e_1) throw e_1.error; }
|
41
48
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tasksListSample.js","sourceRoot":"","sources":["../../samples-dev/tasksListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,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cAItB;gBAJsB,WAItB;;oBAJU,IAAI,IAAI,KAAA,CAAA;oBAKjB,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"}
|
@@ -17,7 +17,7 @@ import { DefaultAzureCredential } from "@azure/identity";
|
|
17
17
|
* x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Usages_List.json
|
18
18
|
*/
|
19
19
|
function servicesUsages() {
|
20
|
-
var e_1,
|
20
|
+
var _a, e_1, _b, _c;
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
22
22
|
const subscriptionId = "90fb80a6-0f71-4761-8f03-921e7396f3c0";
|
23
23
|
const location = "westus";
|
@@ -25,15 +25,22 @@ function servicesUsages() {
|
|
25
25
|
const client = new DataMigrationManagementClient(credential, subscriptionId);
|
26
26
|
const resArray = new Array();
|
27
27
|
try {
|
28
|
-
for (var
|
29
|
-
|
30
|
-
|
28
|
+
for (var _d = true, _e = __asyncValues(client.usages.list(location)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
29
|
+
_c = _f.value;
|
30
|
+
_d = false;
|
31
|
+
try {
|
32
|
+
let item = _c;
|
33
|
+
resArray.push(item);
|
34
|
+
}
|
35
|
+
finally {
|
36
|
+
_d = true;
|
37
|
+
}
|
31
38
|
}
|
32
39
|
}
|
33
40
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
34
41
|
finally {
|
35
42
|
try {
|
36
|
-
if (
|
43
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
37
44
|
}
|
38
45
|
finally { if (e_1) throw e_1.error; }
|
39
46
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"usagesListSample.js","sourceRoot":"","sources":["../../samples-dev/usages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