@azure/arm-hdinsight 1.3.0-beta.1 → 1.3.0-beta.2

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 (181) hide show
  1. package/CHANGELOG.md +29 -6
  2. package/LICENSE +1 -1
  3. package/dist/index.js +2107 -1900
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/applicationsCreateSample.js +10 -10
  8. package/dist-esm/samples-dev/applicationsDeleteSample.js +1 -1
  9. package/dist-esm/samples-dev/applicationsGetAzureAsyncOperationStatusSample.js +1 -1
  10. package/dist-esm/samples-dev/applicationsGetSample.js +2 -2
  11. package/dist-esm/samples-dev/applicationsListByClusterSample.js +5 -10
  12. package/dist-esm/samples-dev/applicationsListByClusterSample.js.map +1 -1
  13. package/dist-esm/samples-dev/clustersCreateSample.js +277 -276
  14. package/dist-esm/samples-dev/clustersCreateSample.js.map +1 -1
  15. package/dist-esm/samples-dev/clustersDeleteSample.js +1 -1
  16. package/dist-esm/samples-dev/clustersExecuteScriptActionsSample.js +5 -5
  17. package/dist-esm/samples-dev/clustersExecuteScriptActionsSample.js.map +1 -1
  18. package/dist-esm/samples-dev/clustersGetAzureAsyncOperationStatusSample.js +1 -1
  19. package/dist-esm/samples-dev/clustersGetGatewaySettingsSample.js +1 -1
  20. package/dist-esm/samples-dev/clustersGetSample.js +2 -2
  21. package/dist-esm/samples-dev/clustersListByResourceGroupSample.js +5 -10
  22. package/dist-esm/samples-dev/clustersListByResourceGroupSample.js.map +1 -1
  23. package/dist-esm/samples-dev/clustersListSample.js +5 -10
  24. package/dist-esm/samples-dev/clustersListSample.js.map +1 -1
  25. package/dist-esm/samples-dev/clustersResizeSample.js +2 -2
  26. package/dist-esm/samples-dev/clustersResizeSample.js.map +1 -1
  27. package/dist-esm/samples-dev/clustersRotateDiskEncryptionKeySample.js +3 -3
  28. package/dist-esm/samples-dev/clustersRotateDiskEncryptionKeySample.js.map +1 -1
  29. package/dist-esm/samples-dev/clustersUpdateAutoScaleConfigurationSample.js +11 -11
  30. package/dist-esm/samples-dev/clustersUpdateAutoScaleConfigurationSample.js.map +1 -1
  31. package/dist-esm/samples-dev/clustersUpdateGatewaySettingsSample.js +3 -3
  32. package/dist-esm/samples-dev/clustersUpdateGatewaySettingsSample.js.map +1 -1
  33. package/dist-esm/samples-dev/clustersUpdateIdentityCertificateSample.js +3 -3
  34. package/dist-esm/samples-dev/clustersUpdateIdentityCertificateSample.js.map +1 -1
  35. package/dist-esm/samples-dev/clustersUpdateSample.js +25 -3
  36. package/dist-esm/samples-dev/clustersUpdateSample.js.map +1 -1
  37. package/dist-esm/samples-dev/configurationsGetSample.js +1 -1
  38. package/dist-esm/samples-dev/configurationsListSample.js +1 -1
  39. package/dist-esm/samples-dev/configurationsUpdateSample.js +4 -4
  40. package/dist-esm/samples-dev/extensionsCreateSample.js +2 -2
  41. package/dist-esm/samples-dev/extensionsDeleteSample.js +1 -1
  42. package/dist-esm/samples-dev/extensionsDisableAzureMonitorAgentSample.d.ts +2 -0
  43. package/dist-esm/samples-dev/extensionsDisableAzureMonitorAgentSample.d.ts.map +1 -0
  44. package/dist-esm/samples-dev/extensionsDisableAzureMonitorAgentSample.js +38 -0
  45. package/dist-esm/samples-dev/extensionsDisableAzureMonitorAgentSample.js.map +1 -0
  46. package/dist-esm/samples-dev/extensionsDisableAzureMonitorSample.js +3 -3
  47. package/dist-esm/samples-dev/extensionsDisableAzureMonitorSample.js.map +1 -1
  48. package/dist-esm/samples-dev/extensionsDisableMonitoringSample.js +3 -3
  49. package/dist-esm/samples-dev/extensionsDisableMonitoringSample.js.map +1 -1
  50. package/dist-esm/samples-dev/extensionsEnableAzureMonitorAgentSample.d.ts +2 -0
  51. package/dist-esm/samples-dev/extensionsEnableAzureMonitorAgentSample.d.ts.map +1 -0
  52. package/dist-esm/samples-dev/extensionsEnableAzureMonitorAgentSample.js +42 -0
  53. package/dist-esm/samples-dev/extensionsEnableAzureMonitorAgentSample.js.map +1 -0
  54. package/dist-esm/samples-dev/extensionsEnableAzureMonitorSample.js +5 -5
  55. package/dist-esm/samples-dev/extensionsEnableAzureMonitorSample.js.map +1 -1
  56. package/dist-esm/samples-dev/extensionsEnableMonitoringSample.js +3 -3
  57. package/dist-esm/samples-dev/extensionsEnableMonitoringSample.js.map +1 -1
  58. package/dist-esm/samples-dev/extensionsGetAzureAsyncOperationStatusSample.js +1 -1
  59. package/dist-esm/samples-dev/extensionsGetAzureMonitorAgentStatusSample.d.ts +2 -0
  60. package/dist-esm/samples-dev/extensionsGetAzureMonitorAgentStatusSample.d.ts.map +1 -0
  61. package/dist-esm/samples-dev/extensionsGetAzureMonitorAgentStatusSample.js +38 -0
  62. package/dist-esm/samples-dev/extensionsGetAzureMonitorAgentStatusSample.js.map +1 -0
  63. package/dist-esm/samples-dev/extensionsGetAzureMonitorStatusSample.js +3 -3
  64. package/dist-esm/samples-dev/extensionsGetAzureMonitorStatusSample.js.map +1 -1
  65. package/dist-esm/samples-dev/extensionsGetMonitoringStatusSample.js +3 -3
  66. package/dist-esm/samples-dev/extensionsGetMonitoringStatusSample.js.map +1 -1
  67. package/dist-esm/samples-dev/extensionsGetSample.js +1 -1
  68. package/dist-esm/samples-dev/locationsCheckNameAvailabilitySample.js +3 -3
  69. package/dist-esm/samples-dev/locationsCheckNameAvailabilitySample.js.map +1 -1
  70. package/dist-esm/samples-dev/locationsGetAzureAsyncOperationStatusSample.js +1 -1
  71. package/dist-esm/samples-dev/locationsGetCapabilitiesSample.js +1 -1
  72. package/dist-esm/samples-dev/locationsListBillingSpecsSample.js +1 -1
  73. package/dist-esm/samples-dev/locationsListUsagesSample.js +1 -1
  74. package/dist-esm/samples-dev/locationsValidateClusterCreateRequestSample.js +21 -21
  75. package/dist-esm/samples-dev/locationsValidateClusterCreateRequestSample.js.map +1 -1
  76. package/dist-esm/samples-dev/operationsListSample.js +5 -10
  77. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  78. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +4 -4
  79. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +1 -1
  80. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  81. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  82. package/dist-esm/samples-dev/privateEndpointConnectionsListByClusterSample.js +5 -10
  83. package/dist-esm/samples-dev/privateEndpointConnectionsListByClusterSample.js.map +1 -1
  84. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +1 -1
  85. package/dist-esm/samples-dev/privateLinkResourcesListByClusterSample.js +1 -1
  86. package/dist-esm/samples-dev/scriptActionsDeleteSample.js +1 -1
  87. package/dist-esm/samples-dev/scriptActionsGetExecutionAsyncOperationStatusSample.js +1 -1
  88. package/dist-esm/samples-dev/scriptActionsGetExecutionDetailSample.js +1 -1
  89. package/dist-esm/samples-dev/scriptActionsListByClusterSample.js +5 -10
  90. package/dist-esm/samples-dev/scriptActionsListByClusterSample.js.map +1 -1
  91. package/dist-esm/samples-dev/scriptExecutionHistoryListByClusterSample.js +5 -10
  92. package/dist-esm/samples-dev/scriptExecutionHistoryListByClusterSample.js.map +1 -1
  93. package/dist-esm/samples-dev/scriptExecutionHistoryPromoteSample.js +1 -1
  94. package/dist-esm/samples-dev/virtualMachinesGetAsyncOperationStatusSample.js +1 -1
  95. package/dist-esm/samples-dev/virtualMachinesListHostsSample.js +1 -1
  96. package/dist-esm/samples-dev/virtualMachinesRestartHostsSample.js +1 -1
  97. package/dist-esm/samples-dev/virtualMachinesRestartHostsSample.js.map +1 -1
  98. package/dist-esm/src/hDInsightManagementClient.d.ts.map +1 -1
  99. package/dist-esm/src/hDInsightManagementClient.js +9 -9
  100. package/dist-esm/src/hDInsightManagementClient.js.map +1 -1
  101. package/dist-esm/src/index.d.ts +0 -1
  102. package/dist-esm/src/index.d.ts.map +1 -1
  103. package/dist-esm/src/lroImpl.js +1 -1
  104. package/dist-esm/src/models/index.d.ts +48 -0
  105. package/dist-esm/src/models/index.d.ts.map +1 -1
  106. package/dist-esm/src/models/index.js +8 -0
  107. package/dist-esm/src/models/index.js.map +1 -1
  108. package/dist-esm/src/models/mappers.d.ts +1 -0
  109. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  110. package/dist-esm/src/models/mappers.js +1288 -1244
  111. package/dist-esm/src/models/mappers.js.map +1 -1
  112. package/dist-esm/src/models/parameters.js +79 -79
  113. package/dist-esm/src/models/parameters.js.map +1 -1
  114. package/dist-esm/src/operations/applications.d.ts.map +1 -1
  115. package/dist-esm/src/operations/applications.js +46 -51
  116. package/dist-esm/src/operations/applications.js.map +1 -1
  117. package/dist-esm/src/operations/clusters.d.ts.map +1 -1
  118. package/dist-esm/src/operations/clusters.js +117 -127
  119. package/dist-esm/src/operations/clusters.js.map +1 -1
  120. package/dist-esm/src/operations/configurations.d.ts.map +1 -1
  121. package/dist-esm/src/operations/configurations.js +21 -21
  122. package/dist-esm/src/operations/configurations.js.map +1 -1
  123. package/dist-esm/src/operations/extensions.d.ts +38 -1
  124. package/dist-esm/src/operations/extensions.d.ts.map +1 -1
  125. package/dist-esm/src/operations/extensions.js +260 -70
  126. package/dist-esm/src/operations/extensions.js.map +1 -1
  127. package/dist-esm/src/operations/locations.js +30 -30
  128. package/dist-esm/src/operations/locations.js.map +1 -1
  129. package/dist-esm/src/operations/operations.js +12 -17
  130. package/dist-esm/src/operations/operations.js.map +1 -1
  131. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  132. package/dist-esm/src/operations/privateEndpointConnections.js +43 -48
  133. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  134. package/dist-esm/src/operations/privateLinkResources.js +10 -10
  135. package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
  136. package/dist-esm/src/operations/scriptActions.js +28 -33
  137. package/dist-esm/src/operations/scriptActions.js.map +1 -1
  138. package/dist-esm/src/operations/scriptExecutionHistory.js +18 -23
  139. package/dist-esm/src/operations/scriptExecutionHistory.js.map +1 -1
  140. package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -1
  141. package/dist-esm/src/operations/virtualMachines.js +21 -21
  142. package/dist-esm/src/operations/virtualMachines.js.map +1 -1
  143. package/dist-esm/src/operationsInterfaces/extensions.d.ts +38 -1
  144. package/dist-esm/src/operationsInterfaces/extensions.d.ts.map +1 -1
  145. package/dist-esm/src/pagingHelper.js.map +1 -1
  146. package/dist-esm/test/hdinsights_operations_test.spec.d.ts.map +1 -1
  147. package/dist-esm/test/hdinsights_operations_test.spec.js +9 -13
  148. package/dist-esm/test/hdinsights_operations_test.spec.js.map +1 -1
  149. package/package.json +20 -25
  150. package/review/arm-hdinsight.api.md +42 -0
  151. package/src/hDInsightManagementClient.ts +18 -17
  152. package/src/lroImpl.ts +4 -4
  153. package/src/models/index.ts +100 -30
  154. package/src/models/mappers.ts +1416 -1365
  155. package/src/models/parameters.ts +80 -80
  156. package/src/operations/applications.ts +85 -92
  157. package/src/operations/clusters.ts +230 -252
  158. package/src/operations/configurations.ts +39 -43
  159. package/src/operations/extensions.ts +406 -165
  160. package/src/operations/locations.ts +49 -55
  161. package/src/operations/operations.ts +16 -16
  162. package/src/operations/privateEndpointConnections.ts +81 -86
  163. package/src/operations/privateLinkResources.ts +17 -19
  164. package/src/operations/scriptActions.ts +64 -67
  165. package/src/operations/scriptExecutionHistory.ts +32 -34
  166. package/src/operations/virtualMachines.ts +39 -43
  167. package/src/operationsInterfaces/applications.ts +8 -8
  168. package/src/operationsInterfaces/clusters.ts +23 -23
  169. package/src/operationsInterfaces/configurations.ts +5 -5
  170. package/src/operationsInterfaces/extensions.ts +80 -17
  171. package/src/operationsInterfaces/locations.ts +7 -7
  172. package/src/operationsInterfaces/operations.ts +1 -1
  173. package/src/operationsInterfaces/privateEndpointConnections.ts +7 -7
  174. package/src/operationsInterfaces/privateLinkResources.ts +3 -3
  175. package/src/operationsInterfaces/scriptActions.ts +5 -5
  176. package/src/operationsInterfaces/scriptExecutionHistory.ts +3 -3
  177. package/src/operationsInterfaces/virtualMachines.ts +5 -5
  178. package/src/pagingHelper.ts +1 -1
  179. package/types/arm-hdinsight.d.ts +92 -0
  180. package/types/tsdoc-metadata.json +1 -1
  181. package/rollup.config.js +0 -122
