@azure/arm-elasticsan 1.0.0-beta.1 → 1.0.0-beta.3

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 (197) hide show
  1. package/CHANGELOG.md +69 -1
  2. package/LICENSE +1 -1
  3. package/README.md +1 -1
  4. package/dist/index.js +2839 -1192
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/elasticSansCreateSample.js +26 -17
  9. package/dist-esm/samples-dev/elasticSansCreateSample.js.map +1 -1
  10. package/dist-esm/samples-dev/elasticSansDeleteSample.js +17 -10
  11. package/dist-esm/samples-dev/elasticSansDeleteSample.js.map +1 -1
  12. package/dist-esm/samples-dev/elasticSansGetSample.js +17 -10
  13. package/dist-esm/samples-dev/elasticSansGetSample.js.map +1 -1
  14. package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js +39 -18
  15. package/dist-esm/samples-dev/elasticSansListByResourceGroupSample.js.map +1 -1
  16. package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js +37 -16
  17. package/dist-esm/samples-dev/elasticSansListBySubscriptionSample.js.map +1 -1
  18. package/dist-esm/samples-dev/elasticSansUpdateSample.js +21 -13
  19. package/dist-esm/samples-dev/elasticSansUpdateSample.js.map +1 -1
  20. package/dist-esm/samples-dev/operationsListSample.js +39 -16
  21. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  22. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.d.ts +2 -0
  23. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.d.ts.map +1 -0
  24. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js +70 -0
  25. package/dist-esm/samples-dev/privateEndpointConnectionsCreateSample.js.map +1 -0
  26. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
  27. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
  28. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +58 -0
  29. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
  30. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
  31. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
  32. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +58 -0
  33. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
  34. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +2 -0
  35. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +1 -0
  36. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +98 -0
  37. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -0
  38. package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.d.ts +2 -0
  39. package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.d.ts.map +1 -0
  40. package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.js +56 -0
  41. package/dist-esm/samples-dev/privateLinkResourcesListByElasticSanSample.js.map +1 -0
  42. package/dist-esm/samples-dev/skusListSample.js +38 -17
  43. package/dist-esm/samples-dev/skusListSample.js.map +1 -1
  44. package/dist-esm/samples-dev/volumeGroupsCreateSample.js +34 -16
  45. package/dist-esm/samples-dev/volumeGroupsCreateSample.js.map +1 -1
  46. package/dist-esm/samples-dev/volumeGroupsDeleteSample.js +19 -12
  47. package/dist-esm/samples-dev/volumeGroupsDeleteSample.js.map +1 -1
  48. package/dist-esm/samples-dev/volumeGroupsGetSample.js +19 -12
  49. package/dist-esm/samples-dev/volumeGroupsGetSample.js.map +1 -1
  50. package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js +41 -20
  51. package/dist-esm/samples-dev/volumeGroupsListByElasticSanSample.js.map +1 -1
  52. package/dist-esm/samples-dev/volumeGroupsUpdateSample.js +33 -15
  53. package/dist-esm/samples-dev/volumeGroupsUpdateSample.js.map +1 -1
  54. package/dist-esm/samples-dev/volumeSnapshotsCreateSample.d.ts +2 -0
  55. package/dist-esm/samples-dev/volumeSnapshotsCreateSample.d.ts.map +1 -0
  56. package/dist-esm/samples-dev/volumeSnapshotsCreateSample.js +70 -0
  57. package/dist-esm/samples-dev/volumeSnapshotsCreateSample.js.map +1 -0
  58. package/dist-esm/samples-dev/volumeSnapshotsDeleteSample.d.ts +2 -0
  59. package/dist-esm/samples-dev/volumeSnapshotsDeleteSample.d.ts.map +1 -0
  60. package/dist-esm/samples-dev/volumeSnapshotsDeleteSample.js +60 -0
  61. package/dist-esm/samples-dev/volumeSnapshotsDeleteSample.js.map +1 -0
  62. package/dist-esm/samples-dev/volumeSnapshotsGetSample.d.ts +2 -0
  63. package/dist-esm/samples-dev/volumeSnapshotsGetSample.d.ts.map +1 -0
  64. package/dist-esm/samples-dev/volumeSnapshotsGetSample.js +60 -0
  65. package/dist-esm/samples-dev/volumeSnapshotsGetSample.js.map +1 -0
  66. package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.d.ts +2 -0
  67. package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.d.ts.map +1 -0
  68. package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.js +102 -0
  69. package/dist-esm/samples-dev/volumeSnapshotsListByVolumeGroupSample.js.map +1 -0
  70. package/dist-esm/samples-dev/volumesCreateSample.js +25 -18
  71. package/dist-esm/samples-dev/volumesCreateSample.js.map +1 -1
  72. package/dist-esm/samples-dev/volumesDeleteSample.js +28 -15
  73. package/dist-esm/samples-dev/volumesDeleteSample.js.map +1 -1
  74. package/dist-esm/samples-dev/volumesGetSample.js +21 -14
  75. package/dist-esm/samples-dev/volumesGetSample.js.map +1 -1
  76. package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js +43 -22
  77. package/dist-esm/samples-dev/volumesListByVolumeGroupSample.js.map +1 -1
  78. package/dist-esm/samples-dev/volumesUpdateSample.js +22 -18
  79. package/dist-esm/samples-dev/volumesUpdateSample.js.map +1 -1
  80. package/dist-esm/src/elasticSanManagement.d.ts +4 -1
  81. package/dist-esm/src/elasticSanManagement.d.ts.map +1 -1
  82. package/dist-esm/src/elasticSanManagement.js +9 -9
  83. package/dist-esm/src/elasticSanManagement.js.map +1 -1
  84. package/dist-esm/src/index.d.ts +1 -0
  85. package/dist-esm/src/index.d.ts.map +1 -1
  86. package/dist-esm/src/index.js +1 -0
  87. package/dist-esm/src/index.js.map +1 -1
  88. package/dist-esm/src/lroImpl.d.ts +6 -11
  89. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  90. package/dist-esm/src/lroImpl.js +12 -20
  91. package/dist-esm/src/lroImpl.js.map +1 -1
  92. package/dist-esm/src/models/index.d.ts +613 -135
  93. package/dist-esm/src/models/index.d.ts.map +1 -1
  94. package/dist-esm/src/models/index.js +84 -0
  95. package/dist-esm/src/models/index.js.map +1 -1
  96. package/dist-esm/src/models/mappers.d.ts +30 -6
  97. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  98. package/dist-esm/src/models/mappers.js +704 -133
  99. package/dist-esm/src/models/mappers.js.map +1 -1
  100. package/dist-esm/src/models/parameters.d.ts +6 -0
  101. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  102. package/dist-esm/src/models/parameters.js +53 -3
  103. package/dist-esm/src/models/parameters.js.map +1 -1
  104. package/dist-esm/src/operations/elasticSans.d.ts +4 -4
  105. package/dist-esm/src/operations/elasticSans.d.ts.map +1 -1
  106. package/dist-esm/src/operations/elasticSans.js +98 -51
  107. package/dist-esm/src/operations/elasticSans.js.map +1 -1
  108. package/dist-esm/src/operations/index.d.ts +3 -0
  109. package/dist-esm/src/operations/index.d.ts.map +1 -1
  110. package/dist-esm/src/operations/index.js +3 -0
  111. package/dist-esm/src/operations/index.js.map +1 -1
  112. package/dist-esm/src/operations/operations.d.ts +2 -2
  113. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  114. package/dist-esm/src/operations/operations.js +22 -11
  115. package/dist-esm/src/operations/operations.js.map +1 -1
  116. package/dist-esm/src/operations/privateEndpointConnections.d.ts +73 -0
  117. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  118. package/dist-esm/src/operations/privateEndpointConnections.js +334 -0
  119. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  120. package/dist-esm/src/operations/privateLinkResources.d.ts +20 -0
  121. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  122. package/dist-esm/src/operations/privateLinkResources.js +53 -0
  123. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  124. package/dist-esm/src/operations/skus.d.ts.map +1 -1
  125. package/dist-esm/src/operations/skus.js +21 -10
  126. package/dist-esm/src/operations/skus.js.map +1 -1
  127. package/dist-esm/src/operations/volumeGroups.d.ts +4 -4
  128. package/dist-esm/src/operations/volumeGroups.d.ts.map +1 -1
  129. package/dist-esm/src/operations/volumeGroups.js +78 -48
  130. package/dist-esm/src/operations/volumeGroups.js.map +1 -1
  131. package/dist-esm/src/operations/volumeSnapshots.d.ts +89 -0
  132. package/dist-esm/src/operations/volumeSnapshots.d.ts.map +1 -0
  133. package/dist-esm/src/operations/volumeSnapshots.js +395 -0
  134. package/dist-esm/src/operations/volumeSnapshots.js.map +1 -0
  135. package/dist-esm/src/operations/volumes.d.ts +4 -4
  136. package/dist-esm/src/operations/volumes.d.ts.map +1 -1
  137. package/dist-esm/src/operations/volumes.js +91 -57
  138. package/dist-esm/src/operations/volumes.js.map +1 -1
  139. package/dist-esm/src/operationsInterfaces/elasticSans.d.ts +4 -4
  140. package/dist-esm/src/operationsInterfaces/elasticSans.d.ts.map +1 -1
  141. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
  142. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  143. package/dist-esm/src/operationsInterfaces/index.js +3 -0
  144. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  145. package/dist-esm/src/operationsInterfaces/operations.d.ts +2 -2
  146. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -1
  147. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
  148. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  149. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  150. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  151. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +12 -0
  152. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  153. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  154. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  155. package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts +4 -4
  156. package/dist-esm/src/operationsInterfaces/volumeGroups.d.ts.map +1 -1
  157. package/dist-esm/src/operationsInterfaces/volumeSnapshots.d.ts +62 -0
  158. package/dist-esm/src/operationsInterfaces/volumeSnapshots.d.ts.map +1 -0
  159. package/dist-esm/src/operationsInterfaces/volumeSnapshots.js +9 -0
  160. package/dist-esm/src/operationsInterfaces/volumeSnapshots.js.map +1 -0
  161. package/dist-esm/src/operationsInterfaces/volumes.d.ts +4 -4
  162. package/dist-esm/src/operationsInterfaces/volumes.d.ts.map +1 -1
  163. package/dist-esm/src/pagingHelper.d.ts +13 -0
  164. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  165. package/dist-esm/src/pagingHelper.js +32 -0
  166. package/dist-esm/src/pagingHelper.js.map +1 -0
  167. package/dist-esm/test/elasticsan_examples.spec.js +12 -5
  168. package/dist-esm/test/elasticsan_examples.spec.js.map +1 -1
  169. package/package.json +18 -23
  170. package/review/arm-elasticsan.api.md +416 -66
  171. package/src/elasticSanManagement.ts +20 -9
  172. package/src/index.ts +1 -0
  173. package/src/lroImpl.ts +31 -23
  174. package/src/models/index.ts +648 -109
  175. package/src/models/mappers.ts +749 -130
  176. package/src/models/parameters.ts +61 -3
  177. package/src/operations/elasticSans.ts +97 -60
  178. package/src/operations/index.ts +3 -0
  179. package/src/operations/operations.ts +16 -11
  180. package/src/operations/privateEndpointConnections.ts +450 -0
  181. package/src/operations/privateLinkResources.ts +72 -0
  182. package/src/operations/skus.ts +11 -6
  183. package/src/operations/volumeGroups.ts +76 -53
  184. package/src/operations/volumeSnapshots.ts +551 -0
  185. package/src/operations/volumes.ts +87 -54
  186. package/src/operationsInterfaces/elasticSans.ts +6 -6
  187. package/src/operationsInterfaces/index.ts +3 -0
  188. package/src/operationsInterfaces/operations.ts +2 -2
  189. package/src/operationsInterfaces/privateEndpointConnections.ts +109 -0
  190. package/src/operationsInterfaces/privateLinkResources.ts +27 -0
  191. package/src/operationsInterfaces/volumeGroups.ts +6 -6
  192. package/src/operationsInterfaces/volumeSnapshots.ts +121 -0
  193. package/src/operationsInterfaces/volumes.ts +10 -4
  194. package/src/pagingHelper.ts +39 -0
  195. package/types/arm-elasticsan.d.ts +784 -112
  196. package/types/tsdoc-metadata.json +1 -1
  197. package/rollup.config.js +0 -122
