@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,126 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ Application,
13
+ ApplicationsListByClusterOptionalParams,
14
+ ApplicationsGetOptionalParams,
15
+ ApplicationsGetResponse,
16
+ ApplicationsCreateOptionalParams,
17
+ ApplicationsCreateResponse,
18
+ ApplicationsDeleteOptionalParams,
19
+ ApplicationsGetAzureAsyncOperationStatusOptionalParams,
20
+ ApplicationsGetAzureAsyncOperationStatusResponse
21
+ } from "../models";
22
+
23
+ /// <reference lib="esnext.asynciterable" />
24
+ /** Interface representing a Applications. */
25
+ export interface Applications {
26
+ /**
27
+ * Lists all of the applications for the HDInsight cluster.
28
+ * @param resourceGroupName The name of the resource group.
29
+ * @param clusterName The name of the cluster.
30
+ * @param options The options parameters.
31
+ */
32
+ listByCluster(
33
+ resourceGroupName: string,
34
+ clusterName: string,
35
+ options?: ApplicationsListByClusterOptionalParams
36
+ ): PagedAsyncIterableIterator<Application>;
37
+ /**
38
+ * Gets properties of the specified application.
39
+ * @param resourceGroupName The name of the resource group.
40
+ * @param clusterName The name of the cluster.
41
+ * @param applicationName The constant value for the application name.
42
+ * @param options The options parameters.
43
+ */
44
+ get(
45
+ resourceGroupName: string,
46
+ clusterName: string,
47
+ applicationName: string,
48
+ options?: ApplicationsGetOptionalParams
49
+ ): Promise<ApplicationsGetResponse>;
50
+ /**
51
+ * Creates applications for the HDInsight cluster.
52
+ * @param resourceGroupName The name of the resource group.
53
+ * @param clusterName The name of the cluster.
54
+ * @param applicationName The constant value for the application name.
55
+ * @param parameters The application create request.
56
+ * @param options The options parameters.
57
+ */
58
+ beginCreate(
59
+ resourceGroupName: string,
60
+ clusterName: string,
61
+ applicationName: string,
62
+ parameters: Application,
63
+ options?: ApplicationsCreateOptionalParams
64
+ ): Promise<
65
+ PollerLike<
66
+ PollOperationState<ApplicationsCreateResponse>,
67
+ ApplicationsCreateResponse
68
+ >
69
+ >;
70
+ /**
71
+ * Creates applications for the HDInsight cluster.
72
+ * @param resourceGroupName The name of the resource group.
73
+ * @param clusterName The name of the cluster.
74
+ * @param applicationName The constant value for the application name.
75
+ * @param parameters The application create request.
76
+ * @param options The options parameters.
77
+ */
78
+ beginCreateAndWait(
79
+ resourceGroupName: string,
80
+ clusterName: string,
81
+ applicationName: string,
82
+ parameters: Application,
83
+ options?: ApplicationsCreateOptionalParams
84
+ ): Promise<ApplicationsCreateResponse>;
85
+ /**
86
+ * Deletes the specified application on the HDInsight cluster.
87
+ * @param resourceGroupName The name of the resource group.
88
+ * @param clusterName The name of the cluster.
89
+ * @param applicationName The constant value for the application name.
90
+ * @param options The options parameters.
91
+ */
92
+ beginDelete(
93
+ resourceGroupName: string,
94
+ clusterName: string,
95
+ applicationName: string,
96
+ options?: ApplicationsDeleteOptionalParams
97
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
98
+ /**
99
+ * Deletes the specified application on the HDInsight cluster.
100
+ * @param resourceGroupName The name of the resource group.
101
+ * @param clusterName The name of the cluster.
102
+ * @param applicationName The constant value for the application name.
103
+ * @param options The options parameters.
104
+ */
105
+ beginDeleteAndWait(
106
+ resourceGroupName: string,
107
+ clusterName: string,
108
+ applicationName: string,
109
+ options?: ApplicationsDeleteOptionalParams
110
+ ): Promise<void>;
111
+ /**
112
+ * Gets the async operation status.
113
+ * @param resourceGroupName The name of the resource group.
114
+ * @param clusterName The name of the cluster.
115
+ * @param applicationName The constant value for the application name.
116
+ * @param operationId The long running operation id.
117
+ * @param options The options parameters.
118
+ */
119
+ getAzureAsyncOperationStatus(
120
+ resourceGroupName: string,
121
+ clusterName: string,
122
+ applicationName: string,
123
+ operationId: string,
124
+ options?: ApplicationsGetAzureAsyncOperationStatusOptionalParams
125
+ ): Promise<ApplicationsGetAzureAsyncOperationStatusResponse>;
126
+ }
@@ -0,0 +1,327 @@
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
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ Cluster,
13
+ ClustersListByResourceGroupOptionalParams,
14
+ ClustersListOptionalParams,
15
+ ClusterCreateParametersExtended,
16
+ ClustersCreateOptionalParams,
17
+ ClustersCreateResponse,
18
+ ClusterPatchParameters,
19
+ ClustersUpdateOptionalParams,
20
+ ClustersUpdateResponse,
21
+ ClustersDeleteOptionalParams,
22
+ ClustersGetOptionalParams,
23
+ ClustersGetResponse,
24
+ ClusterResizeParameters,
25
+ RoleName,
26
+ ClustersResizeOptionalParams,
27
+ AutoscaleConfigurationUpdateParameter,
28
+ ClustersUpdateAutoScaleConfigurationOptionalParams,
29
+ ClusterDiskEncryptionParameters,
30
+ ClustersRotateDiskEncryptionKeyOptionalParams,
31
+ ClustersGetGatewaySettingsOptionalParams,
32
+ ClustersGetGatewaySettingsResponse,
33
+ UpdateGatewaySettingsParameters,
34
+ ClustersUpdateGatewaySettingsOptionalParams,
35
+ ClustersGetAzureAsyncOperationStatusOptionalParams,
36
+ ClustersGetAzureAsyncOperationStatusResponse,
37
+ UpdateClusterIdentityCertificateParameters,
38
+ ClustersUpdateIdentityCertificateOptionalParams,
39
+ ExecuteScriptActionParameters,
40
+ ClustersExecuteScriptActionsOptionalParams
41
+ } from "../models";
42
+
43
+ /// <reference lib="esnext.asynciterable" />
44
+ /** Interface representing a Clusters. */
45
+ export interface Clusters {
46
+ /**
47
+ * Lists the HDInsight clusters in a resource group.
48
+ * @param resourceGroupName The name of the resource group.
49
+ * @param options The options parameters.
50
+ */
51
+ listByResourceGroup(
52
+ resourceGroupName: string,
53
+ options?: ClustersListByResourceGroupOptionalParams
54
+ ): PagedAsyncIterableIterator<Cluster>;
55
+ /**
56
+ * Lists all the HDInsight clusters under the subscription.
57
+ * @param options The options parameters.
58
+ */
59
+ list(
60
+ options?: ClustersListOptionalParams
61
+ ): PagedAsyncIterableIterator<Cluster>;
62
+ /**
63
+ * Creates a new HDInsight cluster with the specified parameters.
64
+ * @param resourceGroupName The name of the resource group.
65
+ * @param clusterName The name of the cluster.
66
+ * @param parameters The cluster create request.
67
+ * @param options The options parameters.
68
+ */
69
+ beginCreate(
70
+ resourceGroupName: string,
71
+ clusterName: string,
72
+ parameters: ClusterCreateParametersExtended,
73
+ options?: ClustersCreateOptionalParams
74
+ ): Promise<
75
+ PollerLike<
76
+ PollOperationState<ClustersCreateResponse>,
77
+ ClustersCreateResponse
78
+ >
79
+ >;
80
+ /**
81
+ * Creates a new HDInsight cluster with the specified parameters.
82
+ * @param resourceGroupName The name of the resource group.
83
+ * @param clusterName The name of the cluster.
84
+ * @param parameters The cluster create request.
85
+ * @param options The options parameters.
86
+ */
87
+ beginCreateAndWait(
88
+ resourceGroupName: string,
89
+ clusterName: string,
90
+ parameters: ClusterCreateParametersExtended,
91
+ options?: ClustersCreateOptionalParams
92
+ ): Promise<ClustersCreateResponse>;
93
+ /**
94
+ * Patch HDInsight cluster with the specified parameters.
95
+ * @param resourceGroupName The name of the resource group.
96
+ * @param clusterName The name of the cluster.
97
+ * @param parameters The cluster patch request.
98
+ * @param options The options parameters.
99
+ */
100
+ update(
101
+ resourceGroupName: string,
102
+ clusterName: string,
103
+ parameters: ClusterPatchParameters,
104
+ options?: ClustersUpdateOptionalParams
105
+ ): Promise<ClustersUpdateResponse>;
106
+ /**
107
+ * Deletes the specified HDInsight cluster.
108
+ * @param resourceGroupName The name of the resource group.
109
+ * @param clusterName The name of the cluster.
110
+ * @param options The options parameters.
111
+ */
112
+ beginDelete(
113
+ resourceGroupName: string,
114
+ clusterName: string,
115
+ options?: ClustersDeleteOptionalParams
116
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
117
+ /**
118
+ * Deletes the specified HDInsight cluster.
119
+ * @param resourceGroupName The name of the resource group.
120
+ * @param clusterName The name of the cluster.
121
+ * @param options The options parameters.
122
+ */
123
+ beginDeleteAndWait(
124
+ resourceGroupName: string,
125
+ clusterName: string,
126
+ options?: ClustersDeleteOptionalParams
127
+ ): Promise<void>;
128
+ /**
129
+ * Gets the specified cluster.
130
+ * @param resourceGroupName The name of the resource group.
131
+ * @param clusterName The name of the cluster.
132
+ * @param options The options parameters.
133
+ */
134
+ get(
135
+ resourceGroupName: string,
136
+ clusterName: string,
137
+ options?: ClustersGetOptionalParams
138
+ ): Promise<ClustersGetResponse>;
139
+ /**
140
+ * Resizes the specified HDInsight cluster to the specified size.
141
+ * @param resourceGroupName The name of the resource group.
142
+ * @param clusterName The name of the cluster.
143
+ * @param roleName The constant value for the roleName
144
+ * @param parameters The parameters for the resize operation.
145
+ * @param options The options parameters.
146
+ */
147
+ beginResize(
148
+ resourceGroupName: string,
149
+ clusterName: string,
150
+ roleName: RoleName,
151
+ parameters: ClusterResizeParameters,
152
+ options?: ClustersResizeOptionalParams
153
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
154
+ /**
155
+ * Resizes the specified HDInsight cluster to the specified size.
156
+ * @param resourceGroupName The name of the resource group.
157
+ * @param clusterName The name of the cluster.
158
+ * @param roleName The constant value for the roleName
159
+ * @param parameters The parameters for the resize operation.
160
+ * @param options The options parameters.
161
+ */
162
+ beginResizeAndWait(
163
+ resourceGroupName: string,
164
+ clusterName: string,
165
+ roleName: RoleName,
166
+ parameters: ClusterResizeParameters,
167
+ options?: ClustersResizeOptionalParams
168
+ ): Promise<void>;
169
+ /**
170
+ * Updates the Autoscale Configuration for HDInsight cluster.
171
+ * @param resourceGroupName The name of the resource group.
172
+ * @param clusterName The name of the cluster.
173
+ * @param roleName The constant value for the roleName
174
+ * @param parameters The parameters for the update autoscale configuration operation.
175
+ * @param options The options parameters.
176
+ */
177
+ beginUpdateAutoScaleConfiguration(
178
+ resourceGroupName: string,
179
+ clusterName: string,
180
+ roleName: RoleName,
181
+ parameters: AutoscaleConfigurationUpdateParameter,
182
+ options?: ClustersUpdateAutoScaleConfigurationOptionalParams
183
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
184
+ /**
185
+ * Updates the Autoscale Configuration for HDInsight cluster.
186
+ * @param resourceGroupName The name of the resource group.
187
+ * @param clusterName The name of the cluster.
188
+ * @param roleName The constant value for the roleName
189
+ * @param parameters The parameters for the update autoscale configuration operation.
190
+ * @param options The options parameters.
191
+ */
192
+ beginUpdateAutoScaleConfigurationAndWait(
193
+ resourceGroupName: string,
194
+ clusterName: string,
195
+ roleName: RoleName,
196
+ parameters: AutoscaleConfigurationUpdateParameter,
197
+ options?: ClustersUpdateAutoScaleConfigurationOptionalParams
198
+ ): Promise<void>;
199
+ /**
200
+ * Rotate disk encryption key of the specified HDInsight cluster.
201
+ * @param resourceGroupName The name of the resource group.
202
+ * @param clusterName The name of the cluster.
203
+ * @param parameters The parameters for the disk encryption operation.
204
+ * @param options The options parameters.
205
+ */
206
+ beginRotateDiskEncryptionKey(
207
+ resourceGroupName: string,
208
+ clusterName: string,
209
+ parameters: ClusterDiskEncryptionParameters,
210
+ options?: ClustersRotateDiskEncryptionKeyOptionalParams
211
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
212
+ /**
213
+ * Rotate disk encryption key of the specified HDInsight cluster.
214
+ * @param resourceGroupName The name of the resource group.
215
+ * @param clusterName The name of the cluster.
216
+ * @param parameters The parameters for the disk encryption operation.
217
+ * @param options The options parameters.
218
+ */
219
+ beginRotateDiskEncryptionKeyAndWait(
220
+ resourceGroupName: string,
221
+ clusterName: string,
222
+ parameters: ClusterDiskEncryptionParameters,
223
+ options?: ClustersRotateDiskEncryptionKeyOptionalParams
224
+ ): Promise<void>;
225
+ /**
226
+ * Gets the gateway settings for the specified cluster.
227
+ * @param resourceGroupName The name of the resource group.
228
+ * @param clusterName The name of the cluster.
229
+ * @param options The options parameters.
230
+ */
231
+ getGatewaySettings(
232
+ resourceGroupName: string,
233
+ clusterName: string,
234
+ options?: ClustersGetGatewaySettingsOptionalParams
235
+ ): Promise<ClustersGetGatewaySettingsResponse>;
236
+ /**
237
+ * Configures the gateway settings on the specified cluster.
238
+ * @param resourceGroupName The name of the resource group.
239
+ * @param clusterName The name of the cluster.
240
+ * @param parameters The cluster configurations.
241
+ * @param options The options parameters.
242
+ */
243
+ beginUpdateGatewaySettings(
244
+ resourceGroupName: string,
245
+ clusterName: string,
246
+ parameters: UpdateGatewaySettingsParameters,
247
+ options?: ClustersUpdateGatewaySettingsOptionalParams
248
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
249
+ /**
250
+ * Configures the gateway settings on the specified cluster.
251
+ * @param resourceGroupName The name of the resource group.
252
+ * @param clusterName The name of the cluster.
253
+ * @param parameters The cluster configurations.
254
+ * @param options The options parameters.
255
+ */
256
+ beginUpdateGatewaySettingsAndWait(
257
+ resourceGroupName: string,
258
+ clusterName: string,
259
+ parameters: UpdateGatewaySettingsParameters,
260
+ options?: ClustersUpdateGatewaySettingsOptionalParams
261
+ ): Promise<void>;
262
+ /**
263
+ * The the async operation status.
264
+ * @param resourceGroupName The name of the resource group.
265
+ * @param clusterName The name of the cluster.
266
+ * @param operationId The long running operation id.
267
+ * @param options The options parameters.
268
+ */
269
+ getAzureAsyncOperationStatus(
270
+ resourceGroupName: string,
271
+ clusterName: string,
272
+ operationId: string,
273
+ options?: ClustersGetAzureAsyncOperationStatusOptionalParams
274
+ ): Promise<ClustersGetAzureAsyncOperationStatusResponse>;
275
+ /**
276
+ * Updates the cluster identity certificate.
277
+ * @param resourceGroupName The name of the resource group.
278
+ * @param clusterName The name of the cluster.
279
+ * @param parameters The cluster configurations.
280
+ * @param options The options parameters.
281
+ */
282
+ beginUpdateIdentityCertificate(
283
+ resourceGroupName: string,
284
+ clusterName: string,
285
+ parameters: UpdateClusterIdentityCertificateParameters,
286
+ options?: ClustersUpdateIdentityCertificateOptionalParams
287
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
288
+ /**
289
+ * Updates the cluster identity certificate.
290
+ * @param resourceGroupName The name of the resource group.
291
+ * @param clusterName The name of the cluster.
292
+ * @param parameters The cluster configurations.
293
+ * @param options The options parameters.
294
+ */
295
+ beginUpdateIdentityCertificateAndWait(
296
+ resourceGroupName: string,
297
+ clusterName: string,
298
+ parameters: UpdateClusterIdentityCertificateParameters,
299
+ options?: ClustersUpdateIdentityCertificateOptionalParams
300
+ ): Promise<void>;
301
+ /**
302
+ * Executes script actions on the specified HDInsight cluster.
303
+ * @param resourceGroupName The name of the resource group.
304
+ * @param clusterName The name of the cluster.
305
+ * @param parameters The parameters for executing script actions.
306
+ * @param options The options parameters.
307
+ */
308
+ beginExecuteScriptActions(
309
+ resourceGroupName: string,
310
+ clusterName: string,
311
+ parameters: ExecuteScriptActionParameters,
312
+ options?: ClustersExecuteScriptActionsOptionalParams
313
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
314
+ /**
315
+ * Executes script actions on the specified HDInsight cluster.
316
+ * @param resourceGroupName The name of the resource group.
317
+ * @param clusterName The name of the cluster.
318
+ * @param parameters The parameters for executing script actions.
319
+ * @param options The options parameters.
320
+ */
321
+ beginExecuteScriptActionsAndWait(
322
+ resourceGroupName: string,
323
+ clusterName: string,
324
+ parameters: ExecuteScriptActionParameters,
325
+ options?: ClustersExecuteScriptActionsOptionalParams
326
+ ): Promise<void>;
327
+ }
@@ -0,0 +1,77 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
10
+ import {
11
+ ConfigurationsListOptionalParams,
12
+ ConfigurationsListResponse,
13
+ ConfigurationsUpdateOptionalParams,
14
+ ConfigurationsGetOptionalParams,
15
+ ConfigurationsGetResponse
16
+ } from "../models";
17
+
18
+ /** Interface representing a Configurations. */
19
+ export interface Configurations {
20
+ /**
21
+ * Gets all configuration information for an HDI cluster.
22
+ * @param resourceGroupName The name of the resource group.
23
+ * @param clusterName The name of the cluster.
24
+ * @param options The options parameters.
25
+ */
26
+ list(
27
+ resourceGroupName: string,
28
+ clusterName: string,
29
+ options?: ConfigurationsListOptionalParams
30
+ ): Promise<ConfigurationsListResponse>;
31
+ /**
32
+ * Configures the HTTP settings on the specified cluster. This API is deprecated, please use
33
+ * UpdateGatewaySettings in cluster endpoint instead.
34
+ * @param resourceGroupName The name of the resource group.
35
+ * @param clusterName The name of the cluster.
36
+ * @param configurationName The name of the cluster configuration.
37
+ * @param parameters The cluster configurations.
38
+ * @param options The options parameters.
39
+ */
40
+ beginUpdate(
41
+ resourceGroupName: string,
42
+ clusterName: string,
43
+ configurationName: string,
44
+ parameters: { [propertyName: string]: string },
45
+ options?: ConfigurationsUpdateOptionalParams
46
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
47
+ /**
48
+ * Configures the HTTP settings on the specified cluster. This API is deprecated, please use
49
+ * UpdateGatewaySettings in cluster endpoint instead.
50
+ * @param resourceGroupName The name of the resource group.
51
+ * @param clusterName The name of the cluster.
52
+ * @param configurationName The name of the cluster configuration.
53
+ * @param parameters The cluster configurations.
54
+ * @param options The options parameters.
55
+ */
56
+ beginUpdateAndWait(
57
+ resourceGroupName: string,
58
+ clusterName: string,
59
+ configurationName: string,
60
+ parameters: { [propertyName: string]: string },
61
+ options?: ConfigurationsUpdateOptionalParams
62
+ ): Promise<void>;
63
+ /**
64
+ * The configuration object for the specified cluster. This API is not recommended and might be removed
65
+ * in the future. Please consider using List configurations API instead.
66
+ * @param resourceGroupName The name of the resource group.
67
+ * @param clusterName The name of the cluster.
68
+ * @param configurationName The name of the cluster configuration.
69
+ * @param options The options parameters.
70
+ */
71
+ get(
72
+ resourceGroupName: string,
73
+ clusterName: string,
74
+ configurationName: string,
75
+ options?: ConfigurationsGetOptionalParams
76
+ ): Promise<ConfigurationsGetResponse>;
77
+ }