@azure/arm-elasticsan 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +109 -0
  4. package/dist/index.js +2897 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/elasticSansCreateSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/elasticSansCreateSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/elasticSansCreateSample.js +62 -0
  11. package/dist-esm/samples-dev/elasticSansCreateSample.js.map +1 -0
  12. package/dist-esm/samples-dev/elasticSansDeleteSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/elasticSansDeleteSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/elasticSansDeleteSample.js +49 -0
  15. package/dist-esm/samples-dev/elasticSansDeleteSample.js.map +1 -0
  16. package/dist-esm/samples-dev/elasticSansGetSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/elasticSansGetSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/elasticSansGetSample.js +49 -0
  19. package/dist-esm/samples-dev/elasticSansGetSample.js.map +1 -0
  20. package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js +75 -0
  23. package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js.map +1 -0
  24. package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js +73 -0
  27. package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js.map +1 -0
  28. package/dist-esm/samples-dev/elasticSansUpdateSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/elasticSansUpdateSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/elasticSansUpdateSample.js +55 -0
  31. package/dist-esm/samples-dev/elasticSansUpdateSample.js.map +1 -0
  32. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/operationsListSample.js +73 -0
  35. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  36. package/dist-esm/samples-dev/skusListSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/skusListSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/skusListSample.js +75 -0
  39. package/dist-esm/samples-dev/skusListSample.js.map +1 -0
  40. package/dist-esm/samples-dev/volumeGroupsCreateSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/volumeGroupsCreateSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/volumeGroupsCreateSample.js +62 -0
  43. package/dist-esm/samples-dev/volumeGroupsCreateSample.js.map +1 -0
  44. package/dist-esm/samples-dev/volumeGroupsDeleteSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/volumeGroupsDeleteSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/volumeGroupsDeleteSample.js +51 -0
  47. package/dist-esm/samples-dev/volumeGroupsDeleteSample.js.map +1 -0
  48. package/dist-esm/samples-dev/volumeGroupsGetSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/volumeGroupsGetSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/volumeGroupsGetSample.js +51 -0
  51. package/dist-esm/samples-dev/volumeGroupsGetSample.js.map +1 -0
  52. package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js +77 -0
  55. package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js.map +1 -0
  56. package/dist-esm/samples-dev/volumeGroupsUpdateSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/volumeGroupsUpdateSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/volumeGroupsUpdateSample.js +62 -0
  59. package/dist-esm/samples-dev/volumeGroupsUpdateSample.js.map +1 -0
  60. package/dist-esm/samples-dev/volumesCreateSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/volumesCreateSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/volumesCreateSample.js +59 -0
  63. package/dist-esm/samples-dev/volumesCreateSample.js.map +1 -0
  64. package/dist-esm/samples-dev/volumesDeleteSample.d.ts +2 -0
  65. package/dist-esm/samples-dev/volumesDeleteSample.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/volumesDeleteSample.js +53 -0
  67. package/dist-esm/samples-dev/volumesDeleteSample.js.map +1 -0
  68. package/dist-esm/samples-dev/volumesGetSample.d.ts +2 -0
  69. package/dist-esm/samples-dev/volumesGetSample.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/volumesGetSample.js +53 -0
  71. package/dist-esm/samples-dev/volumesGetSample.js.map +1 -0
  72. package/dist-esm/samples-dev/volumesListByVolumeGroupSample.d.ts +2 -0
  73. package/dist-esm/samples-dev/volumesListByVolumeGroupSample.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js +79 -0
  75. package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js.map +1 -0
  76. package/dist-esm/samples-dev/volumesUpdateSample.d.ts +2 -0
  77. package/dist-esm/samples-dev/volumesUpdateSample.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/volumesUpdateSample.js +58 -0
  79. package/dist-esm/samples-dev/volumesUpdateSample.js.map +1 -0
  80. package/dist-esm/src/elasticSanManagement.d.ts +24 -0
  81. package/dist-esm/src/elasticSanManagement.d.ts.map +1 -0
  82. package/dist-esm/src/elasticSanManagement.js +107 -0
  83. package/dist-esm/src/elasticSanManagement.js.map +1 -0
  84. package/dist-esm/src/index.d.ts +5 -0
  85. package/dist-esm/src/index.d.ts.map +1 -0
  86. package/dist-esm/src/index.js +12 -0
  87. package/dist-esm/src/index.js.map +1 -0
  88. package/dist-esm/src/lroImpl.d.ts +16 -0
  89. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  90. package/dist-esm/src/lroImpl.js +29 -0
  91. package/dist-esm/src/lroImpl.js.map +1 -0
  92. package/dist-esm/src/models/index.d.ts +691 -0
  93. package/dist-esm/src/models/index.d.ts.map +1 -0
  94. package/dist-esm/src/models/index.js +88 -0
  95. package/dist-esm/src/models/index.js.map +1 -0
  96. package/dist-esm/src/models/mappers.d.ts +29 -0
  97. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  98. package/dist-esm/src/models/mappers.js +877 -0
  99. package/dist-esm/src/models/mappers.js.map +1 -0
  100. package/dist-esm/src/models/parameters.d.ts +19 -0
  101. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  102. package/dist-esm/src/models/parameters.js +170 -0
  103. package/dist-esm/src/models/parameters.js.map +1 -0
  104. package/dist-esm/src/operations/elasticSans.d.ts +107 -0
  105. package/dist-esm/src/operations/elasticSans.d.ts.map +1 -0
  106. package/dist-esm/src/operations/elasticSans.js +509 -0
  107. package/dist-esm/src/operations/elasticSans.js.map +1 -0
  108. package/dist-esm/src/operations/index.d.ts +6 -0
  109. package/dist-esm/src/operations/index.d.ts.map +1 -0
  110. package/dist-esm/src/operations/index.js +13 -0
  111. package/dist-esm/src/operations/index.js.map +1 -0
  112. package/dist-esm/src/operations/operations.d.ts +26 -0
  113. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  114. package/dist-esm/src/operations/operations.js +90 -0
  115. package/dist-esm/src/operations/operations.js.map +1 -0
  116. package/dist-esm/src/operations/skus.d.ts +26 -0
  117. package/dist-esm/src/operations/skus.d.ts.map +1 -0
  118. package/dist-esm/src/operations/skus.js +90 -0
  119. package/dist-esm/src/operations/skus.js.map +1 -0
  120. package/dist-esm/src/operations/volumeGroups.d.ts +99 -0
  121. package/dist-esm/src/operations/volumeGroups.d.ts.map +1 -0
  122. package/dist-esm/src/operations/volumeGroups.js +438 -0
  123. package/dist-esm/src/operations/volumeGroups.js.map +1 -0
  124. package/dist-esm/src/operations/volumes.d.ts +109 -0
  125. package/dist-esm/src/operations/volumes.d.ts.map +1 -0
  126. package/dist-esm/src/operations/volumes.js +468 -0
  127. package/dist-esm/src/operations/volumes.js.map +1 -0
  128. package/dist-esm/src/operationsInterfaces/elasticSans.d.ts +71 -0
  129. package/dist-esm/src/operationsInterfaces/elasticSans.d.ts.map +1 -0
  130. package/dist-esm/src/operationsInterfaces/elasticSans.js +9 -0
  131. package/dist-esm/src/operationsInterfaces/elasticSans.js.map +1 -0
  132. package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
  133. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  134. package/dist-esm/src/operationsInterfaces/index.js +13 -0
  135. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  136. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  137. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  138. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  139. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  140. package/dist-esm/src/operationsInterfaces/skus.d.ts +11 -0
  141. package/dist-esm/src/operationsInterfaces/skus.d.ts.map +1 -0
  142. package/dist-esm/src/operationsInterfaces/skus.js +9 -0
  143. package/dist-esm/src/operationsInterfaces/skus.js.map +1 -0
  144. package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts +74 -0
  145. package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts.map +1 -0
  146. package/dist-esm/src/operationsInterfaces/volumeGroups.js +9 -0
  147. package/dist-esm/src/operationsInterfaces/volumeGroups.js.map +1 -0
  148. package/dist-esm/src/operationsInterfaces/volumes.d.ts +82 -0
  149. package/dist-esm/src/operationsInterfaces/volumes.d.ts.map +1 -0
  150. package/dist-esm/src/operationsInterfaces/volumes.js +9 -0
  151. package/dist-esm/src/operationsInterfaces/volumes.js.map +1 -0
  152. package/dist-esm/test/elasticsan_examples.spec.d.ts +4 -0
  153. package/dist-esm/test/elasticsan_examples.spec.d.ts.map +1 -0
  154. package/dist-esm/test/elasticsan_examples.spec.js +80 -0
  155. package/dist-esm/test/elasticsan_examples.spec.js.map +1 -0
  156. package/package.json +122 -0
  157. package/review/arm-elasticsan.api.md +536 -0
  158. package/rollup.config.js +122 -0
  159. package/src/elasticSanManagement.ts +161 -0
  160. package/src/index.ts +12 -0
  161. package/src/lroImpl.ts +34 -0
  162. package/src/models/index.ts +787 -0
  163. package/src/models/mappers.ts +935 -0
  164. package/src/models/parameters.ts +199 -0
  165. package/src/operations/elasticSans.ts +683 -0
  166. package/src/operations/index.ts +13 -0
  167. package/src/operations/operations.ts +98 -0
  168. package/src/operations/skus.ts +96 -0
  169. package/src/operations/volumeGroups.ts +629 -0
  170. package/src/operations/volumes.ts +673 -0
  171. package/src/operationsInterfaces/elasticSans.ts +139 -0
  172. package/src/operationsInterfaces/index.ts +13 -0
  173. package/src/operationsInterfaces/operations.ts +22 -0
  174. package/src/operationsInterfaces/skus.ts +22 -0
  175. package/src/operationsInterfaces/volumeGroups.ts +147 -0
  176. package/src/operationsInterfaces/volumes.ts +157 -0
  177. package/tsconfig.json +33 -0
  178. package/types/arm-elasticsan.d.ts +1036 -0
  179. package/types/tsdoc-metadata.json +11 -0