@@ -10,64 +10,87 @@ import { __asyncValues, __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { ElasticSanManagement } from "@azure/arm-elasticsan";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to Gets a list of ElasticSan operations.
15
17
  *
16
18
  * @summary Gets a list of ElasticSan operations.
17
- * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Operations_List_MaximumSet_Gen.json
19
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/Operations_List_MaximumSet_Gen.json
18
20
  */
19
21
  function operationsListMaximumSetGen() {
20
- var e_1, _a;
22
+ var _a, e_1, _b, _c;
21
23
  return __awaiter(this, void 0, void 0, function* () {
22
- const subscriptionId = "00000000-0000-0000-0000-000000000000";
24
+ const subscriptionId = process.env["ELASTICSANS_SUBSCRIPTION_ID"] ||
25
+ "00000000-0000-0000-0000-000000000000";
23
26
  const credential = new DefaultAzureCredential();
24
27
  const client = new ElasticSanManagement(credential, subscriptionId);
25
28
  const resArray = new Array();
26
29
  try {
27
- for (var _b = __asyncValues(client.operations.list()), _c; _c = yield _b.next(), !_c.done;) {
28
- let item = _c.value;
29
- resArray.push(item);
30
+ for (var _d = true, _e = __asyncValues(client.operations.list()), _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
+ }
30
40
  }
31
41
  }
32
42
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
33
43
  finally {
34
44
  try {
35
- if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
45
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
36
46
  }
37
47
  finally { if (e_1) throw e_1.error; }
38
48
  }
39
49
  console.log(resArray);
40
50
  });
41
51
  }
42
- operationsListMaximumSetGen().catch(console.error);
43
52
  /**
44
53
  * This sample demonstrates how to Gets a list of ElasticSan operations.
45
54
  *
46
55
  * @summary Gets a list of ElasticSan operations.
47
- * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2021-11-20-preview/examples/Operations_List_MinimumSet_Gen.json
56
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/Operations_List_MinimumSet_Gen.json
48
57
  */
49
58
  function operationsListMinimumSetGen() {
50
- var e_2, _a;
59
+ var _a, e_2, _b, _c;
51
60
  return __awaiter(this, void 0, void 0, function* () {
52
- const subscriptionId = "00000000-0000-0000-0000-000000000000";
61
+ const subscriptionId = process.env["ELASTICSANS_SUBSCRIPTION_ID"] ||
62
+ "00000000-0000-0000-0000-000000000000";
53
63
  const credential = new DefaultAzureCredential();
54
64
  const client = new ElasticSanManagement(credential, subscriptionId);
55
65
  const resArray = new Array();
56
66
  try {
57
- for (var _b = __asyncValues(client.operations.list()), _c; _c = yield _b.next(), !_c.done;) {
58
- let item = _c.value;
59
- resArray.push(item);
67
+ for (var _d = true, _e = __asyncValues(client.operations.list()), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
68
+ _c = _f.value;
69
+ _d = false;
70
+ try {
71
+ let item = _c;
72
+ resArray.push(item);
73
+ }
74
+ finally {
75
+ _d = true;
76
+ }
60
77
  }
61
78
  }
62
79
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
63
80
  finally {
64
81
  try {
65
- if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
82
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
66
83
  }
67
84
  finally { if (e_2) throw e_2.error; }
68
85
  }
69
86
  console.log(resArray);
70
87
  });
71
88
  }
72
- operationsListMinimumSetGen().catch(console.error);
89
+ function main() {
90
+ return __awaiter(this, void 0, void 0, function* () {
91
+ operationsListMaximumSetGen();
92
+ operationsListMinimumSetGen();
93
+ });
94
+ }
95
+ main().catch(console.error);
73
96
  //# sourceMappingURL=operationsListSample.js.map
@@ -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,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,2BAA2B;;;QACxC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,QAAQ,GAA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,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateEndpointConnectionsCreateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsCreateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsCreateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,70 @@
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
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Update the state of specified private endpoint connection associated with the Elastic San
17
+ *
18
+ * @summary Update the state of specified private endpoint connection associated with the Elastic San
19
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/PrivateEndpointConnections_Create_MaximumSet_Gen.json
20
+ */
21
+ function privateEndpointConnectionsCreateMaximumSetGen() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["ELASTICSANS_SUBSCRIPTION_ID"] || "subscriptionid";
24
+ const resourceGroupName = process.env["ELASTICSANS_RESOURCE_GROUP"] || "resourcegroupname";
25
+ const elasticSanName = "elasticsanname";
26
+ const privateEndpointConnectionName = "privateendpointconnectionname";
27
+ const parameters = {
28
+ groupIds: ["jdwrzpemdjrpiwzvy"],
29
+ privateEndpoint: {},
30
+ privateLinkServiceConnectionState: {
31
+ description: "dxl",
32
+ actionsRequired: "jhjdpwvyzipggtn",
33
+ status: "Pending"
34
+ }
35
+ };
36
+ const credential = new DefaultAzureCredential();
37
+ const client = new ElasticSanManagement(credential, subscriptionId);
38
+ const result = yield client.privateEndpointConnections.beginCreateAndWait(resourceGroupName, elasticSanName, privateEndpointConnectionName, parameters);
39
+ console.log(result);
40
+ });
41
+ }
42
+ /**
43
+ * This sample demonstrates how to Update the state of specified private endpoint connection associated with the Elastic San
44
+ *
45
+ * @summary Update the state of specified private endpoint connection associated with the Elastic San
46
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/PrivateEndpointConnections_Create_MinimumSet_Gen.json
47
+ */
48
+ function privateEndpointConnectionsCreateMinimumSetGen() {
49
+ return __awaiter(this, void 0, void 0, function* () {
50
+ const subscriptionId = process.env["ELASTICSANS_SUBSCRIPTION_ID"] || "subscriptionid";
51
+ const resourceGroupName = process.env["ELASTICSANS_RESOURCE_GROUP"] || "resourcegroupname";
52
+ const elasticSanName = "elasticsanname";
53
+ const privateEndpointConnectionName = "privateendpointconnectionname";
54
+ const parameters = {
55
+ privateLinkServiceConnectionState: {}
56
+ };
57
+ const credential = new DefaultAzureCredential();
58
+ const client = new ElasticSanManagement(credential, subscriptionId);
59
+ const result = yield client.privateEndpointConnections.beginCreateAndWait(resourceGroupName, elasticSanName, privateEndpointConnectionName, parameters);
60
+ console.log(result);
61
+ });
62
+ }
63
+ function main() {
64
+ return __awaiter(this, void 0, void 0, function* () {
65
+ privateEndpointConnectionsCreateMaximumSetGen();
66
+ privateEndpointConnectionsCreateMinimumSetGen();
67
+ });
68
+ }
69
+ main().catch(console.error);
70
+ //# sourceMappingURL=privateEndpointConnectionsCreateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsCreateSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,oBAAoB,EACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,sBA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B;YAC5C,iCAAiC,EAAE,EAAE;SACtC,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,0BAA0B,CAAC,kBAAkB,CACvE,iBAAiB,EACjB,cAAc,EACd,6BAA6B,EAC7B,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,6CAA6C,EAAE,CAAC;QAChD,6CAA6C,EAAE,CAAC;IAClD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateEndpointConnectionsDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,58 @@
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
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Deletes the specified private endpoint connection associated with the Elastic San
17
+ *
18
+ * @summary Deletes the specified private endpoint connection associated with the Elastic San
19
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/PrivateEndpointConnections_Delete_MaximumSet_Gen.json
20
+ */
21
+ function privateEndpointConnectionsDeleteMaximumSetGen() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["ELASTICSANS_SUBSCRIPTION_ID"] || "subscriptionid";
24
+ const resourceGroupName = process.env["ELASTICSANS_RESOURCE_GROUP"] || "resourcegroupname";
25
+ const elasticSanName = "elasticsanname";
26
+ const privateEndpointConnectionName = "privateendpointconnectionname";
27
+ const credential = new DefaultAzureCredential();
28
+ const client = new ElasticSanManagement(credential, subscriptionId);
29
+ const result = yield client.privateEndpointConnections.beginDeleteAndWait(resourceGroupName, elasticSanName, privateEndpointConnectionName);
30
+ console.log(result);
31
+ });
32
+ }
33
+ /**
34
+ * This sample demonstrates how to Deletes the specified private endpoint connection associated with the Elastic San
35
+ *
36
+ * @summary Deletes the specified private endpoint connection associated with the Elastic San
37
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/PrivateEndpointConnections_Delete_MinimumSet_Gen.json
38
+ */
39
+ function privateEndpointConnectionsDeleteMinimumSetGen() {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ const subscriptionId = process.env["ELASTICSANS_SUBSCRIPTION_ID"] || "subscriptionid";
42
+ const resourceGroupName = process.env["ELASTICSANS_RESOURCE_GROUP"] || "resourcegroupname";
43
+ const elasticSanName = "elasticsanname";
44
+ const privateEndpointConnectionName = "privateendpointconnectionname";
45
+ const credential = new DefaultAzureCredential();
46
+ const client = new ElasticSanManagement(credential, subscriptionId);
47
+ const result = yield client.privateEndpointConnections.beginDeleteAndWait(resourceGroupName, elasticSanName, privateEndpointConnectionName);
48
+ console.log(result);
49
+ });
50
+ }
51
+ function main() {
52
+ return __awaiter(this, void 0, void 0, function* () {
53
+ privateEndpointConnectionsDeleteMaximumSetGen();
54
+ privateEndpointConnectionsDeleteMinimumSetGen();
55
+ });
56
+ }
57
+ main().catch(console.error);
58
+ //# sourceMappingURL=privateEndpointConnectionsDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsDeleteSample.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;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,6CAA6C;;QAC1D,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,IAAI,gBAAgB,CAAC;QACjE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,IAAI,mBAAmB,CAAC;QACnE,MAAM,cAAc,GAAG,gBAAgB,CAAC;QACxC,MAAM,6BAA6B,GAAG,+BAA+B,CAAC;QACtE,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,0BAA0B,CAAC,kBAAkB,CACvE,iBAAiB,EACjB,cAAc,EACd,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED;;;;;GAKG;AACH,SAAe,6CAA6C;;QAC1D,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,IAAI,gBAAgB,CAAC;QACjE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,IAAI,mBAAmB,CAAC;QACnE,MAAM,cAAc,GAAG,gBAAgB,CAAC;QACxC,MAAM,6BAA6B,GAAG,+BAA+B,CAAC;QACtE,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,0BAA0B,CAAC,kBAAkB,CACvE,iBAAiB,EACjB,cAAc,EACd,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,6CAA6C,EAAE,CAAC;QAChD,6CAA6C,EAAE,CAAC;IAClD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateEndpointConnectionsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,58 @@
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
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Gets the specified private endpoint connection associated with the Elastic San
17
+ *
18
+ * @summary Gets the specified private endpoint connection associated with the Elastic San
19
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/PrivateEndpointConnections_Get_MaximumSet_Gen.json
20
+ */
21
+ function privateEndpointConnectionsGetMaximumSetGen() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["ELASTICSANS_SUBSCRIPTION_ID"] || "subscriptionid";
24
+ const resourceGroupName = process.env["ELASTICSANS_RESOURCE_GROUP"] || "resourcegroupname";
25
+ const elasticSanName = "elasticsanname";
26
+ const privateEndpointConnectionName = "privateendpointconnectionname";
27
+ const credential = new DefaultAzureCredential();
28
+ const client = new ElasticSanManagement(credential, subscriptionId);
29
+ const result = yield client.privateEndpointConnections.get(resourceGroupName, elasticSanName, privateEndpointConnectionName);
30
+ console.log(result);
31
+ });
32
+ }
33
+ /**
34
+ * This sample demonstrates how to Gets the specified private endpoint connection associated with the Elastic San
35
+ *
36
+ * @summary Gets the specified private endpoint connection associated with the Elastic San
37
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/PrivateEndpointConnections_Get_MinimumSet_Gen.json
38
+ */
39
+ function privateEndpointConnectionsGetMinimumSetGen() {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ const subscriptionId = process.env["ELASTICSANS_SUBSCRIPTION_ID"] || "subscriptionid";
42
+ const resourceGroupName = process.env["ELASTICSANS_RESOURCE_GROUP"] || "resourcegroupname";
43
+ const elasticSanName = "elasticsanname";
44
+ const privateEndpointConnectionName = "privateendpointconnectionname";
45
+ const credential = new DefaultAzureCredential();
46
+ const client = new ElasticSanManagement(credential, subscriptionId);
47
+ const result = yield client.privateEndpointConnections.get(resourceGroupName, elasticSanName, privateEndpointConnectionName);
48
+ console.log(result);
49
+ });
50
+ }
51
+ function main() {
52
+ return __awaiter(this, void 0, void 0, function* () {
53
+ privateEndpointConnectionsGetMaximumSetGen();
54
+ privateEndpointConnectionsGetMinimumSetGen();
55
+ });
56
+ }
57
+ main().catch(console.error);
58
+ //# sourceMappingURL=privateEndpointConnectionsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsGetSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsGetSample.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;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,0CAA0C;;QACvD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,IAAI,gBAAgB,CAAC;QACjE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,IAAI,mBAAmB,CAAC;QACnE,MAAM,cAAc,GAAG,gBAAgB,CAAC;QACxC,MAAM,6BAA6B,GAAG,+BAA+B,CAAC;QACtE,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,0BAA0B,CAAC,GAAG,CACxD,iBAAiB,EACjB,cAAc,EACd,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED;;;;;GAKG;AACH,SAAe,0CAA0C;;QACvD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,IAAI,gBAAgB,CAAC;QACjE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,IAAI,mBAAmB,CAAC;QACnE,MAAM,cAAc,GAAG,gBAAgB,CAAC;QACxC,MAAM,6BAA6B,GAAG,+BAA+B,CAAC;QACtE,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,0BAA0B,CAAC,GAAG,CACxD,iBAAiB,EACjB,cAAc,EACd,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,0CAA0C,EAAE,CAAC;QAC7C,0CAA0C,EAAE,CAAC;IAC/C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateEndpointConnectionsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,98 @@
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
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to List all Private Endpoint Connections associated with the Elastic San.
17
+ *
18
+ * @summary List all Private Endpoint Connections associated with the Elastic San.
19
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/PrivateEndpointConnections_List_MaximumSet_Gen.json
20
+ */
21
+ function privateEndpointConnectionsListMaximumSetGen() {
22
+ var _a, e_1, _b, _c;
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const subscriptionId = process.env["ELASTICSANS_SUBSCRIPTION_ID"] || "subscriptionid";
25
+ const resourceGroupName = process.env["ELASTICSANS_RESOURCE_GROUP"] || "resourcegroupname";
26
+ const elasticSanName = "elasticsanname";
27
+ const credential = new DefaultAzureCredential();
28
+ const client = new ElasticSanManagement(credential, subscriptionId);
29
+ const resArray = new Array();
30
+ try {
31
+ for (var _d = true, _e = __asyncValues(client.privateEndpointConnections.list(resourceGroupName, elasticSanName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
32
+ _c = _f.value;
33
+ _d = false;
34
+ try {
35
+ let item = _c;
36
+ resArray.push(item);
37
+ }
38
+ finally {
39
+ _d = true;
40
+ }
41
+ }
42
+ }
43
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
44
+ finally {
45
+ try {
46
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
47
+ }
48
+ finally { if (e_1) throw e_1.error; }
49
+ }
50
+ console.log(resArray);
51
+ });
52
+ }
53
+ /**
54
+ * This sample demonstrates how to List all Private Endpoint Connections associated with the Elastic San.
55
+ *
56
+ * @summary List all Private Endpoint Connections associated with the Elastic San.
57
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/PrivateEndpointConnections_List_MinimumSet_Gen.json
58
+ */
59
+ function privateEndpointConnectionsListMinimumSetGen() {
60
+ var _a, e_2, _b, _c;
61
+ return __awaiter(this, void 0, void 0, function* () {
62
+ const subscriptionId = process.env["ELASTICSANS_SUBSCRIPTION_ID"] || "subscriptionid";
63
+ const resourceGroupName = process.env["ELASTICSANS_RESOURCE_GROUP"] || "resourcegroupname";
64
+ const elasticSanName = "elasticsanname";
65
+ const credential = new DefaultAzureCredential();
66
+ const client = new ElasticSanManagement(credential, subscriptionId);
67
+ const resArray = new Array();
68
+ try {
69
+ for (var _d = true, _e = __asyncValues(client.privateEndpointConnections.list(resourceGroupName, elasticSanName)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
70
+ _c = _f.value;
71
+ _d = false;
72
+ try {
73
+ let item = _c;
74
+ resArray.push(item);
75
+ }
76
+ finally {
77
+ _d = true;
78
+ }
79
+ }
80
+ }
81
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
82
+ finally {
83
+ try {
84
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
85
+ }
86
+ finally { if (e_2) throw e_2.error; }
87
+ }
88
+ console.log(resArray);
89
+ });
90
+ }
91
+ function main() {
92
+ return __awaiter(this, void 0, void 0, function* () {
93
+ privateEndpointConnectionsListMaximumSetGen();
94
+ privateEndpointConnectionsListMinimumSetGen();
95
+ });
96
+ }
97
+ main().catch(console.error);
98
+ //# sourceMappingURL=privateEndpointConnectionsListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnectionsListSample.js","sourceRoot":"","sources":["../../samples-dev/privateEndpointConnectionsListSample.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;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,2CAA2C;;;QACxD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,IAAI,gBAAgB,CAAC;QACjE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,IAAI,mBAAmB,CAAC;QACnE,MAAM,cAAc,GAAG,gBAAgB,CAAC;QACxC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACp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,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=privateLinkResourcesListByElasticSanSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResourcesListByElasticSanSample.d.ts","sourceRoot":"","sources":["../../samples-dev/privateLinkResourcesListByElasticSanSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,56 @@
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
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Gets the private link resources that need to be created for a elastic San.
17
+ *
18
+ * @summary Gets the private link resources that need to be created for a elastic San.
19
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/PrivateLinkResources_ListByElasticSan_MaximumSet_Gen.json
20
+ */
21
+ function privateLinkResourcesListByElasticSanMaximumSetGen() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["ELASTICSANS_SUBSCRIPTION_ID"] || "subscriptionid";
24
+ const resourceGroupName = process.env["ELASTICSANS_RESOURCE_GROUP"] || "resourcegroupname";
25
+ const elasticSanName = "elasticsanname";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new ElasticSanManagement(credential, subscriptionId);
28
+ const result = yield client.privateLinkResources.listByElasticSan(resourceGroupName, elasticSanName);
29
+ console.log(result);
30
+ });
31
+ }
32
+ /**
33
+ * This sample demonstrates how to Gets the private link resources that need to be created for a elastic San.
34
+ *
35
+ * @summary Gets the private link resources that need to be created for a elastic San.
36
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/PrivateLinkResources_ListByElasticSan_MinimumSet_Gen.json
37
+ */
38
+ function privateLinkResourcesListByElasticSanMinimumSetGen() {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ const subscriptionId = process.env["ELASTICSANS_SUBSCRIPTION_ID"] || "subscriptionid";
41
+ const resourceGroupName = process.env["ELASTICSANS_RESOURCE_GROUP"] || "resourcegroupname";
42
+ const elasticSanName = "elasticsanname";
43
+ const credential = new DefaultAzureCredential();
44
+ const client = new ElasticSanManagement(credential, subscriptionId);
45
+ const result = yield client.privateLinkResources.listByElasticSan(resourceGroupName, elasticSanName);
46
+ console.log(result);
47
+ });
48
+ }
49
+ function main() {
50
+ return __awaiter(this, void 0, void 0, function* () {
51
+ privateLinkResourcesListByElasticSanMaximumSetGen();
52
+ privateLinkResourcesListByElasticSanMinimumSetGen();
53
+ });
54
+ }
55
+ main().catch(console.error);
56
+ //# sourceMappingURL=privateLinkResourcesListByElasticSanSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateLinkResourcesListByElasticSanSample.js","sourceRoot":"","sources":["../../samples-dev/privateLinkResourcesListByElasticSanSample.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;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,iDAAiD;;QAC9D,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,IAAI,gBAAgB,CAAC;QACjE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,IAAI,mBAAmB,CAAC;QACnE,MAAM,cAAc,GAAG,gBAAgB,CAAC;QACxC,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,oBAAoB,CAAC,gBAAgB,CAC/D,iBAAiB,EACjB,cAAc,CACf,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED;;;;;GAKG;AACH,SAAe,iDAAiD;;QAC9D,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,IAAI,gBAAgB,CAAC;QACjE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,IAAI,mBAAmB,CAAC;QACnE,MAAM,cAAc,GAAG,gBAAgB,CAAC;QACxC,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,oBAAoB,CAAC,gBAAgB,CAC/D,iBAAiB,EACjB,cAAc,CACf,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,iDAAiD,EAAE,CAAC;QACpD,iDAAiD,EAAE,CAAC;IACtD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -10,66 +10,87 @@ import { __asyncValues, __awaiter } from "tslib";
10
10
  // Licensed under the MIT License.
