@azure/arm-streamanalytics 4.1.1-alpha.20240226.1 → 5.0.0-beta.1

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 (239) hide show
  1. package/CHANGELOG.md +170 -8
  2. package/LICENSE +1 -1
  3. package/README.md +1 -1
  4. package/dist/index.js +6060 -3785
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/clustersCreateOrUpdateSample.js +14 -6
  9. package/dist-esm/samples-dev/clustersCreateOrUpdateSample.js.map +1 -1
  10. package/dist-esm/samples-dev/clustersDeleteSample.js +12 -4
  11. package/dist-esm/samples-dev/clustersDeleteSample.js.map +1 -1
  12. package/dist-esm/samples-dev/clustersGetSample.js +12 -4
  13. package/dist-esm/samples-dev/clustersGetSample.js.map +1 -1
  14. package/dist-esm/samples-dev/clustersListByResourceGroupSample.js +12 -4
  15. package/dist-esm/samples-dev/clustersListByResourceGroupSample.js.map +1 -1
  16. package/dist-esm/samples-dev/clustersListBySubscriptionSample.js +11 -3
  17. package/dist-esm/samples-dev/clustersListBySubscriptionSample.js.map +1 -1
  18. package/dist-esm/samples-dev/clustersListStreamingJobsSample.js +12 -4
  19. package/dist-esm/samples-dev/clustersListStreamingJobsSample.js.map +1 -1
  20. package/dist-esm/samples-dev/clustersUpdateSample.js +13 -5
  21. package/dist-esm/samples-dev/clustersUpdateSample.js.map +1 -1
  22. package/dist-esm/samples-dev/functionsCreateOrReplaceSample.js +97 -16
  23. package/dist-esm/samples-dev/functionsCreateOrReplaceSample.js.map +1 -1
  24. package/dist-esm/samples-dev/functionsDeleteSample.js +12 -4
  25. package/dist-esm/samples-dev/functionsDeleteSample.js.map +1 -1
  26. package/dist-esm/samples-dev/functionsGetSample.js +17 -8
  27. package/dist-esm/samples-dev/functionsGetSample.js.map +1 -1
  28. package/dist-esm/samples-dev/functionsListByStreamingJobSample.js +12 -4
  29. package/dist-esm/samples-dev/functionsListByStreamingJobSample.js.map +1 -1
  30. package/dist-esm/samples-dev/functionsRetrieveDefaultDefinitionSample.js +15 -7
  31. package/dist-esm/samples-dev/functionsRetrieveDefaultDefinitionSample.js.map +1 -1
  32. package/dist-esm/samples-dev/functionsTestSample.js +18 -9
  33. package/dist-esm/samples-dev/functionsTestSample.js.map +1 -1
  34. package/dist-esm/samples-dev/functionsUpdateSample.js +26 -14
  35. package/dist-esm/samples-dev/functionsUpdateSample.js.map +1 -1
  36. package/dist-esm/samples-dev/inputsCreateOrReplaceSample.js +147 -31
  37. package/dist-esm/samples-dev/inputsCreateOrReplaceSample.js.map +1 -1
  38. package/dist-esm/samples-dev/inputsDeleteSample.js +12 -4
  39. package/dist-esm/samples-dev/inputsDeleteSample.js.map +1 -1
  40. package/dist-esm/samples-dev/inputsGetSample.js +27 -16
  41. package/dist-esm/samples-dev/inputsGetSample.js.map +1 -1
  42. package/dist-esm/samples-dev/inputsListByStreamingJobSample.js +18 -9
  43. package/dist-esm/samples-dev/inputsListByStreamingJobSample.js.map +1 -1
  44. package/dist-esm/samples-dev/inputsTestSample.js +12 -4
  45. package/dist-esm/samples-dev/inputsTestSample.js.map +1 -1
  46. package/dist-esm/samples-dev/inputsUpdateSample.js +39 -28
  47. package/dist-esm/samples-dev/inputsUpdateSample.js.map +1 -1
  48. package/dist-esm/samples-dev/operationsListSample.js +11 -3
  49. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  50. package/dist-esm/samples-dev/outputsCreateOrReplaceSample.js +261 -56
  51. package/dist-esm/samples-dev/outputsCreateOrReplaceSample.js.map +1 -1
  52. package/dist-esm/samples-dev/outputsDeleteSample.js +12 -4
  53. package/dist-esm/samples-dev/outputsDeleteSample.js.map +1 -1
  54. package/dist-esm/samples-dev/outputsGetSample.js +98 -41
  55. package/dist-esm/samples-dev/outputsGetSample.js.map +1 -1
  56. package/dist-esm/samples-dev/outputsListByStreamingJobSample.js +12 -4
  57. package/dist-esm/samples-dev/outputsListByStreamingJobSample.js.map +1 -1
  58. package/dist-esm/samples-dev/outputsTestSample.js +12 -4
  59. package/dist-esm/samples-dev/outputsTestSample.js.map +1 -1
  60. package/dist-esm/samples-dev/outputsUpdateSample.js +150 -54
  61. package/dist-esm/samples-dev/outputsUpdateSample.js.map +1 -1
  62. package/dist-esm/samples-dev/privateEndpointsCreateOrUpdateSample.js +21 -11
  63. package/dist-esm/samples-dev/privateEndpointsCreateOrUpdateSample.js.map +1 -1
  64. package/dist-esm/samples-dev/privateEndpointsDeleteSample.js +12 -4
  65. package/dist-esm/samples-dev/privateEndpointsDeleteSample.js.map +1 -1
  66. package/dist-esm/samples-dev/privateEndpointsGetSample.js +12 -4
  67. package/dist-esm/samples-dev/privateEndpointsGetSample.js.map +1 -1
  68. package/dist-esm/samples-dev/privateEndpointsListByClusterSample.js +12 -4
  69. package/dist-esm/samples-dev/privateEndpointsListByClusterSample.js.map +1 -1
  70. package/dist-esm/samples-dev/skuListSample.d.ts +2 -0
  71. package/dist-esm/samples-dev/skuListSample.d.ts.map +1 -0
  72. package/dist-esm/samples-dev/skuListSample.js +55 -0
  73. package/dist-esm/samples-dev/skuListSample.js.map +1 -0
  74. package/dist-esm/samples-dev/streamingJobsCreateOrReplaceSample.js +85 -22
  75. package/dist-esm/samples-dev/streamingJobsCreateOrReplaceSample.js.map +1 -1
  76. package/dist-esm/samples-dev/streamingJobsDeleteSample.js +12 -4
  77. package/dist-esm/samples-dev/streamingJobsDeleteSample.js.map +1 -1
  78. package/dist-esm/samples-dev/streamingJobsGetSample.js +18 -9
  79. package/dist-esm/samples-dev/streamingJobsGetSample.js.map +1 -1
  80. package/dist-esm/samples-dev/streamingJobsListByResourceGroupSample.js +18 -9
  81. package/dist-esm/samples-dev/streamingJobsListByResourceGroupSample.js.map +1 -1
  82. package/dist-esm/samples-dev/streamingJobsListSample.js +16 -7
  83. package/dist-esm/samples-dev/streamingJobsListSample.js.map +1 -1
  84. package/dist-esm/samples-dev/streamingJobsScaleSample.js +15 -7
  85. package/dist-esm/samples-dev/streamingJobsScaleSample.js.map +1 -1
  86. package/dist-esm/samples-dev/streamingJobsStartSample.js +26 -16
  87. package/dist-esm/samples-dev/streamingJobsStartSample.js.map +1 -1
  88. package/dist-esm/samples-dev/streamingJobsStopSample.js +12 -4
  89. package/dist-esm/samples-dev/streamingJobsStopSample.js.map +1 -1
  90. package/dist-esm/samples-dev/streamingJobsUpdateSample.js +14 -6
  91. package/dist-esm/samples-dev/streamingJobsUpdateSample.js.map +1 -1
  92. package/dist-esm/samples-dev/subscriptionsCompileQuerySample.d.ts +2 -0
  93. package/dist-esm/samples-dev/subscriptionsCompileQuerySample.d.ts.map +1 -0
  94. package/dist-esm/samples-dev/subscriptionsCompileQuerySample.js +53 -0
  95. package/dist-esm/samples-dev/subscriptionsCompileQuerySample.js.map +1 -0
  96. package/dist-esm/samples-dev/subscriptionsListQuotasSample.js +11 -3
  97. package/dist-esm/samples-dev/subscriptionsListQuotasSample.js.map +1 -1
  98. package/dist-esm/samples-dev/subscriptionsSampleInputSample.d.ts +2 -0
  99. package/dist-esm/samples-dev/subscriptionsSampleInputSample.d.ts.map +1 -0
  100. package/dist-esm/samples-dev/subscriptionsSampleInputSample.js +60 -0
  101. package/dist-esm/samples-dev/subscriptionsSampleInputSample.js.map +1 -0
  102. package/dist-esm/samples-dev/subscriptionsTestInputSample.d.ts +2 -0
  103. package/dist-esm/samples-dev/subscriptionsTestInputSample.d.ts.map +1 -0
  104. package/dist-esm/samples-dev/subscriptionsTestInputSample.js +57 -0
  105. package/dist-esm/samples-dev/subscriptionsTestInputSample.js.map +1 -0
  106. package/dist-esm/samples-dev/subscriptionsTestOutputSample.d.ts +2 -0
  107. package/dist-esm/samples-dev/subscriptionsTestOutputSample.d.ts.map +1 -0
  108. package/dist-esm/samples-dev/subscriptionsTestOutputSample.js +53 -0
  109. package/dist-esm/samples-dev/subscriptionsTestOutputSample.js.map +1 -0
  110. package/dist-esm/samples-dev/subscriptionsTestQuerySample.d.ts +2 -0
  111. package/dist-esm/samples-dev/subscriptionsTestQuerySample.d.ts.map +1 -0
  112. package/dist-esm/samples-dev/subscriptionsTestQuerySample.js +78 -0
  113. package/dist-esm/samples-dev/subscriptionsTestQuerySample.js.map +1 -0
  114. package/dist-esm/samples-dev/transformationsCreateOrReplaceSample.js +14 -6
  115. package/dist-esm/samples-dev/transformationsCreateOrReplaceSample.js.map +1 -1
  116. package/dist-esm/samples-dev/transformationsGetSample.js +12 -4
  117. package/dist-esm/samples-dev/transformationsGetSample.js.map +1 -1
  118. package/dist-esm/samples-dev/transformationsUpdateSample.js +13 -5
  119. package/dist-esm/samples-dev/transformationsUpdateSample.js.map +1 -1
  120. package/dist-esm/src/lroImpl.d.ts +6 -11
  121. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  122. package/dist-esm/src/lroImpl.js +12 -20
  123. package/dist-esm/src/lroImpl.js.map +1 -1
  124. package/dist-esm/src/models/index.d.ts +1320 -469
  125. package/dist-esm/src/models/index.d.ts.map +1 -1
  126. package/dist-esm/src/models/index.js +126 -22
  127. package/dist-esm/src/models/index.js.map +1 -1
  128. package/dist-esm/src/models/mappers.d.ts +108 -42
  129. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  130. package/dist-esm/src/models/mappers.js +3129 -1585
  131. package/dist-esm/src/models/mappers.js.map +1 -1
  132. package/dist-esm/src/models/parameters.d.ts +19 -13
  133. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  134. package/dist-esm/src/models/parameters.js +162 -131
  135. package/dist-esm/src/models/parameters.js.map +1 -1
  136. package/dist-esm/src/operations/clusters.d.ts +4 -4
  137. package/dist-esm/src/operations/clusters.d.ts.map +1 -1
  138. package/dist-esm/src/operations/clusters.js +105 -93
  139. package/dist-esm/src/operations/clusters.js.map +1 -1
  140. package/dist-esm/src/operations/functions.d.ts +2 -2
  141. package/dist-esm/src/operations/functions.d.ts.map +1 -1
  142. package/dist-esm/src/operations/functions.js +64 -60
  143. package/dist-esm/src/operations/functions.js.map +1 -1
  144. package/dist-esm/src/operations/index.d.ts +5 -4
  145. package/dist-esm/src/operations/index.d.ts.map +1 -1
  146. package/dist-esm/src/operations/index.js +5 -4
  147. package/dist-esm/src/operations/index.js.map +1 -1
  148. package/dist-esm/src/operations/inputs.d.ts +2 -2
  149. package/dist-esm/src/operations/inputs.d.ts.map +1 -1
  150. package/dist-esm/src/operations/inputs.js +58 -54
  151. package/dist-esm/src/operations/inputs.js.map +1 -1
  152. package/dist-esm/src/operations/operations.js +9 -9
  153. package/dist-esm/src/operations/outputs.d.ts +2 -2
  154. package/dist-esm/src/operations/outputs.d.ts.map +1 -1
  155. package/dist-esm/src/operations/outputs.js +58 -54
  156. package/dist-esm/src/operations/outputs.js.map +1 -1
  157. package/dist-esm/src/operations/privateEndpoints.d.ts +2 -2
  158. package/dist-esm/src/operations/privateEndpoints.d.ts.map +1 -1
  159. package/dist-esm/src/operations/privateEndpoints.js +47 -43
  160. package/dist-esm/src/operations/privateEndpoints.js.map +1 -1
  161. package/dist-esm/src/operations/skuOperations.d.ts +38 -0
  162. package/dist-esm/src/operations/skuOperations.d.ts.map +1 -0
  163. package/dist-esm/src/operations/skuOperations.js +150 -0
  164. package/dist-esm/src/operations/skuOperations.js.map +1 -0
  165. package/dist-esm/src/operations/streamingJobs.d.ts +6 -6
  166. package/dist-esm/src/operations/streamingJobs.d.ts.map +1 -1
  167. package/dist-esm/src/operations/streamingJobs.js +119 -99
  168. package/dist-esm/src/operations/streamingJobs.js.map +1 -1
  169. package/dist-esm/src/operations/subscriptions.d.ts +79 -4
  170. package/dist-esm/src/operations/subscriptions.d.ts.map +1 -1
  171. package/dist-esm/src/operations/subscriptions.js +401 -8
  172. package/dist-esm/src/operations/subscriptions.js.map +1 -1
  173. package/dist-esm/src/operations/transformations.js +22 -22
  174. package/dist-esm/src/operations/transformations.js.map +1 -1
  175. package/dist-esm/src/operationsInterfaces/clusters.d.ts +4 -4
  176. package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -1
  177. package/dist-esm/src/operationsInterfaces/functions.d.ts +2 -2
  178. package/dist-esm/src/operationsInterfaces/functions.d.ts.map +1 -1
  179. package/dist-esm/src/operationsInterfaces/index.d.ts +5 -4
  180. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  181. package/dist-esm/src/operationsInterfaces/index.js +5 -4
  182. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  183. package/dist-esm/src/operationsInterfaces/inputs.d.ts +2 -2
  184. package/dist-esm/src/operationsInterfaces/inputs.d.ts.map +1 -1
  185. package/dist-esm/src/operationsInterfaces/outputs.d.ts +2 -2
  186. package/dist-esm/src/operationsInterfaces/outputs.d.ts.map +1 -1
  187. package/dist-esm/src/operationsInterfaces/privateEndpoints.d.ts +2 -2
  188. package/dist-esm/src/operationsInterfaces/privateEndpoints.d.ts.map +1 -1
  189. package/dist-esm/src/operationsInterfaces/skuOperations.d.ts +13 -0
  190. package/dist-esm/src/operationsInterfaces/skuOperations.d.ts.map +1 -0
  191. package/dist-esm/src/operationsInterfaces/skuOperations.js +9 -0
  192. package/dist-esm/src/operationsInterfaces/skuOperations.js.map +1 -0
  193. package/dist-esm/src/operationsInterfaces/streamingJobs.d.ts +6 -6
  194. package/dist-esm/src/operationsInterfaces/streamingJobs.d.ts.map +1 -1
  195. package/dist-esm/src/operationsInterfaces/subscriptions.d.ts +79 -4
  196. package/dist-esm/src/operationsInterfaces/subscriptions.d.ts.map +1 -1
  197. package/dist-esm/src/streamAnalyticsManagementClient.d.ts +6 -8
  198. package/dist-esm/src/streamAnalyticsManagementClient.d.ts.map +1 -1
  199. package/dist-esm/src/streamAnalyticsManagementClient.js +12 -41
  200. package/dist-esm/src/streamAnalyticsManagementClient.js.map +1 -1
  201. package/dist-esm/test/streamanalytics_operations_test.spec.d.ts +4 -0
  202. package/dist-esm/test/streamanalytics_operations_test.spec.d.ts.map +1 -0
  203. package/dist-esm/test/streamanalytics_operations_test.spec.js +112 -0
  204. package/dist-esm/test/streamanalytics_operations_test.spec.js.map +1 -0
  205. package/package.json +15 -14
  206. package/review/arm-streamanalytics.api.md +614 -55
  207. package/src/lroImpl.ts +31 -23
  208. package/src/models/index.ts +1514 -538
  209. package/src/models/mappers.ts +3649 -1881
  210. package/src/models/parameters.ts +182 -140
  211. package/src/operations/clusters.ts +189 -189
  212. package/src/operations/functions.ts +115 -113
  213. package/src/operations/index.ts +5 -4
  214. package/src/operations/inputs.ts +103 -103
  215. package/src/operations/operations.ts +16 -16
  216. package/src/operations/outputs.ts +103 -103
  217. package/src/operations/privateEndpoints.ts +83 -84
  218. package/src/operations/skuOperations.ts +193 -0
  219. package/src/operations/streamingJobs.ts +208 -215
  220. package/src/operations/subscriptions.ts +551 -13
  221. package/src/operations/transformations.ts +32 -35
  222. package/src/operationsInterfaces/clusters.ts +17 -17
  223. package/src/operationsInterfaces/functions.ts +14 -11
  224. package/src/operationsInterfaces/index.ts +5 -4
  225. package/src/operationsInterfaces/inputs.ts +10 -10
  226. package/src/operationsInterfaces/operations.ts +1 -1
  227. package/src/operationsInterfaces/outputs.ts +10 -10
  228. package/src/operationsInterfaces/privateEndpoints.ts +8 -8
  229. package/src/operationsInterfaces/skuOperations.ts +26 -0
  230. package/src/operationsInterfaces/streamingJobs.ts +22 -22
  231. package/src/operationsInterfaces/subscriptions.ts +151 -5
  232. package/src/operationsInterfaces/transformations.ts +4 -4
  233. package/src/pagingHelper.ts +1 -1
  234. package/src/streamAnalyticsManagementClient.ts +34 -65
  235. package/types/arm-streamanalytics.d.ts +1129 -109
  236. package/dist-esm/test/sampleTest.d.ts +0 -2
  237. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  238. package/dist-esm/test/sampleTest.js +0 -38
  239. package/dist-esm/test/sampleTest.js.map +0 -1
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
- import { PollerLike, PollOperationState } from "@azure/core-lro";
10
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
11
11
  import {
12
12
  StreamingJob,
13
13
  StreamingJobsListByResourceGroupOptionalParams,
@@ -21,7 +21,7 @@ import {
21
21
  StreamingJobsGetResponse,
22
22
  StreamingJobsStartOptionalParams,
23
23
  StreamingJobsStopOptionalParams,
24
- StreamingJobsScaleOptionalParams
24
+ StreamingJobsScaleOptionalParams,
25
25
  } from "../models";
26
26
 
27
27
  /// <reference lib="esnext.asynciterable" />
@@ -34,14 +34,14 @@ export interface StreamingJobs {
34
34
  */
35
35
  listByResourceGroup(
36
36
  resourceGroupName: string,
37
- options?: StreamingJobsListByResourceGroupOptionalParams
37
+ options?: StreamingJobsListByResourceGroupOptionalParams,
38
38
  ): PagedAsyncIterableIterator<StreamingJob>;
39
39
  /**
40
40
  * Lists all of the streaming jobs in the given subscription.
41
41
  * @param options The options parameters.
42
42
  */
43
43
  list(
44
- options?: StreamingJobsListOptionalParams
44
+ options?: StreamingJobsListOptionalParams,
45
45
  ): PagedAsyncIterableIterator<StreamingJob>;
46
46
  /**
47
47
  * Creates a streaming job or replaces an already existing streaming job.
@@ -55,10 +55,10 @@ export interface StreamingJobs {
55
55
  resourceGroupName: string,
56
56
  jobName: string,
57
57
  streamingJob: StreamingJob,
58
- options?: StreamingJobsCreateOrReplaceOptionalParams
58
+ options?: StreamingJobsCreateOrReplaceOptionalParams,
59
59
  ): Promise<
60
- PollerLike<
61
- PollOperationState<StreamingJobsCreateOrReplaceResponse>,
60
+ SimplePollerLike<
61
+ OperationState<StreamingJobsCreateOrReplaceResponse>,
62
62
  StreamingJobsCreateOrReplaceResponse
63
63
  >
64
64
  >;
@@ -74,7 +74,7 @@ export interface StreamingJobs {
74
74
  resourceGroupName: string,
75
75
  jobName: string,
76
76
  streamingJob: StreamingJob,
77
- options?: StreamingJobsCreateOrReplaceOptionalParams
77
+ options?: StreamingJobsCreateOrReplaceOptionalParams,
78
78
  ): Promise<StreamingJobsCreateOrReplaceResponse>;
79
79
  /**
80
80
  * Updates an existing streaming job. This can be used to partially update (ie. update one or two
@@ -91,7 +91,7 @@ export interface StreamingJobs {
91
91
  resourceGroupName: string,
92
92
  jobName: string,
93
93
  streamingJob: StreamingJob,
94
- options?: StreamingJobsUpdateOptionalParams
94
+ options?: StreamingJobsUpdateOptionalParams,
95
95
  ): Promise<StreamingJobsUpdateResponse>;
96
96
  /**
97
97
  * Deletes a streaming job.
@@ -102,8 +102,8 @@ export interface StreamingJobs {
102
102
  beginDelete(
103
103
  resourceGroupName: string,
104
104
  jobName: string,
105
- options?: StreamingJobsDeleteOptionalParams
106
- ): Promise<PollerLike<PollOperationState<void>, void>>;
105
+ options?: StreamingJobsDeleteOptionalParams,
106
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
107
107
  /**
108
108
  * Deletes a streaming job.
109
109
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -113,7 +113,7 @@ export interface StreamingJobs {
113
113
  beginDeleteAndWait(
114
114
  resourceGroupName: string,
115
115
  jobName: string,
116
- options?: StreamingJobsDeleteOptionalParams
116
+ options?: StreamingJobsDeleteOptionalParams,
117
117
  ): Promise<void>;
118
118
  /**
119
119
  * Gets details about the specified streaming job.
@@ -124,7 +124,7 @@ export interface StreamingJobs {
124
124
  get(
125
125
  resourceGroupName: string,
126
126
  jobName: string,
127
- options?: StreamingJobsGetOptionalParams
127
+ options?: StreamingJobsGetOptionalParams,
128
128
  ): Promise<StreamingJobsGetResponse>;
129
129
  /**
130
130
  * Starts a streaming job. Once a job is started it will start processing input events and produce
@@ -136,8 +136,8 @@ export interface StreamingJobs {
136
136
  beginStart(
137
137
  resourceGroupName: string,
138
138
  jobName: string,
139
- options?: StreamingJobsStartOptionalParams
140
- ): Promise<PollerLike<PollOperationState<void>, void>>;
139
+ options?: StreamingJobsStartOptionalParams,
140
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
141
141
  /**
142
142
  * Starts a streaming job. Once a job is started it will start processing input events and produce
143
143
  * output.
@@ -148,7 +148,7 @@ export interface StreamingJobs {
148
148
  beginStartAndWait(
149
149
  resourceGroupName: string,
150
150
  jobName: string,
151
- options?: StreamingJobsStartOptionalParams
151
+ options?: StreamingJobsStartOptionalParams,
152
152
  ): Promise<void>;
153
153
  /**
154
154
  * Stops a running streaming job. This will cause a running streaming job to stop processing input
@@ -160,8 +160,8 @@ export interface StreamingJobs {
160
160
  beginStop(
161
161
  resourceGroupName: string,
162
162
  jobName: string,
163
- options?: StreamingJobsStopOptionalParams
164
- ): Promise<PollerLike<PollOperationState<void>, void>>;
163
+ options?: StreamingJobsStopOptionalParams,
164
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
165
165
  /**
166
166
  * Stops a running streaming job. This will cause a running streaming job to stop processing input
167
167
  * events and producing output.
@@ -172,7 +172,7 @@ export interface StreamingJobs {
172
172
  beginStopAndWait(
173
173
  resourceGroupName: string,
174
174
  jobName: string,
175
- options?: StreamingJobsStopOptionalParams
175
+ options?: StreamingJobsStopOptionalParams,
176
176
  ): Promise<void>;
177
177
  /**
178
178
  * Scales a streaming job when the job is running.
@@ -183,8 +183,8 @@ export interface StreamingJobs {
183
183
  beginScale(
184
184
  resourceGroupName: string,
185
185
  jobName: string,
186
- options?: StreamingJobsScaleOptionalParams
187
- ): Promise<PollerLike<PollOperationState<void>, void>>;
186
+ options?: StreamingJobsScaleOptionalParams,
187
+ ): Promise<SimplePollerLike<OperationState<void>, void>>;
188
188
  /**
189
189
  * Scales a streaming job when the job is running.
190
190
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -194,6 +194,6 @@ export interface StreamingJobs {
194
194
  beginScaleAndWait(
195
195
  resourceGroupName: string,
196
196
  jobName: string,
197
- options?: StreamingJobsScaleOptionalParams
197
+ options?: StreamingJobsScaleOptionalParams,
198
198
  ): Promise<void>;
199
199
  }
@@ -6,22 +6,168 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
9
10
  import {
10
11
  SubscriptionsListQuotasOptionalParams,
11
- SubscriptionsListQuotasResponse
12
+ SubscriptionsListQuotasResponse,
13
+ TestQuery,
14
+ SubscriptionsTestQueryOptionalParams,
15
+ SubscriptionsTestQueryResponse,
16
+ CompileQuery,
17
+ SubscriptionsCompileQueryOptionalParams,
18
+ SubscriptionsCompileQueryResponse,
19
+ SampleInput,
20
+ SubscriptionsSampleInputOptionalParams,
21
+ SubscriptionsSampleInputResponse,
22
+ TestInput,
23
+ SubscriptionsTestInputOptionalParams,
24
+ SubscriptionsTestInputResponse,
25
+ TestOutput,
26
+ SubscriptionsTestOutputOptionalParams,
27
+ SubscriptionsTestOutputResponse,
12
28
  } from "../models";
13
29
 
14
30
  /** Interface representing a Subscriptions. */
15
31
  export interface Subscriptions {
16
32
  /**
17
33
  * Retrieves the subscription's current quota information in a particular region.
18
- * @param location The region in which to retrieve the subscription's quota information. You can find
19
- * out which regions Azure Stream Analytics is supported in here:
20
- * https://azure.microsoft.com/en-us/regions/
34
+ * @param location The region to which the request is sent. You can find out which regions Azure Stream
35
+ * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
21
36
  * @param options The options parameters.
22
37
  */
23
38
  listQuotas(
24
39
  location: string,
25
- options?: SubscriptionsListQuotasOptionalParams
40
+ options?: SubscriptionsListQuotasOptionalParams,
26
41
  ): Promise<SubscriptionsListQuotasResponse>;
42
+ /**
43
+ * Test the Stream Analytics query on a sample input.
44
+ * @param location The region to which the request is sent. You can find out which regions Azure Stream
45
+ * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
46
+ * @param testQuery The query testing object that defines the input, output, and transformation for the
47
+ * query testing.
48
+ * @param options The options parameters.
49
+ */
50
+ beginTestQuery(
51
+ location: string,
52
+ testQuery: TestQuery,
53
+ options?: SubscriptionsTestQueryOptionalParams,
54
+ ): Promise<
55
+ SimplePollerLike<
56
+ OperationState<SubscriptionsTestQueryResponse>,
57
+ SubscriptionsTestQueryResponse
58
+ >
59
+ >;
60
+ /**
61
+ * Test the Stream Analytics query on a sample input.
62
+ * @param location The region to which the request is sent. You can find out which regions Azure Stream
63
+ * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
64
+ * @param testQuery The query testing object that defines the input, output, and transformation for the
65
+ * query testing.
66
+ * @param options The options parameters.
67
+ */
68
+ beginTestQueryAndWait(
69
+ location: string,
70
+ testQuery: TestQuery,
71
+ options?: SubscriptionsTestQueryOptionalParams,
72
+ ): Promise<SubscriptionsTestQueryResponse>;
73
+ /**
74
+ * Compile the Stream Analytics query.
75
+ * @param location The region to which the request is sent. You can find out which regions Azure Stream
76
+ * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
77
+ * @param compileQuery The query compilation object which defines the input, output, and transformation
78
+ * for the query compilation.
79
+ * @param options The options parameters.
80
+ */
81
+ compileQuery(
82
+ location: string,
83
+ compileQuery: CompileQuery,
84
+ options?: SubscriptionsCompileQueryOptionalParams,
85
+ ): Promise<SubscriptionsCompileQueryResponse>;
86
+ /**
87
+ * Sample the Stream Analytics input data.
88
+ * @param location The region to which the request is sent. You can find out which regions Azure Stream
89
+ * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
90
+ * @param sampleInput Defines the necessary parameters for sampling the Stream Analytics input data.
91
+ * @param options The options parameters.
92
+ */
93
+ beginSampleInput(
94
+ location: string,
95
+ sampleInput: SampleInput,
96
+ options?: SubscriptionsSampleInputOptionalParams,
97
+ ): Promise<
98
+ SimplePollerLike<
99
+ OperationState<SubscriptionsSampleInputResponse>,
100
+ SubscriptionsSampleInputResponse
101
+ >
102
+ >;
103
+ /**
104
+ * Sample the Stream Analytics input data.
105
+ * @param location The region to which the request is sent. You can find out which regions Azure Stream
106
+ * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
107
+ * @param sampleInput Defines the necessary parameters for sampling the Stream Analytics input data.
108
+ * @param options The options parameters.
109
+ */
110
+ beginSampleInputAndWait(
111
+ location: string,
112
+ sampleInput: SampleInput,
113
+ options?: SubscriptionsSampleInputOptionalParams,
114
+ ): Promise<SubscriptionsSampleInputResponse>;
115
+ /**
116
+ * Test the Stream Analytics input.
117
+ * @param location The region to which the request is sent. You can find out which regions Azure Stream
118
+ * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
119
+ * @param testInput Defines the necessary parameters for testing the Stream Analytics input.
120
+ * @param options The options parameters.
121
+ */
122
+ beginTestInput(
123
+ location: string,
124
+ testInput: TestInput,
125
+ options?: SubscriptionsTestInputOptionalParams,
126
+ ): Promise<
127
+ SimplePollerLike<
128
+ OperationState<SubscriptionsTestInputResponse>,
129
+ SubscriptionsTestInputResponse
130
+ >
131
+ >;
132
+ /**
133
+ * Test the Stream Analytics input.
134
+ * @param location The region to which the request is sent. You can find out which regions Azure Stream
135
+ * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
136
+ * @param testInput Defines the necessary parameters for testing the Stream Analytics input.
137
+ * @param options The options parameters.
138
+ */
139
+ beginTestInputAndWait(
140
+ location: string,
141
+ testInput: TestInput,
142
+ options?: SubscriptionsTestInputOptionalParams,
143
+ ): Promise<SubscriptionsTestInputResponse>;
144
+ /**
145
+ * Test the Stream Analytics output.
146
+ * @param location The region to which the request is sent. You can find out which regions Azure Stream
147
+ * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
148
+ * @param testOutput Defines the necessary parameters for testing the Stream Analytics output.
149
+ * @param options The options parameters.
150
+ */
151
+ beginTestOutput(
152
+ location: string,
153
+ testOutput: TestOutput,
154
+ options?: SubscriptionsTestOutputOptionalParams,
155
+ ): Promise<
156
+ SimplePollerLike<
157
+ OperationState<SubscriptionsTestOutputResponse>,
158
+ SubscriptionsTestOutputResponse
159
+ >
160
+ >;
161
+ /**
162
+ * Test the Stream Analytics output.
163
+ * @param location The region to which the request is sent. You can find out which regions Azure Stream
164
+ * Analytics is supported in here: https://azure.microsoft.com/en-us/regions/
165
+ * @param testOutput Defines the necessary parameters for testing the Stream Analytics output.
166
+ * @param options The options parameters.
167
+ */
168
+ beginTestOutputAndWait(
169
+ location: string,
170
+ testOutput: TestOutput,
171
+ options?: SubscriptionsTestOutputOptionalParams,
172
+ ): Promise<SubscriptionsTestOutputResponse>;
27
173
  }
@@ -13,7 +13,7 @@ import {
13
13
  TransformationsUpdateOptionalParams,
14
14
  TransformationsUpdateResponse,
15
15
  TransformationsGetOptionalParams,
16
- TransformationsGetResponse
16
+ TransformationsGetResponse,
17
17
  } from "../models";
18
18
 
19
19
  /** Interface representing a Transformations. */
@@ -33,7 +33,7 @@ export interface Transformations {
33
33
  jobName: string,
34
34
  transformationName: string,
35
35
  transformation: Transformation,
36
- options?: TransformationsCreateOrReplaceOptionalParams
36
+ options?: TransformationsCreateOrReplaceOptionalParams,
37
37
  ): Promise<TransformationsCreateOrReplaceResponse>;
38
38
  /**
39
39
  * Updates an existing transformation under an existing streaming job. This can be used to partially
@@ -53,7 +53,7 @@ export interface Transformations {
53
53
  jobName: string,
54
54
  transformationName: string,
55
55
  transformation: Transformation,
56
- options?: TransformationsUpdateOptionalParams
56
+ options?: TransformationsUpdateOptionalParams,
57
57
  ): Promise<TransformationsUpdateResponse>;
58
58
  /**
59
59
  * Gets details about the specified transformation.
@@ -66,6 +66,6 @@ export interface Transformations {
66
66
  resourceGroupName: string,
67
67
  jobName: string,
68
68
  transformationName: string,
69
- options?: TransformationsGetOptionalParams
69
+ options?: TransformationsGetOptionalParams,
70
70
  ): Promise<TransformationsGetResponse>;
71
71
  }
@@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined {
28
28
 
29
29
  export function setContinuationToken(
30
30
  page: unknown,
31
- continuationToken: string | undefined
31
+ continuationToken: string | undefined,
32
32
  ): void {
33
33
  if (typeof page !== "object" || page === null || !continuationToken) {
34
34
  return;
@@ -8,39 +8,35 @@
8
8
 
9
9
  import * as coreClient from "@azure/core-client";
10
10
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
11
- import {
12
- PipelineRequest,
13
- PipelineResponse,
14
- SendRequest
15
- } from "@azure/core-rest-pipeline";
16
11
  import * as coreAuth from "@azure/core-auth";
17
12
  import {
18
- OperationsImpl,
19
- StreamingJobsImpl,
13
+ FunctionsImpl,
20
14
  InputsImpl,
21
15
  OutputsImpl,
22
- TransformationsImpl,
23
- FunctionsImpl,
16
+ OperationsImpl,
17
+ StreamingJobsImpl,
18
+ SkuOperationsImpl,
24
19
  SubscriptionsImpl,
20
+ TransformationsImpl,
25
21
  ClustersImpl,
26
- PrivateEndpointsImpl
22
+ PrivateEndpointsImpl,
27
23
  } from "./operations";
28
24
  import {
29
- Operations,
30
- StreamingJobs,
25
+ Functions,
31
26
  Inputs,
32
27
  Outputs,
33
- Transformations,
34
- Functions,
28
+ Operations,
29
+ StreamingJobs,
30
+ SkuOperations,
35
31
  Subscriptions,
32
+ Transformations,
36
33
  Clusters,
37
- PrivateEndpoints
34
+ PrivateEndpoints,
38
35
  } from "./operationsInterfaces";
39
36
  import { StreamAnalyticsManagementClientOptionalParams } from "./models";
40
37
 
41
38
  export class StreamAnalyticsManagementClient extends coreClient.ServiceClient {
42
39
  $host: string;
43
- apiVersion: string;
44
40
  subscriptionId: string;
45
41
 
46
42
  /**
@@ -52,7 +48,7 @@ export class StreamAnalyticsManagementClient extends coreClient.ServiceClient {
52
48
  constructor(
53
49
  credentials: coreAuth.TokenCredential,
54
50
  subscriptionId: string,
55
- options?: StreamAnalyticsManagementClientOptionalParams
51
+ options?: StreamAnalyticsManagementClientOptionalParams,
56
52
  ) {
57
53
  if (credentials === undefined) {
58
54
  throw new Error("'credentials' cannot be null");
@@ -67,10 +63,10 @@ export class StreamAnalyticsManagementClient extends coreClient.ServiceClient {
67
63
  }
68
64
  const defaults: StreamAnalyticsManagementClientOptionalParams = {
69
65
  requestContentType: "application/json; charset=utf-8",
70
- credential: credentials
66
+ credential: credentials,
71
67
  };
72
68
 
73
- const packageDetails = `azsdk-js-arm-streamanalytics/4.1.1`;
69
+ const packageDetails = `azsdk-js-arm-streamanalytics/5.0.0-beta.1`;
74
70
  const userAgentPrefix =
75
71
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
76
72
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -80,20 +76,21 @@ export class StreamAnalyticsManagementClient extends coreClient.ServiceClient {
80
76
  ...defaults,
81
77
  ...options,
82
78
  userAgentOptions: {
83
- userAgentPrefix
79
+ userAgentPrefix,
84
80
  },
85
81
  endpoint:
86
- options.endpoint ?? options.baseUri ?? "https://management.azure.com"
82
+ options.endpoint ?? options.baseUri ?? "https://management.azure.com",
87
83
  };
88
84
  super(optionsWithDefaults);
89
85
 
90
86
  let bearerTokenAuthenticationPolicyFound: boolean = false;
91
87
  if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
92
- const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
88
+ const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
89
+ options.pipeline.getOrderedPolicies();
93
90
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
94
91
  (pipelinePolicy) =>
95
92
  pipelinePolicy.name ===
96
- coreRestPipeline.bearerTokenAuthenticationPolicyName
93
+ coreRestPipeline.bearerTokenAuthenticationPolicyName,
97
94
  );
98
95
  }
99
96
  if (
@@ -103,7 +100,7 @@ export class StreamAnalyticsManagementClient extends coreClient.ServiceClient {
103
100
  !bearerTokenAuthenticationPolicyFound
104
101
  ) {
105
102
  this.pipeline.removePolicy({
106
- name: coreRestPipeline.bearerTokenAuthenticationPolicyName
103
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
107
104
  });
108
105
  this.pipeline.addPolicy(
109
106
  coreRestPipeline.bearerTokenAuthenticationPolicy({
@@ -113,9 +110,9 @@ export class StreamAnalyticsManagementClient extends coreClient.ServiceClient {
113
110
  `${optionsWithDefaults.endpoint}/.default`,
114
111
  challengeCallbacks: {
115
112
  authorizeRequestOnChallenge:
116
- coreClient.authorizeRequestOnClaimChallenge
117
- }
118
- })
113
+ coreClient.authorizeRequestOnClaimChallenge,
114
+ },
115
+ }),
119
116
  );
120
117
  }
121
118
  // Parameter assignments
@@ -123,54 +120,26 @@ export class StreamAnalyticsManagementClient extends coreClient.ServiceClient {
123
120
 
124
121
  // Assigning values to Constant parameters
125
122
  this.$host = options.$host || "https://management.azure.com";
126
- this.apiVersion = options.apiVersion || "2020-03-01";
127
- this.operations = new OperationsImpl(this);
128
- this.streamingJobs = new StreamingJobsImpl(this);
123
+ this.functions = new FunctionsImpl(this);
129
124
  this.inputs = new InputsImpl(this);
130
125
  this.outputs = new OutputsImpl(this);
131
- this.transformations = new TransformationsImpl(this);
132
- this.functions = new FunctionsImpl(this);
126
+ this.operations = new OperationsImpl(this);
127
+ this.streamingJobs = new StreamingJobsImpl(this);
128
+ this.skuOperations = new SkuOperationsImpl(this);
133
129
  this.subscriptions = new SubscriptionsImpl(this);
130
+ this.transformations = new TransformationsImpl(this);
134
131
  this.clusters = new ClustersImpl(this);
135
132
  this.privateEndpoints = new PrivateEndpointsImpl(this);
136
- this.addCustomApiVersionPolicy(options.apiVersion);
137
- }
138
-
139
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
140
- private addCustomApiVersionPolicy(apiVersion?: string) {
141
- if (!apiVersion) {
142
- return;
143
- }
144
- const apiVersionPolicy = {
145
- name: "CustomApiVersionPolicy",
146
- async sendRequest(
147
- request: PipelineRequest,
148
- next: SendRequest
149
- ): Promise<PipelineResponse> {
150
- const param = request.url.split("?");
151
- if (param.length > 1) {
152
- const newParams = param[1].split("&").map((item) => {
153
- if (item.indexOf("api-version") > -1) {
154
- return "api-version=" + apiVersion;
155
- } else {
156
- return item;
157
- }
158
- });
159
- request.url = param[0] + "?" + newParams.join("&");
160
- }
161
- return next(request);
162
- }
163
- };
164
- this.pipeline.addPolicy(apiVersionPolicy);
165
133
  }
166
134
 
167
- operations: Operations;
168
- streamingJobs: StreamingJobs;
135
+ functions: Functions;
169
136
  inputs: Inputs;
170
137
  outputs: Outputs;
171
- transformations: Transformations;
172
- functions: Functions;
138
+ operations: Operations;
139
+ streamingJobs: StreamingJobs;
140
+ skuOperations: SkuOperations;
173
141
  subscriptions: Subscriptions;
142
+ transformations: Transformations;
174
143
  clusters: Clusters;
175
144
  privateEndpoints: PrivateEndpoints;
176
145
  }