@azure/arm-hdinsight 0.22.0 → 1.1.0

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 (268) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/{LICENSE.txt → LICENSE} +1 -1
  3. package/README.md +70 -74
  4. package/dist/index.js +7702 -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/src/hDInsightManagementClient.d.ts +29 -0
  9. package/dist-esm/src/hDInsightManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/hDInsightManagementClient.js +62 -0
  11. package/dist-esm/src/hDInsightManagementClient.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/{esm/models/configurationsMappers.js → dist-esm/src/index.js} +5 -2
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/lroImpl.d.ts +16 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/src/lroImpl.js +29 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +1966 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +133 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +111 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/mappers.js +1813 -1305
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +37 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/dist-esm/src/models/parameters.js +280 -0
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/src/operations/applications.d.ts +90 -0
  33. package/dist-esm/src/operations/applications.d.ts.map +1 -0
  34. package/dist-esm/src/operations/applications.js +367 -0
  35. package/dist-esm/src/operations/applications.js.map +1 -0
  36. package/dist-esm/src/operations/clusters.d.ts +214 -0
  37. package/dist-esm/src/operations/clusters.d.ts.map +1 -0
  38. package/dist-esm/src/operations/clusters.js +979 -0
  39. package/dist-esm/src/operations/clusters.js.map +1 -0
  40. package/dist-esm/src/operations/configurations.d.ts +54 -0
  41. package/dist-esm/src/operations/configurations.d.ts.map +1 -0
  42. package/dist-esm/src/operations/configurations.js +178 -0
  43. package/dist-esm/src/operations/configurations.js.map +1 -0
  44. package/dist-esm/src/operations/extensions.d.ts +139 -0
  45. package/dist-esm/src/operations/extensions.d.ts.map +1 -0
  46. package/dist-esm/src/operations/extensions.js +602 -0
  47. package/dist-esm/src/operations/extensions.js.map +1 -0
  48. package/{esm → dist-esm/src}/operations/index.d.ts +2 -0
  49. package/dist-esm/src/operations/index.d.ts.map +1 -0
  50. package/dist-esm/src/operations/index.js +19 -0
  51. package/dist-esm/src/operations/index.js.map +1 -0
  52. package/dist-esm/src/operations/locations.d.ts +52 -0
  53. package/dist-esm/src/operations/locations.d.ts.map +1 -0
  54. package/dist-esm/src/operations/locations.js +199 -0
  55. package/dist-esm/src/operations/locations.js.map +1 -0
  56. package/dist-esm/src/operations/operations.d.ts +32 -0
  57. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  58. package/dist-esm/src/operations/operations.js +120 -0
  59. package/dist-esm/src/operations/operations.js.map +1 -0
  60. package/dist-esm/src/operations/privateEndpointConnections.d.ts +81 -0
  61. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  62. package/dist-esm/src/operations/privateEndpointConnections.js +349 -0
  63. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  64. package/dist-esm/src/operations/privateLinkResources.d.ts +28 -0
  65. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  66. package/dist-esm/src/operations/privateLinkResources.js +85 -0
  67. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  68. package/dist-esm/src/operations/scriptActions.d.ts +62 -0
  69. package/dist-esm/src/operations/scriptActions.d.ts.map +1 -0
  70. package/dist-esm/src/operations/scriptActions.js +232 -0
  71. package/dist-esm/src/operations/scriptActions.js.map +1 -0
  72. package/dist-esm/src/operations/scriptExecutionHistory.d.ts +46 -0
  73. package/dist-esm/src/operations/scriptExecutionHistory.d.ts.map +1 -0
  74. package/dist-esm/src/operations/scriptExecutionHistory.js +167 -0
  75. package/dist-esm/src/operations/scriptExecutionHistory.js.map +1 -0
  76. package/dist-esm/src/operations/virtualMachines.d.ts +45 -0
  77. package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -0
  78. package/dist-esm/src/operations/virtualMachines.js +169 -0
  79. package/dist-esm/src/operations/virtualMachines.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/applications.d.ts +65 -0
  81. package/dist-esm/src/operationsInterfaces/applications.d.ts.map +1 -0
  82. package/{src/models/virtualMachinesMappers.ts → dist-esm/src/operationsInterfaces/applications.js} +2 -5
  83. package/dist-esm/src/operationsInterfaces/applications.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/clusters.d.ts +178 -0
  85. package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -0
  86. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/clusters.js} +2 -1
  87. package/dist-esm/src/operationsInterfaces/clusters.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/configurations.d.ts +46 -0
  89. package/dist-esm/src/operationsInterfaces/configurations.d.ts.map +1 -0
  90. package/{src/models/configurationsMappers.ts → dist-esm/src/operationsInterfaces/configurations.js} +2 -5
  91. package/dist-esm/src/operationsInterfaces/configurations.js.map +1 -0
  92. package/dist-esm/src/operationsInterfaces/extensions.d.ts +131 -0
  93. package/dist-esm/src/operationsInterfaces/extensions.d.ts.map +1 -0
  94. package/{esm/models/virtualMachinesMappers.js → dist-esm/src/operationsInterfaces/extensions.js} +2 -2
  95. package/dist-esm/src/operationsInterfaces/extensions.js.map +1 -0
  96. package/dist-esm/src/operationsInterfaces/index.d.ts +12 -0
  97. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  98. package/dist-esm/src/operationsInterfaces/index.js +19 -0
  99. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/locations.d.ts +44 -0
  101. package/dist-esm/src/operationsInterfaces/locations.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/locations.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/locations.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  105. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
  109. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  112. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +20 -0
  113. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  114. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  115. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  116. package/dist-esm/src/operationsInterfaces/scriptActions.d.ts +37 -0
  117. package/dist-esm/src/operationsInterfaces/scriptActions.d.ts.map +1 -0
  118. package/dist-esm/src/operationsInterfaces/scriptActions.js +9 -0
  119. package/dist-esm/src/operationsInterfaces/scriptActions.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/scriptExecutionHistory.d.ts +21 -0
  121. package/dist-esm/src/operationsInterfaces/scriptExecutionHistory.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/scriptExecutionHistory.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/scriptExecutionHistory.js.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts +37 -0
  125. package/dist-esm/src/operationsInterfaces/virtualMachines.d.ts.map +1 -0
  126. package/dist-esm/src/operationsInterfaces/virtualMachines.js +9 -0
  127. package/dist-esm/src/operationsInterfaces/virtualMachines.js.map +1 -0
  128. package/dist-esm/test/sampleTest.d.ts +2 -0
  129. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  130. package/dist-esm/test/sampleTest.js +40 -0
  131. package/dist-esm/test/sampleTest.js.map +1 -0
  132. package/package.json +65 -31
  133. package/review/arm-hdinsight.api.md +1678 -0
  134. package/rollup.config.js +181 -30
  135. package/src/hDInsightManagementClient.ts +106 -44
  136. package/src/{models/extensionsMappers.ts → index.ts} +4 -6
  137. package/src/lroImpl.ts +34 -0
  138. package/src/models/index.ts +1760 -2084
  139. package/src/models/mappers.ts +1840 -1291
  140. package/src/models/parameters.ts +236 -44
  141. package/src/operations/applications.ts +383 -187
  142. package/src/operations/clusters.ts +1051 -535
  143. package/src/operations/configurations.ts +162 -154
  144. package/src/operations/extensions.ts +693 -216
  145. package/src/operations/index.ts +3 -2
  146. package/src/operations/locations.ts +186 -99
  147. package/src/operations/operations.ts +85 -73
  148. package/src/operations/privateEndpointConnections.ts +495 -0
  149. package/src/operations/privateLinkResources.ts +116 -0
  150. package/src/operations/scriptActions.ts +215 -157
  151. package/src/operations/scriptExecutionHistory.ts +155 -123
  152. package/src/operations/virtualMachines.ts +166 -101
  153. package/src/operationsInterfaces/applications.ts +126 -0
  154. package/src/operationsInterfaces/clusters.ts +327 -0
  155. package/src/operationsInterfaces/configurations.ts +77 -0
  156. package/src/operationsInterfaces/extensions.ts +234 -0
  157. package/{esm/operations/index.js → src/operationsInterfaces/index.ts} +4 -3
  158. package/src/operationsInterfaces/locations.ts +88 -0
  159. package/src/operationsInterfaces/operations.ts +22 -0
  160. package/src/operationsInterfaces/privateEndpointConnections.ts +109 -0
  161. package/src/operationsInterfaces/privateLinkResources.ts +42 -0
  162. package/src/operationsInterfaces/scriptActions.ts +73 -0
  163. package/src/operationsInterfaces/scriptExecutionHistory.ts +43 -0
  164. package/src/operationsInterfaces/virtualMachines.ts +70 -0
  165. package/tsconfig.json +3 -3
  166. package/types/arm-hdinsight.d.ts +2866 -0
  167. package/types/tsdoc-metadata.json +11 -0
  168. package/dist/arm-hdinsight.js +0 -5759
  169. package/dist/arm-hdinsight.js.map +0 -1
  170. package/dist/arm-hdinsight.min.js +0 -1
  171. package/dist/arm-hdinsight.min.js.map +0 -1
  172. package/esm/hDInsightManagementClient.d.ts +0 -27
  173. package/esm/hDInsightManagementClient.d.ts.map +0 -1
  174. package/esm/hDInsightManagementClient.js +0 -41
  175. package/esm/hDInsightManagementClient.js.map +0 -1
  176. package/esm/hDInsightManagementClientContext.d.ts +0 -17
  177. package/esm/hDInsightManagementClientContext.d.ts.map +0 -1
  178. package/esm/hDInsightManagementClientContext.js +0 -56
  179. package/esm/hDInsightManagementClientContext.js.map +0 -1
  180. package/esm/models/applicationsMappers.d.ts +0 -2
  181. package/esm/models/applicationsMappers.d.ts.map +0 -1
  182. package/esm/models/applicationsMappers.js +0 -9
  183. package/esm/models/applicationsMappers.js.map +0 -1
  184. package/esm/models/clustersMappers.d.ts +0 -2
  185. package/esm/models/clustersMappers.d.ts.map +0 -1
  186. package/esm/models/clustersMappers.js +0 -9
  187. package/esm/models/clustersMappers.js.map +0 -1
  188. package/esm/models/configurationsMappers.d.ts +0 -2
  189. package/esm/models/configurationsMappers.d.ts.map +0 -1
  190. package/esm/models/configurationsMappers.js.map +0 -1
  191. package/esm/models/extensionsMappers.d.ts +0 -2
  192. package/esm/models/extensionsMappers.d.ts.map +0 -1
  193. package/esm/models/extensionsMappers.js +0 -9
  194. package/esm/models/extensionsMappers.js.map +0 -1
  195. package/esm/models/index.d.ts +0 -2397
  196. package/esm/models/index.d.ts.map +0 -1
  197. package/esm/models/index.js.map +0 -1
  198. package/esm/models/locationsMappers.d.ts +0 -2
  199. package/esm/models/locationsMappers.d.ts.map +0 -1
  200. package/esm/models/locationsMappers.js +0 -9
  201. package/esm/models/locationsMappers.js.map +0 -1
  202. package/esm/models/mappers.d.ts +0 -94
  203. package/esm/models/mappers.d.ts.map +0 -1
  204. package/esm/models/mappers.js.map +0 -1
  205. package/esm/models/operationsMappers.d.ts +0 -2
  206. package/esm/models/operationsMappers.d.ts.map +0 -1
  207. package/esm/models/operationsMappers.js +0 -9
  208. package/esm/models/operationsMappers.js.map +0 -1
  209. package/esm/models/parameters.d.ts +0 -15
  210. package/esm/models/parameters.d.ts.map +0 -1
  211. package/esm/models/parameters.js +0 -142
  212. package/esm/models/parameters.js.map +0 -1
  213. package/esm/models/scriptActionsMappers.d.ts +0 -2
  214. package/esm/models/scriptActionsMappers.d.ts.map +0 -1
  215. package/esm/models/scriptActionsMappers.js +0 -9
  216. package/esm/models/scriptActionsMappers.js.map +0 -1
  217. package/esm/models/scriptExecutionHistoryMappers.d.ts +0 -2
  218. package/esm/models/scriptExecutionHistoryMappers.d.ts.map +0 -1
  219. package/esm/models/scriptExecutionHistoryMappers.js +0 -9
  220. package/esm/models/scriptExecutionHistoryMappers.js.map +0 -1
  221. package/esm/models/virtualMachinesMappers.d.ts +0 -2
  222. package/esm/models/virtualMachinesMappers.d.ts.map +0 -1
  223. package/esm/models/virtualMachinesMappers.js.map +0 -1
  224. package/esm/operations/applications.d.ts +0 -115
  225. package/esm/operations/applications.d.ts.map +0 -1
  226. package/esm/operations/applications.js +0 -233
  227. package/esm/operations/applications.js.map +0 -1
  228. package/esm/operations/clusters.d.ts +0 -273
  229. package/esm/operations/clusters.d.ts.map +0 -1
  230. package/esm/operations/clusters.js +0 -621
  231. package/esm/operations/clusters.js.map +0 -1
  232. package/esm/operations/configurations.d.ts +0 -90
  233. package/esm/operations/configurations.d.ts.map +0 -1
  234. package/esm/operations/configurations.js +0 -173
  235. package/esm/operations/configurations.js.map +0 -1
  236. package/esm/operations/extensions.d.ts +0 -131
  237. package/esm/operations/extensions.d.ts.map +0 -1
  238. package/esm/operations/extensions.js +0 -307
  239. package/esm/operations/extensions.js.map +0 -1
  240. package/esm/operations/index.d.ts.map +0 -1
  241. package/esm/operations/index.js.map +0 -1
  242. package/esm/operations/locations.d.ts +0 -67
  243. package/esm/operations/locations.d.ts.map +0 -1
  244. package/esm/operations/locations.js +0 -113
  245. package/esm/operations/locations.js.map +0 -1
  246. package/esm/operations/operations.d.ts +0 -46
  247. package/esm/operations/operations.d.ts.map +0 -1
  248. package/esm/operations/operations.js +0 -79
  249. package/esm/operations/operations.js.map +0 -1
  250. package/esm/operations/scriptActions.d.ts +0 -100
  251. package/esm/operations/scriptActions.d.ts.map +0 -1
  252. package/esm/operations/scriptActions.js +0 -151
  253. package/esm/operations/scriptActions.js.map +0 -1
  254. package/esm/operations/scriptExecutionHistory.d.ts +0 -76
  255. package/esm/operations/scriptExecutionHistory.d.ts.map +0 -1
  256. package/esm/operations/scriptExecutionHistory.js +0 -117
  257. package/esm/operations/scriptExecutionHistory.js.map +0 -1
  258. package/esm/operations/virtualMachines.d.ts +0 -53
  259. package/esm/operations/virtualMachines.d.ts.map +0 -1
  260. package/esm/operations/virtualMachines.js +0 -134
  261. package/esm/operations/virtualMachines.js.map +0 -1
  262. package/src/hDInsightManagementClientContext.ts +0 -62
  263. package/src/models/applicationsMappers.ts +0 -56
  264. package/src/models/clustersMappers.ts +0 -65
  265. package/src/models/locationsMappers.ts +0 -28
  266. package/src/models/operationsMappers.ts +0 -18
  267. package/src/models/scriptActionsMappers.ts +0 -15
  268. package/src/models/scriptExecutionHistoryMappers.ts +0 -15
