@azure/arm-streamanalytics 3.0.0-beta.1 → 3.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 (256) hide show
  1. package/{LICENSE → LICENSE.txt} +1 -1
  2. package/README.md +84 -66
  3. package/dist/arm-streamanalytics.js +7772 -0
  4. package/dist/arm-streamanalytics.js.map +1 -0
  5. package/dist/arm-streamanalytics.min.js +1 -0
  6. package/dist/arm-streamanalytics.min.js.map +1 -0
  7. package/esm/models/clustersMappers.d.ts +2 -0
  8. package/esm/models/clustersMappers.d.ts.map +1 -0
  9. package/esm/models/clustersMappers.js +9 -0
  10. package/esm/models/clustersMappers.js.map +1 -0
  11. package/esm/models/functionsMappers.d.ts +2 -0
  12. package/esm/models/functionsMappers.d.ts.map +1 -0
  13. package/esm/models/functionsMappers.js +9 -0
  14. package/esm/models/functionsMappers.js.map +1 -0
  15. package/esm/models/index.d.ts +4514 -0
  16. package/esm/models/index.d.ts.map +1 -0
  17. package/{dist-esm/src/operationsInterfaces/inputs.js → esm/models/index.js} +1 -2
  18. package/esm/models/index.js.map +1 -0
  19. package/esm/models/inputsMappers.d.ts +2 -0
  20. package/esm/models/inputsMappers.d.ts.map +1 -0
  21. package/esm/models/inputsMappers.js +9 -0
  22. package/esm/models/inputsMappers.js.map +1 -0
  23. package/esm/models/mappers.d.ts +185 -0
  24. package/esm/models/mappers.d.ts.map +1 -0
  25. package/{dist-esm/src → esm}/models/mappers.js +2184 -2272
  26. package/esm/models/mappers.js.map +1 -0
  27. package/esm/models/operationsMappers.d.ts +2 -0
  28. package/esm/models/operationsMappers.d.ts.map +1 -0
  29. package/esm/models/operationsMappers.js +9 -0
  30. package/esm/models/operationsMappers.js.map +1 -0
  31. package/esm/models/outputsMappers.d.ts +2 -0
  32. package/esm/models/outputsMappers.d.ts.map +1 -0
  33. package/esm/models/outputsMappers.js +9 -0
  34. package/esm/models/outputsMappers.js.map +1 -0
  35. package/esm/models/parameters.d.ts +20 -0
  36. package/esm/models/parameters.d.ts.map +1 -0
  37. package/esm/models/parameters.js +216 -0
  38. package/esm/models/parameters.js.map +1 -0
  39. package/esm/models/privateEndpointsMappers.d.ts +2 -0
  40. package/esm/models/privateEndpointsMappers.d.ts.map +1 -0
  41. package/esm/models/privateEndpointsMappers.js +9 -0
  42. package/esm/models/privateEndpointsMappers.js.map +1 -0
  43. package/esm/models/streamingJobsMappers.d.ts +2 -0
  44. package/esm/models/streamingJobsMappers.d.ts.map +1 -0
  45. package/esm/models/streamingJobsMappers.js +9 -0
  46. package/esm/models/streamingJobsMappers.js.map +1 -0
  47. package/esm/models/subscriptionsMappers.d.ts +2 -0
  48. package/esm/models/subscriptionsMappers.d.ts.map +1 -0
  49. package/esm/models/subscriptionsMappers.js +9 -0
  50. package/esm/models/subscriptionsMappers.js.map +1 -0
  51. package/esm/models/transformationsMappers.d.ts +2 -0
  52. package/esm/models/transformationsMappers.d.ts.map +1 -0
  53. package/esm/models/transformationsMappers.js +9 -0
  54. package/esm/models/transformationsMappers.js.map +1 -0
  55. package/esm/operations/clusters.d.ts +201 -0
  56. package/esm/operations/clusters.d.ts.map +1 -0
  57. package/esm/operations/clusters.js +406 -0
  58. package/esm/operations/clusters.js.map +1 -0
  59. package/esm/operations/functions.d.ts +215 -0
  60. package/esm/operations/functions.d.ts.map +1 -0
  61. package/esm/operations/functions.js +348 -0
  62. package/esm/operations/functions.js.map +1 -0
  63. package/{dist-esm/src → esm}/operations/index.d.ts +0 -0
  64. package/esm/operations/index.d.ts.map +1 -0
  65. package/{dist-esm/src/operationsInterfaces → esm/operations}/index.js +2 -1
  66. package/esm/operations/index.js.map +1 -0
  67. package/esm/operations/inputs.d.ts +189 -0
  68. package/esm/operations/inputs.d.ts.map +1 -0
  69. package/esm/operations/inputs.js +306 -0
  70. package/esm/operations/inputs.js.map +1 -0
  71. package/esm/operations/operations.d.ts +46 -0
  72. package/esm/operations/operations.d.ts.map +1 -0
  73. package/esm/operations/operations.js +79 -0
  74. package/esm/operations/operations.js.map +1 -0
  75. package/esm/operations/outputs.d.ts +189 -0
  76. package/esm/operations/outputs.d.ts.map +1 -0
  77. package/esm/operations/outputs.js +306 -0
  78. package/esm/operations/outputs.js.map +1 -0
  79. package/esm/operations/privateEndpoints.d.ts +125 -0
  80. package/esm/operations/privateEndpoints.d.ts.map +1 -0
  81. package/esm/operations/privateEndpoints.js +216 -0
  82. package/esm/operations/privateEndpoints.js.map +1 -0
  83. package/esm/operations/streamingJobs.d.ts +210 -0
  84. package/esm/operations/streamingJobs.d.ts.map +1 -0
  85. package/esm/operations/streamingJobs.js +440 -0
  86. package/esm/operations/streamingJobs.js.map +1 -0
  87. package/esm/operations/subscriptions.d.ts +138 -0
  88. package/esm/operations/subscriptions.d.ts.map +1 -0
  89. package/esm/operations/subscriptions.js +311 -0
  90. package/esm/operations/subscriptions.js.map +1 -0
  91. package/esm/operations/transformations.d.ts +106 -0
  92. package/esm/operations/transformations.d.ts.map +1 -0
  93. package/esm/operations/transformations.js +149 -0
  94. package/esm/operations/transformations.js.map +1 -0
  95. package/esm/streamAnalyticsManagementClient.d.ts +32 -0
  96. package/esm/streamAnalyticsManagementClient.d.ts.map +1 -0
  97. package/esm/streamAnalyticsManagementClient.js +45 -0
  98. package/esm/streamAnalyticsManagementClient.js.map +1 -0
  99. package/esm/streamAnalyticsManagementClientContext.d.ts +21 -0
  100. package/esm/streamAnalyticsManagementClientContext.d.ts.map +1 -0
  101. package/esm/streamAnalyticsManagementClientContext.js +59 -0
  102. package/esm/streamAnalyticsManagementClientContext.js.map +1 -0
  103. package/package.json +32 -64
  104. package/rollup.config.js +30 -181
  105. package/src/models/clustersMappers.ts +96 -0
  106. package/src/models/functionsMappers.ts +104 -0
  107. package/src/models/index.ts +4273 -2134
  108. package/src/models/inputsMappers.ts +99 -0
  109. package/src/models/mappers.ts +2193 -2349
  110. package/{dist-esm/src/operationsInterfaces/operations.js → src/models/operationsMappers.ts} +13 -2
  111. package/src/models/outputsMappers.ts +99 -0
  112. package/src/models/parameters.ts +92 -218
  113. package/src/models/privateEndpointsMappers.ts +94 -0
  114. package/src/models/streamingJobsMappers.ts +98 -0
  115. package/src/models/subscriptionsMappers.ts +104 -0
  116. package/src/models/transformationsMappers.ts +96 -0
  117. package/src/operations/clusters.ts +390 -637
  118. package/src/operations/functions.ts +372 -363
  119. package/src/operations/index.ts +2 -1
  120. package/src/operations/inputs.ts +323 -334
  121. package/src/operations/operations.ts +70 -82
  122. package/src/operations/outputs.ts +322 -334
  123. package/src/operations/privateEndpoints.ts +206 -273
  124. package/src/operations/streamingJobs.ts +410 -596
  125. package/src/operations/subscriptions.ts +282 -466
  126. package/src/operations/transformations.ts +159 -101
  127. package/src/streamAnalyticsManagementClient.ts +47 -52
  128. package/src/streamAnalyticsManagementClientContext.ts +40 -43
  129. package/tsconfig.json +3 -3
  130. package/CHANGELOG.md +0 -14
  131. package/dist/index.js +0 -8017
  132. package/dist/index.js.map +0 -1
  133. package/dist/index.min.js +0 -1
  134. package/dist/index.min.js.map +0 -1
  135. package/dist-esm/src/index.d.ts +0 -6
  136. package/dist-esm/src/index.d.ts.map +0 -1
  137. package/dist-esm/src/index.js +0 -13
  138. package/dist-esm/src/index.js.map +0 -1
  139. package/dist-esm/src/lroImpl.d.ts +0 -16
  140. package/dist-esm/src/lroImpl.d.ts.map +0 -1
  141. package/dist-esm/src/lroImpl.js +0 -29
  142. package/dist-esm/src/lroImpl.js.map +0 -1
  143. package/dist-esm/src/models/index.d.ts +0 -2307
  144. package/dist-esm/src/models/index.d.ts.map +0 -1
  145. package/dist-esm/src/models/index.js +0 -152
  146. package/dist-esm/src/models/index.js.map +0 -1
  147. package/dist-esm/src/models/mappers.d.ts +0 -194
  148. package/dist-esm/src/models/mappers.d.ts.map +0 -1
  149. package/dist-esm/src/models/mappers.js.map +0 -1
  150. package/dist-esm/src/models/parameters.d.ts +0 -39
  151. package/dist-esm/src/models/parameters.d.ts.map +0 -1
  152. package/dist-esm/src/models/parameters.js +0 -287
  153. package/dist-esm/src/models/parameters.js.map +0 -1
  154. package/dist-esm/src/operations/clusters.d.ts +0 -137
  155. package/dist-esm/src/operations/clusters.d.ts.map +0 -1
  156. package/dist-esm/src/operations/clusters.js +0 -627
  157. package/dist-esm/src/operations/clusters.js.map +0 -1
  158. package/dist-esm/src/operations/functions.d.ts +0 -107
  159. package/dist-esm/src/operations/functions.d.ts.map +0 -1
  160. package/dist-esm/src/operations/functions.js +0 -416
  161. package/dist-esm/src/operations/functions.js.map +0 -1
  162. package/dist-esm/src/operations/index.d.ts.map +0 -1
  163. package/dist-esm/src/operations/index.js +0 -17
  164. package/dist-esm/src/operations/index.js.map +0 -1
  165. package/dist-esm/src/operations/inputs.d.ts +0 -94
  166. package/dist-esm/src/operations/inputs.d.ts.map +0 -1
  167. package/dist-esm/src/operations/inputs.js +0 -377
  168. package/dist-esm/src/operations/inputs.js.map +0 -1
  169. package/dist-esm/src/operations/operations.d.ts +0 -32
  170. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  171. package/dist-esm/src/operations/operations.js +0 -120
  172. package/dist-esm/src/operations/operations.js.map +0 -1
  173. package/dist-esm/src/operations/outputs.d.ts +0 -95
  174. package/dist-esm/src/operations/outputs.d.ts.map +0 -1
  175. package/dist-esm/src/operations/outputs.js +0 -378
  176. package/dist-esm/src/operations/outputs.js.map +0 -1
  177. package/dist-esm/src/operations/privateEndpoints.d.ts +0 -73
  178. package/dist-esm/src/operations/privateEndpoints.d.ts.map +0 -1
  179. package/dist-esm/src/operations/privateEndpoints.js +0 -295
  180. package/dist-esm/src/operations/privateEndpoints.js.map +0 -1
  181. package/dist-esm/src/operations/streamingJobs.d.ts +0 -137
  182. package/dist-esm/src/operations/streamingJobs.d.ts.map +0 -1
  183. package/dist-esm/src/operations/streamingJobs.js +0 -619
  184. package/dist-esm/src/operations/streamingJobs.js.map +0 -1
  185. package/dist-esm/src/operations/subscriptions.d.ts +0 -96
  186. package/dist-esm/src/operations/subscriptions.d.ts.map +0 -1
  187. package/dist-esm/src/operations/subscriptions.js +0 -422
  188. package/dist-esm/src/operations/subscriptions.js.map +0 -1
  189. package/dist-esm/src/operations/transformations.d.ts +0 -46
  190. package/dist-esm/src/operations/transformations.d.ts.map +0 -1
  191. package/dist-esm/src/operations/transformations.js +0 -160
  192. package/dist-esm/src/operations/transformations.js.map +0 -1
  193. package/dist-esm/src/operationsInterfaces/clusters.d.ts +0 -84
  194. package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +0 -1
  195. package/dist-esm/src/operationsInterfaces/clusters.js +0 -9
  196. package/dist-esm/src/operationsInterfaces/clusters.js.map +0 -1
  197. package/dist-esm/src/operationsInterfaces/functions.d.ts +0 -82
  198. package/dist-esm/src/operationsInterfaces/functions.d.ts.map +0 -1
  199. package/dist-esm/src/operationsInterfaces/functions.js +0 -9
  200. package/dist-esm/src/operationsInterfaces/functions.js.map +0 -1
  201. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -10
  202. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  203. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  204. package/dist-esm/src/operationsInterfaces/inputs.d.ts +0 -69
  205. package/dist-esm/src/operationsInterfaces/inputs.d.ts.map +0 -1
  206. package/dist-esm/src/operationsInterfaces/inputs.js.map +0 -1
  207. package/dist-esm/src/operationsInterfaces/operations.d.ts +0 -11
  208. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
  209. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  210. package/dist-esm/src/operationsInterfaces/outputs.d.ts +0 -70
  211. package/dist-esm/src/operationsInterfaces/outputs.d.ts.map +0 -1
  212. package/dist-esm/src/operationsInterfaces/outputs.js +0 -9
  213. package/dist-esm/src/operationsInterfaces/outputs.js.map +0 -1
  214. package/dist-esm/src/operationsInterfaces/privateEndpoints.d.ts +0 -48
  215. package/dist-esm/src/operationsInterfaces/privateEndpoints.d.ts.map +0 -1
  216. package/dist-esm/src/operationsInterfaces/privateEndpoints.js +0 -9
  217. package/dist-esm/src/operationsInterfaces/privateEndpoints.js.map +0 -1
  218. package/dist-esm/src/operationsInterfaces/streamingJobs.d.ts +0 -101
  219. package/dist-esm/src/operationsInterfaces/streamingJobs.d.ts.map +0 -1
  220. package/dist-esm/src/operationsInterfaces/streamingJobs.js +0 -9
  221. package/dist-esm/src/operationsInterfaces/streamingJobs.js.map +0 -1
  222. package/dist-esm/src/operationsInterfaces/subscriptions.d.ts +0 -88
  223. package/dist-esm/src/operationsInterfaces/subscriptions.d.ts.map +0 -1
  224. package/dist-esm/src/operationsInterfaces/subscriptions.js +0 -9
  225. package/dist-esm/src/operationsInterfaces/subscriptions.js.map +0 -1
  226. package/dist-esm/src/operationsInterfaces/transformations.d.ts +0 -38
  227. package/dist-esm/src/operationsInterfaces/transformations.d.ts.map +0 -1
  228. package/dist-esm/src/operationsInterfaces/transformations.js +0 -9
  229. package/dist-esm/src/operationsInterfaces/transformations.js.map +0 -1
  230. package/dist-esm/src/streamAnalyticsManagementClient.d.ts +0 -23
  231. package/dist-esm/src/streamAnalyticsManagementClient.d.ts.map +0 -1
  232. package/dist-esm/src/streamAnalyticsManagementClient.js +0 -30
  233. package/dist-esm/src/streamAnalyticsManagementClient.js.map +0 -1
  234. package/dist-esm/src/streamAnalyticsManagementClientContext.d.ts +0 -15
  235. package/dist-esm/src/streamAnalyticsManagementClientContext.d.ts.map +0 -1
  236. package/dist-esm/src/streamAnalyticsManagementClientContext.js +0 -48
  237. package/dist-esm/src/streamAnalyticsManagementClientContext.js.map +0 -1
  238. package/dist-esm/test/sampleTest.d.ts +0 -2
  239. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  240. package/dist-esm/test/sampleTest.js +0 -40
  241. package/dist-esm/test/sampleTest.js.map +0 -1
  242. package/review/arm-streamanalytics.api.md +0 -1865
  243. package/src/index.ts +0 -13
  244. package/src/lroImpl.ts +0 -34
  245. package/src/operationsInterfaces/clusters.ts +0 -157
  246. package/src/operationsInterfaces/functions.ts +0 -148
  247. package/src/operationsInterfaces/index.ts +0 -17
  248. package/src/operationsInterfaces/inputs.ts +0 -128
  249. package/src/operationsInterfaces/operations.ts +0 -22
  250. package/src/operationsInterfaces/outputs.ts +0 -129
  251. package/src/operationsInterfaces/privateEndpoints.ts +0 -90
  252. package/src/operationsInterfaces/streamingJobs.ts +0 -176
  253. package/src/operationsInterfaces/subscriptions.ts +0 -173
  254. package/src/operationsInterfaces/transformations.ts +0 -71
  255. package/types/arm-streamanalytics.d.ts +0 -3207
  256. package/types/tsdoc-metadata.json +0 -11