11
11
  import { ElasticSanManagement } from "@azure/arm-elasticsan";
12
12
  import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
13
15
  /**
14
16
  * This sample demonstrates how to List all the available Skus in the region and information related to them
15
17
  *
16
18
  * @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
19
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/Skus_List_MaximumSet_Gen.json
18
20
  */
19
21
  function skusListMaximumSetGen() {
20
- var e_1, _a;
22
+ var _a, e_1, _b, _c;
21
23
  return __awaiter(this, void 0, void 0, function* () {
22
- const subscriptionId = "aaaaaaaaaaaaaaaaaa";
23
- const filter = "aaaa";
24
+ const subscriptionId = process.env["ELASTICSANS_SUBSCRIPTION_ID"] || "subscriptionid";
25
+ const filter = "obwwdrkq";
24
26
  const options = { filter };
25
27
  const credential = new DefaultAzureCredential();
26
28
  const client = new ElasticSanManagement(credential, subscriptionId);
27
29
  const resArray = new Array();
28
30
  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);
31
+ for (var _d = true, _e = __asyncValues(client.skus.list(options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
32
+ _c = _f.value;
33
+ _d = false;
34
+ try {
35
+ let item = _c;
36
+ resArray.push(item);
37
+ }
38
+ finally {
39
+ _d = true;
40
+ }
32
41
  }
33
42
  }
34
43
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
35
44
  finally {
36
45
  try {
37
- if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
46
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
38
47
  }
39
48
  finally { if (e_1) throw e_1.error; }
40
49
  }
41
50
  console.log(resArray);
42
51
  });
43
52
  }