@@ -0,0 +1,979 @@
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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers";
11
+ import * as Parameters from "../models/parameters";
12
+ import { LroEngine } from "@azure/core-lro";
13
+ import { LroImpl } from "../lroImpl";
14
+ /// <reference lib="esnext.asynciterable" />
15
+ /** Class containing Clusters operations. */
16
+ export class ClustersImpl {
17
+ /**
18
+ * Initialize a new instance of the class Clusters class.
19
+ * @param client Reference to the service client
20
+ */
21
+ constructor(client) {
22
+ this.client = client;
23
+ }
24
+ /**
25
+ * Lists the HDInsight clusters in a resource group.
26
+ * @param resourceGroupName The name of the resource group.
27
+ * @param options The options parameters.
28
+ */
29
+ listByResourceGroup(resourceGroupName, options) {
30
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
31
+ return {
32
+ next() {
33
+ return iter.next();
34
+ },
35
+ [Symbol.asyncIterator]() {
36
+ return this;
37
+ },
38
+ byPage: () => {
39
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
40
+ }
41
+ };
42
+ }
43
+ listByResourceGroupPagingPage(resourceGroupName, options) {
44
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
45
+ let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
46
+ yield yield __await(result.value || []);
47
+ let continuationToken = result.nextLink;
48
+ while (continuationToken) {
49
+ result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
50
+ continuationToken = result.nextLink;
51
+ yield yield __await(result.value || []);
52
+ }
53
+ });
54
+ }
55
+ listByResourceGroupPagingAll(resourceGroupName, options) {
56
+ return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
57
+ var e_1, _a;
58
+ try {
59
+ for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
60
+ const page = _c.value;
61
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
62
+ }
63
+ }
64
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
65
+ finally {
66
+ try {
67
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
68
+ }
69
+ finally { if (e_1) throw e_1.error; }
70
+ }
71
+ });
72
+ }
73
+ /**
74
+ * Lists all the HDInsight clusters under the subscription.
75
+ * @param options The options parameters.
76
+ */
77
+ list(options) {
78
+ const iter = this.listPagingAll(options);
79
+ return {
80
+ next() {
81
+ return iter.next();
82
+ },
83
+ [Symbol.asyncIterator]() {
84
+ return this;
85
+ },
86
+ byPage: () => {
87
+ return this.listPagingPage(options);
88
+ }
89
+ };
90
+ }
91
+ listPagingPage(options) {
92
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
93
+ let result = yield __await(this._list(options));
94
+ yield yield __await(result.value || []);
95
+ let continuationToken = result.nextLink;
96
+ while (continuationToken) {
97
+ result = yield __await(this._listNext(continuationToken, options));
98
+ continuationToken = result.nextLink;
99
+ yield yield __await(result.value || []);
100
+ }
101
+ });
102
+ }
103
+ listPagingAll(options) {
104
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
105
+ var e_2, _a;
106
+ try {
107
+ for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
108
+ const page = _c.value;
109
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
110
+ }
111
+ }
112
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
113
+ finally {
114
+ try {
115
+ if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
116
+ }
117
+ finally { if (e_2) throw e_2.error; }
118
+ }
119
+ });
120
+ }
121
+ /**
122
+ * Creates a new HDInsight cluster with the specified parameters.
123
+ * @param resourceGroupName The name of the resource group.
124
+ * @param clusterName The name of the cluster.
125
+ * @param parameters The cluster create request.
126
+ * @param options The options parameters.
127
+ */
128
+ beginCreate(resourceGroupName, clusterName, parameters, options) {
129
+ return __awaiter(this, void 0, void 0, function* () {
130
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
131
+ return this.client.sendOperationRequest(args, spec);
132
+ });
133
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
134
+ var _a;
135
+ let currentRawResponse = undefined;
136
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
137
+ const callback = (rawResponse, flatResponse) => {
138
+ currentRawResponse = rawResponse;
139
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
140
+ };
141
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
142
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
143
+ return {
144
+ flatResponse,
145
+ rawResponse: {
146
+ statusCode: currentRawResponse.status,
147
+ body: currentRawResponse.parsedBody,
148
+ headers: currentRawResponse.headers.toJSON()
149
+ }
150
+ };
151
+ });
152
+ const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, parameters, options }, createOperationSpec);
153
+ return new LroEngine(lro, {
154
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
155
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
156
+ lroResourceLocationConfig: "location"
157
+ });
158
+ });
159
+ }
160
+ /**
161
+ * Creates a new HDInsight cluster with the specified parameters.
162
+ * @param resourceGroupName The name of the resource group.
163
+ * @param clusterName The name of the cluster.
164
+ * @param parameters The cluster create request.
165
+ * @param options The options parameters.
166
+ */
167
+ beginCreateAndWait(resourceGroupName, clusterName, parameters, options) {
168
+ return __awaiter(this, void 0, void 0, function* () {
169
+ const poller = yield this.beginCreate(resourceGroupName, clusterName, parameters, options);
170
+ return poller.pollUntilDone();
171
+ });
172
+ }
173
+ /**
174
+ * Patch HDInsight cluster with the specified parameters.
175
+ * @param resourceGroupName The name of the resource group.
176
+ * @param clusterName The name of the cluster.
177
+ * @param parameters The cluster patch request.
178
+ * @param options The options parameters.
179
+ */
180
+ update(resourceGroupName, clusterName, parameters, options) {
181
+ return this.client.sendOperationRequest({ resourceGroupName, clusterName, parameters, options }, updateOperationSpec);
182
+ }
183
+ /**
184
+ * Deletes the specified HDInsight cluster.
185
+ * @param resourceGroupName The name of the resource group.
186
+ * @param clusterName The name of the cluster.
187
+ * @param options The options parameters.
188
+ */
189
+ beginDelete(resourceGroupName, clusterName, options) {
190
+ return __awaiter(this, void 0, void 0, function* () {
191
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
192
+ return this.client.sendOperationRequest(args, spec);
193
+ });
194
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
195
+ var _a;
196
+ let currentRawResponse = undefined;
197
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
198
+ const callback = (rawResponse, flatResponse) => {
199
+ currentRawResponse = rawResponse;
200
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
201
+ };
202
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
203
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
204
+ return {
205
+ flatResponse,
206
+ rawResponse: {
207
+ statusCode: currentRawResponse.status,
208
+ body: currentRawResponse.parsedBody,
209
+ headers: currentRawResponse.headers.toJSON()
210
+ }
211
+ };
212
+ });
213
+ const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, options }, deleteOperationSpec);
214
+ return new LroEngine(lro, {
215
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
216
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
217
+ lroResourceLocationConfig: "location"
218
+ });
219
+ });
220
+ }
221
+ /**
222
+ * Deletes the specified HDInsight cluster.
223
+ * @param resourceGroupName The name of the resource group.
224
+ * @param clusterName The name of the cluster.
225
+ * @param options The options parameters.
226
+ */
227
+ beginDeleteAndWait(resourceGroupName, clusterName, options) {
228
+ return __awaiter(this, void 0, void 0, function* () {
229
+ const poller = yield this.beginDelete(resourceGroupName, clusterName, options);
230
+ return poller.pollUntilDone();
231
+ });
232
+ }
233
+ /**
234
+ * Gets the specified cluster.
235
+ * @param resourceGroupName The name of the resource group.
236
+ * @param clusterName The name of the cluster.
237
+ * @param options The options parameters.
238
+ */
239
+ get(resourceGroupName, clusterName, options) {
240
+ return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, getOperationSpec);
241
+ }
242
+ /**
243
+ * Lists the HDInsight clusters in a resource group.
244
+ * @param resourceGroupName The name of the resource group.
245
+ * @param options The options parameters.
246
+ */
247
+ _listByResourceGroup(resourceGroupName, options) {
248
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
249
+ }
250
+ /**
251
+ * Resizes the specified HDInsight cluster to the specified size.
252
+ * @param resourceGroupName The name of the resource group.
253
+ * @param clusterName The name of the cluster.
254
+ * @param roleName The constant value for the roleName
255
+ * @param parameters The parameters for the resize operation.
256
+ * @param options The options parameters.
257
+ */
258
+ beginResize(resourceGroupName, clusterName, roleName, parameters, options) {
259
+ return __awaiter(this, void 0, void 0, function* () {
260
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
261
+ return this.client.sendOperationRequest(args, spec);
262
+ });
263
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
264
+ var _a;
265
+ let currentRawResponse = undefined;
266
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
267
+ const callback = (rawResponse, flatResponse) => {
268
+ currentRawResponse = rawResponse;
269
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
270
+ };
271
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
272
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
273
+ return {
274
+ flatResponse,
275
+ rawResponse: {
276
+ statusCode: currentRawResponse.status,
277
+ body: currentRawResponse.parsedBody,
278
+ headers: currentRawResponse.headers.toJSON()
279
+ }
280
+ };
281
+ });
282
+ const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, roleName, parameters, options }, resizeOperationSpec);
283
+ return new LroEngine(lro, {
284
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
285
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
286
+ lroResourceLocationConfig: "location"
287
+ });
288
+ });
289
+ }
290
+ /**
291
+ * Resizes the specified HDInsight cluster to the specified size.
292
+ * @param resourceGroupName The name of the resource group.
293
+ * @param clusterName The name of the cluster.
294
+ * @param roleName The constant value for the roleName
295
+ * @param parameters The parameters for the resize operation.
296
+ * @param options The options parameters.
297
+ */
298
+ beginResizeAndWait(resourceGroupName, clusterName, roleName, parameters, options) {
299
+ return __awaiter(this, void 0, void 0, function* () {
300
+ const poller = yield this.beginResize(resourceGroupName, clusterName, roleName, parameters, options);
301
+ return poller.pollUntilDone();
302
+ });
303
+ }
304
+ /**
305
+ * Updates the Autoscale Configuration for HDInsight cluster.
306
+ * @param resourceGroupName The name of the resource group.
307
+ * @param clusterName The name of the cluster.
308
+ * @param roleName The constant value for the roleName
309
+ * @param parameters The parameters for the update autoscale configuration operation.
310
+ * @param options The options parameters.
311
+ */
312
+ beginUpdateAutoScaleConfiguration(resourceGroupName, clusterName, roleName, parameters, options) {
313
+ return __awaiter(this, void 0, void 0, function* () {
314
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
315
+ return this.client.sendOperationRequest(args, spec);
316
+ });
317
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
318
+ var _a;
319
+ let currentRawResponse = undefined;
320
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
321
+ const callback = (rawResponse, flatResponse) => {
322
+ currentRawResponse = rawResponse;
323
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
324
+ };
325
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
326
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
327
+ return {
328
+ flatResponse,
329
+ rawResponse: {
330
+ statusCode: currentRawResponse.status,
331
+ body: currentRawResponse.parsedBody,
332
+ headers: currentRawResponse.headers.toJSON()
333
+ }
334
+ };
335
+ });
336
+ const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, roleName, parameters, options }, updateAutoScaleConfigurationOperationSpec);
337
+ return new LroEngine(lro, {
338
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
339
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
340
+ lroResourceLocationConfig: "location"
341
+ });
342
+ });
343
+ }
344
+ /**
345
+ * Updates the Autoscale Configuration for HDInsight cluster.
346
+ * @param resourceGroupName The name of the resource group.
347
+ * @param clusterName The name of the cluster.
348
+ * @param roleName The constant value for the roleName
349
+ * @param parameters The parameters for the update autoscale configuration operation.
350
+ * @param options The options parameters.
351
+ */
352
+ beginUpdateAutoScaleConfigurationAndWait(resourceGroupName, clusterName, roleName, parameters, options) {
353
+ return __awaiter(this, void 0, void 0, function* () {
354
+ const poller = yield this.beginUpdateAutoScaleConfiguration(resourceGroupName, clusterName, roleName, parameters, options);
355
+ return poller.pollUntilDone();
356
+ });
357
+ }
358
+ /**
359
+ * Lists all the HDInsight clusters under the subscription.
360
+ * @param options The options parameters.
361
+ */
362
+ _list(options) {
363
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
364
+ }
365
+ /**
366
+ * Rotate disk encryption key of the specified HDInsight cluster.
367
+ * @param resourceGroupName The name of the resource group.
368
+ * @param clusterName The name of the cluster.
369
+ * @param parameters The parameters for the disk encryption operation.
370
+ * @param options The options parameters.
371
+ */
372
+ beginRotateDiskEncryptionKey(resourceGroupName, clusterName, parameters, options) {
373
+ return __awaiter(this, void 0, void 0, function* () {
374
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
375
+ return this.client.sendOperationRequest(args, spec);
376
+ });
377
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
378
+ var _a;
379
+ let currentRawResponse = undefined;
380
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
381
+ const callback = (rawResponse, flatResponse) => {
382
+ currentRawResponse = rawResponse;
383
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
384
+ };
385
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
386
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
387
+ return {
388
+ flatResponse,
389
+ rawResponse: {
390
+ statusCode: currentRawResponse.status,
391
+ body: currentRawResponse.parsedBody,
392
+ headers: currentRawResponse.headers.toJSON()
393
+ }
394
+ };
395
+ });
396
+ const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, parameters, options }, rotateDiskEncryptionKeyOperationSpec);
397
+ return new LroEngine(lro, {
398
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
399
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
400
+ lroResourceLocationConfig: "location"
401
+ });
402
+ });
403
+ }
404
+ /**
405
+ * Rotate disk encryption key of the specified HDInsight cluster.
406
+ * @param resourceGroupName The name of the resource group.
407
+ * @param clusterName The name of the cluster.
408
+ * @param parameters The parameters for the disk encryption operation.
409
+ * @param options The options parameters.
410
+ */
411
+ beginRotateDiskEncryptionKeyAndWait(resourceGroupName, clusterName, parameters, options) {
412
+ return __awaiter(this, void 0, void 0, function* () {
413
+ const poller = yield this.beginRotateDiskEncryptionKey(resourceGroupName, clusterName, parameters, options);
414
+ return poller.pollUntilDone();
415
+ });
416
+ }
417
+ /**
418
+ * Gets the gateway settings for the specified cluster.
419
+ * @param resourceGroupName The name of the resource group.
420
+ * @param clusterName The name of the cluster.
421
+ * @param options The options parameters.
422
+ */
423
+ getGatewaySettings(resourceGroupName, clusterName, options) {
424
+ return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, getGatewaySettingsOperationSpec);
425
+ }
426
+ /**
427
+ * Configures the gateway settings on the specified cluster.
428
+ * @param resourceGroupName The name of the resource group.
429
+ * @param clusterName The name of the cluster.
430
+ * @param parameters The cluster configurations.
431
+ * @param options The options parameters.
432
+ */
433
+ beginUpdateGatewaySettings(resourceGroupName, clusterName, parameters, options) {
434
+ return __awaiter(this, void 0, void 0, function* () {
435
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
436
+ return this.client.sendOperationRequest(args, spec);
437
+ });
438
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
439
+ var _a;
440
+ let currentRawResponse = undefined;
441
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
442
+ const callback = (rawResponse, flatResponse) => {
443
+ currentRawResponse = rawResponse;
444
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
445
+ };
446
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
447
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
448
+ return {
449
+ flatResponse,
450
+ rawResponse: {
451
+ statusCode: currentRawResponse.status,
452
+ body: currentRawResponse.parsedBody,
453
+ headers: currentRawResponse.headers.toJSON()
454
+ }
455
+ };
456
+ });
457
+ const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, parameters, options }, updateGatewaySettingsOperationSpec);
458
+ return new LroEngine(lro, {
459
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
460
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
461
+ lroResourceLocationConfig: "location"
462
+ });
463
+ });
464
+ }
465
+ /**
466
+ * Configures the gateway settings on the specified cluster.
467
+ * @param resourceGroupName The name of the resource group.
468
+ * @param clusterName The name of the cluster.
469
+ * @param parameters The cluster configurations.
470
+ * @param options The options parameters.
471
+ */
472
+ beginUpdateGatewaySettingsAndWait(resourceGroupName, clusterName, parameters, options) {
473
+ return __awaiter(this, void 0, void 0, function* () {
474
+ const poller = yield this.beginUpdateGatewaySettings(resourceGroupName, clusterName, parameters, options);
475
+ return poller.pollUntilDone();
476
+ });
477
+ }
478
+ /**
479
+ * The the async operation status.
480
+ * @param resourceGroupName The name of the resource group.
481
+ * @param clusterName The name of the cluster.
482
+ * @param operationId The long running operation id.
483
+ * @param options The options parameters.
484
+ */
485
+ getAzureAsyncOperationStatus(resourceGroupName, clusterName, operationId, options) {
486
+ return this.client.sendOperationRequest({ resourceGroupName, clusterName, operationId, options }, getAzureAsyncOperationStatusOperationSpec);
487
+ }
488
+ /**
489
+ * Updates the cluster identity certificate.
490
+ * @param resourceGroupName The name of the resource group.
491
+ * @param clusterName The name of the cluster.
492
+ * @param parameters The cluster configurations.
493
+ * @param options The options parameters.
494
+ */
495
+ beginUpdateIdentityCertificate(resourceGroupName, clusterName, parameters, options) {
496
+ return __awaiter(this, void 0, void 0, function* () {
497
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
498
+ return this.client.sendOperationRequest(args, spec);
499
+ });
500
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
501
+ var _a;
502
+ let currentRawResponse = undefined;
503
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
504
+ const callback = (rawResponse, flatResponse) => {
505
+ currentRawResponse = rawResponse;
506
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
507
+ };
508
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
509
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
510
+ return {
511
+ flatResponse,
512
+ rawResponse: {
513
+ statusCode: currentRawResponse.status,
514
+ body: currentRawResponse.parsedBody,
515
+ headers: currentRawResponse.headers.toJSON()
516
+ }
517
+ };
518
+ });
519
+ const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, parameters, options }, updateIdentityCertificateOperationSpec);
520
+ return new LroEngine(lro, {
521
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
522
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
523
+ lroResourceLocationConfig: "location"
524
+ });
525
+ });
526
+ }
527
+ /**
528
+ * Updates the cluster identity certificate.
529
+ * @param resourceGroupName The name of the resource group.
530
+ * @param clusterName The name of the cluster.
531
+ * @param parameters The cluster configurations.
532
+ * @param options The options parameters.
533
+ */
534
+ beginUpdateIdentityCertificateAndWait(resourceGroupName, clusterName, parameters, options) {
535
+ return __awaiter(this, void 0, void 0, function* () {
536
+ const poller = yield this.beginUpdateIdentityCertificate(resourceGroupName, clusterName, parameters, options);
537
+ return poller.pollUntilDone();
538
+ });
539
+ }
540
+ /**
541
+ * Executes script actions on the specified HDInsight cluster.
542
+ * @param resourceGroupName The name of the resource group.
543
+ * @param clusterName The name of the cluster.
544
+ * @param parameters The parameters for executing script actions.
545
+ * @param options The options parameters.
546
+ */
547
+ beginExecuteScriptActions(resourceGroupName, clusterName, parameters, options) {
548
+ return __awaiter(this, void 0, void 0, function* () {
549
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
550
+ return this.client.sendOperationRequest(args, spec);
551
+ });
552
+ const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
553
+ var _a;
554
+ let currentRawResponse = undefined;
555
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
556
+ const callback = (rawResponse, flatResponse) => {
557
+ currentRawResponse = rawResponse;
558
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
559
+ };
560
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
561
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
562
+ return {
563
+ flatResponse,
564
+ rawResponse: {
565
+ statusCode: currentRawResponse.status,
566
+ body: currentRawResponse.parsedBody,
567
+ headers: currentRawResponse.headers.toJSON()
568
+ }
569
+ };
570
+ });
571
+ const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, parameters, options }, executeScriptActionsOperationSpec);
572
+ return new LroEngine(lro, {
573
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
574
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
575
+ lroResourceLocationConfig: "location"
576
+ });
577
+ });
578
+ }
579
+ /**
580
+ * Executes script actions on the specified HDInsight cluster.
581
+ * @param resourceGroupName The name of the resource group.
582
+ * @param clusterName The name of the cluster.
583
+ * @param parameters The parameters for executing script actions.
584
+ * @param options The options parameters.
585
+ */
586
+ beginExecuteScriptActionsAndWait(resourceGroupName, clusterName, parameters, options) {
587
+ return __awaiter(this, void 0, void 0, function* () {
588
+ const poller = yield this.beginExecuteScriptActions(resourceGroupName, clusterName, parameters, options);
589
+ return poller.pollUntilDone();
590
+ });
591
+ }
592
+ /**
593
+ * ListByResourceGroupNext
594
+ * @param resourceGroupName The name of the resource group.
595
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
596
+ * @param options The options parameters.
597
+ */
598
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
599
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
600
+ }
601
+ /**
602
+ * ListNext
603
+ * @param nextLink The nextLink from the previous successful call to the List method.
604
+ * @param options The options parameters.
605
+ */
606
+ _listNext(nextLink, options) {
607
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
608
+ }
609
+ }
610
+ // Operation Specifications
611
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
612
+ const createOperationSpec = {
613
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}",
614
+ httpMethod: "PUT",
615
+ responses: {
616
+ 200: {
617
+ bodyMapper: Mappers.Cluster
618
+ },
619
+ 201: {
620
+ bodyMapper: Mappers.Cluster
621
+ },
622
+ 202: {
623
+ bodyMapper: Mappers.Cluster
624
+ },
625
+ 204: {
626
+ bodyMapper: Mappers.Cluster
627
+ },
628
+ default: {
629
+ bodyMapper: Mappers.ErrorResponse
630
+ }
631
+ },
632
+ requestBody: Parameters.parameters,
633
+ queryParameters: [Parameters.apiVersion],
634
+ urlParameters: [
635
+ Parameters.$host,
636
+ Parameters.subscriptionId,
637
+ Parameters.resourceGroupName,
638
+ Parameters.clusterName
639
+ ],
640
+ headerParameters: [Parameters.contentType, Parameters.accept],
641
+ mediaType: "json",
642
+ serializer
643
+ };
644
+ const updateOperationSpec = {
645
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}",
646
+ httpMethod: "PATCH",
647
+ responses: {
648
+ 200: {
649
+ bodyMapper: Mappers.Cluster
650
+ },
651
+ default: {
652
+ bodyMapper: Mappers.ErrorResponse
653
+ }
654
+ },
655
+ requestBody: Parameters.parameters1,
656
+ queryParameters: [Parameters.apiVersion],
657
+ urlParameters: [
658
+ Parameters.$host,
659
+ Parameters.subscriptionId,
660
+ Parameters.resourceGroupName,
661
+ Parameters.clusterName
662
+ ],
663
+ headerParameters: [Parameters.contentType, Parameters.accept],
664
+ mediaType: "json",
665
+ serializer
666
+ };
667
+ const deleteOperationSpec = {
668
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}",
669
+ httpMethod: "DELETE",
670
+ responses: {
671
+ 200: {},
672
+ 201: {},
673
+ 202: {},
674
+ 204: {},
675
+ default: {
676
+ bodyMapper: Mappers.ErrorResponse
677
+ }
678
+ },
679
+ queryParameters: [Parameters.apiVersion],
680
+ urlParameters: [
681
+ Parameters.$host,
682
+ Parameters.subscriptionId,
683
+ Parameters.resourceGroupName,
684
+ Parameters.clusterName
685
+ ],
686
+ headerParameters: [Parameters.accept],
687
+ serializer
688
+ };
689
+ const getOperationSpec = {
690
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}",
691
+ httpMethod: "GET",
692
+ responses: {
693
+ 200: {
694
+ bodyMapper: Mappers.Cluster
695
+ },
696
+ default: {
697
+ bodyMapper: Mappers.ErrorResponse
698
+ }
699
+ },
700
+ queryParameters: [Parameters.apiVersion],
701
+ urlParameters: [
702
+ Parameters.$host,
703
+ Parameters.subscriptionId,
704
+ Parameters.resourceGroupName,
705
+ Parameters.clusterName
706
+ ],
707
+ headerParameters: [Parameters.accept],
708
+ serializer
709
+ };
710
+ const listByResourceGroupOperationSpec = {
711
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters",
712
+ httpMethod: "GET",
713
+ responses: {
714
+ 200: {
715
+ bodyMapper: Mappers.ClusterListResult
716
+ },
717
+ default: {
718
+ bodyMapper: Mappers.ErrorResponse
719
+ }
720
+ },
721
+ queryParameters: [Parameters.apiVersion],
722
+ urlParameters: [
723
+ Parameters.$host,
724
+ Parameters.subscriptionId,
725
+ Parameters.resourceGroupName
726
+ ],
727
+ headerParameters: [Parameters.accept],
728
+ serializer
729
+ };
730
+ const resizeOperationSpec = {
731
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/roles/{roleName}/resize",
732
+ httpMethod: "POST",
733
+ responses: {
734
+ 200: {},
735
+ 201: {},
736
+ 202: {},
737
+ 204: {},
738
+ default: {
739
+ bodyMapper: Mappers.ErrorResponse
740
+ }
741
+ },
742
+ requestBody: Parameters.parameters2,
743
+ queryParameters: [Parameters.apiVersion],
744
+ urlParameters: [
745
+ Parameters.$host,
746
+ Parameters.subscriptionId,
747
+ Parameters.resourceGroupName,
748
+ Parameters.clusterName,
749
+ Parameters.roleName
750
+ ],
751
+ headerParameters: [Parameters.contentType, Parameters.accept],
752
+ mediaType: "json",
753
+ serializer
754
+ };
755
+ const updateAutoScaleConfigurationOperationSpec = {
756
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/roles/{roleName}/autoscale",
757
+ httpMethod: "POST",
758
+ responses: {
759
+ 200: {},
760
+ 201: {},
761
+ 202: {},
762
+ 204: {},
763
+ default: {
764
+ bodyMapper: Mappers.ErrorResponse
765
+ }
766
+ },
767
+ requestBody: Parameters.parameters3,
768
+ queryParameters: [Parameters.apiVersion],
769
+ urlParameters: [
770
+ Parameters.$host,
771
+ Parameters.subscriptionId,
772
+ Parameters.resourceGroupName,
773
+ Parameters.clusterName,
774
+ Parameters.roleName
775
+ ],
776
+ headerParameters: [Parameters.contentType, Parameters.accept],
777
+ mediaType: "json",
778
+ serializer
779
+ };
780
+ const listOperationSpec = {
781
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/clusters",
782
+ httpMethod: "GET",
783
+ responses: {
784
+ 200: {
785
+ bodyMapper: Mappers.ClusterListResult
786
+ },
787
+ default: {
788
+ bodyMapper: Mappers.ErrorResponse
789
+ }
790
+ },
791
+ queryParameters: [Parameters.apiVersion],
792
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
793
+ headerParameters: [Parameters.accept],
794
+ serializer
795
+ };
796
+ const rotateDiskEncryptionKeyOperationSpec = {
797
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/rotatediskencryptionkey",
798
+ httpMethod: "POST",
799
+ responses: {
800
+ 200: {},
801
+ 201: {},
802
+ 202: {},
803
+ 204: {},
804
+ default: {
805
+ bodyMapper: Mappers.ErrorResponse
806
+ }
807
+ },
808
+ requestBody: Parameters.parameters4,
809
+ queryParameters: [Parameters.apiVersion],
810
+ urlParameters: [
811
+ Parameters.$host,
812
+ Parameters.subscriptionId,
813
+ Parameters.resourceGroupName,
814
+ Parameters.clusterName
815
+ ],
816
+ headerParameters: [Parameters.contentType, Parameters.accept],
817
+ mediaType: "json",
818
+ serializer
819
+ };
820
+ const getGatewaySettingsOperationSpec = {
821
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/getGatewaySettings",
822
+ httpMethod: "POST",
823
+ responses: {
824
+ 200: {
825
+ bodyMapper: Mappers.GatewaySettings
826
+ },
827
+ default: {
828
+ bodyMapper: Mappers.ErrorResponse
829
+ }
830
+ },
831
+ queryParameters: [Parameters.apiVersion],
832
+ urlParameters: [
833
+ Parameters.$host,
834
+ Parameters.subscriptionId,
835
+ Parameters.resourceGroupName,
836
+ Parameters.clusterName
837
+ ],
838
+ headerParameters: [Parameters.accept],
839
+ serializer
840
+ };
841
+ const updateGatewaySettingsOperationSpec = {
842
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/updateGatewaySettings",
843
+ httpMethod: "POST",
844
+ responses: {
845
+ 200: {},
846
+ 201: {},
847
+ 202: {},
848
+ 204: {},
849
+ default: {
850
+ bodyMapper: Mappers.ErrorResponse
851
+ }
852
+ },
853
+ requestBody: Parameters.parameters5,
854
+ queryParameters: [Parameters.apiVersion],
855
+ urlParameters: [
856
+ Parameters.$host,
857
+ Parameters.subscriptionId,
858
+ Parameters.resourceGroupName,
859
+ Parameters.clusterName
860
+ ],
861
+ headerParameters: [Parameters.contentType, Parameters.accept],
862
+ mediaType: "json",
863
+ serializer
864
+ };
865
+ const getAzureAsyncOperationStatusOperationSpec = {
866
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/azureasyncoperations/{operationId}",
867
+ httpMethod: "GET",
868
+ responses: {
869
+ 200: {
870
+ bodyMapper: Mappers.AsyncOperationResult
871
+ },
872
+ default: {
873
+ bodyMapper: Mappers.ErrorResponse
874
+ }
875
+ },
876
+ queryParameters: [Parameters.apiVersion],
877
+ urlParameters: [
878
+ Parameters.$host,
879
+ Parameters.subscriptionId,
880
+ Parameters.resourceGroupName,
881
+ Parameters.clusterName,
882
+ Parameters.operationId
883
+ ],
884
+ headerParameters: [Parameters.accept],
885
+ serializer
886
+ };
887
+ const updateIdentityCertificateOperationSpec = {
888
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/updateClusterIdentityCertificate",
889
+ httpMethod: "POST",
890
+ responses: {
891
+ 200: {},
892
+ 201: {},
893
+ 202: {},
894
+ 204: {},
895
+ default: {
896
+ bodyMapper: Mappers.ErrorResponse
897
+ }
898
+ },
899
+ requestBody: Parameters.parameters6,
900
+ queryParameters: [Parameters.apiVersion],
901
+ urlParameters: [
902
+ Parameters.$host,
903
+ Parameters.subscriptionId,
904
+ Parameters.resourceGroupName,
905
+ Parameters.clusterName
906
+ ],
907
+ headerParameters: [Parameters.contentType, Parameters.accept],
908
+ mediaType: "json",
909
+ serializer
910
+ };
911
+ const executeScriptActionsOperationSpec = {
912
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/executeScriptActions",
913
+ httpMethod: "POST",
914
+ responses: {
915
+ 200: {},
916
+ 201: {},
917
+ 202: {},
918
+ 204: {},
919
+ 404: {
920
+ isError: true
921
+ },
922
+ default: {
923
+ bodyMapper: Mappers.ErrorResponse
924
+ }
925
+ },
926
+ requestBody: Parameters.parameters7,
927
+ queryParameters: [Parameters.apiVersion],
928
+ urlParameters: [
929
+ Parameters.$host,
930
+ Parameters.subscriptionId,
931
+ Parameters.resourceGroupName,
932
+ Parameters.clusterName
933
+ ],
934
+ headerParameters: [Parameters.contentType, Parameters.accept],
935
+ mediaType: "json",
936
+ serializer
937
+ };
938
+ const listByResourceGroupNextOperationSpec = {
939
+ path: "{nextLink}",
940
+ httpMethod: "GET",
941
+ responses: {
942
+ 200: {
943
+ bodyMapper: Mappers.ClusterListResult
944
+ },
945
+ default: {
946
+ bodyMapper: Mappers.ErrorResponse
947
+ }
948
+ },
949
+ queryParameters: [Parameters.apiVersion],
950
+ urlParameters: [
951
+ Parameters.$host,
952
+ Parameters.subscriptionId,
953
+ Parameters.resourceGroupName,
954
+ Parameters.nextLink
955
+ ],
956
+ headerParameters: [Parameters.accept],
957
+ serializer
958
+ };
959
+ const listNextOperationSpec = {
960
+ path: "{nextLink}",
961
+ httpMethod: "GET",
962
+ responses: {
963
+ 200: {
964
+ bodyMapper: Mappers.ClusterListResult
965
+ },
966
+ default: {
967
+ bodyMapper: Mappers.ErrorResponse
968
+ }
969
+ },
970
+ queryParameters: [Parameters.apiVersion],
971
+ urlParameters: [
972
+ Parameters.$host,
973
+ Parameters.subscriptionId,
974
+ Parameters.nextLink
975
+ ],
976
+ headerParameters: [Parameters.accept],
977
+ serializer
978
+ };
979
+ //# sourceMappingURL=clusters.js.map