@@ -14,7 +14,7 @@ import { HDInsightManagementClient } from "../hDInsightManagementClient";
14
14
  import {
15
15
  SimplePollerLike,
16
16
  OperationState,
17
- createHttpPoller
17
+ createHttpPoller,
18
18
  } from "@azure/core-lro";
19
19
  import { createLroSpec } from "../lroImpl";
20
20
  import {
@@ -22,7 +22,7 @@ import {
22
22
  VirtualMachinesListHostsResponse,
23
23
  VirtualMachinesRestartHostsOptionalParams,
24
24
  VirtualMachinesGetAsyncOperationStatusOptionalParams,
25
- VirtualMachinesGetAsyncOperationStatusResponse
25
+ VirtualMachinesGetAsyncOperationStatusResponse,
26
26
  } from "../models";
27
27
 
28
28
  /** Class containing VirtualMachines operations. */
@@ -46,11 +46,11 @@ export class VirtualMachinesImpl implements VirtualMachines {
46
46
  listHosts(
47
47
  resourceGroupName: string,
48
48
  clusterName: string,
49
- options?: VirtualMachinesListHostsOptionalParams
49
+ options?: VirtualMachinesListHostsOptionalParams,
50
50
  ): Promise<VirtualMachinesListHostsResponse> {
51
51
  return this.client.sendOperationRequest(
52
52
  { resourceGroupName, clusterName, options },
53
- listHostsOperationSpec
53
+ listHostsOperationSpec,
54
54
  );
55
55
  }
56
56
 
@@ -65,25 +65,24 @@ export class VirtualMachinesImpl implements VirtualMachines {
65
65
  resourceGroupName: string,
66
66
  clusterName: string,
67
67
  hosts: string[],
68
- options?: VirtualMachinesRestartHostsOptionalParams
68
+ options?: VirtualMachinesRestartHostsOptionalParams,
69
69
  ): Promise<SimplePollerLike<OperationState<void>, void>> {
70
70
  const directSendOperation = async (
71
71
  args: coreClient.OperationArguments,
72
- spec: coreClient.OperationSpec
72
+ spec: coreClient.OperationSpec,
73
73
  ): Promise<void> => {
74
74
  return this.client.sendOperationRequest(args, spec);
75
75
  };
76
76
  const sendOperationFn = async (
77
77
  args: coreClient.OperationArguments,
78
- spec: coreClient.OperationSpec
78
+ spec: coreClient.OperationSpec,
79
79
  ) => {
80
- let currentRawResponse:
81
- | coreClient.FullOperationResponse
82
- | undefined = undefined;
80
+ let currentRawResponse: coreClient.FullOperationResponse | undefined =
81
+ undefined;
83
82
  const providedCallback = args.options?.onResponse;
84
83
  const callback: coreClient.RawResponseCallback = (
85
84
  rawResponse: coreClient.FullOperationResponse,
86
- flatResponse: unknown
85
+ flatResponse: unknown,
87
86
  ) => {
88
87
  currentRawResponse = rawResponse;
89
88
  providedCallback?.(rawResponse, flatResponse);
@@ -92,8 +91,8 @@ export class VirtualMachinesImpl implements VirtualMachines {
92
91
  ...args,
93
92
  options: {
94
93
  ...args.options,
95
- onResponse: callback
96
- }
94
+ onResponse: callback,
95
+ },
97
96
  };
98
97
  const flatResponse = await directSendOperation(updatedArgs, spec);
99
98
  return {
@@ -101,20 +100,20 @@ export class VirtualMachinesImpl implements VirtualMachines {
101
100
  rawResponse: {
102
101
  statusCode: currentRawResponse!.status,
103
102
  body: currentRawResponse!.parsedBody,
104
- headers: currentRawResponse!.headers.toJSON()
105
- }
103
+ headers: currentRawResponse!.headers.toJSON(),
104
+ },
106
105
  };
107
106
  };
108
107
 
109
108
  const lro = createLroSpec({
110
109
  sendOperationFn,
111
110
  args: { resourceGroupName, clusterName, hosts, options },
112
- spec: restartHostsOperationSpec
111
+ spec: restartHostsOperationSpec,
113
112
  });
114
113
  const poller = await createHttpPoller<void, OperationState<void>>(lro, {
115
114
  restoreFrom: options?.resumeFrom,
116
115
  intervalInMs: options?.updateIntervalInMs,
117
- resourceLocationConfig: "location"
116
+ resourceLocationConfig: "location",
118
117
  });
119
118
  await poller.poll();
120
119
  return poller;
@@ -131,13 +130,13 @@ export class VirtualMachinesImpl implements VirtualMachines {
131
130
  resourceGroupName: string,
132
131
  clusterName: string,
133
132
  hosts: string[],
134
- options?: VirtualMachinesRestartHostsOptionalParams
133
+ options?: VirtualMachinesRestartHostsOptionalParams,
135
134
  ): Promise<void> {
136
135
  const poller = await this.beginRestartHosts(
137
136
  resourceGroupName,
138
137
  clusterName,
139
138
  hosts,
140
- options
139
+ options,
141
140
  );
142
141
  return poller.pollUntilDone();
143
142
  }
@@ -153,11 +152,11 @@ export class VirtualMachinesImpl implements VirtualMachines {
153
152
  resourceGroupName: string,
154
153
  clusterName: string,
155
154
  operationId: string,
156
- options?: VirtualMachinesGetAsyncOperationStatusOptionalParams
155
+ options?: VirtualMachinesGetAsyncOperationStatusOptionalParams,
157
156
  ): Promise<VirtualMachinesGetAsyncOperationStatusResponse> {
158
157
  return this.client.sendOperationRequest(
159
158
  { resourceGroupName, clusterName, operationId, options },
160
- getAsyncOperationStatusOperationSpec
159
+ getAsyncOperationStatusOperationSpec,
161
160
  );
162
161
  }
163
162
  }
@@ -165,35 +164,33 @@ export class VirtualMachinesImpl implements VirtualMachines {
165
164
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
166
165
 
167
166
  const listHostsOperationSpec: coreClient.OperationSpec = {
168
- path:
169
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/listHosts",
167
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/listHosts",
170
168
  httpMethod: "POST",
171
169
  responses: {
172
170
  200: {
173
171
  bodyMapper: {
174
172
  type: {
175
173
  name: "Sequence",
176
- element: { type: { name: "Composite", className: "HostInfo" } }
177
- }
178
- }
174
+ element: { type: { name: "Composite", className: "HostInfo" } },
175
+ },
176
+ },
179
177
  },
180
178
  default: {
181
- bodyMapper: Mappers.ErrorResponse
182
- }
179
+ bodyMapper: Mappers.ErrorResponse,
180
+ },
183
181
  },
184
182
  queryParameters: [Parameters.apiVersion],
185
183
  urlParameters: [
186
184
  Parameters.$host,
187
185
  Parameters.subscriptionId,
188
186
  Parameters.resourceGroupName,
189
- Parameters.clusterName
187
+ Parameters.clusterName,
190
188
  ],
191
189
  headerParameters: [Parameters.accept],
192
- serializer
190
+ serializer,
193
191
  };