@@ -3,377 +3,183 @@
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 regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is
7
+ * regenerated.
7
8
  */
8
9
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
- import { StreamingJobs } from "../operationsInterfaces";
11
- import * as coreClient from "@azure/core-client";
12
- import * as Mappers from "../models/mappers";
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/streamingJobsMappers";
13
14
  import * as Parameters from "../models/parameters";
14
15
  import { StreamAnalyticsManagementClientContext } from "../streamAnalyticsManagementClientContext";
15
- import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
- import { LroImpl } from "../lroImpl";
17
- import {
18
- StreamingJob,
19
- StreamingJobsListByResourceGroupNextOptionalParams,
20
- StreamingJobsListByResourceGroupOptionalParams,
21
- StreamingJobsListNextOptionalParams,
22
- StreamingJobsListOptionalParams,
23
- StreamingJobsCreateOrReplaceOptionalParams,
24
- StreamingJobsCreateOrReplaceResponse,
25
- StreamingJobsUpdateOptionalParams,
26
- StreamingJobsUpdateResponse,
27
- StreamingJobsDeleteOptionalParams,
28
- StreamingJobsGetOptionalParams,
29
- StreamingJobsGetResponse,
30
- StreamingJobsListByResourceGroupResponse,
31
- StreamingJobsListResponse,
32
- StreamingJobsStartOptionalParams,
33
- StreamingJobsStopOptionalParams,
34
- StreamingJobsListByResourceGroupNextResponse,
35
- StreamingJobsListNextResponse
36
- } from "../models";
37
16
 
