@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.
Files changed (76) hide show
  1. package/dist/index.js +156 -65
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.min.js +1 -1
  4. package/dist/index.min.js.map +1 -1
  5. package/dist-esm/samples-dev/filesListSample.js +12 -5
  6. package/dist-esm/samples-dev/filesListSample.js.map +1 -1
  7. package/dist-esm/samples-dev/getMigrationServicesInTheResourceGroup.js +12 -5
  8. package/dist-esm/samples-dev/getMigrationServicesInTheResourceGroup.js.map +1 -1
  9. package/dist-esm/samples-dev/getServicesInTheSubscriptions.js +12 -5
  10. package/dist-esm/samples-dev/getServicesInTheSubscriptions.js.map +1 -1
  11. package/dist-esm/samples-dev/listDatabaseMigrationsAttachedToTheService.js +12 -5
  12. package/dist-esm/samples-dev/listDatabaseMigrationsAttachedToTheService.js.map +1 -1
  13. package/dist-esm/samples-dev/listSkus.js +12 -5
  14. package/dist-esm/samples-dev/listSkus.js.map +1 -1
  15. package/dist-esm/samples-dev/listsAllOfTheAvailableSqlRestApiOperations.js +12 -5
  16. package/dist-esm/samples-dev/listsAllOfTheAvailableSqlRestApiOperations.js.map +1 -1
  17. package/dist-esm/samples-dev/operationsListSample.js +12 -5
  18. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  19. package/dist-esm/samples-dev/projectsList.js +12 -5
  20. package/dist-esm/samples-dev/projectsList.js.map +1 -1
  21. package/dist-esm/samples-dev/projectsListSample.js +12 -5
  22. package/dist-esm/samples-dev/projectsListSample.js.map +1 -1
  23. package/dist-esm/samples-dev/resourceSkusListSkusSample.js +12 -5
  24. package/dist-esm/samples-dev/resourceSkusListSkusSample.js.map +1 -1
  25. package/dist-esm/samples-dev/serviceTasksList.js +12 -5
  26. package/dist-esm/samples-dev/serviceTasksList.js.map +1 -1
  27. package/dist-esm/samples-dev/serviceTasksListSample.js +12 -5
  28. package/dist-esm/samples-dev/serviceTasksListSample.js.map +1 -1
  29. package/dist-esm/samples-dev/servicesList.js +12 -5
  30. package/dist-esm/samples-dev/servicesList.js.map +1 -1
  31. package/dist-esm/samples-dev/servicesListByResourceGroup.js +12 -5
  32. package/dist-esm/samples-dev/servicesListByResourceGroup.js.map +1 -1
  33. package/dist-esm/samples-dev/servicesListByResourceGroupSample.js +12 -5
  34. package/dist-esm/samples-dev/servicesListByResourceGroupSample.js.map +1 -1
  35. package/dist-esm/samples-dev/servicesListSample.js +12 -5
  36. package/dist-esm/samples-dev/servicesListSample.js.map +1 -1
  37. package/dist-esm/samples-dev/servicesListSkus.js +12 -5
  38. package/dist-esm/samples-dev/servicesListSkus.js.map +1 -1
  39. package/dist-esm/samples-dev/servicesListSkusSample.js +12 -5
  40. package/dist-esm/samples-dev/servicesListSkusSample.js.map +1 -1
  41. package/dist-esm/samples-dev/servicesUsages.js +12 -5
  42. package/dist-esm/samples-dev/servicesUsages.js.map +1 -1
  43. package/dist-esm/samples-dev/sqlMigrationServicesListByResourceGroupSample.js +12 -5
  44. package/dist-esm/samples-dev/sqlMigrationServicesListByResourceGroupSample.js.map +1 -1
  45. package/dist-esm/samples-dev/sqlMigrationServicesListBySubscriptionSample.js +12 -5
  46. package/dist-esm/samples-dev/sqlMigrationServicesListBySubscriptionSample.js.map +1 -1
  47. package/dist-esm/samples-dev/sqlMigrationServicesListMigrationsSample.js +12 -5
  48. package/dist-esm/samples-dev/sqlMigrationServicesListMigrationsSample.js.map +1 -1
  49. package/dist-esm/samples-dev/tasksList.js +12 -5
  50. package/dist-esm/samples-dev/tasksList.js.map +1 -1
  51. package/dist-esm/samples-dev/tasksListSample.js +12 -5
  52. package/dist-esm/samples-dev/tasksListSample.js.map +1 -1
  53. package/dist-esm/samples-dev/usagesListSample.js +12 -5
  54. package/dist-esm/samples-dev/usagesListSample.js.map +1 -1
  55. package/dist-esm/src/models/index.d.ts +130 -130
  56. package/dist-esm/src/models/index.d.ts.map +1 -1
  57. package/dist-esm/src/operations/files.js +12 -5
  58. package/dist-esm/src/operations/files.js.map +1 -1
  59. package/dist-esm/src/operations/operations.js +12 -5
  60. package/dist-esm/src/operations/operations.js.map +1 -1
  61. package/dist-esm/src/operations/projects.js +12 -5
  62. package/dist-esm/src/operations/projects.js.map +1 -1
  63. package/dist-esm/src/operations/resourceSkus.js +12 -5
  64. package/dist-esm/src/operations/resourceSkus.js.map +1 -1
  65. package/dist-esm/src/operations/serviceTasks.js +12 -5
  66. package/dist-esm/src/operations/serviceTasks.js.map +1 -1
  67. package/dist-esm/src/operations/services.js +36 -15
  68. package/dist-esm/src/operations/services.js.map +1 -1
  69. package/dist-esm/src/operations/sqlMigrationServices.js +36 -15
  70. package/dist-esm/src/operations/sqlMigrationServices.js.map +1 -1
  71. package/dist-esm/src/operations/tasks.js +12 -5
  72. package/dist-esm/src/operations/tasks.js.map +1 -1
  73. package/dist-esm/src/operations/usages.js +12 -5
  74. package/dist-esm/src/operations/usages.js.map +1 -1
  75. package/package.json +2 -2
  76. 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/Files_List.json
