@azure/arm-streamanalytics 3.0.0 → 4.0.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 (252) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/{LICENSE.txt → LICENSE} +1 -1
  3. package/README.md +70 -84
  4. package/dist/index.js +6818 -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/index.d.ts +5 -0
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/src/index.js +12 -0
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/src/lroImpl.d.ts +16 -0
  13. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  14. package/dist-esm/src/lroImpl.js +29 -0
  15. package/dist-esm/src/lroImpl.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +1940 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +132 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +155 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/{esm → dist-esm/src}/models/mappers.js +1412 -2137
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +34 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/dist-esm/src/models/parameters.js +260 -0
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operations/clusters.d.ts +137 -0
  29. package/dist-esm/src/operations/clusters.d.ts.map +1 -0
  30. package/dist-esm/src/operations/clusters.js +627 -0
  31. package/dist-esm/src/operations/clusters.js.map +1 -0
  32. package/dist-esm/src/operations/functions.d.ts +107 -0
  33. package/dist-esm/src/operations/functions.d.ts.map +1 -0
  34. package/dist-esm/src/operations/functions.js +416 -0
  35. package/dist-esm/src/operations/functions.js.map +1 -0
  36. package/{esm → dist-esm/src}/operations/index.d.ts +4 -4
  37. package/dist-esm/src/operations/index.d.ts.map +1 -0
  38. package/{esm → dist-esm/src}/operations/index.js +5 -6
  39. package/dist-esm/src/operations/index.js.map +1 -0
  40. package/dist-esm/src/operations/inputs.d.ts +94 -0
  41. package/dist-esm/src/operations/inputs.d.ts.map +1 -0
  42. package/dist-esm/src/operations/inputs.js +377 -0
  43. package/dist-esm/src/operations/inputs.js.map +1 -0
  44. package/dist-esm/src/operations/operations.d.ts +32 -0
  45. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  46. package/dist-esm/src/operations/operations.js +120 -0
  47. package/dist-esm/src/operations/operations.js.map +1 -0
  48. package/dist-esm/src/operations/outputs.d.ts +95 -0
  49. package/dist-esm/src/operations/outputs.d.ts.map +1 -0
  50. package/dist-esm/src/operations/outputs.js +378 -0
  51. package/dist-esm/src/operations/outputs.js.map +1 -0
  52. package/dist-esm/src/operations/privateEndpoints.d.ts +73 -0
  53. package/dist-esm/src/operations/privateEndpoints.d.ts.map +1 -0
  54. package/dist-esm/src/operations/privateEndpoints.js +295 -0
  55. package/dist-esm/src/operations/privateEndpoints.js.map +1 -0
  56. package/dist-esm/src/operations/streamingJobs.d.ts +151 -0
  57. package/dist-esm/src/operations/streamingJobs.d.ts.map +1 -0
  58. package/dist-esm/src/operations/streamingJobs.js +692 -0
  59. package/dist-esm/src/operations/streamingJobs.js.map +1 -0
  60. package/dist-esm/src/operations/subscriptions.d.ts +21 -0
  61. package/dist-esm/src/operations/subscriptions.d.ts.map +1 -0
  62. package/dist-esm/src/operations/subscriptions.js +53 -0
  63. package/dist-esm/src/operations/subscriptions.js.map +1 -0
  64. package/dist-esm/src/operations/transformations.d.ts +46 -0
  65. package/dist-esm/src/operations/transformations.d.ts.map +1 -0
  66. package/dist-esm/src/operations/transformations.js +160 -0
  67. package/dist-esm/src/operations/transformations.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/clusters.d.ts +84 -0
  69. package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/clusters.js +9 -0
  71. package/dist-esm/src/operationsInterfaces/clusters.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/functions.d.ts +82 -0
  73. package/dist-esm/src/operationsInterfaces/functions.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/functions.js +9 -0
  75. package/dist-esm/src/operationsInterfaces/functions.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/index.d.ts +10 -0
  77. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/index.js +17 -0
  79. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/inputs.d.ts +69 -0
  81. package/dist-esm/src/operationsInterfaces/inputs.d.ts.map +1 -0
  82. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/inputs.js} +2 -1
  83. package/dist-esm/src/operationsInterfaces/inputs.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  85. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  86. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  87. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/outputs.d.ts +70 -0
  89. package/dist-esm/src/operationsInterfaces/outputs.d.ts.map +1 -0
  90. package/dist-esm/src/operationsInterfaces/outputs.js +9 -0
  91. package/dist-esm/src/operationsInterfaces/outputs.js.map +1 -0
  92. package/dist-esm/src/operationsInterfaces/privateEndpoints.d.ts +48 -0
  93. package/dist-esm/src/operationsInterfaces/privateEndpoints.d.ts.map +1 -0
  94. package/dist-esm/src/operationsInterfaces/privateEndpoints.js +9 -0
  95. package/dist-esm/src/operationsInterfaces/privateEndpoints.js.map +1 -0
  96. package/dist-esm/src/operationsInterfaces/streamingJobs.d.ts +115 -0
  97. package/dist-esm/src/operationsInterfaces/streamingJobs.d.ts.map +1 -0
  98. package/dist-esm/src/operationsInterfaces/streamingJobs.js +9 -0
  99. package/dist-esm/src/operationsInterfaces/streamingJobs.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/subscriptions.d.ts +13 -0
  101. package/dist-esm/src/operationsInterfaces/subscriptions.d.ts.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/subscriptions.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/subscriptions.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/transformations.d.ts +38 -0
  105. package/dist-esm/src/operationsInterfaces/transformations.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/transformations.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/transformations.js.map +1 -0
  108. package/dist-esm/src/streamAnalyticsManagementClient.d.ts +26 -0
  109. package/dist-esm/src/streamAnalyticsManagementClient.d.ts.map +1 -0
  110. package/dist-esm/src/streamAnalyticsManagementClient.js +59 -0
  111. package/dist-esm/src/streamAnalyticsManagementClient.js.map +1 -0
  112. package/dist-esm/test/sampleTest.d.ts +2 -0
  113. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  114. package/dist-esm/test/sampleTest.js +40 -0
  115. package/dist-esm/test/sampleTest.js.map +1 -0
  116. package/package.json +65 -32
  117. package/review/arm-streamanalytics.api.md +1598 -0
  118. package/rollup.config.js +181 -30
  119. package/src/{models/operationsMappers.ts → index.ts} +4 -12
  120. package/src/lroImpl.ts +34 -0
  121. package/src/models/index.ts +1943 -4505
  122. package/src/models/mappers.ts +1393 -2127
  123. package/src/models/parameters.ts +180 -90
  124. package/src/operations/clusters.ts +640 -393
  125. package/src/operations/functions.ts +366 -375
  126. package/src/operations/index.ts +5 -6
  127. package/src/operations/inputs.ts +337 -326
  128. package/src/operations/operations.ts +85 -73
  129. package/src/operations/outputs.ts +337 -325
  130. package/src/operations/privateEndpoints.ts +276 -209
  131. package/src/operations/streamingJobs.ts +686 -398
  132. package/src/operations/subscriptions.ts +36 -376
  133. package/src/operations/transformations.ts +104 -162
  134. package/src/operationsInterfaces/clusters.ts +157 -0
  135. package/src/operationsInterfaces/functions.ts +148 -0
  136. package/src/operationsInterfaces/index.ts +17 -0
  137. package/src/operationsInterfaces/inputs.ts +128 -0
  138. package/src/operationsInterfaces/operations.ts +22 -0
  139. package/src/operationsInterfaces/outputs.ts +129 -0
  140. package/src/operationsInterfaces/privateEndpoints.ts +90 -0
  141. package/src/operationsInterfaces/streamingJobs.ts +199 -0
  142. package/src/operationsInterfaces/subscriptions.ts +27 -0
  143. package/src/operationsInterfaces/transformations.ts +71 -0
  144. package/src/streamAnalyticsManagementClient.ts +97 -49
  145. package/tsconfig.json +3 -3
  146. package/types/arm-streamanalytics.d.ts +2730 -0
  147. package/types/tsdoc-metadata.json +11 -0
  148. package/dist/arm-streamanalytics.js +0 -7772
  149. package/dist/arm-streamanalytics.js.map +0 -1
  150. package/dist/arm-streamanalytics.min.js +0 -1
  151. package/dist/arm-streamanalytics.min.js.map +0 -1
  152. package/esm/models/clustersMappers.d.ts +0 -2
  153. package/esm/models/clustersMappers.d.ts.map +0 -1
  154. package/esm/models/clustersMappers.js +0 -9
  155. package/esm/models/clustersMappers.js.map +0 -1
  156. package/esm/models/functionsMappers.d.ts +0 -2
  157. package/esm/models/functionsMappers.d.ts.map +0 -1
  158. package/esm/models/functionsMappers.js +0 -9
  159. package/esm/models/functionsMappers.js.map +0 -1
  160. package/esm/models/index.d.ts +0 -4514
  161. package/esm/models/index.d.ts.map +0 -1
  162. package/esm/models/index.js.map +0 -1
  163. package/esm/models/inputsMappers.d.ts +0 -2
  164. package/esm/models/inputsMappers.d.ts.map +0 -1
  165. package/esm/models/inputsMappers.js +0 -9
  166. package/esm/models/inputsMappers.js.map +0 -1
  167. package/esm/models/mappers.d.ts +0 -185
  168. package/esm/models/mappers.d.ts.map +0 -1
  169. package/esm/models/mappers.js.map +0 -1
  170. package/esm/models/operationsMappers.d.ts +0 -2
  171. package/esm/models/operationsMappers.d.ts.map +0 -1
  172. package/esm/models/operationsMappers.js +0 -9
  173. package/esm/models/operationsMappers.js.map +0 -1
  174. package/esm/models/outputsMappers.d.ts +0 -2
  175. package/esm/models/outputsMappers.d.ts.map +0 -1
  176. package/esm/models/outputsMappers.js +0 -9
  177. package/esm/models/outputsMappers.js.map +0 -1
  178. package/esm/models/parameters.d.ts +0 -20
  179. package/esm/models/parameters.d.ts.map +0 -1
  180. package/esm/models/parameters.js +0 -216
  181. package/esm/models/parameters.js.map +0 -1
  182. package/esm/models/privateEndpointsMappers.d.ts +0 -2
  183. package/esm/models/privateEndpointsMappers.d.ts.map +0 -1
  184. package/esm/models/privateEndpointsMappers.js +0 -9
  185. package/esm/models/privateEndpointsMappers.js.map +0 -1
  186. package/esm/models/streamingJobsMappers.d.ts +0 -2
  187. package/esm/models/streamingJobsMappers.d.ts.map +0 -1
  188. package/esm/models/streamingJobsMappers.js +0 -9
  189. package/esm/models/streamingJobsMappers.js.map +0 -1
  190. package/esm/models/subscriptionsMappers.d.ts +0 -2
  191. package/esm/models/subscriptionsMappers.d.ts.map +0 -1
  192. package/esm/models/subscriptionsMappers.js +0 -9
  193. package/esm/models/subscriptionsMappers.js.map +0 -1
  194. package/esm/models/transformationsMappers.d.ts +0 -2
  195. package/esm/models/transformationsMappers.d.ts.map +0 -1
  196. package/esm/models/transformationsMappers.js +0 -9
  197. package/esm/models/transformationsMappers.js.map +0 -1
  198. package/esm/operations/clusters.d.ts +0 -201
  199. package/esm/operations/clusters.d.ts.map +0 -1
  200. package/esm/operations/clusters.js +0 -406
  201. package/esm/operations/clusters.js.map +0 -1
  202. package/esm/operations/functions.d.ts +0 -215
  203. package/esm/operations/functions.d.ts.map +0 -1
  204. package/esm/operations/functions.js +0 -348
  205. package/esm/operations/functions.js.map +0 -1
  206. package/esm/operations/index.d.ts.map +0 -1
  207. package/esm/operations/index.js.map +0 -1
  208. package/esm/operations/inputs.d.ts +0 -189
  209. package/esm/operations/inputs.d.ts.map +0 -1
  210. package/esm/operations/inputs.js +0 -306
  211. package/esm/operations/inputs.js.map +0 -1
  212. package/esm/operations/operations.d.ts +0 -46
  213. package/esm/operations/operations.d.ts.map +0 -1
  214. package/esm/operations/operations.js +0 -79
  215. package/esm/operations/operations.js.map +0 -1
  216. package/esm/operations/outputs.d.ts +0 -189
  217. package/esm/operations/outputs.d.ts.map +0 -1
  218. package/esm/operations/outputs.js +0 -306
  219. package/esm/operations/outputs.js.map +0 -1
  220. package/esm/operations/privateEndpoints.d.ts +0 -125
  221. package/esm/operations/privateEndpoints.d.ts.map +0 -1
  222. package/esm/operations/privateEndpoints.js +0 -216
  223. package/esm/operations/privateEndpoints.js.map +0 -1
  224. package/esm/operations/streamingJobs.d.ts +0 -210
  225. package/esm/operations/streamingJobs.d.ts.map +0 -1
  226. package/esm/operations/streamingJobs.js +0 -440
  227. package/esm/operations/streamingJobs.js.map +0 -1
  228. package/esm/operations/subscriptions.d.ts +0 -138
  229. package/esm/operations/subscriptions.d.ts.map +0 -1
  230. package/esm/operations/subscriptions.js +0 -311
  231. package/esm/operations/subscriptions.js.map +0 -1
  232. package/esm/operations/transformations.d.ts +0 -106
  233. package/esm/operations/transformations.d.ts.map +0 -1
  234. package/esm/operations/transformations.js +0 -149
  235. package/esm/operations/transformations.js.map +0 -1
  236. package/esm/streamAnalyticsManagementClient.d.ts +0 -32
  237. package/esm/streamAnalyticsManagementClient.d.ts.map +0 -1
  238. package/esm/streamAnalyticsManagementClient.js +0 -45
  239. package/esm/streamAnalyticsManagementClient.js.map +0 -1
  240. package/esm/streamAnalyticsManagementClientContext.d.ts +0 -21
  241. package/esm/streamAnalyticsManagementClientContext.d.ts.map +0 -1
  242. package/esm/streamAnalyticsManagementClientContext.js +0 -59
  243. package/esm/streamAnalyticsManagementClientContext.js.map +0 -1
  244. package/src/models/clustersMappers.ts +0 -96
  245. package/src/models/functionsMappers.ts +0 -104
  246. package/src/models/inputsMappers.ts +0 -99
  247. package/src/models/outputsMappers.ts +0 -99
  248. package/src/models/privateEndpointsMappers.ts +0 -94
  249. package/src/models/streamingJobsMappers.ts +0 -98
  250. package/src/models/subscriptionsMappers.ts +0 -104
  251. package/src/models/transformationsMappers.ts +0 -96
  252. package/src/streamAnalyticsManagementClientContext.ts +0 -65