38
- /// <reference lib="esnext.asynciterable" />
39
- /** Class containing StreamingJobs operations. */
40
- export class StreamingJobsImpl implements StreamingJobs {
17
+ /** Class representing a StreamingJobs. */
18
+ export class StreamingJobs {
41
19
  private readonly client: StreamAnalyticsManagementClientContext;
42
20
 
43
21
  /**
44
- * Initialize a new instance of the class StreamingJobs class.
45
- * @param client Reference to the service client
22
+ * Create a StreamingJobs.
23
+ * @param {StreamAnalyticsManagementClientContext} client Reference to the service client.
46
24
  */
47
25
  constructor(client: StreamAnalyticsManagementClientContext) {
48
26
  this.client = client;
49
27
  }
50
28
 
51
29
  /**
52
- * Lists all of the streaming jobs in the specified resource group.
30
+ * Creates a streaming job or replaces an already existing streaming job.
31
+ * @param streamingJob The definition of the streaming job that will be used to create a new
32
+ * streaming job or replace the existing one.
53
33
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
54
- * @param options The options parameters.
34
+ * @param jobName The name of the streaming job.
35
+ * @param [options] The optional parameters
36
+ * @returns Promise<Models.StreamingJobsCreateOrReplaceResponse>
55
37
  */
56
- public listByResourceGroup(
57
- resourceGroupName: string,
58
- options?: StreamingJobsListByResourceGroupOptionalParams
59
- ): PagedAsyncIterableIterator<StreamingJob> {
60
- const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
61
- return {
62
- next() {
63
- return iter.next();
64
- },
65
- [Symbol.asyncIterator]() {
66
- return this;
67
- },
68
- byPage: () => {
69
- return this.listByResourceGroupPagingPage(resourceGroupName, options);
70
- }
71
- };
72
- }
73
-
74
- private async *listByResourceGroupPagingPage(
75
- resourceGroupName: string,
76
- options?: StreamingJobsListByResourceGroupOptionalParams
77
- ): AsyncIterableIterator<StreamingJob[]> {
78
- let result = await this._listByResourceGroup(resourceGroupName, options);
79
- yield result.value || [];
80
- let continuationToken = result.nextLink;
81
- while (continuationToken) {
82
- result = await this._listByResourceGroupNext(
83
- resourceGroupName,
84
- continuationToken,
85
- options
86
- );
87
- continuationToken = result.nextLink;
88
- yield result.value || [];
89
- }
90
- }
91
-
92
- private async *listByResourceGroupPagingAll(
93
- resourceGroupName: string,
94
- options?: StreamingJobsListByResourceGroupOptionalParams
95
- ): AsyncIterableIterator<StreamingJob> {
96
- for await (const page of this.listByResourceGroupPagingPage(
97
- resourceGroupName,
98
- options
99
- )) {
100
- yield* page;
101
- }
38
+ createOrReplace(streamingJob: Models.StreamingJob, resourceGroupName: string, jobName: string, options?: Models.StreamingJobsCreateOrReplaceOptionalParams): Promise<Models.StreamingJobsCreateOrReplaceResponse> {
39
+ return this.beginCreateOrReplace(streamingJob,resourceGroupName,jobName,options)
40
+ .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.StreamingJobsCreateOrReplaceResponse>;
102
41
  }
103
42
 
104
43
  /**
105
- * Lists all of the streaming jobs in the given subscription.
106
- * @param options The options parameters.
107
- */
108
- public list(
109
- options?: StreamingJobsListOptionalParams
110
- ): PagedAsyncIterableIterator<StreamingJob> {
111
- const iter = this.listPagingAll(options);
112
- return {
113
- next() {
114
- return iter.next();
115
- },
116
- [Symbol.asyncIterator]() {
117
- return this;
118
- },
119
- byPage: () => {
120
- return this.listPagingPage(options);
121
- }
122
- };
123
- }
124
-
125
- private async *listPagingPage(
126
- options?: StreamingJobsListOptionalParams
127
- ): AsyncIterableIterator<StreamingJob[]> {
128
- let result = await this._list(options);
129
- yield result.value || [];
130
- let continuationToken = result.nextLink;
131
- while (continuationToken) {
132
- result = await this._listNext(continuationToken, options);
133
- continuationToken = result.nextLink;
134
- yield result.value || [];
135
- }
136
- }
137
-
138
- private async *listPagingAll(
139
- options?: StreamingJobsListOptionalParams
140
- ): AsyncIterableIterator<StreamingJob> {
141
- for await (const page of this.listPagingPage(options)) {
142
- yield* page;
143
- }
144
- }
145
-
146
- /**
147
- * Creates a streaming job or replaces an already existing streaming job.
44
+ * Updates an existing streaming job. This can be used to partially update (ie. update one or two
45
+ * properties) a streaming job without affecting the rest the job definition.
46
+ * @param streamingJob A streaming job object. The properties specified here will overwrite the
47
+ * corresponding properties in the existing streaming job (ie. Those properties will be updated).
48
+ * Any properties that are set to null here will mean that the corresponding property in the
49
+ * existing input will remain the same and not change as a result of this PATCH operation.
148
50
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
149
51
  * @param jobName The name of the streaming job.
150
- * @param streamingJob The definition of the streaming job that will be used to create a new streaming
151
- * job or replace the existing one.
152
- * @param options The options parameters.
52
+ * @param [options] The optional parameters
53
+ * @returns Promise<Models.StreamingJobsUpdateResponse>
153
54
  */
154
- async beginCreateOrReplace(
155
- resourceGroupName: string,
156
- jobName: string,
157
- streamingJob: StreamingJob,
158
- options?: StreamingJobsCreateOrReplaceOptionalParams
159
- ): Promise<
160
- PollerLike<
161
- PollOperationState<StreamingJobsCreateOrReplaceResponse>,
162
- StreamingJobsCreateOrReplaceResponse
163
- >
164
- > {
165
- const directSendOperation = async (
166
- args: coreClient.OperationArguments,
167
- spec: coreClient.OperationSpec
168
- ): Promise<StreamingJobsCreateOrReplaceResponse> => {
169
- return this.client.sendOperationRequest(args, spec);
170
- };
171
- const sendOperation = async (
172
- args: coreClient.OperationArguments,
173
- spec: coreClient.OperationSpec
174
- ) => {
175
- let currentRawResponse:
176
- | coreClient.FullOperationResponse
177
- | undefined = undefined;
178
- const providedCallback = args.options?.onResponse;
179
- const callback: coreClient.RawResponseCallback = (
180
- rawResponse: coreClient.FullOperationResponse,
181
- flatResponse: unknown
182
- ) => {
183
- currentRawResponse = rawResponse;
184
- providedCallback?.(rawResponse, flatResponse);
185
- };
186
- const updatedArgs = {
187
- ...args,
188
- options: {
189
- ...args.options,
190
- onResponse: callback
191
- }
192
- };
193
- const flatResponse = await directSendOperation(updatedArgs, spec);
194
- return {
195
- flatResponse,
196
- rawResponse: {
197
- statusCode: currentRawResponse!.status,
198
- body: currentRawResponse!.parsedBody,
199
- headers: currentRawResponse!.headers.toJSON()
200
- }
201
- };
202
- };
203
-
204
- const lro = new LroImpl(
205
- sendOperation,
206
- { resourceGroupName, jobName, streamingJob, options },
207
- createOrReplaceOperationSpec
208
- );
209
- return new LroEngine(lro, {
210
- resumeFrom: options?.resumeFrom,
211
- intervalInMs: options?.updateIntervalInMs
212
- });
213
- }
214
-
55
+ update(streamingJob: Models.StreamingJob, resourceGroupName: string, jobName: string, options?: Models.StreamingJobsUpdateOptionalParams): Promise<Models.StreamingJobsUpdateResponse>;
215
56
  /**
216
- * Creates a streaming job or replaces an already existing streaming job.
57
+ * @param streamingJob A streaming job object. The properties specified here will overwrite the
58
+ * corresponding properties in the existing streaming job (ie. Those properties will be updated).
59
+ * Any properties that are set to null here will mean that the corresponding property in the
60
+ * existing input will remain the same and not change as a result of this PATCH operation.
217
61
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
218
62
  * @param jobName The name of the streaming job.
219
- * @param streamingJob The definition of the streaming job that will be used to create a new streaming
220
- * job or replace the existing one.
221
- * @param options The options parameters.
63
+ * @param callback The callback
222
64
  */
223
- async beginCreateOrReplaceAndWait(
224
- resourceGroupName: string,
225
- jobName: string,
226
- streamingJob: StreamingJob,
227
- options?: StreamingJobsCreateOrReplaceOptionalParams
228
- ): Promise<StreamingJobsCreateOrReplaceResponse> {
229
- const poller = await this.beginCreateOrReplace(
230
- resourceGroupName,
231
- jobName,
232
- streamingJob,
233
- options
234
- );
235
- return poller.pollUntilDone();
236
- }
237
-
65
+ update(streamingJob: Models.StreamingJob, resourceGroupName: string, jobName: string, callback: msRest.ServiceCallback<Models.StreamingJob>): void;
238
66
  /**
239
- * Updates an existing streaming job. This can be used to partially update (ie. update one or two
240
- * properties) a streaming job without affecting the rest the job definition.
67
+ * @param streamingJob A streaming job object. The properties specified here will overwrite the
68
+ * corresponding properties in the existing streaming job (ie. Those properties will be updated).
69
+ * Any properties that are set to null here will mean that the corresponding property in the
70
+ * existing input will remain the same and not change as a result of this PATCH operation.
241
71
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
242
72
  * @param jobName The name of the streaming job.
243
- * @param streamingJob A streaming job object. The properties specified here will overwrite the
244
- * corresponding properties in the existing streaming job (ie. Those properties will be updated). Any
245
- * properties that are set to null here will mean that the corresponding property in the existing input
246
- * will remain the same and not change as a result of this PATCH operation.
247
- * @param options The options parameters.
73
+ * @param options The optional parameters
74
+ * @param callback The callback
248
75
  */
249
- update(
250
- resourceGroupName: string,
251
- jobName: string,
252
- streamingJob: StreamingJob,
253
- options?: StreamingJobsUpdateOptionalParams
254
- ): Promise<StreamingJobsUpdateResponse> {
76
+ update(streamingJob: Models.StreamingJob, resourceGroupName: string, jobName: string, options: Models.StreamingJobsUpdateOptionalParams, callback: msRest.ServiceCallback<Models.StreamingJob>): void;
77
+ update(streamingJob: Models.StreamingJob, resourceGroupName: string, jobName: string, options?: Models.StreamingJobsUpdateOptionalParams | msRest.ServiceCallback<Models.StreamingJob>, callback?: msRest.ServiceCallback<Models.StreamingJob>): Promise<Models.StreamingJobsUpdateResponse> {
255
78
  return this.client.sendOperationRequest(
256
- { resourceGroupName, jobName, streamingJob, options },
257
- updateOperationSpec
258
- );
79
+ {
80
+ streamingJob,
81
+ resourceGroupName,
82
+ jobName,
83
+ options
84
+ },
85
+ updateOperationSpec,
86
+ callback) as Promise<Models.StreamingJobsUpdateResponse>;
259
87
  }
260
88
 
261
89
  /**
262
90
  * Deletes a streaming job.
263
91
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
264
92
  * @param jobName The name of the streaming job.
265
- * @param options The options parameters.
93
+ * @param [options] The optional parameters
94
+ * @returns Promise<msRest.RestResponse>
266
95
  */
267
- async beginDelete(
268
- resourceGroupName: string,
269
- jobName: string,
270
- options?: StreamingJobsDeleteOptionalParams
271
- ): Promise<PollerLike<PollOperationState<void>, void>> {
272
- const directSendOperation = async (
273
- args: coreClient.OperationArguments,
274
- spec: coreClient.OperationSpec
275
- ): Promise<void> => {
276
- return this.client.sendOperationRequest(args, spec);
277
- };
278
- const sendOperation = async (
279
- args: coreClient.OperationArguments,
280
- spec: coreClient.OperationSpec
281
- ) => {
282
- let currentRawResponse:
283
- | coreClient.FullOperationResponse
284
- | undefined = undefined;
285
- const providedCallback = args.options?.onResponse;
286
- const callback: coreClient.RawResponseCallback = (
287
- rawResponse: coreClient.FullOperationResponse,
288
- flatResponse: unknown
289
- ) => {
290
- currentRawResponse = rawResponse;
291
- providedCallback?.(rawResponse, flatResponse);
292
- };
293
- const updatedArgs = {
294
- ...args,
295
- options: {
296
- ...args.options,
297
- onResponse: callback
298
- }
299
- };
300
- const flatResponse = await directSendOperation(updatedArgs, spec);
301
- return {
302
- flatResponse,
303
- rawResponse: {
304
- statusCode: currentRawResponse!.status,
305
- body: currentRawResponse!.parsedBody,
306
- headers: currentRawResponse!.headers.toJSON()
307
- }
308
- };
309
- };
310
-
311
- const lro = new LroImpl(
312
- sendOperation,
313
- { resourceGroupName, jobName, options },
314
- deleteOperationSpec
315
- );
316
- return new LroEngine(lro, {
317
- resumeFrom: options?.resumeFrom,
318
- intervalInMs: options?.updateIntervalInMs
319
- });
96
+ deleteMethod(resourceGroupName: string, jobName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
97
+ return this.beginDeleteMethod(resourceGroupName,jobName,options)
98
+ .then(lroPoller => lroPoller.pollUntilFinished());
320
99
  }
321
100
 
322
101
  /**
323
- * Deletes a streaming job.
102
+ * Gets details about the specified streaming job.
324
103
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
325
104
  * @param jobName The name of the streaming job.
326
- * @param options The options parameters.
105
+ * @param [options] The optional parameters
106
+ * @returns Promise<Models.StreamingJobsGetResponse>
327
107
  */
328
- async beginDeleteAndWait(
329
- resourceGroupName: string,
330
- jobName: string,
331
- options?: StreamingJobsDeleteOptionalParams
332
- ): Promise<void> {
333
- const poller = await this.beginDelete(resourceGroupName, jobName, options);
334
- return poller.pollUntilDone();
335
- }
336
-
108
+ get(resourceGroupName: string, jobName: string, options?: Models.StreamingJobsGetOptionalParams): Promise<Models.StreamingJobsGetResponse>;
337
109
  /**
338
- * Gets details about the specified streaming job.
339
110
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
340
111
  * @param jobName The name of the streaming job.
341
- * @param options The options parameters.
112
+ * @param callback The callback
342
113
  */
343
- get(
344
- resourceGroupName: string,
345
- jobName: string,
346
- options?: StreamingJobsGetOptionalParams
347
- ): Promise<StreamingJobsGetResponse> {
114
+ get(resourceGroupName: string, jobName: string, callback: msRest.ServiceCallback<Models.StreamingJob>): void;
115
+ /**
116
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
117
+ * @param jobName The name of the streaming job.
118
+ * @param options The optional parameters
119
+ * @param callback The callback
120
+ */
121
+ get(resourceGroupName: string, jobName: string, options: Models.StreamingJobsGetOptionalParams, callback: msRest.ServiceCallback<Models.StreamingJob>): void;
122
+ get(resourceGroupName: string, jobName: string, options?: Models.StreamingJobsGetOptionalParams | msRest.ServiceCallback<Models.StreamingJob>, callback?: msRest.ServiceCallback<Models.StreamingJob>): Promise<Models.StreamingJobsGetResponse> {
348
123
  return this.client.sendOperationRequest(
349
- { resourceGroupName, jobName, options },
350
- getOperationSpec
351
- );
124
+ {
125
+ resourceGroupName,
126
+ jobName,
127
+ options
128
+ },
129
+ getOperationSpec,
130
+ callback) as Promise<Models.StreamingJobsGetResponse>;
352
131
  }
353
132
 
354
133
  /**
355
134
  * Lists all of the streaming jobs in the specified resource group.
356
135
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
357
- * @param options The options parameters.
136
+ * @param [options] The optional parameters
137
+ * @returns Promise<Models.StreamingJobsListByResourceGroupResponse>
358
138
  */
359
- private _listByResourceGroup(
360
- resourceGroupName: string,
361
- options?: StreamingJobsListByResourceGroupOptionalParams
362
- ): Promise<StreamingJobsListByResourceGroupResponse> {
139
+ listByResourceGroup(resourceGroupName: string, options?: Models.StreamingJobsListByResourceGroupOptionalParams): Promise<Models.StreamingJobsListByResourceGroupResponse>;
140
+ /**
141
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
142
+ * @param callback The callback
143
+ */
144
+ listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.StreamingJobListResult>): void;
145
+ /**
146
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
147
+ * @param options The optional parameters
148
+ * @param callback The callback
149
+ */
150
+ listByResourceGroup(resourceGroupName: string, options: Models.StreamingJobsListByResourceGroupOptionalParams, callback: msRest.ServiceCallback<Models.StreamingJobListResult>): void;
151
+ listByResourceGroup(resourceGroupName: string, options?: Models.StreamingJobsListByResourceGroupOptionalParams | msRest.ServiceCallback<Models.StreamingJobListResult>, callback?: msRest.ServiceCallback<Models.StreamingJobListResult>): Promise<Models.StreamingJobsListByResourceGroupResponse> {
363
152
  return this.client.sendOperationRequest(
364
- { resourceGroupName, options },
365
- listByResourceGroupOperationSpec
366
- );
153
+ {
154
+ resourceGroupName,
155
+ options
156
+ },
157
+ listByResourceGroupOperationSpec,
158
+ callback) as Promise<Models.StreamingJobsListByResourceGroupResponse>;
367
159
  }
368
160
 
369
161
  /**
370
162
  * Lists all of the streaming jobs in the given subscription.
371
- * @param options The options parameters.
163
+ * @param [options] The optional parameters
164
+ * @returns Promise<Models.StreamingJobsListResponse>
165
+ */
166
+ list(options?: Models.StreamingJobsListOptionalParams): Promise<Models.StreamingJobsListResponse>;
167
+ /**
168
+ * @param callback The callback
169
+ */
170
+ list(callback: msRest.ServiceCallback<Models.StreamingJobListResult>): void;
171
+ /**
172
+ * @param options The optional parameters
173
+ * @param callback The callback
372
174
  */
373
- private _list(
374
- options?: StreamingJobsListOptionalParams
375
- ): Promise<StreamingJobsListResponse> {
376
- return this.client.sendOperationRequest({ options }, listOperationSpec);
175
+ list(options: Models.StreamingJobsListOptionalParams, callback: msRest.ServiceCallback<Models.StreamingJobListResult>): void;
176
+ list(options?: Models.StreamingJobsListOptionalParams | msRest.ServiceCallback<Models.StreamingJobListResult>, callback?: msRest.ServiceCallback<Models.StreamingJobListResult>): Promise<Models.StreamingJobsListResponse> {
177
+ return this.client.sendOperationRequest(
178
+ {
179
+ options
180
+ },
181
+ listOperationSpec,
182
+ callback) as Promise<Models.StreamingJobsListResponse>;
377
183
  }
378
184
 
379
185
  /**
@@ -381,139 +187,83 @@ export class StreamingJobsImpl implements StreamingJobs {
381
187
  * output.
382
188
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
383
189
  * @param jobName The name of the streaming job.
384
- * @param options The options parameters.
190
+ * @param [options] The optional parameters
191
+ * @returns Promise<msRest.RestResponse>
385
192
  */
386
- async beginStart(
387
- resourceGroupName: string,
388
- jobName: string,
389
- options?: StreamingJobsStartOptionalParams
390
- ): Promise<PollerLike<PollOperationState<void>, void>> {
391
- const directSendOperation = async (
392
- args: coreClient.OperationArguments,
393
- spec: coreClient.OperationSpec
394
- ): Promise<void> => {
395
- return this.client.sendOperationRequest(args, spec);
396
- };
397
- const sendOperation = async (
398
- args: coreClient.OperationArguments,
399
- spec: coreClient.OperationSpec
400
- ) => {
401
- let currentRawResponse:
402
- | coreClient.FullOperationResponse
403
- | undefined = undefined;
404
- const providedCallback = args.options?.onResponse;
405
- const callback: coreClient.RawResponseCallback = (
406
- rawResponse: coreClient.FullOperationResponse,
407
- flatResponse: unknown
408
- ) => {
409
- currentRawResponse = rawResponse;
410
- providedCallback?.(rawResponse, flatResponse);
411
- };
412
- const updatedArgs = {
413
- ...args,
414
- options: {
415
- ...args.options,
416
- onResponse: callback
417
- }
418
- };
419
- const flatResponse = await directSendOperation(updatedArgs, spec);
420
- return {
421
- flatResponse,
422
- rawResponse: {
423
- statusCode: currentRawResponse!.status,
424
- body: currentRawResponse!.parsedBody,
425
- headers: currentRawResponse!.headers.toJSON()
426
- }
427
- };
428
- };
193
+ start(resourceGroupName: string, jobName: string, options?: Models.StreamingJobsStartOptionalParams): Promise<msRest.RestResponse> {
194
+ return this.beginStart(resourceGroupName,jobName,options)
195
+ .then(lroPoller => lroPoller.pollUntilFinished());
196
+ }
429
197
 
430
- const lro = new LroImpl(
431
- sendOperation,
432
- { resourceGroupName, jobName, options },
433
- startOperationSpec
434
- );
435
- return new LroEngine(lro, {
436
- resumeFrom: options?.resumeFrom,
437
- intervalInMs: options?.updateIntervalInMs
438
- });
198
+ /**
199
+ * Stops a running streaming job. This will cause a running streaming job to stop processing input
200
+ * events and producing output.
201
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
202
+ * @param jobName The name of the streaming job.
203
+ * @param [options] The optional parameters
204
+ * @returns Promise<msRest.RestResponse>
205
+ */
206
+ stop(resourceGroupName: string, jobName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
207
+ return this.beginStop(resourceGroupName,jobName,options)
208
+ .then(lroPoller => lroPoller.pollUntilFinished());
439
209
  }
440
210
 
441
211
  /**
442
- * Starts a streaming job. Once a job is started it will start processing input events and produce
443
- * output.
212
+ * Creates a streaming job or replaces an already existing streaming job.
213
+ * @param streamingJob The definition of the streaming job that will be used to create a new
214
+ * streaming job or replace the existing one.
444
215
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
445
216
  * @param jobName The name of the streaming job.
446
- * @param options The options parameters.
217
+ * @param [options] The optional parameters
218
+ * @returns Promise<msRestAzure.LROPoller>
447
219
  */
448
- async beginStartAndWait(
449
- resourceGroupName: string,
450
- jobName: string,
451
- options?: StreamingJobsStartOptionalParams
452
- ): Promise<void> {
453
- const poller = await this.beginStart(resourceGroupName, jobName, options);
454
- return poller.pollUntilDone();
220
+ beginCreateOrReplace(streamingJob: Models.StreamingJob, resourceGroupName: string, jobName: string, options?: Models.StreamingJobsBeginCreateOrReplaceOptionalParams): Promise<msRestAzure.LROPoller> {
221
+ return this.client.sendLRORequest(
222
+ {
223
+ streamingJob,
224
+ resourceGroupName,
225
+ jobName,
226
+ options
227
+ },
228
+ beginCreateOrReplaceOperationSpec,
229
+ options);
455
230
  }
456
231
 
457
232
  /**
458
- * Stops a running streaming job. This will cause a running streaming job to stop processing input
459
- * events and producing output.
233
+ * Deletes a streaming job.
460
234
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
461
235
  * @param jobName The name of the streaming job.
462
- * @param options The options parameters.
236
+ * @param [options] The optional parameters
237
+ * @returns Promise<msRestAzure.LROPoller>
463
238
  */
464
- async beginStop(
465
- resourceGroupName: string,
466
- jobName: string,
467
- options?: StreamingJobsStopOptionalParams
468
- ): Promise<PollerLike<PollOperationState<void>, void>> {
469
- const directSendOperation = async (
470
- args: coreClient.OperationArguments,
471
- spec: coreClient.OperationSpec
472
- ): Promise<void> => {
473
- return this.client.sendOperationRequest(args, spec);
474
- };
475
- const sendOperation = async (
476
- args: coreClient.OperationArguments,
477
- spec: coreClient.OperationSpec
478
- ) => {
479
- let currentRawResponse:
480
- | coreClient.FullOperationResponse
481
- | undefined = undefined;
482
- const providedCallback = args.options?.onResponse;
483
- const callback: coreClient.RawResponseCallback = (
484
- rawResponse: coreClient.FullOperationResponse,
485
- flatResponse: unknown
486
- ) => {
487
- currentRawResponse = rawResponse;
488
- providedCallback?.(rawResponse, flatResponse);
489
- };
490
- const updatedArgs = {
491
- ...args,
492
- options: {
493
- ...args.options,
494
- onResponse: callback
495
- }
496
- };
497
- const flatResponse = await directSendOperation(updatedArgs, spec);
498
- return {
499
- flatResponse,
500
- rawResponse: {
501
- statusCode: currentRawResponse!.status,
502
- body: currentRawResponse!.parsedBody,
503
- headers: currentRawResponse!.headers.toJSON()
504
- }
505
- };
506
- };
239
+ beginDeleteMethod(resourceGroupName: string, jobName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
240
+ return this.client.sendLRORequest(
241
+ {
242
+ resourceGroupName,
243
+ jobName,
244
+ options
245
+ },
246
+ beginDeleteMethodOperationSpec,
247
+ options);
248
+ }
507
249
 
508
- const lro = new LroImpl(
509
- sendOperation,
510
- { resourceGroupName, jobName, options },
511
- stopOperationSpec
512
- );
513
- return new LroEngine(lro, {
514
- resumeFrom: options?.resumeFrom,
515
- intervalInMs: options?.updateIntervalInMs
516
- });
250
+ /**
251
+ * Starts a streaming job. Once a job is started it will start processing input events and produce
252
+ * output.
253
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
254
+ * @param jobName The name of the streaming job.
255
+ * @param [options] The optional parameters
256
+ * @returns Promise<msRestAzure.LROPoller>
257
+ */
258
+ beginStart(resourceGroupName: string, jobName: string, options?: Models.StreamingJobsBeginStartOptionalParams): Promise<msRestAzure.LROPoller> {
259
+ return this.client.sendLRORequest(
260
+ {
261
+ resourceGroupName,
262
+ jobName,
263
+ options
264
+ },
265
+ beginStartOperationSpec,
266
+ options);
517
267
  }
518
268
 
519
269
  /**
@@ -521,173 +271,180 @@ export class StreamingJobsImpl implements StreamingJobs {
521
271
  * events and producing output.
522
272
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
523
273
  * @param jobName The name of the streaming job.
524
- * @param options The options parameters.
274
+ * @param [options] The optional parameters
275
+ * @returns Promise<msRestAzure.LROPoller>
525
276
  */
526
- async beginStopAndWait(
527
- resourceGroupName: string,
528
- jobName: string,
529
- options?: StreamingJobsStopOptionalParams
530
- ): Promise<void> {
531
- const poller = await this.beginStop(resourceGroupName, jobName, options);
532
- return poller.pollUntilDone();
277
+ beginStop(resourceGroupName: string, jobName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
278
+ return this.client.sendLRORequest(
279
+ {
280
+ resourceGroupName,
281
+ jobName,
282
+ options
283
+ },
284
+ beginStopOperationSpec,
285
+ options);
533
286
  }
534
287
 
535
288
  /**
536
- * ListByResourceGroupNext
537
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
538
- * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
539
- * @param options The options parameters.
289
+ * Lists all of the streaming jobs in the specified resource group.
290
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
291
+ * @param [options] The optional parameters
292
+ * @returns Promise<Models.StreamingJobsListByResourceGroupNextResponse>
540
293
  */
541
- private _listByResourceGroupNext(
542
- resourceGroupName: string,
543
- nextLink: string,
544
- options?: StreamingJobsListByResourceGroupNextOptionalParams
545
- ): Promise<StreamingJobsListByResourceGroupNextResponse> {
294
+ listByResourceGroupNext(nextPageLink: string, options?: Models.StreamingJobsListByResourceGroupNextOptionalParams): Promise<Models.StreamingJobsListByResourceGroupNextResponse>;
295
+ /**
296
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
297
+ * @param callback The callback
298
+ */
299
+ listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.StreamingJobListResult>): void;
300
+ /**
301
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
302
+ * @param options The optional parameters
303
+ * @param callback The callback
304
+ */
305
+ listByResourceGroupNext(nextPageLink: string, options: Models.StreamingJobsListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback<Models.StreamingJobListResult>): void;
306
+ listByResourceGroupNext(nextPageLink: string, options?: Models.StreamingJobsListByResourceGroupNextOptionalParams | msRest.ServiceCallback<Models.StreamingJobListResult>, callback?: msRest.ServiceCallback<Models.StreamingJobListResult>): Promise<Models.StreamingJobsListByResourceGroupNextResponse> {
546
307
  return this.client.sendOperationRequest(
547
- { resourceGroupName, nextLink, options },
548
- listByResourceGroupNextOperationSpec
549
- );
308
+ {
309
+ nextPageLink,
310
+ options
311
+ },
312
+ listByResourceGroupNextOperationSpec,
313
+ callback) as Promise<Models.StreamingJobsListByResourceGroupNextResponse>;
550
314
  }
551
315
 
552
316
  /**
553
- * ListNext
554
- * @param nextLink The nextLink from the previous successful call to the List method.
555
- * @param options The options parameters.
317
+ * Lists all of the streaming jobs in the given subscription.
318
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
319
+ * @param [options] The optional parameters
320
+ * @returns Promise<Models.StreamingJobsListNextResponse>
321
+ */
322
+ listNext(nextPageLink: string, options?: Models.StreamingJobsListNextOptionalParams): Promise<Models.StreamingJobsListNextResponse>;
323
+ /**
324
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
325
+ * @param callback The callback
556
326
  */
557
- private _listNext(
558
- nextLink: string,
559
- options?: StreamingJobsListNextOptionalParams
560
- ): Promise<StreamingJobsListNextResponse> {
327
+ listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.StreamingJobListResult>): void;
328
+ /**
329
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
330
+ * @param options The optional parameters
331
+ * @param callback The callback
332
+ */
333
+ listNext(nextPageLink: string, options: Models.StreamingJobsListNextOptionalParams, callback: msRest.ServiceCallback<Models.StreamingJobListResult>): void;
334
+ listNext(nextPageLink: string, options?: Models.StreamingJobsListNextOptionalParams | msRest.ServiceCallback<Models.StreamingJobListResult>, callback?: msRest.ServiceCallback<Models.StreamingJobListResult>): Promise<Models.StreamingJobsListNextResponse> {
561
335
  return this.client.sendOperationRequest(
562
- { nextLink, options },
563
- listNextOperationSpec
564
- );
336
+ {
337
+ nextPageLink,
338
+ options
339
+ },
340
+ listNextOperationSpec,
341
+ callback) as Promise<Models.StreamingJobsListNextResponse>;
565
342
  }
566
343
  }
567
- // Operation Specifications
568
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
569
344
 
570
- const createOrReplaceOperationSpec: coreClient.OperationSpec = {
571
- path:
572
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}",
573
- httpMethod: "PUT",
574
- responses: {
575
- 200: {
576
- bodyMapper: Mappers.StreamingJob,
577
- headersMapper: Mappers.StreamingJobsCreateOrReplaceHeaders
578
- },
579
- 201: {
580
- bodyMapper: Mappers.StreamingJob,
581
- headersMapper: Mappers.StreamingJobsCreateOrReplaceHeaders
582
- },
583
- 202: {
584
- bodyMapper: Mappers.StreamingJob,
585
- headersMapper: Mappers.StreamingJobsCreateOrReplaceHeaders
586
- },
587
- 204: {
588
- bodyMapper: Mappers.StreamingJob,
589
- headersMapper: Mappers.StreamingJobsCreateOrReplaceHeaders
590
- },
591
- default: {
592
- bodyMapper: Mappers.ErrorModel
593
- }
594
- },
595
- requestBody: Parameters.streamingJob,
596
- queryParameters: [Parameters.apiVersion],
345
+ // Operation Specifications
346
+ const serializer = new msRest.Serializer(Mappers);
347
+ const updateOperationSpec: msRest.OperationSpec = {
348
+ httpMethod: "PATCH",
349
+ path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}",
597
350
  urlParameters: [
598
- Parameters.$host,
599
351
  Parameters.subscriptionId,
600
352
  Parameters.resourceGroupName,
601
353
  Parameters.jobName
602
354
  ],
355
+ queryParameters: [
356
+ Parameters.apiVersion0
357
+ ],
603
358
  headerParameters: [
604
- Parameters.contentType,
605
- Parameters.accept,
606
359
  Parameters.ifMatch,
607
- Parameters.ifNoneMatch
360
+ Parameters.acceptLanguage
608
361
  ],
609
- mediaType: "json",
610
- serializer
611
- };
612
- const updateOperationSpec: coreClient.OperationSpec = {
613
- path:
614
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}",
615
- httpMethod: "PATCH",
362
+ requestBody: {
363
+ parameterPath: "streamingJob",
364
+ mapper: {
365
+ ...Mappers.StreamingJob,
366
+ required: true
367
+ }
368
+ },
616
369
  responses: {
617
370
  200: {
618
371
  bodyMapper: Mappers.StreamingJob,
619
372
  headersMapper: Mappers.StreamingJobsUpdateHeaders
620
373
  },
621
374
  default: {
622
- bodyMapper: Mappers.ErrorModel
375
+ bodyMapper: Mappers.ErrorModel,
376
+ headersMapper: Mappers.StreamingJobsUpdateHeaders
623
377
  }
624
378
  },
625
- requestBody: Parameters.streamingJob,
626
- queryParameters: [Parameters.apiVersion],
379
+ serializer
380
+ };
381
+
382
+ const getOperationSpec: msRest.OperationSpec = {
383
+ httpMethod: "GET",
384
+ path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}",
627
385
  urlParameters: [
628
- Parameters.$host,
629
386
  Parameters.subscriptionId,
630
387
  Parameters.resourceGroupName,
631
388
  Parameters.jobName
632
389
  ],
390
+ queryParameters: [
391
+ Parameters.expand,
392
+ Parameters.apiVersion0
393
+ ],
633
394
  headerParameters: [
634
- Parameters.contentType,
635
- Parameters.accept,
636
- Parameters.ifMatch
395
+ Parameters.acceptLanguage
637
396
  ],
638
- mediaType: "json",
639
- serializer
640
- };
641
- const deleteOperationSpec: coreClient.OperationSpec = {
642
- path:
643
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}",
644
- httpMethod: "DELETE",
645
397
  responses: {
646
- 200: {},
647
- 201: {},
648
- 202: {},
649
- 204: {},
398
+ 200: {
399
+ bodyMapper: Mappers.StreamingJob,
400
+ headersMapper: Mappers.StreamingJobsGetHeaders
401
+ },
650
402
  default: {
651
- bodyMapper: Mappers.ErrorModel
403
+ bodyMapper: Mappers.ErrorModel,
404
+ headersMapper: Mappers.StreamingJobsGetHeaders
652
405
  }
653
406
  },
654
- queryParameters: [Parameters.apiVersion],
655
- urlParameters: [
656
- Parameters.$host,
657
- Parameters.subscriptionId,
658
- Parameters.resourceGroupName,
659
- Parameters.jobName
660
- ],
661
- headerParameters: [Parameters.accept],
662
407
  serializer
663
408
  };
664
- const getOperationSpec: coreClient.OperationSpec = {
665
- path:
666
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}",
409
+
410
+ const listByResourceGroupOperationSpec: msRest.OperationSpec = {
667
411
  httpMethod: "GET",
412
+ path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs",
413
+ urlParameters: [
414
+ Parameters.subscriptionId,
415
+ Parameters.resourceGroupName
416
+ ],
417
+ queryParameters: [
418
+ Parameters.expand,
419
+ Parameters.apiVersion0
420
+ ],
421
+ headerParameters: [
422
+ Parameters.acceptLanguage
423
+ ],
668
424
  responses: {
669
425
  200: {
670
- bodyMapper: Mappers.StreamingJob,
671
- headersMapper: Mappers.StreamingJobsGetHeaders
426
+ bodyMapper: Mappers.StreamingJobListResult
672
427
  },
673
428
  default: {
674
429
  bodyMapper: Mappers.ErrorModel
675
430
  }
676
431
  },
677
- queryParameters: [Parameters.apiVersion, Parameters.expand],
678
- urlParameters: [
679
- Parameters.$host,
680
- Parameters.subscriptionId,
681
- Parameters.resourceGroupName,
682
- Parameters.jobName
683
- ],
684
- headerParameters: [Parameters.accept],
685
432
  serializer
686
433
  };
687
- const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
688
- path:
689
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs",
434
+
435
+ const listOperationSpec: msRest.OperationSpec = {
690
436
  httpMethod: "GET",
437
+ path: "subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/streamingjobs",
438
+ urlParameters: [
439
+ Parameters.subscriptionId
440
+ ],
441
+ queryParameters: [
442
+ Parameters.expand,
443
+ Parameters.apiVersion0
444
+ ],
445
+ headerParameters: [
446
+ Parameters.acceptLanguage
447
+ ],
691
448
  responses: {
692
449
  200: {
693
450
  bodyMapper: Mappers.StreamingJobListResult
@@ -696,83 +453,143 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
696
453
  bodyMapper: Mappers.ErrorModel
697
454
  }
698
455
  },
699
- queryParameters: [Parameters.apiVersion, Parameters.expand],
456
+ serializer
457
+ };
458
+
459
+ const beginCreateOrReplaceOperationSpec: msRest.OperationSpec = {
460
+ httpMethod: "PUT",
461
+ path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}",
700
462
  urlParameters: [
701
- Parameters.$host,
702
463
  Parameters.subscriptionId,
703
- Parameters.resourceGroupName
464
+ Parameters.resourceGroupName,
465
+ Parameters.jobName
704
466
  ],
705
- headerParameters: [Parameters.accept],
706
- serializer
707
- };
708
- const listOperationSpec: coreClient.OperationSpec = {
709
- path:
710
- "/subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/streamingjobs",
711
- httpMethod: "GET",
467
+ queryParameters: [
468
+ Parameters.apiVersion0
469
+ ],
470
+ headerParameters: [
471
+ Parameters.ifMatch,
472
+ Parameters.ifNoneMatch,
473
+ Parameters.acceptLanguage
474
+ ],
475
+ requestBody: {
476
+ parameterPath: "streamingJob",
477
+ mapper: {
478
+ ...Mappers.StreamingJob,
479
+ required: true
480
+ }
481
+ },
712
482
  responses: {
713
483
  200: {
714
- bodyMapper: Mappers.StreamingJobListResult
484
+ bodyMapper: Mappers.StreamingJob,
485
+ headersMapper: Mappers.StreamingJobsCreateOrReplaceHeaders
486
+ },
487
+ 201: {
488
+ bodyMapper: Mappers.StreamingJob,
489
+ headersMapper: Mappers.StreamingJobsCreateOrReplaceHeaders
715
490
  },
716
491
  default: {
717
- bodyMapper: Mappers.ErrorModel
492
+ bodyMapper: Mappers.ErrorModel,
493
+ headersMapper: Mappers.StreamingJobsCreateOrReplaceHeaders
718
494
  }
719
495
  },
720
- queryParameters: [Parameters.apiVersion, Parameters.expand],
721
- urlParameters: [Parameters.$host, Parameters.subscriptionId],
722
- headerParameters: [Parameters.accept],
723
496
  serializer
724
497
  };