194
192
  const restartHostsOperationSpec: coreClient.OperationSpec = {
195
- path:
196
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/restartHosts",
193
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/restartHosts",
197
194
  httpMethod: "POST",
198
195
  responses: {
199
196
  200: {},
@@ -201,8 +198,8 @@ const restartHostsOperationSpec: coreClient.OperationSpec = {
201
198
  202: {},
202
199
  204: {},
203
200
  default: {
204
- bodyMapper: Mappers.ErrorResponse
205
- }
201
+ bodyMapper: Mappers.ErrorResponse,
202
+ },
206
203
  },
207
204
  requestBody: Parameters.hosts,
208
205
  queryParameters: [Parameters.apiVersion],
@@ -210,23 +207,22 @@ const restartHostsOperationSpec: coreClient.OperationSpec = {
210
207
  Parameters.$host,
211
208
  Parameters.subscriptionId,
212
209
  Parameters.resourceGroupName,
213
- Parameters.clusterName
210
+ Parameters.clusterName,
214
211
  ],
215
212
  headerParameters: [Parameters.accept, Parameters.contentType],
216
213
  mediaType: "json",
217
- serializer
214
+ serializer,
218
215
  };
219
216
  const getAsyncOperationStatusOperationSpec: coreClient.OperationSpec = {
220
- path:
221
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/restartHosts/azureasyncoperations/{operationId}",
217
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/restartHosts/azureasyncoperations/{operationId}",
222
218
  httpMethod: "GET",
223
219
  responses: {
224
220
  200: {
225
- bodyMapper: Mappers.AsyncOperationResult
221
+ bodyMapper: Mappers.AsyncOperationResult,
226
222
  },
227
223
  default: {
228
- bodyMapper: Mappers.ErrorResponse
229
- }
224
+ bodyMapper: Mappers.ErrorResponse,
225
+ },
230
226
  },