@@ -3,246 +3,55 @@
3
3
  * Licensed under the MIT License.
4
4
  *
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is
7
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
7
  */
9
8
 
10
- import * as msRest from "@azure/ms-rest-js";
11
- import * as msRestAzure from "@azure/ms-rest-azure-js";
12
- import * as Models from "../models";
13
- import * as Mappers from "../models/subscriptionsMappers";
9
+ import { Subscriptions } from "../operationsInterfaces";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
14
12
  import * as Parameters from "../models/parameters";
15
- import { StreamAnalyticsManagementClientContext } from "../streamAnalyticsManagementClientContext";
13
+ import { StreamAnalyticsManagementClient } from "../streamAnalyticsManagementClient";
14
+ import {
15
+ SubscriptionsListQuotasOptionalParams,
16
+ SubscriptionsListQuotasResponse
17
+ } from "../models";
16
18
 
17
- /** Class representing a Subscriptions. */
18
- export class Subscriptions {
19
- private readonly client: StreamAnalyticsManagementClientContext;
19
+ /** Class containing Subscriptions operations. */
20
+ export class SubscriptionsImpl implements Subscriptions {
21
+ private readonly client: StreamAnalyticsManagementClient;
20
22
 
21
23
  /**
22
- * Create a Subscriptions.
23
- * @param {StreamAnalyticsManagementClientContext} client Reference to the service client.
24
+ * Initialize a new instance of the class Subscriptions class.
25
+ * @param client Reference to the service client
24
26
  */
25
- constructor(client: StreamAnalyticsManagementClientContext) {
27
+ constructor(client: StreamAnalyticsManagementClient) {
26
28
  this.client = client;
27
29
  }
28
30
 
29
31
  /**
30
32
  * Retrieves the subscription's current quota information in a particular region.
31
- * @param location The region to which the request is sent. You can find out which regions Azure
32
- * Stream Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
33
- * @param [options] The optional parameters
34
- * @returns Promise<Models.SubscriptionsListQuotasResponse>
33
+ * @param location The region in which to retrieve the subscription's quota information. You can find
34
+ * out which regions Azure Stream Analytics is supported in here:
35
+ * https://azure.microsoft.com/en-us/regions/
36
+ * @param options The options parameters.
35
37
  */
36
- listQuotas(location: string, options?: msRest.RequestOptionsBase): Promise<Models.SubscriptionsListQuotasResponse>;
37
- /**
38
- * @param location The region to which the request is sent. You can find out which regions Azure
39
- * Stream Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
40
- * @param callback The callback
41
- */
42
- listQuotas(location: string, callback: msRest.ServiceCallback<Models.SubscriptionQuotasListResult>): void;
43
- /**
44
- * @param location The region to which the request is sent. You can find out which regions Azure
45
- * Stream Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
46
- * @param options The optional parameters
47
- * @param callback The callback
48
- */
49
- listQuotas(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SubscriptionQuotasListResult>): void;
50
- listQuotas(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SubscriptionQuotasListResult>, callback?: msRest.ServiceCallback<Models.SubscriptionQuotasListResult>): Promise<Models.SubscriptionsListQuotasResponse> {
51
- return this.client.sendOperationRequest(
52
- {
53
- location,
54
- options
55
- },
56
- listQuotasOperationSpec,
57
- callback) as Promise<Models.SubscriptionsListQuotasResponse>;
58
- }
59
-
60
- /**
61
- * Test the Stream Analytics query on a sample input.
62
- * @param testQuery The query testing object that defines the input, output, and transformation for
63
- * the query testing.
64
- * @param location The region to which the request is sent. You can find out which regions Azure
65
- * Stream Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
66
- * @param [options] The optional parameters
67
- * @returns Promise<Models.SubscriptionsTestQueryMethodResponse>
68
- */
69
- testQueryMethod(testQuery: Models.TestQuery, location: string, options?: msRest.RequestOptionsBase): Promise<Models.SubscriptionsTestQueryMethodResponse> {
70
- return this.beginTestQueryMethod(testQuery,location,options)
71
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.SubscriptionsTestQueryMethodResponse>;
72
- }
73
-
74
- /**
75
- * Compile the Stream Analytics query.
76
- * @param compileQuery The query compilation object which defines the input, output, and
77
- * transformation for the query compilation.
78
- * @param location The region to which the request is sent. You can find out which regions Azure
79
- * Stream Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
80
- * @param [options] The optional parameters
81
- * @returns Promise<Models.SubscriptionsCompileQueryMethodResponse>
82
- */
83
- compileQueryMethod(compileQuery: Models.CompileQuery, location: string, options?: msRest.RequestOptionsBase): Promise<Models.SubscriptionsCompileQueryMethodResponse>;
84
- /**
85
- * @param compileQuery The query compilation object which defines the input, output, and
86
- * transformation for the query compilation.
87
- * @param location The region to which the request is sent. You can find out which regions Azure
88
- * Stream Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
89
- * @param callback The callback
90
- */
91
- compileQueryMethod(compileQuery: Models.CompileQuery, location: string, callback: msRest.ServiceCallback<Models.QueryCompilationResult>): void;
92
- /**
93
- * @param compileQuery The query compilation object which defines the input, output, and
94
- * transformation for the query compilation.
95
- * @param location The region to which the request is sent. You can find out which regions Azure
96
- * Stream Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
97
- * @param options The optional parameters
98
- * @param callback The callback
99
- */
100
- compileQueryMethod(compileQuery: Models.CompileQuery, location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.QueryCompilationResult>): void;
101
- compileQueryMethod(compileQuery: Models.CompileQuery, location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.QueryCompilationResult>, callback?: msRest.ServiceCallback<Models.QueryCompilationResult>): Promise<Models.SubscriptionsCompileQueryMethodResponse> {
38
+ listQuotas(
39
+ location: string,
40
+ options?: SubscriptionsListQuotasOptionalParams
41
+ ): Promise<SubscriptionsListQuotasResponse> {
102
42
  return this.client.sendOperationRequest(
103
- {
104
- compileQuery,
105
- location,
106
- options
107
- },
108
- compileQueryMethodOperationSpec,
109
- callback) as Promise<Models.SubscriptionsCompileQueryMethodResponse>;
110
- }
111
-
112
- /**
113
- * Sample the Stream Analytics input data.
114
- * @param sampleInput Defines the necessary parameters for sampling the Stream Analytics input
115
- * data.
116
- * @param location The region to which the request is sent. You can find out which regions Azure
117
- * Stream Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
118
- * @param [options] The optional parameters
119
- * @returns Promise<Models.SubscriptionsSampleInputMethodResponse>
120
- */
121
- sampleInputMethod(sampleInput: Models.SampleInput, location: string, options?: msRest.RequestOptionsBase): Promise<Models.SubscriptionsSampleInputMethodResponse> {
122
- return this.beginSampleInputMethod(sampleInput,location,options)
123
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.SubscriptionsSampleInputMethodResponse>;
124
- }
125
-
126
- /**
127
- * Test the Stream Analytics input.
128
- * @param testInput Defines the necessary parameters for testing the Stream Analytics input.
129
- * @param location The region to which the request is sent. You can find out which regions Azure
130
- * Stream Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
131
- * @param [options] The optional parameters
132
- * @returns Promise<Models.SubscriptionsTestInputMethodResponse>
133
- */
134
- testInputMethod(testInput: Models.TestInput, location: string, options?: msRest.RequestOptionsBase): Promise<Models.SubscriptionsTestInputMethodResponse> {
135
- return this.beginTestInputMethod(testInput,location,options)
136
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.SubscriptionsTestInputMethodResponse>;
137
- }
138
-
139
- /**
140
- * Test the Stream Analytics output.
141
- * @param testOutput Defines the necessary parameters for testing the Stream Analytics output.
142
- * @param location The region to which the request is sent. You can find out which regions Azure
143
- * Stream Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
144
- * @param [options] The optional parameters
145
- * @returns Promise<Models.SubscriptionsTestOutputMethodResponse>
146
- */
147
- testOutputMethod(testOutput: Models.TestOutput, location: string, options?: msRest.RequestOptionsBase): Promise<Models.SubscriptionsTestOutputMethodResponse> {
148
- return this.beginTestOutputMethod(testOutput,location,options)
149
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.SubscriptionsTestOutputMethodResponse>;
150
- }
151
-
152
- /**
153
- * Test the Stream Analytics query on a sample input.
154
- * @param testQuery The query testing object that defines the input, output, and transformation for
155
- * the query testing.
156
- * @param location The region to which the request is sent. You can find out which regions Azure
157
- * Stream Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
158
- * @param [options] The optional parameters
159
- * @returns Promise<msRestAzure.LROPoller>
160
- */
161
- beginTestQueryMethod(testQuery: Models.TestQuery, location: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
162
- return this.client.sendLRORequest(
163
- {
164
- testQuery,
165
- location,
166
- options
167
- },
168
- beginTestQueryMethodOperationSpec,
169
- options);
170
- }
171
-
172
- /**
173
- * Sample the Stream Analytics input data.
174
- * @param sampleInput Defines the necessary parameters for sampling the Stream Analytics input
175
- * data.
176
- * @param location The region to which the request is sent. You can find out which regions Azure
177
- * Stream Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
178
- * @param [options] The optional parameters
179
- * @returns Promise<msRestAzure.LROPoller>
180
- */
181
- beginSampleInputMethod(sampleInput: Models.SampleInput, location: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
182
- return this.client.sendLRORequest(
183
- {
184
- sampleInput,
185
- location,
186
- options
187
- },
188
- beginSampleInputMethodOperationSpec,
189
- options);
190
- }
191
-
192
- /**
193
- * Test the Stream Analytics input.
194
- * @param testInput Defines the necessary parameters for testing the Stream Analytics input.
195
- * @param location The region to which the request is sent. You can find out which regions Azure
196
- * Stream Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
197
- * @param [options] The optional parameters
198
- * @returns Promise<msRestAzure.LROPoller>
199
- */
200
- beginTestInputMethod(testInput: Models.TestInput, location: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
201
- return this.client.sendLRORequest(
202
- {
203
- testInput,
204
- location,
205
- options
206
- },
207
- beginTestInputMethodOperationSpec,
208
- options);
209
- }
210
-
211
- /**
212
- * Test the Stream Analytics output.
213
- * @param testOutput Defines the necessary parameters for testing the Stream Analytics output.
214
- * @param location The region to which the request is sent. You can find out which regions Azure
215
- * Stream Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
216
- * @param [options] The optional parameters
217
- * @returns Promise<msRestAzure.LROPoller>
218
- */
219
- beginTestOutputMethod(testOutput: Models.TestOutput, location: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
220
- return this.client.sendLRORequest(
221
- {
222
- testOutput,
223
- location,
224
- options
225
- },
226
- beginTestOutputMethodOperationSpec,
227
- options);
43
+ { location, options },
44
+ listQuotasOperationSpec
45
+ );
228
46
  }
229
47
  }
230
-
231
48
  // Operation Specifications
232
- const serializer = new msRest.Serializer(Mappers);
233
- const listQuotasOperationSpec: msRest.OperationSpec = {
49
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
50
+
51
+ const listQuotasOperationSpec: coreClient.OperationSpec = {
52
+ path:
53
+ "/subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/locations/{location}/quotas",
234
54
  httpMethod: "GET",
235
- path: "subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/locations/{location}/quotas",
236
- urlParameters: [
237
- Parameters.location,
238
- Parameters.subscriptionId
239
- ],
240
- queryParameters: [
241
- Parameters.apiVersion0
242
- ],
243
- headerParameters: [
244
- Parameters.acceptLanguage
245
- ],
246
55
  responses: {
247
56
  200: {
248
57
  bodyMapper: Mappers.SubscriptionQuotasListResult
@@ -251,161 +60,12 @@ const listQuotasOperationSpec: msRest.OperationSpec = {
251
60
  bodyMapper: Mappers.ErrorModel
252
61
  }
253
62
  },
254
- serializer
255
- };
256
-
257
- const compileQueryMethodOperationSpec: msRest.OperationSpec = {
258
- httpMethod: "POST",
259
- path: "subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/locations/{location}/compileQuery",
260
- urlParameters: [
261
- Parameters.location,
262
- Parameters.subscriptionId
263
- ],
264
- queryParameters: [
265
- Parameters.apiVersion0
266
- ],
267
- headerParameters: [
268
- Parameters.acceptLanguage
269
- ],
270
- requestBody: {
271
- parameterPath: "compileQuery",
272
- mapper: {
273
- ...Mappers.CompileQuery,
274
- required: true
275
- }
276
- },
277
- responses: {
278
- 200: {
279
- bodyMapper: Mappers.QueryCompilationResult
280
- },
281
- default: {
282
- bodyMapper: Mappers.ErrorModel
283
- }
284
- },
285
- serializer
286
- };
287
-
288
- const beginTestQueryMethodOperationSpec: msRest.OperationSpec = {
289
- httpMethod: "POST",
290
- path: "subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/locations/{location}/testQuery",
291
- urlParameters: [
292
- Parameters.location,
293
- Parameters.subscriptionId
294
- ],
295
- queryParameters: [
296
- Parameters.apiVersion0
297
- ],
298
- headerParameters: [
299
- Parameters.acceptLanguage
300
- ],
301
- requestBody: {
302
- parameterPath: "testQuery",
303
- mapper: {
304
- ...Mappers.TestQuery,
305
- required: true
306
- }
307
- },
308
- responses: {
309
- 200: {
310
- bodyMapper: Mappers.QueryTestingResult
311
- },
312
- 202: {},
313
- default: {
314
- bodyMapper: Mappers.ErrorModel
315
- }
316
- },
317
- serializer
318
- };
319
-
320
- const beginSampleInputMethodOperationSpec: msRest.OperationSpec = {
321
- httpMethod: "POST",
322
- path: "subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/locations/{location}/sampleInput",
63
+ queryParameters: [Parameters.apiVersion],
323
64
  urlParameters: [
324
- Parameters.location,
325
- Parameters.subscriptionId
326
- ],
327
- queryParameters: [
328
- Parameters.apiVersion0
65
+ Parameters.$host,
66
+ Parameters.subscriptionId,
67
+ Parameters.location
329
68
  ],
330
- headerParameters: [
331
- Parameters.acceptLanguage
332
- ],
333
- requestBody: {
334
- parameterPath: "sampleInput",
335
- mapper: {
336
- ...Mappers.SampleInput,
337
- required: true
338
- }
339
- },
340
- responses: {
341
- 202: {
342
- bodyMapper: Mappers.SampleInputResult
343
- },
344
- default: {
345
- bodyMapper: Mappers.ErrorModel
346
- }
347
- },
348
- serializer
349
- };
350
-
351
- const beginTestInputMethodOperationSpec: msRest.OperationSpec = {
352
- httpMethod: "POST",
353
- path: "subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/locations/{location}/testInput",
354
- urlParameters: [
355
- Parameters.location,
356
- Parameters.subscriptionId
357
- ],
358
- queryParameters: [
359
- Parameters.apiVersion0
360
- ],
361
- headerParameters: [
362
- Parameters.acceptLanguage
363
- ],
364
- requestBody: {
365
- parameterPath: "testInput",
366
- mapper: {
367
- ...Mappers.TestInput,
368
- required: true
369
- }
370
- },
371
- responses: {
372
- 202: {
373
- bodyMapper: Mappers.TestDatasourceResult
374
- },
375
- default: {
376
- bodyMapper: Mappers.ErrorModel
377
- }
378
- },
379
- serializer
380
- };
381
-
382
- const beginTestOutputMethodOperationSpec: msRest.OperationSpec = {
383
- httpMethod: "POST",
384
- path: "subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/locations/{location}/testOutput",
385
- urlParameters: [
386
- Parameters.location,
387
- Parameters.subscriptionId
388
- ],
389
- queryParameters: [
390
- Parameters.apiVersion0
391
- ],
392
- headerParameters: [
393
- Parameters.acceptLanguage
394
- ],
395
- requestBody: {
396
- parameterPath: "testOutput",
397
- mapper: {
398
- ...Mappers.TestOutput,
399
- required: true
400
- }
401
- },
402
- responses: {
403
- 202: {
404
- bodyMapper: Mappers.TestDatasourceResult
405
- },
406
- default: {
407
- bodyMapper: Mappers.ErrorModel
408
- }
409
- },
69
+ headerParameters: [Parameters.accept],
410
70
  serializer
411
71
  };