725
- const startOperationSpec: coreClient.OperationSpec = {
726
- path:
727
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/start",
728
- httpMethod: "POST",
498
+
499
+ const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
500
+ httpMethod: "DELETE",
501
+ path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}",
502
+ urlParameters: [
503
+ Parameters.subscriptionId,
504
+ Parameters.resourceGroupName,
505
+ Parameters.jobName
506
+ ],
507
+ queryParameters: [
508
+ Parameters.apiVersion0
509
+ ],
510
+ headerParameters: [
511
+ Parameters.acceptLanguage
512
+ ],
729
513
  responses: {
730
514
  200: {},
731
- 201: {},
732
515
  202: {},
733
516
  204: {},
734
517
  default: {
735
518
  bodyMapper: Mappers.ErrorModel
736
519
  }
737
520
  },
738
- requestBody: Parameters.startJobParameters,
739
- queryParameters: [Parameters.apiVersion],
521
+ serializer
522
+ };
523
+
524
+ const beginStartOperationSpec: msRest.OperationSpec = {
525
+ httpMethod: "POST",
526
+ path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/start",
740
527
  urlParameters: [
741
- Parameters.$host,
742
528
  Parameters.subscriptionId,
743
529
  Parameters.resourceGroupName,
744
530
  Parameters.jobName
745
531
  ],
746
- headerParameters: [Parameters.contentType, Parameters.accept],
747
- mediaType: "json",
748
- serializer
749
- };
750
- const stopOperationSpec: coreClient.OperationSpec = {
751
- path:
752
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/stop",
753
- httpMethod: "POST",
532
+ queryParameters: [
533
+ Parameters.apiVersion0
534
+ ],
535
+ headerParameters: [
536
+ Parameters.acceptLanguage
537
+ ],
538
+ requestBody: {
539
+ parameterPath: [
540
+ "options",
541
+ "startJobParameters"
542
+ ],
543
+ mapper: Mappers.StartStreamingJobParameters
544
+ },
754
545
  responses: {
755
546
  200: {},
756
- 201: {},
757
547
  202: {},
758
- 204: {},
759
548
  default: {
760
549
  bodyMapper: Mappers.ErrorModel
761
550
  }
762
551
  },
763
- queryParameters: [Parameters.apiVersion],
552
+ serializer
553
+ };
554
+
555
+ const beginStopOperationSpec: msRest.OperationSpec = {
556
+ httpMethod: "POST",
557
+ path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/stop",
764
558
  urlParameters: [
765
- Parameters.$host,
766
559
  Parameters.subscriptionId,
767
560
  Parameters.resourceGroupName,
768
561
  Parameters.jobName
769
562
  ],
770
- headerParameters: [Parameters.accept],
563
+ queryParameters: [
564
+ Parameters.apiVersion0
565
+ ],
566
+ headerParameters: [
567
+ Parameters.acceptLanguage
568
+ ],
569
+ responses: {
570
+ 200: {},
571
+ 202: {},
572
+ default: {
573
+ bodyMapper: Mappers.ErrorModel
574
+ }
575
+ },
771
576
  serializer
772
577
  };