44
- skusListMaximumSetGen().catch(console.error);
45
53
  /**
46
54
  * This sample demonstrates how to List all the available Skus in the region and information related to them
47
55
  *
48
56
  * @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
57
+ * x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2023-01-01/examples/Skus_List_MinimumSet_Gen.json
50
58
  */
51
59
  function skusListMinimumSetGen() {
52
- var e_2, _a;
60
+ var _a, e_2, _b, _c;
53
61
  return __awaiter(this, void 0, void 0, function* () {
54
- const subscriptionId = "aaaaaaaaaaaaaaaaaa";
62
+ const subscriptionId = process.env["ELASTICSANS_SUBSCRIPTION_ID"] || "subscriptionid";
55
63
  const credential = new DefaultAzureCredential();
56
64
  const client = new ElasticSanManagement(credential, subscriptionId);
57
65
  const resArray = new Array();
58
66
  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);
67
+ for (var _d = true, _e = __asyncValues(client.skus.list()), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
68
+ _c = _f.value;
69
+ _d = false;
70
+ try {
71
+ let item = _c;
72
+ resArray.push(item);
73
+ }
74
+ finally {
75
+ _d = true;
76
+ }
62
77
  }
63
78
  }
64
79
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
65
80
  finally {
66
81
  try {
67
- if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
82
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
68
83
  }
69
84
  finally { if (e_2) throw e_2.error; }
70
85
  }
71
86
  console.log(resArray);
72
87
  });
73
88
  }
74
- skusListMinimumSetGen().catch(console.error);
89
+ function main() {
90
+ return __awaiter(this, void 0, void 0, function* () {
91
+ skusListMaximumSetGen();
92
+ skusListMinimumSetGen();
93
+ });
94
+ }
95
+ main().catch(console.error);
75
96
  //# sourceMappingURL=skusListSample.js.map