18
18
  */
19
19
  function filesList() {
20
- var e_1, _a;
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 filesList() {
27
27
  const client = new DataMigrationManagementClient(credential, subscriptionId);
28
28
  const resArray = new Array();
29
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);
30
+ for (var _d = true, _e = __asyncValues(client.files.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 (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
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":"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"}
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,eAAA,KAAA,cAAA,MAAM,CAAC,KAAK,CAAC,IAAI,CACtC,SAAS,EACT,WAAW,EACX,WAAW,CACZ,CAAA,IAAA;gBAJsB,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 { __asyncValues, __awaiter } from "tslib";
17
17
  import { DataMigrationManagementClient } from "@azure/arm-datamigration";
18
18
  import { DefaultAzureCredential } from "@azure/identity";
19
19
  function getMigrationServicesInTheResourceGroup() {
20
- var e_1, _a;
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 _b = __asyncValues(client.sqlMigrationServices.listByResourceGroup(resourceGroupName)), _c; _c = yield _b.next(), !_c.done;) {
29
- let item = _c.value;
30
- resArray.push(item);
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 (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
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":"getMigrationServicesInTheResourceGroup.js","sourceRoot":"","sources":["../../samples-dev/getMigrationServicesInTheResourceGroup.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,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,IAAA,KAAA,cAAA,MAAM,CAAC,oBAAoB,CAAC,mBAAmB,CACpE,iBAAiB,CAClB,CAAA,IAAA;gBAFU,IAAI,IAAI,WAAA,CAAA;gBAGjB,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"}
1
+ {"version":3,"file":"getMigrationServicesInTheResourceGroup.js","sourceRoot":"","sources":["../../samples-dev/getMigrationServicesInTheResourceGroup.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,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 { __asyncValues, __awaiter } from "tslib";
17
17
  import { DataMigrationManagementClient } from "@azure/arm-datamigration";
18
18
  import { DefaultAzureCredential } from "@azure/identity";
19
19
  function getServicesInTheSubscriptions() {
20
- var e_1, _a;
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 _b = __asyncValues(client.sqlMigrationServices.listBySubscription()), _c; _c = yield _b.next(), !_c.done;) {
28
- let item = _c.value;
29
- resArray.push(item);
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 (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
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":"getServicesInTheSubscriptions.js","sourceRoot":"","sources":["../../samples-dev/getServicesInTheSubscriptions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,6BAA6B;;;QAC1C,MAAM,cAAc,GAClB,oIAAoI,CAAC;QACvI,MAAM,UAA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,CAAC,CAAC;;CACvB;AAED,6BAA6B,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 listDatabaseMigrationsAttachedToTheService() {
20
- var e_1, _a;
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 _b = __asyncValues(client.sqlMigrationServices.listMigrations(resourceGroupName, sqlMigrationServiceName)), _c; _c = yield _b.next(), !_c.done;) {
30
- let item = _c.value;
31
- resArray.push(item);
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 (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
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":"listDatabaseMigrationsAttachedToTheService.js","sourceRoot":"","sources":["../../samples-dev/listDatabaseMigrationsAttachedToTheService.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,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,IAAA,KAAA,cAAA,MAAM,CAAC,oBAAoB,CAAC,cAAc,CAC/D,iBAAiB,EACjB,uBAAuB,CACxB,CAAA,IAAA;gBAHU,IAAI,IAAI,WAAA,CAAA;gBAIjB,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"}
1
+ {"version":3,"file":"listDatabaseMigrationsAttachedToTheService.js","sourceRoot":"","sources":["../../samples-dev/listDatabaseMigrationsAttachedToTheService.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,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,22 +17,29 @@ import { __asyncValues, __awaiter } from "tslib";
17
17
  import { DataMigrationManagementClient } from "@azure/arm-datamigration";
18
18
  import { DefaultAzureCredential } from "@azure/identity";
19
19
  function listSkus() {
20
- var e_1, _a;
20
+ var _a, e_1, _b, _c;
21
21
  return __awaiter(this, void 0, void 0, function* () {
22
22
  const subscriptionId = "subid";
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 _b = __asyncValues(client.resourceSkus.listSkus()), _c; _c = yield _b.next(), !_c.done;) {
28
- let item = _c.value;
29
- resArray.push(item);
27
+ for (var _d = true, _e = __asyncValues(client.resourceSkus.listSkus()), _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 (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
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":"listSkus.js","sourceRoot":"","sources":["../../samples-dev/listSkus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,QAAQ;;;QACrB,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,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,YAAY,CAAC,QAAQ,EAAE,CAAA,IAAA;gBAA1C,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,QAAQ,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"listSkus.js","sourceRoot":"","sources":["../../samples-dev/listSkus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,QAAQ;;;QACrB,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,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,YAAY,CAAC,QAAQ,EAAE,CAAA,IAAA;gBAA9B,cAA8B;gBAA9B,WAA8B;;oBAA1C,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,QAAQ,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -17,22 +17,29 @@ import { __asyncValues, __awaiter } from "tslib";
17
17
  import { DataMigrationManagementClient } from "@azure/arm-datamigration";
18
18
  import { DefaultAzureCredential } from "@azure/identity";
19
19
  function listsAllOfTheAvailableSqlRestApiOperations() {
20
- var e_1, _a;
20
+ var _a, e_1, _b, _c;
21
21
  return __awaiter(this, void 0, void 0, function* () {
22
22
  const subscriptionId = "00000000-0000-0000-0000-000000000000";
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 _b = __asyncValues(client.operations.list()), _c; _c = yield _b.next(), !_c.done;) {
28
- let item = _c.value;
29
- resArray.push(item);
27
+ for (var _d = true, _e = __asyncValues(client.operations.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 (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
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":"listsAllOfTheAvailableSqlRestApiOperations.js","sourceRoot":"","sources":["../../samples-dev/listsAllOfTheAvailableSqlRestApiOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,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"}
1
+ {"version":3,"file":"listsAllOfTheAvailableSqlRestApiOperations.js","sourceRoot":"","sources":["../../samples-dev/listsAllOfTheAvailableSqlRestApiOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,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,eAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;gBAAxB,cAAwB;gBAAxB,WAAwB;;oBAApC,IAAI,IAAI,KAAA,CAAA;oBACjB,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,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/ListOperation.json
18
18
  */
19
19
  function listsAllOfTheAvailableSqlRestApiOperations() {
20
- var e_1, _a;
20
+ var _a, e_1, _b, _c;
21
21
  return __awaiter(this, void 0, void 0, function* () {
22
22
  const subscriptionId = "00000000-0000-0000-0000-000000000000";
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 _b = __asyncValues(client.operations.list()), _c; _c = yield _b.next(), !_c.done;) {
28
- let item = _c.value;
29
- resArray.push(item);
27
+ for (var _d = true, _e = __asyncValues(client.operations.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 (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
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":"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"}
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,eAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;gBAAxB,cAAwB;gBAAxB,WAAwB;;oBAApC,IAAI,IAAI,KAAA,CAAA;oBACjB,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 projectsList() {
20
- var e_1, _a;
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 projectsList() {
26
26
  const client = new DataMigrationManagementClient(credential, subscriptionId);
27
27
  const resArray = new Array();
28
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);
29
+ for (var _d = true, _e = __asyncValues(client.projects.list(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 (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
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":"projectsList.js","sourceRoot":"","sources":["../../samples-dev/projectsList.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,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"}
1
+ {"version":3,"file":"projectsList.js","sourceRoot":"","sources":["../../samples-dev/projectsList.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,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,eAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC,CAAA,IAAA;gBAA5C,cAA4C;gBAA5C,WAA4C;;oBAAxD,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 { DefaultAzureCredential } from "@azure/identity";
17
17
  * x-ms-original-file: specification/datamigration/resource-manager/Microsoft.DataMigration/preview/2021-10-30-preview/examples/Projects_List.json
18
18
  */
19
19
  function projectsList() {
20
- var e_1, _a;
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 projectsList() {
26
26
  const client = new DataMigrationManagementClient(credential, subscriptionId);
27
27
  const resArray = new Array();
28
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);
29
+ for (var _d = true, _e = __asyncValues(client.projects.list(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 (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
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":"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"}
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,eAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC,CAAA,IAAA;gBAA5C,cAA4C;gBAA5C,WAA4C;;oBAAxD,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,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/ResourceSkus_ListSkus.json
18
18
  */
19
19
  function listSkus() {
20
- var e_1, _a;
20
+ var _a, e_1, _b, _c;
21
21
  return __awaiter(this, void 0, void 0, function* () {
22
22
  const subscriptionId = "subid";
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 _b = __asyncValues(client.resourceSkus.listSkus()), _c; _c = yield _b.next(), !_c.done;) {
28
- let item = _c.value;
29
- resArray.push(item);
27
+ for (var _d = true, _e = __asyncValues(client.resourceSkus.listSkus()), _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 (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
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":"resourceSkusListSkusSample.js","sourceRoot":"","sources":["../../samples-dev/resourceSkusListSkusSample.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,QAAQ;;;QACrB,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,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,YAAY,CAAC,QAAQ,EAAE,CAAA,IAAA;gBAA1C,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,QAAQ,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"resourceSkusListSkusSample.js","sourceRoot":"","sources":["../../samples-dev/resourceSkusListSkusSample.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,QAAQ;;;QACrB,MAAM,cAAc,GAAG,OAAO,CAAC;QAC/B,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,YAAY,CAAC,QAAQ,EAAE,CAAA,IAAA;gBAA9B,cAA8B;gBAA9B,WAA8B;;oBAA1C,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,QAAQ,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 serviceTasksList() {
20
- var e_1, _a;
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 serviceTasksList() {
26
26
  const client = new DataMigrationManagementClient(credential, subscriptionId);
27
27
  const resArray = new Array();
28
28
  try {
29
- for (var _b = __asyncValues(client.serviceTasks.list(groupName, serviceName)), _c; _c = yield _b.next(), !_c.done;) {
30
- let item = _c.value;
31
- resArray.push(item);
29
+ for (var _d = true, _e = __asyncValues(client.serviceTasks.list(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 (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
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":"serviceTasksList.js","sourceRoot":"","sources":["../../samples-dev/serviceTasksList.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,gBAAgB;;;QAC7B,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;;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O,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/ServiceTasks_List.json
18
18
  */
19
19
  function serviceTasksList() {
20
- var e_1, _a;
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 serviceTasksList() {
26
26
  const client = new DataMigrationManagementClient(credential, subscriptionId);
27
27
  const resArray = new Array();
28
28
  try {
29
- for (var _b = __asyncValues(client.serviceTasks.list(groupName, serviceName)), _c; _c = yield _b.next(), !_c.done;) {
30
- let item = _c.value;
31
- resArray.push(item);
29
+ for (var _d = true, _e = __asyncValues(client.serviceTasks.list(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 (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
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":"serviceTasksListSample.js","sourceRoot":"","sources":["../../samples-dev/serviceTasksListSample.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,gBAAgB;;;QAC7B,MAAM,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C,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC,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,gBAAgB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -17,22 +17,29 @@ import { __asyncValues, __awaiter } from "tslib";
17
17
  import { DataMigrationManagementClient } from "@azure/arm-datamigration";
18
18
  import { DefaultAzureCredential } from "@azure/identity";
19
19
  function servicesList() {
20
- var e_1, _a;
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 _b = __asyncValues(client.services.list()), _c; _c = yield _b.next(), !_c.done;) {
28
- let item = _c.value;
29
- resArray.push(item);
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 (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
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":"servicesList.js","sourceRoot":"","sources":["../../samples-dev/servicesList.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAE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I,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 servicesListByResourceGroup() {
20
- var e_1, _a;
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 _b = __asyncValues(client.services.listByResourceGroup(groupName)), _c; _c = yield _b.next(), !_c.done;) {
29
- let item = _c.value;
30
- resArray.push(item);
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 (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
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":"servicesListByResourceGroup.js","sourceRoot":"","sources":["../../samples-dev/servicesListByResourceGroup.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,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,IAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAA,IAAA;gBAA1D,IAAI,IAAI,WAAA,CAAA;gBACjB,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"}
1
+ {"version":3,"file":"servicesListByResourceGroup.js","sourceRoot":"","sources":["../../samples-dev/servicesListByResourceGroup.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,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,G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