@azure/arm-azurestackhci 2.0.1-alpha.20220209.1 → 2.1.1-alpha.20220309.4

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 (151) hide show
  1. package/CHANGELOG.md +7 -1
  2. package/README.md +12 -1
  3. package/dist/index.js +88 -45
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/arcSettingsCreateSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/arcSettingsCreateSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/arcSettingsCreateSample.js +33 -0
  10. package/dist-esm/samples-dev/arcSettingsCreateSample.js.map +1 -0
  11. package/dist-esm/samples-dev/arcSettingsDeleteSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/arcSettingsDeleteSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/arcSettingsDeleteSample.js +32 -0
  14. package/dist-esm/samples-dev/arcSettingsDeleteSample.js.map +1 -0
  15. package/dist-esm/samples-dev/arcSettingsGetSample.d.ts +2 -0
  16. package/dist-esm/samples-dev/arcSettingsGetSample.d.ts.map +1 -0
  17. package/dist-esm/samples-dev/arcSettingsGetSample.js +32 -0
  18. package/dist-esm/samples-dev/arcSettingsGetSample.js.map +1 -0
  19. package/dist-esm/samples-dev/arcSettingsListByClusterSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/arcSettingsListByClusterSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/arcSettingsListByClusterSample.js +45 -0
  22. package/dist-esm/samples-dev/arcSettingsListByClusterSample.js.map +1 -0
  23. package/dist-esm/samples-dev/clustersCreateSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/clustersCreateSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/clustersCreateSample.js +37 -0
  26. package/dist-esm/samples-dev/clustersCreateSample.js.map +1 -0
  27. package/dist-esm/samples-dev/clustersDeleteSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/clustersDeleteSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/clustersDeleteSample.js +31 -0
  30. package/dist-esm/samples-dev/clustersDeleteSample.js.map +1 -0
  31. package/dist-esm/samples-dev/clustersGetSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/clustersGetSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/clustersGetSample.js +31 -0
  34. package/dist-esm/samples-dev/clustersGetSample.js.map +1 -0
  35. package/dist-esm/samples-dev/clustersListByResourceGroupSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/clustersListByResourceGroupSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/clustersListByResourceGroupSample.js +44 -0
  38. package/dist-esm/samples-dev/clustersListByResourceGroupSample.js.map +1 -0
  39. package/dist-esm/samples-dev/clustersListBySubscriptionSample.d.ts +2 -0
  40. package/dist-esm/samples-dev/clustersListBySubscriptionSample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/clustersListBySubscriptionSample.js +43 -0
  42. package/dist-esm/samples-dev/clustersListBySubscriptionSample.js.map +1 -0
  43. package/dist-esm/samples-dev/clustersUpdateSample.d.ts +2 -0
  44. package/dist-esm/samples-dev/clustersUpdateSample.d.ts.map +1 -0
  45. package/dist-esm/samples-dev/clustersUpdateSample.js +39 -0
  46. package/dist-esm/samples-dev/clustersUpdateSample.js.map +1 -0
  47. package/dist-esm/samples-dev/createArcExtension.d.ts +2 -0
  48. package/dist-esm/samples-dev/createArcExtension.d.ts.map +1 -0
  49. package/dist-esm/samples-dev/createArcExtension.js +40 -0
  50. package/dist-esm/samples-dev/createArcExtension.js.map +1 -0
  51. package/dist-esm/samples-dev/createArcSetting.d.ts +2 -0
  52. package/dist-esm/samples-dev/createArcSetting.d.ts.map +1 -0
  53. package/dist-esm/samples-dev/createArcSetting.js +33 -0
  54. package/dist-esm/samples-dev/createArcSetting.js.map +1 -0
  55. package/dist-esm/samples-dev/createCluster.d.ts +2 -0
  56. package/dist-esm/samples-dev/createCluster.d.ts.map +1 -0
  57. package/dist-esm/samples-dev/createCluster.js +37 -0
  58. package/dist-esm/samples-dev/createCluster.js.map +1 -0
  59. package/dist-esm/samples-dev/deleteArcExtension.d.ts +2 -0
  60. package/dist-esm/samples-dev/deleteArcExtension.d.ts.map +1 -0
  61. package/dist-esm/samples-dev/deleteArcExtension.js +33 -0
  62. package/dist-esm/samples-dev/deleteArcExtension.js.map +1 -0
  63. package/dist-esm/samples-dev/deleteArcSetting.d.ts +2 -0
  64. package/dist-esm/samples-dev/deleteArcSetting.d.ts.map +1 -0
  65. package/dist-esm/samples-dev/deleteArcSetting.js +32 -0
  66. package/dist-esm/samples-dev/deleteArcSetting.js.map +1 -0
  67. package/dist-esm/samples-dev/deleteCluster.d.ts +2 -0
  68. package/dist-esm/samples-dev/deleteCluster.d.ts.map +1 -0
  69. package/dist-esm/samples-dev/deleteCluster.js +31 -0
  70. package/dist-esm/samples-dev/deleteCluster.js.map +1 -0
  71. package/dist-esm/samples-dev/extensionsCreateSample.d.ts +2 -0
  72. package/dist-esm/samples-dev/extensionsCreateSample.d.ts.map +1 -0
  73. package/dist-esm/samples-dev/extensionsCreateSample.js +40 -0
  74. package/dist-esm/samples-dev/extensionsCreateSample.js.map +1 -0
  75. package/dist-esm/samples-dev/extensionsDeleteSample.d.ts +2 -0
  76. package/dist-esm/samples-dev/extensionsDeleteSample.d.ts.map +1 -0
  77. package/dist-esm/samples-dev/extensionsDeleteSample.js +33 -0
  78. package/dist-esm/samples-dev/extensionsDeleteSample.js.map +1 -0
  79. package/dist-esm/samples-dev/extensionsGetSample.d.ts +2 -0
  80. package/dist-esm/samples-dev/extensionsGetSample.d.ts.map +1 -0
  81. package/dist-esm/samples-dev/extensionsGetSample.js +33 -0
  82. package/dist-esm/samples-dev/extensionsGetSample.js.map +1 -0
  83. package/dist-esm/samples-dev/extensionsListByArcSettingSample.d.ts +2 -0
  84. package/dist-esm/samples-dev/extensionsListByArcSettingSample.d.ts.map +1 -0
  85. package/dist-esm/samples-dev/extensionsListByArcSettingSample.js +46 -0
  86. package/dist-esm/samples-dev/extensionsListByArcSettingSample.js.map +1 -0
  87. package/dist-esm/samples-dev/extensionsUpdateSample.d.ts +2 -0
  88. package/dist-esm/samples-dev/extensionsUpdateSample.d.ts.map +1 -0
  89. package/dist-esm/samples-dev/extensionsUpdateSample.js +39 -0
  90. package/dist-esm/samples-dev/extensionsUpdateSample.js.map +1 -0
  91. package/dist-esm/samples-dev/getArcSetting.d.ts +2 -0
  92. package/dist-esm/samples-dev/getArcSetting.d.ts.map +1 -0
  93. package/dist-esm/samples-dev/getArcSetting.js +32 -0
  94. package/dist-esm/samples-dev/getArcSetting.js.map +1 -0
  95. package/dist-esm/samples-dev/getArcSettingsExtension.d.ts +2 -0
  96. package/dist-esm/samples-dev/getArcSettingsExtension.d.ts.map +1 -0
  97. package/dist-esm/samples-dev/getArcSettingsExtension.js +33 -0
  98. package/dist-esm/samples-dev/getArcSettingsExtension.js.map +1 -0
  99. package/dist-esm/samples-dev/getCluster.d.ts +2 -0
  100. package/dist-esm/samples-dev/getCluster.d.ts.map +1 -0
  101. package/dist-esm/samples-dev/getCluster.js +31 -0
  102. package/dist-esm/samples-dev/getCluster.js.map +1 -0
  103. package/dist-esm/samples-dev/listArcSettingResourcesByHciCluster.d.ts +2 -0
  104. package/dist-esm/samples-dev/listArcSettingResourcesByHciCluster.d.ts.map +1 -0
  105. package/dist-esm/samples-dev/listArcSettingResourcesByHciCluster.js +45 -0
  106. package/dist-esm/samples-dev/listArcSettingResourcesByHciCluster.js.map +1 -0
  107. package/dist-esm/samples-dev/listClustersInAGivenResourceGroup.d.ts +2 -0
  108. package/dist-esm/samples-dev/listClustersInAGivenResourceGroup.d.ts.map +1 -0
  109. package/dist-esm/samples-dev/listClustersInAGivenResourceGroup.js +44 -0
  110. package/dist-esm/samples-dev/listClustersInAGivenResourceGroup.js.map +1 -0
  111. package/dist-esm/samples-dev/listClustersInAGivenSubscription.d.ts +2 -0
  112. package/dist-esm/samples-dev/listClustersInAGivenSubscription.d.ts.map +1 -0
  113. package/dist-esm/samples-dev/listClustersInAGivenSubscription.js +43 -0
  114. package/dist-esm/samples-dev/listClustersInAGivenSubscription.js.map +1 -0
  115. package/dist-esm/samples-dev/listExtensionsUnderArcSettingResource.d.ts +2 -0
  116. package/dist-esm/samples-dev/listExtensionsUnderArcSettingResource.d.ts.map +1 -0
  117. package/dist-esm/samples-dev/listExtensionsUnderArcSettingResource.js +46 -0
  118. package/dist-esm/samples-dev/listExtensionsUnderArcSettingResource.js.map +1 -0
  119. package/dist-esm/samples-dev/listOperationsAvailableWithTheMicrosoftAzureStackHciProvider.d.ts +2 -0
  120. package/dist-esm/samples-dev/listOperationsAvailableWithTheMicrosoftAzureStackHciProvider.d.ts.map +1 -0
  121. package/dist-esm/samples-dev/listOperationsAvailableWithTheMicrosoftAzureStackHciProvider.js +29 -0
  122. package/dist-esm/samples-dev/listOperationsAvailableWithTheMicrosoftAzureStackHciProvider.js.map +1 -0
  123. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  124. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  125. package/dist-esm/samples-dev/operationsListSample.js +29 -0
  126. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  127. package/dist-esm/samples-dev/updateArcExtension.d.ts +2 -0
  128. package/dist-esm/samples-dev/updateArcExtension.d.ts.map +1 -0
  129. package/dist-esm/samples-dev/updateArcExtension.js +39 -0
  130. package/dist-esm/samples-dev/updateArcExtension.js.map +1 -0
  131. package/dist-esm/samples-dev/updateCluster.d.ts +2 -0
  132. package/dist-esm/samples-dev/updateCluster.d.ts.map +1 -0
  133. package/dist-esm/samples-dev/updateCluster.js +39 -0
  134. package/dist-esm/samples-dev/updateCluster.js.map +1 -0
  135. package/dist-esm/src/azureStackHCIClient.js +2 -2
  136. package/dist-esm/src/models/index.d.ts +2 -5
  137. package/dist-esm/src/models/index.d.ts.map +1 -1
  138. package/dist-esm/src/models/index.js.map +1 -1
  139. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  140. package/dist-esm/src/models/mappers.js +0 -1
  141. package/dist-esm/src/models/mappers.js.map +1 -1
  142. package/dist-esm/src/models/parameters.js +1 -1
  143. package/package.json +24 -8
  144. package/review/arm-azurestackhci.api.md +1 -1
  145. package/rollup.config.js +6 -72
  146. package/src/azureStackHCIClient.ts +2 -2
  147. package/src/models/index.ts +2 -5
  148. package/src/models/mappers.ts +0 -1
  149. package/src/models/parameters.ts +1 -1
  150. package/tsconfig.json +19 -5
  151. package/types/arm-azurestackhci.d.ts +2 -5
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Delete particular Arc Extension of HCI Cluster.
15
+ *
16
+ * @summary Delete particular Arc Extension of HCI Cluster.
17
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/DeleteExtension.json
18
+ */
19
+ function deleteArcExtension() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b";
22
+ const resourceGroupName = "test-rg";
23
+ const clusterName = "myCluster";
24
+ const arcSettingName = "default";
25
+ const extensionName = "MicrosoftMonitoringAgent";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new AzureStackHCIClient(credential, subscriptionId);
28
+ const result = yield client.extensions.beginDeleteAndWait(resourceGroupName, clusterName, arcSettingName, extensionName);
29
+ console.log(result);
30
+ });
31
+ }
32
+ deleteArcExtension().catch(console.error);
33
+ //# sourceMappingURL=extensionsDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensionsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/extensionsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,kBAAkB;;QAC/B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,cAAc,GAAG,SAAS,CAAC;QACjC,MAAM,aAAa,GAAG,0BAA0B,CAAC;QACjD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACnE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,kBAAkB,CACvD,iBAAiB,EACjB,WAAW,EACX,cAAc,EACd,aAAa,CACd,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kBAAkB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=extensionsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensionsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/extensionsGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Get particular Arc Extension of HCI Cluster.
15
+ *
16
+ * @summary Get particular Arc Extension of HCI Cluster.
17
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/GetExtension.json
18
+ */
19
+ function getArcSettingsExtension() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b";
22
+ const resourceGroupName = "test-rg";
23
+ const clusterName = "myCluster";
24
+ const arcSettingName = "default";
25
+ const extensionName = "MicrosoftMonitoringAgent";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new AzureStackHCIClient(credential, subscriptionId);
28
+ const result = yield client.extensions.get(resourceGroupName, clusterName, arcSettingName, extensionName);
29
+ console.log(result);
30
+ });
31
+ }
32
+ getArcSettingsExtension().catch(console.error);
33
+ //# sourceMappingURL=extensionsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensionsGetSample.js","sourceRoot":"","sources":["../../samples-dev/extensionsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,uBAAuB;;QACpC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,cAAc,GAAG,SAAS,CAAC;QACjC,MAAM,aAAa,GAAG,0BAA0B,CAAC;QACjD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACnE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,GAAG,CACxC,iBAAiB,EACjB,WAAW,EACX,cAAc,EACd,aAAa,CACd,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,uBAAuB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=extensionsListByArcSettingSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensionsListByArcSettingSample.d.ts","sourceRoot":"","sources":["../../samples-dev/extensionsListByArcSettingSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,46 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to List all Extensions under ArcSetting resource.
15
+ *
16
+ * @summary List all Extensions under ArcSetting resource.
17
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/ListExtensionsByArcSetting.json
18
+ */
19
+ function listExtensionsUnderArcSettingResource() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b";
23
+ const resourceGroupName = "test-rg";
24
+ const clusterName = "myCluster";
25
+ const arcSettingName = "default";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new AzureStackHCIClient(credential, subscriptionId);
28
+ const resArray = new Array();
29
+ try {
30
+ for (var _b = __asyncValues(client.extensions.listByArcSetting(resourceGroupName, clusterName, arcSettingName)), _c; _c = yield _b.next(), !_c.done;) {
31
+ let item = _c.value;
32
+ resArray.push(item);
33
+ }
34
+ }
35
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
36
+ finally {
37
+ try {
38
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
39
+ }
40
+ finally { if (e_1) throw e_1.error; }
41
+ }
42
+ console.log(resArray);
43
+ });
44
+ }
45
+ listExtensionsUnderArcSettingResource().catch(console.error);
46
+ //# sourceMappingURL=extensionsListByArcSettingSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensionsListByArcSettingSample.js","sourceRoot":"","sources":["../../samples-dev/extensionsListByArcSettingSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,qCAAqC;;;QAClD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,cAAc,GAAG,SAAS,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACnE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,gBAAgB,CACvD,iBAAiB,EACjB,WAAW,EACX,cAAc,CACf,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,qCAAqC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=extensionsUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensionsUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/extensionsUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,39 @@
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 { AzureStackHCIClient } from "@azure/arm-azurestackhci";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Update Extension for HCI cluster.
15
+ *
16
+ * @summary Update Extension for HCI cluster.
17
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/PatchExtension.json
18
+ */
19
+ function updateArcExtension() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b";
22
+ const resourceGroupName = "test-rg";
23
+ const clusterName = "myCluster";
24
+ const arcSettingName = "default";
25
+ const extensionName = "MicrosoftMonitoringAgent";
26
+ const extension = {
27
+ typePropertiesExtensionParametersType: "MicrosoftMonitoringAgent",
28
+ publisher: "Microsoft.Compute",
29
+ settings: { workspaceId: "xx" },
30
+ typeHandlerVersion: "1.10"
31
+ };
32
+ const credential = new DefaultAzureCredential();
33
+ const client = new AzureStackHCIClient(credential, subscriptionId);
34
+ const result = yield client.extensions.beginUpdateAndWait(resourceGroupName, clusterName, arcSettingName, extensionName, extension);
35
+ console.log(result);
36
+ });
37
+ }
38
+ updateArcExtension().catch(console.error);
39
+ //# sourceMappingURL=extensionsUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensionsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/extensionsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAa,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,kBAAkB;;QAC/B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,cAAc,GAAG,SAAS,CAAC;QACjC,MAAM,aAAa,GAAG,0BAA0B,CAAC;QACjD,MAAM,SAAS,GAAc;YAC3B,qCAAqC,EAAE,0BAA0B;YACjE,SAAS,EAAE,mBAAmB;YAC9B,QAAQ,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE;YAC/B,kBAAkB,EAAE,MAAM;SAC3B,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACnE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,kBAAkB,CACvD,iBAAiB,EACjB,WAAW,EACX,cAAc,EACd,aAAa,EACb,SAAS,CACV,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kBAAkB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=getArcSetting.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getArcSetting.d.ts","sourceRoot":"","sources":["../../samples-dev/getArcSetting.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Get ArcSetting resource details of HCI Cluster.
13
+ *
14
+ * @summary Get ArcSetting resource details of HCI Cluster.
15
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/GetArcSetting.json
16
+ */
17
+ import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function getArcSetting() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b";
22
+ const resourceGroupName = "test-rg";
23
+ const clusterName = "myCluster";
24
+ const arcSettingName = "default";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new AzureStackHCIClient(credential, subscriptionId);
27
+ const result = yield client.arcSettings.get(resourceGroupName, clusterName, arcSettingName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ getArcSetting().catch(console.error);
32
+ //# sourceMappingURL=getArcSetting.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getArcSetting.js","sourceRoot":"","sources":["../../samples-dev/getArcSetting.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,aAAa;;QAC1B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,cAAc,GAAG,SAAS,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACnE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,GAAG,CACzC,iBAAiB,EACjB,WAAW,EACX,cAAc,CACf,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,aAAa,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=getArcSettingsExtension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getArcSettingsExtension.d.ts","sourceRoot":"","sources":["../../samples-dev/getArcSettingsExtension.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Get particular Arc Extension of HCI Cluster.
13
+ *
14
+ * @summary Get particular Arc Extension of HCI Cluster.
15
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/GetExtension.json
16
+ */
17
+ import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function getArcSettingsExtension() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b";
22
+ const resourceGroupName = "test-rg";
23
+ const clusterName = "myCluster";
24
+ const arcSettingName = "default";
25
+ const extensionName = "MicrosoftMonitoringAgent";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new AzureStackHCIClient(credential, subscriptionId);
28
+ const result = yield client.extensions.get(resourceGroupName, clusterName, arcSettingName, extensionName);
29
+ console.log(result);
30
+ });
31
+ }
32
+ getArcSettingsExtension().catch(console.error);
33
+ //# sourceMappingURL=getArcSettingsExtension.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getArcSettingsExtension.js","sourceRoot":"","sources":["../../samples-dev/getArcSettingsExtension.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,uBAAuB;;QACpC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,cAAc,GAAG,SAAS,CAAC;QACjC,MAAM,aAAa,GAAG,0BAA0B,CAAC;QACjD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACnE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,GAAG,CACxC,iBAAiB,EACjB,WAAW,EACX,cAAc,EACd,aAAa,CACd,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,uBAAuB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=getCluster.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCluster.d.ts","sourceRoot":"","sources":["../../samples-dev/getCluster.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
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
+ /**
12
+ * This sample demonstrates how to Get HCI cluster.
13
+ *
14
+ * @summary Get HCI cluster.
15
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/GetCluster.json
16
+ */
17
+ import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function getCluster() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b";
22
+ const resourceGroupName = "test-rg";
23
+ const clusterName = "myCluster";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new AzureStackHCIClient(credential, subscriptionId);
26
+ const result = yield client.clusters.get(resourceGroupName, clusterName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ getCluster().catch(console.error);
31
+ //# sourceMappingURL=getCluster.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCluster.js","sourceRoot":"","sources":["../../samples-dev/getCluster.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,UAAU;;QACvB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACnE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,iBAAiB,EAAE,WAAW,CAAC,CAAC;QACzE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,UAAU,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=listArcSettingResourcesByHciCluster.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listArcSettingResourcesByHciCluster.d.ts","sourceRoot":"","sources":["../../samples-dev/listArcSettingResourcesByHciCluster.ts"],"names":[],"mappings":""}
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to Get ArcSetting resources of HCI Cluster.
13
+ *
14
+ * @summary Get ArcSetting resources of HCI Cluster.
15
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/ListArcSettingsByCluster.json
16
+ */
17
+ import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function listArcSettingResourcesByHciCluster() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b";
23
+ const resourceGroupName = "test-rg";
24
+ const clusterName = "myCluster";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new AzureStackHCIClient(credential, subscriptionId);
27
+ const resArray = new Array();
28
+ try {
29
+ for (var _b = __asyncValues(client.arcSettings.listByCluster(resourceGroupName, clusterName)), _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
+ listArcSettingResourcesByHciCluster().catch(console.error);
45
+ //# sourceMappingURL=listArcSettingResourcesByHciCluster.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listArcSettingResourcesByHciCluster.js","sourceRoot":"","sources":["../../samples-dev/listArcSettingResourcesByHciCluster.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,mCAAmC;;;QAChD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACnE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,WAAW,CAAC,aAAa,CACrD,iBAAiB,EACjB,WAAW,CACZ,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,mCAAmC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=listClustersInAGivenResourceGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listClustersInAGivenResourceGroup.d.ts","sourceRoot":"","sources":["../../samples-dev/listClustersInAGivenResourceGroup.ts"],"names":[],"mappings":""}
@@ -0,0 +1,44 @@
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
+ /**
12
+ * This sample demonstrates how to List all HCI clusters in a resource group.
13
+ *
14
+ * @summary List all HCI clusters in a resource group.
15
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/ListClustersByResourceGroup.json
16
+ */
17
+ import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function listClustersInAGivenResourceGroup() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b";
23
+ const resourceGroupName = "test-rg";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new AzureStackHCIClient(credential, subscriptionId);
26
+ const resArray = new Array();
27
+ try {
28
+ for (var _b = __asyncValues(client.clusters.listByResourceGroup(resourceGroupName)), _c; _c = yield _b.next(), !_c.done;) {
29
+ let item = _c.value;
30
+ resArray.push(item);
31
+ }
32
+ }
33
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
34
+ finally {
35
+ try {
36
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
37
+ }
38
+ finally { if (e_1) throw e_1.error; }
39
+ }
40
+ console.log(resArray);
41
+ });
42
+ }
43
+ listClustersInAGivenResourceGroup().catch(console.error);
44
+ //# sourceMappingURL=listClustersInAGivenResourceGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listClustersInAGivenResourceGroup.js","sourceRoot":"","sources":["../../samples-dev/listClustersInAGivenResourceGroup.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,iCAAiC;;;QAC9C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACnE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CACxD,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,iCAAiC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=listClustersInAGivenSubscription.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listClustersInAGivenSubscription.d.ts","sourceRoot":"","sources":["../../samples-dev/listClustersInAGivenSubscription.ts"],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to List all HCI clusters in a subscription.
13
+ *
14
+ * @summary List all HCI clusters in a subscription.
15
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/ListClustersBySubscription.json
16
+ */
17
+ import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function listClustersInAGivenSubscription() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b";
23
+ const credential = new DefaultAzureCredential();
24
+ const client = new AzureStackHCIClient(credential, subscriptionId);
25
+ const resArray = new Array();
26
+ try {
27
+ for (var _b = __asyncValues(client.clusters.listBySubscription()), _c; _c = yield _b.next(), !_c.done;) {
28
+ let item = _c.value;
29
+ resArray.push(item);
30
+ }
31
+ }
32
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
33
+ finally {
34
+ try {
35
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
36
+ }
37
+ finally { if (e_1) throw e_1.error; }
38
+ }
39
+ console.log(resArray);
40
+ });
41
+ }
42
+ listClustersInAGivenSubscription().catch(console.error);
43
+ //# sourceMappingURL=listClustersInAGivenSubscription.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listClustersInAGivenSubscription.js","sourceRoot":"","sources":["../../samples-dev/listClustersInAGivenSubscription.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,gCAAgC;;;QAC7C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACnE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAA,IAAA;gBAAhD,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,gCAAgC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=listExtensionsUnderArcSettingResource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listExtensionsUnderArcSettingResource.d.ts","sourceRoot":"","sources":["../../samples-dev/listExtensionsUnderArcSettingResource.ts"],"names":[],"mappings":""}
@@ -0,0 +1,46 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ /**
12
+ * This sample demonstrates how to List all Extensions under ArcSetting resource.
13
+ *
14
+ * @summary List all Extensions under ArcSetting resource.
15
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/ListExtensionsByArcSetting.json
16
+ */
17
+ import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function listExtensionsUnderArcSettingResource() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "fd3c3665-1729-4b7b-9a38-238e83b0f98b";
23
+ const resourceGroupName = "test-rg";
24
+ const clusterName = "myCluster";
25
+ const arcSettingName = "default";
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new AzureStackHCIClient(credential, subscriptionId);
28
+ const resArray = new Array();
29
+ try {
30
+ for (var _b = __asyncValues(client.extensions.listByArcSetting(resourceGroupName, clusterName, arcSettingName)), _c; _c = yield _b.next(), !_c.done;) {
31
+ let item = _c.value;
32
+ resArray.push(item);
33
+ }
34
+ }
35
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
36
+ finally {
37
+ try {
38
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
39
+ }
40
+ finally { if (e_1) throw e_1.error; }
41
+ }
42
+ console.log(resArray);
43
+ });
44
+ }
45
+ listExtensionsUnderArcSettingResource().catch(console.error);
46
+ //# sourceMappingURL=listExtensionsUnderArcSettingResource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listExtensionsUnderArcSettingResource.js","sourceRoot":"","sources":["../../samples-dev/listExtensionsUnderArcSettingResource.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,qCAAqC;;;QAClD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,SAAS,CAAC;QACpC,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,cAAc,GAAG,SAAS,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACnE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,gBAAgB,CACvD,iBAAiB,EACjB,WAAW,EACX,cAAc,CACf,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,qCAAqC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=listOperationsAvailableWithTheMicrosoftAzureStackHciProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listOperationsAvailableWithTheMicrosoftAzureStackHciProvider.d.ts","sourceRoot":"","sources":["../../samples-dev/listOperationsAvailableWithTheMicrosoftAzureStackHciProvider.ts"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
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
+ /**
12
+ * This sample demonstrates how to List all available Microsoft.AzureStackHCI provider operations
13
+ *
14
+ * @summary List all available Microsoft.AzureStackHCI provider operations
15
+ * x-ms-original-file: specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2022-01-01/examples/ListOperations.json
16
+ */
17
+ import { AzureStackHCIClient } from "@azure/arm-azurestackhci";
18
+ import { DefaultAzureCredential } from "@azure/identity";
19
+ function listOperationsAvailableWithTheMicrosoftAzureStackHciProvider() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const credential = new DefaultAzureCredential();
23
+ const client = new AzureStackHCIClient(credential, subscriptionId);
24
+ const result = yield client.operations.list();
25
+ console.log(result);
26
+ });
27
+ }
28
+ listOperationsAvailableWithTheMicrosoftAzureStackHciProvider().catch(console.error);
29
+ //# sourceMappingURL=listOperationsAvailableWithTheMicrosoftAzureStackHciProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listOperationsAvailableWithTheMicrosoftAzureStackHciProvider.js","sourceRoot":"","sources":["../../samples-dev/listOperationsAvailableWithTheMicrosoftAzureStackHciProvider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC;;;;;GAKG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,SAAe,4DAA4D;;QACzE,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,mBAAmB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACnE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;QAC9C,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,4DAA4D,EAAE,CAAC,KAAK,CAClE,OAAO,CAAC,KAAK,CACd,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=operationsListSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operationsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":""}