773
- const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
774
- path: "{nextLink}",
578
+
579
+ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
775
580
  httpMethod: "GET",
581
+ baseUrl: "https://management.azure.com",
582
+ path: "{nextLink}",
583
+ urlParameters: [
584
+ Parameters.nextPageLink
585
+ ],
586
+ queryParameters: [
587
+ Parameters.expand,
588
+ Parameters.apiVersion0
589
+ ],
590
+ headerParameters: [
591
+ Parameters.acceptLanguage
592
+ ],
776
593
  responses: {
777
594
  200: {
778
595
  bodyMapper: Mappers.StreamingJobListResult
@@ -781,19 +598,23 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
781
598
  bodyMapper: Mappers.ErrorModel
782
599
  }
783
600
  },
784
- queryParameters: [Parameters.apiVersion, Parameters.expand],
785
- urlParameters: [
786
- Parameters.$host,
787
- Parameters.subscriptionId,
788
- Parameters.resourceGroupName,
789
- Parameters.nextLink
790
- ],
791
- headerParameters: [Parameters.accept],
792
601
  serializer
793
602
  };
794
- const listNextOperationSpec: coreClient.OperationSpec = {
795
- path: "{nextLink}",
603
+
604
+ const listNextOperationSpec: msRest.OperationSpec = {
796
605
  httpMethod: "GET",
606
+ baseUrl: "https://management.azure.com",
607
+ path: "{nextLink}",
608
+ urlParameters: [
609
+ Parameters.nextPageLink
610
+ ],
611
+ queryParameters: [
612
+ Parameters.expand,
613
+ Parameters.apiVersion0
614
+ ],
615
+ headerParameters: [
616
+ Parameters.acceptLanguage
617
+ ],
797
618
  responses: {
798
619
  200: {
799
620
  bodyMapper: Mappers.StreamingJobListResult
@@ -802,12 +623,5 @@ const listNextOperationSpec: coreClient.OperationSpec = {
802
623
  bodyMapper: Mappers.ErrorModel
803
624
  }
804
625
  },
805
- queryParameters: [Parameters.apiVersion, Parameters.expand],
806
- urlParameters: [
807
- Parameters.$host,
808
- Parameters.subscriptionId,
809
- Parameters.nextLink
810
- ],
811
- headerParameters: [Parameters.accept],
812
626
  serializer
813
627
  };