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