231
227
  queryParameters: [Parameters.apiVersion],
232
228
  urlParameters: [
@@ -234,8 +230,8 @@ const getAsyncOperationStatusOperationSpec: coreClient.OperationSpec = {
234
230
  Parameters.subscriptionId,
235
231
  Parameters.resourceGroupName,
236
232
  Parameters.clusterName,
237
- Parameters.operationId
233
+ Parameters.operationId,
238
234
  ],
239
235
  headerParameters: [Parameters.accept],
240
- serializer
236
+ serializer,
241
237
  };
@@ -17,7 +17,7 @@ import {
17
17
  ApplicationsCreateResponse,
18
18
  ApplicationsDeleteOptionalParams,
19
19
  ApplicationsGetAzureAsyncOperationStatusOptionalParams,
20
- ApplicationsGetAzureAsyncOperationStatusResponse
20
+ ApplicationsGetAzureAsyncOperationStatusResponse,
21
21
  } from "../models";
22
22
 
23
23
  /// <reference lib="esnext.asynciterable" />
@@ -32,7 +32,7 @@ export interface Applications {
32
32
  listByCluster(
33
33
  resourceGroupName: string,
34
34
  clusterName: string,
35
- options?: ApplicationsListByClusterOptionalParams
35
+ options?: ApplicationsListByClusterOptionalParams,
36
36
  ): PagedAsyncIterableIterator<Application>;
37
37
  /**
38
38
  * Gets properties of the specified application.
@@ -45,7 +45,7 @@ export interface Applications {
45
45
  resourceGroupName: string,
46
46
  clusterName: string,
47
47
  applicationName: string,
48
- options?: ApplicationsGetOptionalParams
48
+ options?: ApplicationsGetOptionalParams,
49
49
  ): Promise<ApplicationsGetResponse>;
50
50
  /**
51
51
  * Creates applications for the HDInsight cluster.
@@ -60,7 +60,7 @@ export interface Applications {
60
60
  clusterName: string,
61
61
  applicationName: string,
62
62
  parameters: Application,
63
- options?: ApplicationsCreateOptionalParams
63
+ options?: ApplicationsCreateOptionalParams,
64
64
  ): Promise<
65
65
  SimplePollerLike<
66
66
  OperationState<ApplicationsCreateResponse>,
@@ -80,7 +80,7 @@ export interface Applications {
80
80
  clusterName: string,
81
81
  applicationName: string,
82
82
  parameters: Application,
83
- options?: ApplicationsCreateOptionalParams
83
+ options?: ApplicationsCreateOptionalParams,
84
84
  ): Promise<ApplicationsCreateResponse>;
85
85
  /**
86
86
  * Deletes the specified application on the HDInsight cluster.
@@ -93,7 +93,7 @@ export interface Applications {
93
93
  resourceGroupName: string,
94
94
  clusterName: string,
95
95
  applicationName: string,
96
- options?: ApplicationsDeleteOptionalParams
96
+ options?: ApplicationsDeleteOptionalParams,
97
97
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
98
98
  /**
99
99
  * Deletes the specified application on the HDInsight cluster.
@@ -106,7 +106,7 @@ export interface Applications {
106
106
  resourceGroupName: string,
107
107
  clusterName: string,
108
108
  applicationName: string,
109
- options?: ApplicationsDeleteOptionalParams
109
+ options?: ApplicationsDeleteOptionalParams,
110
110
  ): Promise<void>;
111
111
  /**
112
112
  * Gets the async operation status.
@@ -121,6 +121,6 @@ export interface Applications {
121
121
  clusterName: string,
122
122
  applicationName: string,
123
123
  operationId: string,
124
- options?: ApplicationsGetAzureAsyncOperationStatusOptionalParams
124
+ options?: ApplicationsGetAzureAsyncOperationStatusOptionalParams,
125
125
  ): Promise<ApplicationsGetAzureAsyncOperationStatusResponse>;
126
126
  }
@@ -37,7 +37,7 @@ import {
37
37
  UpdateClusterIdentityCertificateParameters,
38
38
  ClustersUpdateIdentityCertificateOptionalParams,
39
39
  ExecuteScriptActionParameters,
40
- ClustersExecuteScriptActionsOptionalParams
40
+ ClustersExecuteScriptActionsOptionalParams,
41
41
  } from "../models";
42
42
 
43
43
  /// <reference lib="esnext.asynciterable" />
@@ -50,14 +50,14 @@ export interface Clusters {
50
50
  */
51
51
  listByResourceGroup(
52
52
  resourceGroupName: string,
53
- options?: ClustersListByResourceGroupOptionalParams
53
+ options?: ClustersListByResourceGroupOptionalParams,
54
54
  ): PagedAsyncIterableIterator<Cluster>;
55
55
  /**
56
56
  * Lists all the HDInsight clusters under the subscription.
57
57
  * @param options The options parameters.
58
58
  */
59
59
  list(
60
- options?: ClustersListOptionalParams
60
+ options?: ClustersListOptionalParams,
61
61
  ): PagedAsyncIterableIterator<Cluster>;
62
62
  /**
63
63
  * Creates a new HDInsight cluster with the specified parameters.
@@ -70,7 +70,7 @@ export interface Clusters {
70
70
  resourceGroupName: string,
71
71
  clusterName: string,
72
72
  parameters: ClusterCreateParametersExtended,
73
- options?: ClustersCreateOptionalParams
73
+ options?: ClustersCreateOptionalParams,
74
74
  ): Promise<
75
75
  SimplePollerLike<
76
76
  OperationState<ClustersCreateResponse>,
@@ -88,7 +88,7 @@ export interface Clusters {
88
88
  resourceGroupName: string,
89
89
  clusterName: string,
90
90
  parameters: ClusterCreateParametersExtended,
91
- options?: ClustersCreateOptionalParams
91
+ options?: ClustersCreateOptionalParams,
92
92
  ): Promise<ClustersCreateResponse>;
93
93
  /**
94
94
  * Patch HDInsight cluster with the specified parameters.
@@ -101,7 +101,7 @@ export interface Clusters {
101
101
  resourceGroupName: string,
102
102
  clusterName: string,
103
103
  parameters: ClusterPatchParameters,
104
- options?: ClustersUpdateOptionalParams
104
+ options?: ClustersUpdateOptionalParams,
105
105
  ): Promise<ClustersUpdateResponse>;
106
106
  /**
107
107
  * Deletes the specified HDInsight cluster.
@@ -112,7 +112,7 @@ export interface Clusters {
112
112
  beginDelete(
113
113
  resourceGroupName: string,
114
114
  clusterName: string,
115
- options?: ClustersDeleteOptionalParams
115
+ options?: ClustersDeleteOptionalParams,
116
116
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
117
117
  /**
118
118
  * Deletes the specified HDInsight cluster.
@@ -123,7 +123,7 @@ export interface Clusters {
123
123
  beginDeleteAndWait(
124
124
  resourceGroupName: string,
125
125
  clusterName: string,
126
- options?: ClustersDeleteOptionalParams
126
+ options?: ClustersDeleteOptionalParams,
127
127
  ): Promise<void>;
128
128
  /**
129
129
  * Gets the specified cluster.
@@ -134,7 +134,7 @@ export interface Clusters {
134
134
  get(
135
135
  resourceGroupName: string,
136
136
  clusterName: string,
137
- options?: ClustersGetOptionalParams
137
+ options?: ClustersGetOptionalParams,
138
138
  ): Promise<ClustersGetResponse>;
139
139
  /**
140
140
  * Resizes the specified HDInsight cluster to the specified size.
@@ -149,7 +149,7 @@ export interface Clusters {
149
149
  clusterName: string,
150
150
  roleName: RoleName,
151
151
  parameters: ClusterResizeParameters,
152
- options?: ClustersResizeOptionalParams
152
+ options?: ClustersResizeOptionalParams,
153
153
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
154
154
  /**
155
155
  * Resizes the specified HDInsight cluster to the specified size.
@@ -164,7 +164,7 @@ export interface Clusters {
164
164
  clusterName: string,
165
165
  roleName: RoleName,
166
166
  parameters: ClusterResizeParameters,
167
- options?: ClustersResizeOptionalParams
167
+ options?: ClustersResizeOptionalParams,
168
168
  ): Promise<void>;
169
169
  /**
170
170
  * Updates the Autoscale Configuration for HDInsight cluster.
@@ -179,7 +179,7 @@ export interface Clusters {
179
179
  clusterName: string,
180
180
  roleName: RoleName,
181
181
  parameters: AutoscaleConfigurationUpdateParameter,
182
- options?: ClustersUpdateAutoScaleConfigurationOptionalParams
182
+ options?: ClustersUpdateAutoScaleConfigurationOptionalParams,
183
183
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
184
184
  /**
185
185
  * Updates the Autoscale Configuration for HDInsight cluster.
@@ -194,7 +194,7 @@ export interface Clusters {
194
194
  clusterName: string,
195
195
  roleName: RoleName,
196
196
  parameters: AutoscaleConfigurationUpdateParameter,
197
- options?: ClustersUpdateAutoScaleConfigurationOptionalParams
197
+ options?: ClustersUpdateAutoScaleConfigurationOptionalParams,
198
198
  ): Promise<void>;
199
199
  /**
200
200
  * Rotate disk encryption key of the specified HDInsight cluster.
@@ -207,7 +207,7 @@ export interface Clusters {
207
207
  resourceGroupName: string,
208
208
  clusterName: string,
209
209
  parameters: ClusterDiskEncryptionParameters,
210
- options?: ClustersRotateDiskEncryptionKeyOptionalParams
210
+ options?: ClustersRotateDiskEncryptionKeyOptionalParams,
211
211
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
212
212
  /**
213
213
  * Rotate disk encryption key of the specified HDInsight cluster.
@@ -220,7 +220,7 @@ export interface Clusters {
220
220
  resourceGroupName: string,
221
221
  clusterName: string,
222
222
  parameters: ClusterDiskEncryptionParameters,
223
- options?: ClustersRotateDiskEncryptionKeyOptionalParams
223
+ options?: ClustersRotateDiskEncryptionKeyOptionalParams,
224
224
  ): Promise<void>;
225
225
  /**
226
226
  * Gets the gateway settings for the specified cluster.
@@ -231,7 +231,7 @@ export interface Clusters {
231
231
  getGatewaySettings(
232
232
  resourceGroupName: string,
233
233
  clusterName: string,
234
- options?: ClustersGetGatewaySettingsOptionalParams
234
+ options?: ClustersGetGatewaySettingsOptionalParams,
235
235
  ): Promise<ClustersGetGatewaySettingsResponse>;
236
236
  /**
237
237
  * Configures the gateway settings on the specified cluster.
@@ -244,7 +244,7 @@ export interface Clusters {
244
244
  resourceGroupName: string,
245
245
  clusterName: string,
246
246
  parameters: UpdateGatewaySettingsParameters,
247
- options?: ClustersUpdateGatewaySettingsOptionalParams
247
+ options?: ClustersUpdateGatewaySettingsOptionalParams,
248
248
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
249
249
  /**
250
250
  * Configures the gateway settings on the specified cluster.
@@ -257,7 +257,7 @@ export interface Clusters {
257
257
  resourceGroupName: string,
258
258
  clusterName: string,
259
259
  parameters: UpdateGatewaySettingsParameters,
260
- options?: ClustersUpdateGatewaySettingsOptionalParams
260
+ options?: ClustersUpdateGatewaySettingsOptionalParams,
261
261
  ): Promise<void>;
262
262
  /**
263
263
  * The the async operation status.
@@ -270,7 +270,7 @@ export interface Clusters {
270
270
  resourceGroupName: string,
271
271
  clusterName: string,
272
272
  operationId: string,
273
- options?: ClustersGetAzureAsyncOperationStatusOptionalParams
273
+ options?: ClustersGetAzureAsyncOperationStatusOptionalParams,
274
274
  ): Promise<ClustersGetAzureAsyncOperationStatusResponse>;
275
275
  /**
276
276
  * Updates the cluster identity certificate.
@@ -283,7 +283,7 @@ export interface Clusters {
283
283
  resourceGroupName: string,
284
284
  clusterName: string,
285
285
  parameters: UpdateClusterIdentityCertificateParameters,
286
- options?: ClustersUpdateIdentityCertificateOptionalParams
286
+ options?: ClustersUpdateIdentityCertificateOptionalParams,
287
287
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
288
288
  /**
289
289
  * Updates the cluster identity certificate.
@@ -296,7 +296,7 @@ export interface Clusters {
296
296
  resourceGroupName: string,
297
297
  clusterName: string,
298
298
  parameters: UpdateClusterIdentityCertificateParameters,
299
- options?: ClustersUpdateIdentityCertificateOptionalParams
299
+ options?: ClustersUpdateIdentityCertificateOptionalParams,
300
300
  ): Promise<void>;
301
301
  /**
302
302
  * Executes script actions on the specified HDInsight cluster.
@@ -309,7 +309,7 @@ export interface Clusters {
309
309
  resourceGroupName: string,
310
310
  clusterName: string,
311
311
  parameters: ExecuteScriptActionParameters,
312
- options?: ClustersExecuteScriptActionsOptionalParams
312
+ options?: ClustersExecuteScriptActionsOptionalParams,
313
313
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
314
314
  /**
315
315
  * Executes script actions on the specified HDInsight cluster.
@@ -322,6 +322,6 @@ export interface Clusters {
322
322
  resourceGroupName: string,
323
323
  clusterName: string,
324
324
  parameters: ExecuteScriptActionParameters,
325
- options?: ClustersExecuteScriptActionsOptionalParams
325
+ options?: ClustersExecuteScriptActionsOptionalParams,
326
326
  ): Promise<void>;
327
327
  }
@@ -12,7 +12,7 @@ import {
12
12
  ConfigurationsListResponse,
13
13
  ConfigurationsUpdateOptionalParams,
14
14
  ConfigurationsGetOptionalParams,
15
- ConfigurationsGetResponse
15
+ ConfigurationsGetResponse,
16
16
  } from "../models";
17
17
 
18
18
  /** Interface representing a Configurations. */
@@ -26,7 +26,7 @@ export interface Configurations {
26
26
  list(
27
27
  resourceGroupName: string,
28
28
  clusterName: string,
29
- options?: ConfigurationsListOptionalParams
29
+ options?: ConfigurationsListOptionalParams,
30
30
  ): Promise<ConfigurationsListResponse>;
31
31
  /**
32
32
  * Configures the HTTP settings on the specified cluster. This API is deprecated, please use
@@ -42,7 +42,7 @@ export interface Configurations {
42
42
  clusterName: string,
43
43
  configurationName: string,
44
44
  parameters: { [propertyName: string]: string },
45
- options?: ConfigurationsUpdateOptionalParams
45
+ options?: ConfigurationsUpdateOptionalParams,
46
46
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
47
47
  /**
48
48
  * Configures the HTTP settings on the specified cluster. This API is deprecated, please use
@@ -58,7 +58,7 @@ export interface Configurations {
58
58
  clusterName: string,
59
59
  configurationName: string,
60
60
  parameters: { [propertyName: string]: string },
61
- options?: ConfigurationsUpdateOptionalParams
61
+ options?: ConfigurationsUpdateOptionalParams,
62
62
  ): Promise<void>;
63
63
  /**
64
64
  * The configuration object for the specified cluster. This API is not recommended and might be removed
@@ -72,6 +72,6 @@ export interface Configurations {
72
72
  resourceGroupName: string,
73
73
  clusterName: string,
74
74
  configurationName: string,
75
- options?: ConfigurationsGetOptionalParams
75
+ options?: ConfigurationsGetOptionalParams,
76
76
  ): Promise<ConfigurationsGetResponse>;
77
77
  }