@@ -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,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,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.ts"],"names":[],"mappings":""}
@@ -0,0 +1,75 @@
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 { ElasticSanManagement } from "@azure/arm-elasticsan";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to List all the available Skus in the region and information related to them
15
+ *
16
+ * @summary List all the available Skus in the region and information related to them
17
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Skus_List_MaximumSet_Gen.json
18
+ */
19
+ function skusListMaximumSetGen() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "aaaaaaaaaaaaaaaaaa";
23
+ const filter = "aaaa";
24
+ const options = { filter };
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new ElasticSanManagement(credential, subscriptionId);
27
+ const resArray = new Array();
28
+ try {
29
+ for (var _b = __asyncValues(client.skus.list(options)), _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
+ skusListMaximumSetGen().catch(console.error);
45
+ /**
46
+ * This sample demonstrates how to List all the available Skus in the region and information related to them
47
+ *
48
+ * @summary List all the available Skus in the region and information related to them
49
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Skus_List_MinimumSet_Gen.json
50
+ */
51
+ function skusListMinimumSetGen() {
52
+ var e_2, _a;
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ const subscriptionId = "aaaaaaaaaaaaaaaaaa";
55
+ const credential = new DefaultAzureCredential();
56
+ const client = new ElasticSanManagement(credential, subscriptionId);
57
+ const resArray = new Array();
58
+ try {
59
+ for (var _b = __asyncValues(client.skus.list()), _c; _c = yield _b.next(), !_c.done;) {
60
+ let item = _c.value;
61
+ resArray.push(item);
62
+ }
63
+ }
64
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
65
+ finally {
66
+ try {
67
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
68
+ }
69
+ finally { if (e_2) throw e_2.error; }
70
+ }
71
+ console.log(resArray);
72
+ });
73
+ }
74
+ skusListMinimumSetGen().catch(console.error);
75
+ //# sourceMappingURL=skusListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skusListSample.js","sourceRoot":"","sources":["../../samples-dev/skusListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,oBAAoB,EACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,qBAAqB;;;QAClC,MAAM,cAAc,GAAG,oBAAoB,CAAC;QAC5C,MAAM,MAAM,GAAG,MAAM,CAAC;QACtB,MAAM,OAAO,GAA2B,EAAE,MAAM,EAAE,CAAC;QACnD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA,IAAA;gBAArC,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,qBAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAE7C;;;;;GAKG;AACH,SAAe,qBAAqB;;;QAClC,MAAM,cAAc,GAAG,oBAAoB,CAAC;QAC5C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAA,IAAA;gBAA9B,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,qBAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=volumeGroupsCreateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumeGroupsCreateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/volumeGroupsCreateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,62 @@
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 { ElasticSanManagement } from "@azure/arm-elasticsan";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Create a Volume Group.
15
+ *
16
+ * @summary Create a Volume Group.
17
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Create_MaximumSet_Gen.json
18
+ */
19
+ function volumeGroupsCreateMaximumSetGen() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "aaaaaaaaaaaaaaaaaa";
22
+ const resourceGroupName = "rgelasticsan";
23
+ const elasticSanName = "ti7q-k952-1qB3J_5";
24
+ const volumeGroupName = "u_5I_1j4t3";
25
+ const parameters = {
26
+ encryption: "EncryptionAtRestWithPlatformKey",
27
+ networkAcls: {
28
+ virtualNetworkRules: [
29
+ { action: "Allow", virtualNetworkResourceId: "aaaaaaaaaaaaaaaa" }
30
+ ]
31
+ },
32
+ protocolType: "Iscsi",
33
+ tags: { key5933: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }
34
+ };
35
+ const credential = new DefaultAzureCredential();
36
+ const client = new ElasticSanManagement(credential, subscriptionId);
37
+ const result = yield client.volumeGroups.beginCreateAndWait(resourceGroupName, elasticSanName, volumeGroupName, parameters);
38
+ console.log(result);
39
+ });
40
+ }
41
+ volumeGroupsCreateMaximumSetGen().catch(console.error);
42
+ /**
43
+ * This sample demonstrates how to Create a Volume Group.
44
+ *
45
+ * @summary Create a Volume Group.
46
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Create_MinimumSet_Gen.json
47
+ */
48
+ function volumeGroupsCreateMinimumSetGen() {
49
+ return __awaiter(this, void 0, void 0, function* () {
50
+ const subscriptionId = "aaaaaaaaaaaaaaaaaa";
51
+ const resourceGroupName = "rgelasticsan";
52
+ const elasticSanName = "ti7q-k952-1qB3J_5";
53
+ const volumeGroupName = "u_5I_1j4t3";
54
+ const parameters = {};
55
+ const credential = new DefaultAzureCredential();
56
+ const client = new ElasticSanManagement(credential, subscriptionId);
57
+ const result = yield client.volumeGroups.beginCreateAndWait(resourceGroupName, elasticSanName, volumeGroupName, parameters);
58
+ console.log(result);
59
+ });
60
+ }
61
+ volumeGroupsCreateMinimumSetGen().catch(console.error);
62
+ //# sourceMappingURL=volumeGroupsCreateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumeGroupsCreateSample.js","sourceRoot":"","sources":["../../samples-dev/volumeGroupsCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAe,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,+BAA+B;;QAC5C,MAAM,cAAc,GAAG,oBAAoB,CAAC;QAC5C,MAAM,iBAAiB,GAAG,cAAc,CAAC;QACzC,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,eAAe,GAAG,YAAY,CAAC;QACrC,MAAM,UAAU,GAAgB;YAC9B,UAAU,EAAE,iCAAiC;YAC7C,WAAW,EAAE;gBACX,mBAAmB,EAAE;oBACnB,EAAE,MAAM,EAAE,OAAO,EAAE,wBAAwB,EAAE,kBAAkB,EAAE;iBAClE;aACF;YACD,YAAY,EAAE,OAAO;YACrB,IAAI,EAAE,EAAE,OAAO,EAAE,+BAA+B,EAAE;SACnD,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,+BAA+B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAEvD;;;;;GAKG;AACH,SAAe,+BAA+B;;QAC5C,MAAM,cAAc,GAAG,oBAAoB,CAAC;QAC5C,MAAM,iBAAiB,GAAG,cAAc,CAAC;QACzC,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,eAAe,GAAG,YAAY,CAAC;QACrC,MAAM,UAAU,GAAgB,EAAE,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,+BAA+B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=volumeGroupsDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumeGroupsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/volumeGroupsDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,51 @@
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 { ElasticSanManagement } from "@azure/arm-elasticsan";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Delete an VolumeGroup.
15
+ *
16
+ * @summary Delete an VolumeGroup.
17
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Delete_MaximumSet_Gen.json
18
+ */
19
+ function volumeGroupsDeleteMaximumSetGen() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "aaaaaaaaaaaaaaaaaa";
22
+ const resourceGroupName = "rgelasticsan";
23
+ const elasticSanName = "ti7q-k952-1qB3J_5";
24
+ const volumeGroupName = "u_5I_1j4t3";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new ElasticSanManagement(credential, subscriptionId);
27
+ const result = yield client.volumeGroups.beginDeleteAndWait(resourceGroupName, elasticSanName, volumeGroupName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ volumeGroupsDeleteMaximumSetGen().catch(console.error);
32
+ /**
33
+ * This sample demonstrates how to Delete an VolumeGroup.
34
+ *
35
+ * @summary Delete an VolumeGroup.
36
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Delete_MinimumSet_Gen.json
37
+ */
38
+ function volumeGroupsDeleteMinimumSetGen() {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ const subscriptionId = "aaaaaaaaaaaaaaaaaa";
41
+ const resourceGroupName = "rgelasticsan";
42
+ const elasticSanName = "ti7q-k952-1qB3J_5";
43
+ const volumeGroupName = "u_5I_1j4t3";
44
+ const credential = new DefaultAzureCredential();
45
+ const client = new ElasticSanManagement(credential, subscriptionId);
46
+ const result = yield client.volumeGroups.beginDeleteAndWait(resourceGroupName, elasticSanName, volumeGroupName);
47
+ console.log(result);
48
+ });
49
+ }
50
+ volumeGroupsDeleteMinimumSetGen().catch(console.error);
51
+ //# sourceMappingURL=volumeGroupsDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumeGroupsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/volumeGroupsDeleteSample.ts"],"names":[],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B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=volumeGroupsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumeGroupsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/volumeGroupsGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,51 @@
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 { ElasticSanManagement } from "@azure/arm-elasticsan";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Get an VolumeGroups.
15
+ *
16
+ * @summary Get an VolumeGroups.
17
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Get_MaximumSet_Gen.json
18
+ */
19
+ function volumeGroupsGetMaximumSetGen() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "aaaaaaaaaaaaaaaaaa";
22
+ const resourceGroupName = "rgelasticsan";
23
+ const elasticSanName = "ti7q-k952-1qB3J_5";
24
+ const volumeGroupName = "u_5I_1j4t3";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new ElasticSanManagement(credential, subscriptionId);
27
+ const result = yield client.volumeGroups.get(resourceGroupName, elasticSanName, volumeGroupName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ volumeGroupsGetMaximumSetGen().catch(console.error);
32
+ /**
33
+ * This sample demonstrates how to Get an VolumeGroups.
34
+ *
35
+ * @summary Get an VolumeGroups.
36
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Get_MinimumSet_Gen.json
37
+ */
38
+ function volumeGroupsGetMinimumSetGen() {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ const subscriptionId = "aaaaaaaaaaaaaaaaaa";
41
+ const resourceGroupName = "rgelasticsan";
42
+ const elasticSanName = "ti7q-k952-1qB3J_5";
43
+ const volumeGroupName = "u_5I_1j4t3";
44
+ const credential = new DefaultAzureCredential();
45
+ const client = new ElasticSanManagement(credential, subscriptionId);
46
+ const result = yield client.volumeGroups.get(resourceGroupName, elasticSanName, volumeGroupName);
47
+ console.log(result);
48
+ });
49
+ }
50
+ volumeGroupsGetMinimumSetGen().catch(console.error);
51
+ //# sourceMappingURL=volumeGroupsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumeGroupsGetSample.js","sourceRoot":"","sources":["../../samples-dev/volumeGroupsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,4BAA4B;;QACzC,MAAM,cAAc,GAAG,oBAAoB,CAAC;QAC5C,MAAM,iBAAiB,GAAG,cAAc,CAAC;QACzC,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,eAAe,GAAG,YAAY,CAAC;QACrC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,GAAG,CAC1C,iBAAiB,EACjB,cAAc,EACd,eAAe,CAChB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,4BAA4B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAEpD;;;;;GAKG;AACH,SAAe,4BAA4B;;QACzC,MAAM,cAAc,GAAG,oBAAoB,CAAC;QAC5C,MAAM,iBAAiB,GAAG,cAAc,CAAC;QACzC,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,eAAe,GAAG,YAAY,CAAC;QACrC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,GAAG,CAC1C,iBAAiB,EACjB,cAAc,EACd,eAAe,CAChB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,4BAA4B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=volumeGroupsListByElasticSanSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumeGroupsListByElasticSanSample.d.ts","sourceRoot":"","sources":["../../samples-dev/volumeGroupsListByElasticSanSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,77 @@
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 { ElasticSanManagement } from "@azure/arm-elasticsan";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to List VolumeGroups.
15
+ *
16
+ * @summary List VolumeGroups.
17
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_ListByElasticSan_MaximumSet_Gen.json
18
+ */
19
+ function volumeGroupsListByElasticSanMaximumSetGen() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "aaaaaaaaaaaaaaaaaa";
23
+ const resourceGroupName = "rgelasticsan";
24
+ const elasticSanName = "ti7q-k952-1qB3J_5";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new ElasticSanManagement(credential, subscriptionId);
27
+ const resArray = new Array();
28
+ try {
29
+ for (var _b = __asyncValues(client.volumeGroups.listByElasticSan(resourceGroupName, elasticSanName)), _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
+ volumeGroupsListByElasticSanMaximumSetGen().catch(console.error);
45
+ /**
46
+ * This sample demonstrates how to List VolumeGroups.
47
+ *
48
+ * @summary List VolumeGroups.
49
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_ListByElasticSan_MinimumSet_Gen.json
50
+ */
51
+ function volumeGroupsListByElasticSanMinimumSetGen() {
52
+ var e_2, _a;
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ const subscriptionId = "aaaaaaaaaaaaaaaaaa";
55
+ const resourceGroupName = "rgelasticsan";
56
+ const elasticSanName = "ti7q-k952-1qB3J_5";
57
+ const credential = new DefaultAzureCredential();
58
+ const client = new ElasticSanManagement(credential, subscriptionId);
59
+ const resArray = new Array();
60
+ try {
61
+ for (var _b = __asyncValues(client.volumeGroups.listByElasticSan(resourceGroupName, elasticSanName)), _c; _c = yield _b.next(), !_c.done;) {
62
+ let item = _c.value;
63
+ resArray.push(item);
64
+ }
65
+ }
66
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
67
+ finally {
68
+ try {
69
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
70
+ }
71
+ finally { if (e_2) throw e_2.error; }
72
+ }
73
+ console.log(resArray);
74
+ });
75
+ }
76
+ volumeGroupsListByElasticSanMinimumSetGen().catch(console.error);
77
+ //# sourceMappingURL=volumeGroupsListByElasticSanSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumeGroupsListByElasticSanSample.js","sourceRoot":"","sources":["../../samples-dev/volumeGroupsListByElasticSanSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,yCAAyC;;;QACtD,MAAM,cAAc,GAAG,oBAAoB,CAAC;QAC5C,MAAM,iBAAiB,GAAG,cAAc,CAAC;QACzC,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,YAAY,CAAC,gBAAgB,CACzD,iBAAiB,EACjB,cAAc,CACf,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,yCAAyC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAEjE;;;;;GAKG;AACH,SAAe,yCAAyC;;;QACtD,MAAM,cAAc,GAAG,oBAAoB,CAAC;QAC5C,MAAM,iBAAiB,GAAG,cAAc,CAAC;QACzC,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,YAAY,CAAC,gBAAgB,CACzD,iBAAiB,EACjB,cAAc,CACf,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,yCAAyC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=volumeGroupsUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumeGroupsUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/volumeGroupsUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,62 @@
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 { ElasticSanManagement } from "@azure/arm-elasticsan";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Update an VolumeGroup.
15
+ *
16
+ * @summary Update an VolumeGroup.
17
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Update_MaximumSet_Gen.json
18
+ */
19
+ function volumeGroupsUpdateMaximumSetGen() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "aaaaaaaaaaaaaaaaaa";
22
+ const resourceGroupName = "rgelasticsan";
23
+ const elasticSanName = "ti7q-k952-1qB3J_5";
24
+ const volumeGroupName = "u_5I_1j4t3";
25
+ const parameters = {
26
+ encryption: "EncryptionAtRestWithPlatformKey",
27
+ networkAcls: {
28
+ virtualNetworkRules: [
29
+ { action: "Allow", virtualNetworkResourceId: "aaaaaaaaaaaaaaaa" }
30
+ ]
31
+ },
32
+ protocolType: "Iscsi",
33
+ tags: { key7542: "aaaaaaaaaaaaaaaaaaaa" }
34
+ };
35
+ const credential = new DefaultAzureCredential();
36
+ const client = new ElasticSanManagement(credential, subscriptionId);
37
+ const result = yield client.volumeGroups.beginUpdateAndWait(resourceGroupName, elasticSanName, volumeGroupName, parameters);
38
+ console.log(result);
39
+ });
40
+ }
41
+ volumeGroupsUpdateMaximumSetGen().catch(console.error);
42
+ /**
43
+ * This sample demonstrates how to Update an VolumeGroup.
44
+ *
45
+ * @summary Update an VolumeGroup.
46
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/VolumeGroups_Update_MinimumSet_Gen.json
47
+ */
48
+ function volumeGroupsUpdateMinimumSetGen() {
49
+ return __awaiter(this, void 0, void 0, function* () {
50
+ const subscriptionId = "aaaaaaaaaaaaaaaaaa";
51
+ const resourceGroupName = "rgelasticsan";
52
+ const elasticSanName = "ti7q-k952-1qB3J_5";
53
+ const volumeGroupName = "u_5I_1j4t3";
54
+ const parameters = {};
55
+ const credential = new DefaultAzureCredential();
56
+ const client = new ElasticSanManagement(credential, subscriptionId);
57
+ const result = yield client.volumeGroups.beginUpdateAndWait(resourceGroupName, elasticSanName, volumeGroupName, parameters);
58
+ console.log(result);
59
+ });
60
+ }
61
+ volumeGroupsUpdateMinimumSetGen().catch(console.error);
62
+ //# sourceMappingURL=volumeGroupsUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumeGroupsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/volumeGroupsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAqB,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,+BAA+B;;QAC5C,MAAM,cAAc,GAAG,oBAAoB,CAAC;QAC5C,MAAM,iBAAiB,GAAG,cAAc,CAAC;QACzC,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,eAAe,GAAG,YAAY,CAAC;QACrC,MAAM,UAAU,GAAsB;YACpC,UAAU,EAAE,iCAAiC;YAC7C,WAAW,EAAE;gBACX,mBAAmB,EAAE;oBACnB,EAAE,MAAM,EAAE,OAAO,EAAE,wBAAwB,EAAE,kBAAkB,EAAE;iBAClE;aACF;YACD,YAAY,EAAE,OAAO;YACrB,IAAI,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE;SAC1C,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,+BAA+B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAEvD;;;;;GAKG;AACH,SAAe,+BAA+B;;QAC5C,MAAM,cAAc,GAAG,oBAAoB,CAAC;QAC5C,MAAM,iBAAiB,GAAG,cAAc,CAAC;QACzC,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,eAAe,GAAG,YAAY,CAAC;QACrC,MAAM,UAAU,GAAsB,EAAE,CAAC;QACzC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,+BAA+B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=volumesCreateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumesCreateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/volumesCreateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,59 @@
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 { ElasticSanManagement } from "@azure/arm-elasticsan";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Create a Volume.
15
+ *
16
+ * @summary Create a Volume.
17
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Create_MaximumSet_Gen.json
18
+ */
19
+ function volumesCreateMaximumSetGen() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "aaaaaaaaaaaaaaaaaa";
22
+ const resourceGroupName = "rgelasticsan";
23
+ const elasticSanName = "ti7q-k952-1qB3J_5";
24
+ const volumeGroupName = "u_5I_1j4t3";
25
+ const volumeName = "9132y";
26
+ const parameters = {
27
+ creationData: { createSource: "None", sourceUri: "aaaaaa" },
28
+ sizeGiB: 22,
29
+ tags: { key7423: "aaaa" }
30
+ };
31
+ const credential = new DefaultAzureCredential();
32
+ const client = new ElasticSanManagement(credential, subscriptionId);
33
+ const result = yield client.volumes.beginCreateAndWait(resourceGroupName, elasticSanName, volumeGroupName, volumeName, parameters);
34
+ console.log(result);
35
+ });
36
+ }
37
+ volumesCreateMaximumSetGen().catch(console.error);
38
+ /**
39
+ * This sample demonstrates how to Create a Volume.
40
+ *
41
+ * @summary Create a Volume.
42
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Create_MinimumSet_Gen.json
43
+ */
44
+ function volumesCreateMinimumSetGen() {
45
+ return __awaiter(this, void 0, void 0, function* () {
46
+ const subscriptionId = "aaaaaaaaaaaaaaaaaa";
47
+ const resourceGroupName = "rgelasticsan";
48
+ const elasticSanName = "ti7q-k952-1qB3J_5";
49
+ const volumeGroupName = "u_5I_1j4t3";
50
+ const volumeName = "9132y";
51
+ const parameters = {};
52
+ const credential = new DefaultAzureCredential();
53
+ const client = new ElasticSanManagement(credential, subscriptionId);
54
+ const result = yield client.volumes.beginCreateAndWait(resourceGroupName, elasticSanName, volumeGroupName, volumeName, parameters);
55
+ console.log(result);
56
+ });
57
+ }
58
+ volumesCreateMinimumSetGen().catch(console.error);
59
+ //# sourceMappingURL=volumesCreateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumesCreateSample.js","sourceRoot":"","sources":["../../samples-dev/volumesCreateSample.ts"],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;QAC9B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,kBAAkB,CACpD,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,UAAU,EACV,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,0BAA0B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=volumesDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumesDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/volumesDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,53 @@
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 { ElasticSanManagement } from "@azure/arm-elasticsan";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Delete an Volume.
15
+ *
16
+ * @summary Delete an Volume.
17
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Delete_MaximumSet_Gen.json
18
+ */
19
+ function volumesDeleteMaximumSetGen() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "aaaaaaaaaaaaaaaaaa";
22
+ const resourceGroupName = "rgelasticsan";
23
+ const elasticSanName = "ti7q-k952-1qB3J_5";
24
+ const volumeGroupName = "u_5I_1j4t3";
25
+ const volumeName = "9132y";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new ElasticSanManagement(credential, subscriptionId);
28
+ const result = yield client.volumes.beginDeleteAndWait(resourceGroupName, elasticSanName, volumeGroupName, volumeName);
29
+ console.log(result);
30
+ });
31
+ }
32
+ volumesDeleteMaximumSetGen().catch(console.error);
33
+ /**
34
+ * This sample demonstrates how to Delete an Volume.
35
+ *
36
+ * @summary Delete an Volume.
37
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Volumes_Delete_MinimumSet_Gen.json
38
+ */
39
+ function volumesDeleteMinimumSetGen() {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ const subscriptionId = "aaaaaaaaaaaaaaaaaa";
42
+ const resourceGroupName = "rgelasticsan";
43
+ const elasticSanName = "ti7q-k952-1qB3J_5";
44
+ const volumeGroupName = "u_5I_1j4t3";
45
+ const volumeName = "9132y";
46
+ const credential = new DefaultAzureCredential();
47
+ const client = new ElasticSanManagement(credential, subscriptionId);
48
+ const result = yield client.volumes.beginDeleteAndWait(resourceGroupName, elasticSanName, volumeGroupName, volumeName);
49
+ console.log(result);
50
+ });
51
+ }
52
+ volumesDeleteMinimumSetGen().catch(console.error);
53
+ //# sourceMappingURL=volumesDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumesDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/volumesDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,0BAA0B;;QACvC,MAAM,cAAc,GAAG,oBAAoB,CAAC;QAC5C,MAAM,iBAAiB,GAAG,cAAc,CAAC;QACzC,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,eAAe,GAAG,YAAY,CAAC;QACrC,MAAM,UAAU,GAAG,OAAO,CAAC;QAC3B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,kBAAkB,CACpD,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,0BAA0B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAElD;;;;;GAKG;AACH,SAAe,0BAA0B;;QACvC,MAAM,cAAc,GAAG,oBAAoB,CAAC;QAC5C,MAAM,iBAAiB,GAAG,cAAc,CAAC;QACzC,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,eAAe,GAAG,YAAY,CAAC;QACrC,MAAM,UAAU,GAAG,OAAO,CAAC;QAC3B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,kBAAkB,CACpD,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,0BAA0B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=volumesGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volumesGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/volumesGetSample.ts"],"names":[],"mappings":""}