@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,95 +3,121 @@
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 { Transformations } from "../operationsInterfaces";
10
- import * as coreClient from "@azure/core-client";
11
- import * as Mappers from "../models/mappers";
10
+ import * as msRest from "@azure/ms-rest-js";
11
+ import * as Models from "../models";
12
+ import * as Mappers from "../models/transformationsMappers";
12
13
  import * as Parameters from "../models/parameters";
13
14
  import { StreamAnalyticsManagementClientContext } from "../streamAnalyticsManagementClientContext";
14
- import {
15
- Transformation,
16
- TransformationsCreateOrReplaceOptionalParams,
17
- TransformationsCreateOrReplaceResponse,
18
- TransformationsUpdateOptionalParams,
19
- TransformationsUpdateResponse,
20
- TransformationsGetOptionalParams,
21
- TransformationsGetResponse
22
- } from "../models";
23
15
 
24
- /** Class containing Transformations operations. */
25
- export class TransformationsImpl implements Transformations {
16
+ /** Class representing a Transformations. */
17
+ export class Transformations {
26
18
  private readonly client: StreamAnalyticsManagementClientContext;
27
19
 
28
20
  /**
29
- * Initialize a new instance of the class Transformations class.
30
- * @param client Reference to the service client
21
+ * Create a Transformations.
22
+ * @param {StreamAnalyticsManagementClientContext} client Reference to the service client.
31
23
  */
32
24
  constructor(client: StreamAnalyticsManagementClientContext) {
33
25
  this.client = client;
34
26
  }
35
27
 
36
28
  /**
37
- * Creates a transformation or replaces an already existing transformation under an existing streaming
38
- * job.
29
+ * Creates a transformation or replaces an already existing transformation under an existing
30
+ * streaming job.
31
+ * @param transformation The definition of the transformation that will be used to create a new
32
+ * transformation or replace the existing one under the streaming job.
39
33
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
40
34
  * @param jobName The name of the streaming job.
41
35
  * @param transformationName The name of the transformation.
36
+ * @param [options] The optional parameters
37
+ * @returns Promise<Models.TransformationsCreateOrReplaceResponse>
38
+ */
39
+ createOrReplace(transformation: Models.Transformation, resourceGroupName: string, jobName: string, transformationName: string, options?: Models.TransformationsCreateOrReplaceOptionalParams): Promise<Models.TransformationsCreateOrReplaceResponse>;
40
+ /**
42
41
  * @param transformation The definition of the transformation that will be used to create a new
43
- * transformation or replace the existing one under the streaming job.
44
- * @param options The options parameters.
42
+ * transformation or replace the existing one under the streaming job.
43
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
44
+ * @param jobName The name of the streaming job.
45
+ * @param transformationName The name of the transformation.
46
+ * @param callback The callback
47
+ */
48
+ createOrReplace(transformation: Models.Transformation, resourceGroupName: string, jobName: string, transformationName: string, callback: msRest.ServiceCallback<Models.Transformation>): void;
49
+ /**
50
+ * @param transformation The definition of the transformation that will be used to create a new
51
+ * transformation or replace the existing one under the streaming job.
52
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
53
+ * @param jobName The name of the streaming job.
54
+ * @param transformationName The name of the transformation.
55
+ * @param options The optional parameters
56
+ * @param callback The callback
45
57
  */
46
- createOrReplace(
47
- resourceGroupName: string,
48
- jobName: string,
49
- transformationName: string,
50
- transformation: Transformation,
51
- options?: TransformationsCreateOrReplaceOptionalParams
52
- ): Promise<TransformationsCreateOrReplaceResponse> {
58
+ createOrReplace(transformation: Models.Transformation, resourceGroupName: string, jobName: string, transformationName: string, options: Models.TransformationsCreateOrReplaceOptionalParams, callback: msRest.ServiceCallback<Models.Transformation>): void;
59
+ createOrReplace(transformation: Models.Transformation, resourceGroupName: string, jobName: string, transformationName: string, options?: Models.TransformationsCreateOrReplaceOptionalParams | msRest.ServiceCallback<Models.Transformation>, callback?: msRest.ServiceCallback<Models.Transformation>): Promise<Models.TransformationsCreateOrReplaceResponse> {
53
60
  return this.client.sendOperationRequest(
54
61
  {
62
+ transformation,
55
63
  resourceGroupName,
56
64
  jobName,
57
65
  transformationName,
58
- transformation,
59
66
  options
60
67
  },
61
- createOrReplaceOperationSpec
62
- );
68
+ createOrReplaceOperationSpec,
69
+ callback) as Promise<Models.TransformationsCreateOrReplaceResponse>;
63
70
  }
64
71
 
65
72
  /**
66
- * Updates an existing transformation under an existing streaming job. This can be used to partially
67
- * update (ie. update one or two properties) a transformation without affecting the rest the job or
68
- * transformation definition.
73
+ * Updates an existing transformation under an existing streaming job. This can be used to
74
+ * partially update (ie. update one or two properties) a transformation without affecting the rest
75
+ * the job or transformation definition.
76
+ * @param transformation A Transformation object. The properties specified here will overwrite the
77
+ * corresponding properties in the existing transformation (ie. Those properties will be updated).
78
+ * Any properties that are set to null here will mean that the corresponding property in the
79
+ * existing transformation will remain the same and not change as a result of this PATCH operation.
69
80
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
70
81
  * @param jobName The name of the streaming job.
71
82
  * @param transformationName The name of the transformation.
83
+ * @param [options] The optional parameters
84
+ * @returns Promise<Models.TransformationsUpdateResponse>
85
+ */
86
+ update(transformation: Models.Transformation, resourceGroupName: string, jobName: string, transformationName: string, options?: Models.TransformationsUpdateOptionalParams): Promise<Models.TransformationsUpdateResponse>;
87
+ /**
72
88
  * @param transformation A Transformation object. The properties specified here will overwrite the
73
- * corresponding properties in the existing transformation (ie. Those properties will be updated). Any
74
- * properties that are set to null here will mean that the corresponding property in the existing
75
- * transformation will remain the same and not change as a result of this PATCH operation.
76
- * @param options The options parameters.
89
+ * corresponding properties in the existing transformation (ie. Those properties will be updated).
90
+ * Any properties that are set to null here will mean that the corresponding property in the
91
+ * existing transformation will remain the same and not change as a result of this PATCH operation.
92
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
93
+ * @param jobName The name of the streaming job.
94
+ * @param transformationName The name of the transformation.
95
+ * @param callback The callback
77
96
  */
78
- update(
79
- resourceGroupName: string,
80
- jobName: string,
81
- transformationName: string,
82
- transformation: Transformation,
83
- options?: TransformationsUpdateOptionalParams
84
- ): Promise<TransformationsUpdateResponse> {
97
+ update(transformation: Models.Transformation, resourceGroupName: string, jobName: string, transformationName: string, callback: msRest.ServiceCallback<Models.Transformation>): void;
98
+ /**
99
+ * @param transformation A Transformation object. The properties specified here will overwrite the
100
+ * corresponding properties in the existing transformation (ie. Those properties will be updated).
101
+ * Any properties that are set to null here will mean that the corresponding property in the
102
+ * existing transformation will remain the same and not change as a result of this PATCH operation.
103
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
104
+ * @param jobName The name of the streaming job.
105
+ * @param transformationName The name of the transformation.
106
+ * @param options The optional parameters
107
+ * @param callback The callback
108
+ */
109
+ update(transformation: Models.Transformation, resourceGroupName: string, jobName: string, transformationName: string, options: Models.TransformationsUpdateOptionalParams, callback: msRest.ServiceCallback<Models.Transformation>): void;
110
+ update(transformation: Models.Transformation, resourceGroupName: string, jobName: string, transformationName: string, options?: Models.TransformationsUpdateOptionalParams | msRest.ServiceCallback<Models.Transformation>, callback?: msRest.ServiceCallback<Models.Transformation>): Promise<Models.TransformationsUpdateResponse> {
85
111
  return this.client.sendOperationRequest(
86
112
  {
113
+ transformation,
87
114
  resourceGroupName,
88
115
  jobName,
89
116
  transformationName,
90
- transformation,
91
117
  options
92
118
  },
93
- updateOperationSpec
94
- );
119
+ updateOperationSpec,
120
+ callback) as Promise<Models.TransformationsUpdateResponse>;
95
121
  }
96
122
 
97
123
  /**
@@ -99,27 +125,64 @@ export class TransformationsImpl implements Transformations {
99
125
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
100
126
  * @param jobName The name of the streaming job.
101
127
  * @param transformationName The name of the transformation.
102
- * @param options The options parameters.
128
+ * @param [options] The optional parameters
129
+ * @returns Promise<Models.TransformationsGetResponse>
130
+ */
131
+ get(resourceGroupName: string, jobName: string, transformationName: string, options?: msRest.RequestOptionsBase): Promise<Models.TransformationsGetResponse>;
132
+ /**
133
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
134
+ * @param jobName The name of the streaming job.
135
+ * @param transformationName The name of the transformation.
136
+ * @param callback The callback
103
137
  */
104
- get(
105
- resourceGroupName: string,
106
- jobName: string,
107
- transformationName: string,
108
- options?: TransformationsGetOptionalParams
109
- ): Promise<TransformationsGetResponse> {
138
+ get(resourceGroupName: string, jobName: string, transformationName: string, callback: msRest.ServiceCallback<Models.Transformation>): void;
139
+ /**
140
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
141
+ * @param jobName The name of the streaming job.
142
+ * @param transformationName The name of the transformation.
143
+ * @param options The optional parameters
144
+ * @param callback The callback
145
+ */
146
+ get(resourceGroupName: string, jobName: string, transformationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Transformation>): void;
147
+ get(resourceGroupName: string, jobName: string, transformationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Transformation>, callback?: msRest.ServiceCallback<Models.Transformation>): Promise<Models.TransformationsGetResponse> {
110
148
  return this.client.sendOperationRequest(
111
- { resourceGroupName, jobName, transformationName, options },
112
- getOperationSpec
113
- );
149
+ {
150
+ resourceGroupName,
151
+ jobName,
152
+ transformationName,
153
+ options
154
+ },
155
+ getOperationSpec,
156
+ callback) as Promise<Models.TransformationsGetResponse>;
114
157
  }
115
158
  }
116
- // Operation Specifications
117
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
118
159
 
119
- const createOrReplaceOperationSpec: coreClient.OperationSpec = {
120
- path:
121
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/transformations/{transformationName}",
160
+ // Operation Specifications
161
+ const serializer = new msRest.Serializer(Mappers);
162
+ const createOrReplaceOperationSpec: msRest.OperationSpec = {
122
163
  httpMethod: "PUT",
164
+ path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/transformations/{transformationName}",
165
+ urlParameters: [
166
+ Parameters.subscriptionId,
167
+ Parameters.resourceGroupName,
168
+ Parameters.jobName,
169
+ Parameters.transformationName
170
+ ],
171
+ queryParameters: [
172
+ Parameters.apiVersion0
173
+ ],
174
+ headerParameters: [
175
+ Parameters.ifMatch,
176
+ Parameters.ifNoneMatch,
177
+ Parameters.acceptLanguage
178
+ ],
179
+ requestBody: {
180
+ parameterPath: "transformation",
181
+ mapper: {
182
+ ...Mappers.Transformation,
183
+ required: true
184
+ }
185
+ },
123
186
  responses: {
124
187
  200: {
125
188
  bodyMapper: Mappers.Transformation,
@@ -130,78 +193,73 @@ const createOrReplaceOperationSpec: coreClient.OperationSpec = {
130
193
  headersMapper: Mappers.TransformationsCreateOrReplaceHeaders
131
194
  },
132
195
  default: {
133
- bodyMapper: Mappers.ErrorModel
196
+ bodyMapper: Mappers.ErrorModel,
197
+ headersMapper: Mappers.TransformationsCreateOrReplaceHeaders
134
198
  }
135
199
  },
136
- requestBody: Parameters.transformation,
137
- queryParameters: [Parameters.apiVersion],
200
+ serializer
201
+ };
202
+
203
+ const updateOperationSpec: msRest.OperationSpec = {
204
+ httpMethod: "PATCH",
205
+ path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/transformations/{transformationName}",
138
206
  urlParameters: [
139
- Parameters.$host,
140
207
  Parameters.subscriptionId,
141
208
  Parameters.resourceGroupName,
142
209
  Parameters.jobName,
143
210
  Parameters.transformationName
144
211
  ],
212
+ queryParameters: [
213
+ Parameters.apiVersion0
214
+ ],
145
215
  headerParameters: [
146
- Parameters.contentType,
147
- Parameters.accept,
148
216
  Parameters.ifMatch,
149
- Parameters.ifNoneMatch
217
+ Parameters.acceptLanguage
150
218
  ],
151
- mediaType: "json",
152
- serializer
153
- };
154
- const updateOperationSpec: coreClient.OperationSpec = {
155
- path:
156
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/transformations/{transformationName}",
157
- httpMethod: "PATCH",
219
+ requestBody: {
220
+ parameterPath: "transformation",
221
+ mapper: {
222
+ ...Mappers.Transformation,
223
+ required: true
224
+ }
225
+ },
158
226
  responses: {
159
227
  200: {
160
228
  bodyMapper: Mappers.Transformation,
161
229
  headersMapper: Mappers.TransformationsUpdateHeaders
162
230
  },
163
231
  default: {
164
- bodyMapper: Mappers.ErrorModel
232
+ bodyMapper: Mappers.ErrorModel,
233
+ headersMapper: Mappers.TransformationsUpdateHeaders
165
234
  }
166
235
  },
167
- requestBody: Parameters.transformation,
168
- queryParameters: [Parameters.apiVersion],
236
+ serializer
237
+ };
238
+
239
+ const getOperationSpec: msRest.OperationSpec = {
240
+ httpMethod: "GET",
241
+ path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/transformations/{transformationName}",
169
242
  urlParameters: [
170
- Parameters.$host,
171
243
  Parameters.subscriptionId,
172
244
  Parameters.resourceGroupName,
173
245
  Parameters.jobName,
174
246
  Parameters.transformationName
175
247
  ],
248
+ queryParameters: [
249
+ Parameters.apiVersion0
250
+ ],
176
251
  headerParameters: [
177
- Parameters.contentType,
178
- Parameters.accept,
179
- Parameters.ifMatch
252
+ Parameters.acceptLanguage
180
253
  ],
181
- mediaType: "json",
182
- serializer
183
- };
184
- const getOperationSpec: coreClient.OperationSpec = {
185
- path:
186
- "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/transformations/{transformationName}",
187
- httpMethod: "GET",
188
254
  responses: {
189
255
  200: {
190
256
  bodyMapper: Mappers.Transformation,
191
257
  headersMapper: Mappers.TransformationsGetHeaders
192
258
  },
193
259
  default: {
194
- bodyMapper: Mappers.ErrorModel
260
+ bodyMapper: Mappers.ErrorModel,
261
+ headersMapper: Mappers.TransformationsGetHeaders
195
262
  }
196
263
  },
197
- queryParameters: [Parameters.apiVersion],
198
- urlParameters: [
199
- Parameters.$host,
200
- Parameters.subscriptionId,
201
- Parameters.resourceGroupName,
202
- Parameters.jobName,
203
- Parameters.transformationName
204
- ],
205
- headerParameters: [Parameters.accept],
206
264
  serializer
207
265
  };
@@ -3,66 +3,61 @@
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 * as coreAuth from "@azure/core-auth";
10
- import {
11
- FunctionsImpl,
12
- InputsImpl,
13
- OutputsImpl,
14
- StreamingJobsImpl,
15
- SubscriptionsImpl,
16
- TransformationsImpl,
17
- OperationsImpl,
18
- ClustersImpl,
19
- PrivateEndpointsImpl
20
- } from "./operations";
21
- import {
22
- Functions,
23
- Inputs,
24
- Outputs,
25
- StreamingJobs,
26
- Subscriptions,
27
- Transformations,
28
- Operations,
29
- Clusters,
30
- PrivateEndpoints
31
- } from "./operationsInterfaces";
10
+ import * as msRest from "@azure/ms-rest-js";
11
+ import { TokenCredential } from "@azure/core-auth";
12
+ import * as Models from "./models";
13
+ import * as Mappers from "./models/mappers";
14
+ import * as operations from "./operations";
32
15
  import { StreamAnalyticsManagementClientContext } from "./streamAnalyticsManagementClientContext";
33
- import { StreamAnalyticsManagementClientOptionalParams } from "./models";
34
16
 
35
- export class StreamAnalyticsManagementClient extends StreamAnalyticsManagementClientContext {
17
+
18
+ class StreamAnalyticsManagementClient extends StreamAnalyticsManagementClientContext {
19
+ // Operation groups
20
+ functions: operations.Functions;
21
+ inputs: operations.Inputs;
22
+ outputs: operations.Outputs;
23
+ streamingJobs: operations.StreamingJobs;
24
+ subscriptions: operations.Subscriptions;
25
+ transformations: operations.Transformations;
26
+ operations: operations.Operations;
27
+ clusters: operations.Clusters;
28
+ privateEndpoints: operations.PrivateEndpoints;
29
+
36
30
  /**
37
31
  * Initializes a new instance of the StreamAnalyticsManagementClient class.
38
- * @param credentials Subscription credentials which uniquely identify client subscription.
32
+ * @param credentials Credentials needed for the client to connect to Azure. Credentials
33
+ * implementing the TokenCredential interface from the @azure/identity package are recommended. For
34
+ * more information about these credentials, see
35
+ * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
36
+ * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
37
+ * @azure/ms-rest-browserauth are also supported.
39
38
  * @param subscriptionId The ID of the target subscription.
40
- * @param options The parameter options
39
+ * @param [options] The parameter options
41
40
  */
42
- constructor(
43
- credentials: coreAuth.TokenCredential,
44
- subscriptionId: string,
45
- options?: StreamAnalyticsManagementClientOptionalParams
46
- ) {
41
+ constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StreamAnalyticsManagementClientOptions) {
47
42
  super(credentials, subscriptionId, options);
48
- this.functions = new FunctionsImpl(this);
49
- this.inputs = new InputsImpl(this);
50
- this.outputs = new OutputsImpl(this);
51
- this.streamingJobs = new StreamingJobsImpl(this);
52
- this.subscriptions = new SubscriptionsImpl(this);
53
- this.transformations = new TransformationsImpl(this);
54
- this.operations = new OperationsImpl(this);
55
- this.clusters = new ClustersImpl(this);
56
- this.privateEndpoints = new PrivateEndpointsImpl(this);
43
+ this.functions = new operations.Functions(this);
44
+ this.inputs = new operations.Inputs(this);
45
+ this.outputs = new operations.Outputs(this);
46
+ this.streamingJobs = new operations.StreamingJobs(this);
47
+ this.subscriptions = new operations.Subscriptions(this);
48
+ this.transformations = new operations.Transformations(this);
49
+ this.operations = new operations.Operations(this);
50
+ this.clusters = new operations.Clusters(this);
51
+ this.privateEndpoints = new operations.PrivateEndpoints(this);
57
52
  }
58
-
59
- functions: Functions;
60
- inputs: Inputs;
61
- outputs: Outputs;
62
- streamingJobs: StreamingJobs;
63
- subscriptions: Subscriptions;
64
- transformations: Transformations;
65
- operations: Operations;
66
- clusters: Clusters;
67
- privateEndpoints: PrivateEndpoints;
68
53
  }
54
+
55
+ // Operation Specifications
56
+
57
+ export {
58
+ StreamAnalyticsManagementClient,
59
+ StreamAnalyticsManagementClientContext,
60
+ Models as StreamAnalyticsManagementModels,
61
+ Mappers as StreamAnalyticsManagementMappers
62
+ };
63
+ export * from "./operations";
@@ -3,66 +3,63 @@
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 * as coreClient from "@azure/core-client";
10
- import * as coreAuth from "@azure/core-auth";
11
- import { StreamAnalyticsManagementClientOptionalParams } from "./models";
10
+ import * as Models from "./models";
11
+ import * as msRest from "@azure/ms-rest-js";
12
+ import * as msRestAzure from "@azure/ms-rest-azure-js";
13
+ import { TokenCredential } from "@azure/core-auth";
12
14
 
13
- export class StreamAnalyticsManagementClientContext extends coreClient.ServiceClient {
14
- $host: string;
15
+ const packageName = "@azure/arm-streamanalytics";
16
+ const packageVersion = "3.0.0";
17
+
18
+ export class StreamAnalyticsManagementClientContext extends msRestAzure.AzureServiceClient {
19
+ credentials: msRest.ServiceClientCredentials | TokenCredential;
15
20
  subscriptionId: string;
16
21
 
17
22
  /**
18
- * Initializes a new instance of the StreamAnalyticsManagementClientContext class.
19
- * @param credentials Subscription credentials which uniquely identify client subscription.
23
+ * Initializes a new instance of the StreamAnalyticsManagementClient class.
24
+ * @param credentials Credentials needed for the client to connect to Azure. Credentials
25
+ * implementing the TokenCredential interface from the @azure/identity package are recommended. For
26
+ * more information about these credentials, see
27
+ * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
28
+ * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
29
+ * @azure/ms-rest-browserauth are also supported.
20
30
  * @param subscriptionId The ID of the target subscription.
21
- * @param options The parameter options
31
+ * @param [options] The parameter options
22
32
  */
23
- constructor(
24
- credentials: coreAuth.TokenCredential,
25
- subscriptionId: string,
26
- options?: StreamAnalyticsManagementClientOptionalParams
27
- ) {
28
- if (credentials === undefined) {
29
- throw new Error("'credentials' cannot be null");
33
+ constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.StreamAnalyticsManagementClientOptions) {
34
+ if (credentials == undefined) {
35
+ throw new Error('\'credentials\' cannot be null.');
30
36
  }
31
- if (subscriptionId === undefined) {
32
- throw new Error("'subscriptionId' cannot be null");
37
+ if (subscriptionId == undefined) {
38
+ throw new Error('\'subscriptionId\' cannot be null.');
33
39
  }
34
40
 
35
- // Initializing default values for options
36
41
  if (!options) {
37
42
  options = {};
38
43
  }
39
- const defaults: StreamAnalyticsManagementClientOptionalParams = {
40
- requestContentType: "application/json; charset=utf-8",
41
- credential: credentials
42
- };
44
+ if (!options.userAgent) {
45
+ const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
46
+ options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
47
+ }
43
48
 
44
- const packageDetails = `azsdk-js-arm-streamanalytics/3.0.0-beta.1`;
45
- const userAgentPrefix =
46
- options.userAgentOptions && options.userAgentOptions.userAgentPrefix
47
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
48
- : `${packageDetails}`;
49
+ super(credentials, options);
49
50
 
50
- if (!options.credentialScopes) {
51
- options.credentialScopes = ["https://management.azure.com/.default"];
52
- }
53
- const optionsWithDefaults = {
54
- ...defaults,
55
- ...options,
56
- userAgentOptions: {
57
- userAgentPrefix
58
- },
59
- baseUri: options.endpoint || "https://management.azure.com"
60
- };
61
- super(optionsWithDefaults);
62
- // Parameter assignments
51
+ this.acceptLanguage = 'en-US';
52
+ this.longRunningOperationRetryTimeout = 30;
53
+ this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
54
+ this.requestContentType = "application/json; charset=utf-8";
55
+ this.credentials = credentials;
63
56
  this.subscriptionId = subscriptionId;
64
57
 
65
- // Assigning values to Constant parameters
66
- this.$host = options.$host || "https://management.azure.com";
58
+ if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
59
+ this.acceptLanguage = options.acceptLanguage;
60
+ }
61
+ if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
62
+ this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
63
+ }
67
64
  }
68
65
  }
package/tsconfig.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "module": "es6",
4
4
  "moduleResolution": "node",
5
5
  "strict": true,
6
- "target": "es6",
6
+ "target": "es5",
7
7
  "sourceMap": true,
8
8
  "declarationMap": true,
9
9
  "esModuleInterop": true,
@@ -11,9 +11,9 @@
11
11
  "forceConsistentCasingInFileNames": true,
12
12
  "lib": ["es6", "dom"],
13
13
  "declaration": true,
14
- "outDir": "./dist-esm",
14
+ "outDir": "./esm",
15
15
  "importHelpers": true
16
16
  },
17
- "include": ["./src/**/*.ts", "./test/**/*.ts"],
17
+ "include": ["./src/**/*.ts"],
18
18
  "exclude": ["node_modules"]
19
19
  }
package/CHANGELOG.md DELETED
@@ -1,14 +0,0 @@
1
- ## 3.0.0-beta.1 (2021-11-02)
2
-
3
- This is the first preview for the new version of the `@azure/arm-streamanalytics` package that follows the new [guidelines for TypeScript SDKs](https://azure.github.io/azure-sdk/typescript_introduction.html) for Azure services.
4
-
5
- While this package remains auto generated, the SDK generator itself has undergone changes to comply with the above guidelines in order to generate packages that are idiomatic to the JavaScript/TypeScript ecosystem and consistent with other packages for Azure services. For more on this, please see [State of the Azure SDK 2021](https://devblogs.microsoft.com/azure-sdk/state-of-the-azure-sdk-2021/).
6
-
7
- Please note that this version has breaking changes, all of which were made after careful consideration during the authoring of the guidelines and user studies.
8
-
9
- **Noteworthy changes and features**
10
- - Authentication: The packages `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` are no longer supported. Use package [@azure/identity](https://www.npmjs.com/package/@azure/identity) instead. Select a credential from Azure Identity examples based on the authentication method of your choice.
11
- - Callbacks: Method overloads that used callbacks have been removed and the use of promises is encouraged instead.
12
- - List operations now return an iterable result that follows the `PagedAsyncIterableIterator` interface as opposed to the previous model where you had to make a new request using the link to the next page.
13
- - Long running operations i.e. the Lro related object returned by methods whose names started with `begin`, now uses `pollUntilDone` to check whether the request is finished, instead of `pollUntilFinished`. To get the final result, use the corresponding method that will have the suffix `AndWait`.
14
- - The SDK only supports ECMAScript 2015 (ES6) and beyond, all projects that referenced this SDK should be upgraded to use ES6.