@azure/arm-streamanalytics 3.0.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/{LICENSE.txt → LICENSE} +1 -1
- package/README.md +70 -84
- package/dist/index.js +6818 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1940 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +132 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +155 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1412 -2137
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +34 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +260 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/clusters.d.ts +137 -0
- package/dist-esm/src/operations/clusters.d.ts.map +1 -0
- package/dist-esm/src/operations/clusters.js +627 -0
- package/dist-esm/src/operations/clusters.js.map +1 -0
- package/dist-esm/src/operations/functions.d.ts +107 -0
- package/dist-esm/src/operations/functions.d.ts.map +1 -0
- package/dist-esm/src/operations/functions.js +416 -0
- package/dist-esm/src/operations/functions.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +4 -4
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +5 -6
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/inputs.d.ts +94 -0
- package/dist-esm/src/operations/inputs.d.ts.map +1 -0
- package/dist-esm/src/operations/inputs.js +377 -0
- package/dist-esm/src/operations/inputs.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/outputs.d.ts +95 -0
- package/dist-esm/src/operations/outputs.d.ts.map +1 -0
- package/dist-esm/src/operations/outputs.js +378 -0
- package/dist-esm/src/operations/outputs.js.map +1 -0
- package/dist-esm/src/operations/privateEndpoints.d.ts +73 -0
- package/dist-esm/src/operations/privateEndpoints.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpoints.js +295 -0
- package/dist-esm/src/operations/privateEndpoints.js.map +1 -0
- package/dist-esm/src/operations/streamingJobs.d.ts +151 -0
- package/dist-esm/src/operations/streamingJobs.d.ts.map +1 -0
- package/dist-esm/src/operations/streamingJobs.js +692 -0
- package/dist-esm/src/operations/streamingJobs.js.map +1 -0
- package/dist-esm/src/operations/subscriptions.d.ts +21 -0
- package/dist-esm/src/operations/subscriptions.d.ts.map +1 -0
- package/dist-esm/src/operations/subscriptions.js +53 -0
- package/dist-esm/src/operations/subscriptions.js.map +1 -0
- package/dist-esm/src/operations/transformations.d.ts +46 -0
- package/dist-esm/src/operations/transformations.d.ts.map +1 -0
- package/dist-esm/src/operations/transformations.js +160 -0
- package/dist-esm/src/operations/transformations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts +84 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/clusters.js +9 -0
- package/dist-esm/src/operationsInterfaces/clusters.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/functions.d.ts +82 -0
- package/dist-esm/src/operationsInterfaces/functions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/functions.js +9 -0
- package/dist-esm/src/operationsInterfaces/functions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +17 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/inputs.d.ts +69 -0
- package/dist-esm/src/operationsInterfaces/inputs.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/inputs.js} +2 -1
- package/dist-esm/src/operationsInterfaces/inputs.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/outputs.d.ts +70 -0
- package/dist-esm/src/operationsInterfaces/outputs.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/outputs.js +9 -0
- package/dist-esm/src/operationsInterfaces/outputs.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpoints.d.ts +48 -0
- package/dist-esm/src/operationsInterfaces/privateEndpoints.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpoints.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpoints.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/streamingJobs.d.ts +115 -0
- package/dist-esm/src/operationsInterfaces/streamingJobs.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/streamingJobs.js +9 -0
- package/dist-esm/src/operationsInterfaces/streamingJobs.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/subscriptions.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/subscriptions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/subscriptions.js +9 -0
- package/dist-esm/src/operationsInterfaces/subscriptions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/transformations.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/transformations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/transformations.js +9 -0
- package/dist-esm/src/operationsInterfaces/transformations.js.map +1 -0
- package/dist-esm/src/streamAnalyticsManagementClient.d.ts +26 -0
- package/dist-esm/src/streamAnalyticsManagementClient.d.ts.map +1 -0
- package/dist-esm/src/streamAnalyticsManagementClient.js +59 -0
- package/dist-esm/src/streamAnalyticsManagementClient.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +65 -32
- package/review/arm-streamanalytics.api.md +1598 -0
- package/rollup.config.js +181 -30
- package/src/{models/operationsMappers.ts → index.ts} +4 -12
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1943 -4505
- package/src/models/mappers.ts +1393 -2127
- package/src/models/parameters.ts +180 -90
- package/src/operations/clusters.ts +640 -393
- package/src/operations/functions.ts +366 -375
- package/src/operations/index.ts +5 -6
- package/src/operations/inputs.ts +337 -326
- package/src/operations/operations.ts +85 -73
- package/src/operations/outputs.ts +337 -325
- package/src/operations/privateEndpoints.ts +276 -209
- package/src/operations/streamingJobs.ts +686 -398
- package/src/operations/subscriptions.ts +36 -376
- package/src/operations/transformations.ts +104 -162
- package/src/operationsInterfaces/clusters.ts +157 -0
- package/src/operationsInterfaces/functions.ts +148 -0
- package/src/operationsInterfaces/index.ts +17 -0
- package/src/operationsInterfaces/inputs.ts +128 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/outputs.ts +129 -0
- package/src/operationsInterfaces/privateEndpoints.ts +90 -0
- package/src/operationsInterfaces/streamingJobs.ts +199 -0
- package/src/operationsInterfaces/subscriptions.ts +27 -0
- package/src/operationsInterfaces/transformations.ts +71 -0
- package/src/streamAnalyticsManagementClient.ts +97 -49
- package/tsconfig.json +3 -3
- package/types/arm-streamanalytics.d.ts +2730 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-streamanalytics.js +0 -7772
- package/dist/arm-streamanalytics.js.map +0 -1
- package/dist/arm-streamanalytics.min.js +0 -1
- package/dist/arm-streamanalytics.min.js.map +0 -1
- package/esm/models/clustersMappers.d.ts +0 -2
- package/esm/models/clustersMappers.d.ts.map +0 -1
- package/esm/models/clustersMappers.js +0 -9
- package/esm/models/clustersMappers.js.map +0 -1
- package/esm/models/functionsMappers.d.ts +0 -2
- package/esm/models/functionsMappers.d.ts.map +0 -1
- package/esm/models/functionsMappers.js +0 -9
- package/esm/models/functionsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -4514
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/inputsMappers.d.ts +0 -2
- package/esm/models/inputsMappers.d.ts.map +0 -1
- package/esm/models/inputsMappers.js +0 -9
- package/esm/models/inputsMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -185
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/outputsMappers.d.ts +0 -2
- package/esm/models/outputsMappers.d.ts.map +0 -1
- package/esm/models/outputsMappers.js +0 -9
- package/esm/models/outputsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -20
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -216
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/privateEndpointsMappers.d.ts +0 -2
- package/esm/models/privateEndpointsMappers.d.ts.map +0 -1
- package/esm/models/privateEndpointsMappers.js +0 -9
- package/esm/models/privateEndpointsMappers.js.map +0 -1
- package/esm/models/streamingJobsMappers.d.ts +0 -2
- package/esm/models/streamingJobsMappers.d.ts.map +0 -1
- package/esm/models/streamingJobsMappers.js +0 -9
- package/esm/models/streamingJobsMappers.js.map +0 -1
- package/esm/models/subscriptionsMappers.d.ts +0 -2
- package/esm/models/subscriptionsMappers.d.ts.map +0 -1
- package/esm/models/subscriptionsMappers.js +0 -9
- package/esm/models/subscriptionsMappers.js.map +0 -1
- package/esm/models/transformationsMappers.d.ts +0 -2
- package/esm/models/transformationsMappers.d.ts.map +0 -1
- package/esm/models/transformationsMappers.js +0 -9
- package/esm/models/transformationsMappers.js.map +0 -1
- package/esm/operations/clusters.d.ts +0 -201
- package/esm/operations/clusters.d.ts.map +0 -1
- package/esm/operations/clusters.js +0 -406
- package/esm/operations/clusters.js.map +0 -1
- package/esm/operations/functions.d.ts +0 -215
- package/esm/operations/functions.d.ts.map +0 -1
- package/esm/operations/functions.js +0 -348
- package/esm/operations/functions.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/inputs.d.ts +0 -189
- package/esm/operations/inputs.d.ts.map +0 -1
- package/esm/operations/inputs.js +0 -306
- package/esm/operations/inputs.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -79
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/outputs.d.ts +0 -189
- package/esm/operations/outputs.d.ts.map +0 -1
- package/esm/operations/outputs.js +0 -306
- package/esm/operations/outputs.js.map +0 -1
- package/esm/operations/privateEndpoints.d.ts +0 -125
- package/esm/operations/privateEndpoints.d.ts.map +0 -1
- package/esm/operations/privateEndpoints.js +0 -216
- package/esm/operations/privateEndpoints.js.map +0 -1
- package/esm/operations/streamingJobs.d.ts +0 -210
- package/esm/operations/streamingJobs.d.ts.map +0 -1
- package/esm/operations/streamingJobs.js +0 -440
- package/esm/operations/streamingJobs.js.map +0 -1
- package/esm/operations/subscriptions.d.ts +0 -138
- package/esm/operations/subscriptions.d.ts.map +0 -1
- package/esm/operations/subscriptions.js +0 -311
- package/esm/operations/subscriptions.js.map +0 -1
- package/esm/operations/transformations.d.ts +0 -106
- package/esm/operations/transformations.d.ts.map +0 -1
- package/esm/operations/transformations.js +0 -149
- package/esm/operations/transformations.js.map +0 -1
- package/esm/streamAnalyticsManagementClient.d.ts +0 -32
- package/esm/streamAnalyticsManagementClient.d.ts.map +0 -1
- package/esm/streamAnalyticsManagementClient.js +0 -45
- package/esm/streamAnalyticsManagementClient.js.map +0 -1
- package/esm/streamAnalyticsManagementClientContext.d.ts +0 -21
- package/esm/streamAnalyticsManagementClientContext.d.ts.map +0 -1
- package/esm/streamAnalyticsManagementClientContext.js +0 -59
- package/esm/streamAnalyticsManagementClientContext.js.map +0 -1
- package/src/models/clustersMappers.ts +0 -96
- package/src/models/functionsMappers.ts +0 -104
- package/src/models/inputsMappers.ts +0 -99
- package/src/models/outputsMappers.ts +0 -99
- package/src/models/privateEndpointsMappers.ts +0 -94
- package/src/models/streamingJobsMappers.ts +0 -98
- package/src/models/subscriptionsMappers.ts +0 -104
- package/src/models/transformationsMappers.ts +0 -96
- package/src/streamAnalyticsManagementClientContext.ts +0 -65
|
@@ -3,121 +3,164 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
13
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Outputs } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { StreamAnalyticsManagementClient } from "../streamAnalyticsManagementClient";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
Output,
|
|
19
|
+
OutputsListByStreamingJobNextOptionalParams,
|
|
20
|
+
OutputsListByStreamingJobOptionalParams,
|
|
21
|
+
OutputsCreateOrReplaceOptionalParams,
|
|
22
|
+
OutputsCreateOrReplaceResponse,
|
|
23
|
+
OutputsUpdateOptionalParams,
|
|
24
|
+
OutputsUpdateResponse,
|
|
25
|
+
OutputsDeleteOptionalParams,
|
|
26
|
+
OutputsGetOptionalParams,
|
|
27
|
+
OutputsGetResponse,
|
|
28
|
+
OutputsListByStreamingJobResponse,
|
|
29
|
+
OutputsTestOptionalParams,
|
|
30
|
+
OutputsTestResponse,
|
|
31
|
+
OutputsListByStreamingJobNextResponse
|
|
32
|
+
} from "../models";
|
|
16
33
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
34
|
+
/// <reference lib="esnext.asynciterable" />
|
|
35
|
+
/** Class containing Outputs operations. */
|
|
36
|
+
export class OutputsImpl implements Outputs {
|
|
37
|
+
private readonly client: StreamAnalyticsManagementClient;
|
|
20
38
|
|
|
21
39
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
40
|
+
* Initialize a new instance of the class Outputs class.
|
|
41
|
+
* @param client Reference to the service client
|
|
24
42
|
*/
|
|
25
|
-
constructor(client:
|
|
43
|
+
constructor(client: StreamAnalyticsManagementClient) {
|
|
26
44
|
this.client = client;
|
|
27
45
|
}
|
|
28
46
|
|
|
29
47
|
/**
|
|
30
|
-
*
|
|
31
|
-
* @param output The definition of the output that will be used to create a new output or replace
|
|
32
|
-
* the existing one under the streaming job.
|
|
48
|
+
* Lists all of the outputs under the specified streaming job.
|
|
33
49
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
34
50
|
* @param jobName The name of the streaming job.
|
|
35
|
-
* @param
|
|
36
|
-
* @param [options] The optional parameters
|
|
37
|
-
* @returns Promise<Models.OutputsCreateOrReplaceResponse>
|
|
51
|
+
* @param options The options parameters.
|
|
38
52
|
*/
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
53
|
+
public listByStreamingJob(
|
|
54
|
+
resourceGroupName: string,
|
|
55
|
+
jobName: string,
|
|
56
|
+
options?: OutputsListByStreamingJobOptionalParams
|
|
57
|
+
): PagedAsyncIterableIterator<Output> {
|
|
58
|
+
const iter = this.listByStreamingJobPagingAll(
|
|
59
|
+
resourceGroupName,
|
|
60
|
+
jobName,
|
|
61
|
+
options
|
|
62
|
+
);
|
|
63
|
+
return {
|
|
64
|
+
next() {
|
|
65
|
+
return iter.next();
|
|
66
|
+
},
|
|
67
|
+
[Symbol.asyncIterator]() {
|
|
68
|
+
return this;
|
|
69
|
+
},
|
|
70
|
+
byPage: () => {
|
|
71
|
+
return this.listByStreamingJobPagingPage(
|
|
72
|
+
resourceGroupName,
|
|
73
|
+
jobName,
|
|
74
|
+
options
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
private async *listByStreamingJobPagingPage(
|
|
81
|
+
resourceGroupName: string,
|
|
82
|
+
jobName: string,
|
|
83
|
+
options?: OutputsListByStreamingJobOptionalParams
|
|
84
|
+
): AsyncIterableIterator<Output[]> {
|
|
85
|
+
let result = await this._listByStreamingJob(
|
|
86
|
+
resourceGroupName,
|
|
87
|
+
jobName,
|
|
88
|
+
options
|
|
89
|
+
);
|
|
90
|
+
yield result.value || [];
|
|
91
|
+
let continuationToken = result.nextLink;
|
|
92
|
+
while (continuationToken) {
|
|
93
|
+
result = await this._listByStreamingJobNext(
|
|
94
|
+
resourceGroupName,
|
|
95
|
+
jobName,
|
|
96
|
+
continuationToken,
|
|
97
|
+
options
|
|
98
|
+
);
|
|
99
|
+
continuationToken = result.nextLink;
|
|
100
|
+
yield result.value || [];
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
private async *listByStreamingJobPagingAll(
|
|
105
|
+
resourceGroupName: string,
|
|
106
|
+
jobName: string,
|
|
107
|
+
options?: OutputsListByStreamingJobOptionalParams
|
|
108
|
+
): AsyncIterableIterator<Output> {
|
|
109
|
+
for await (const page of this.listByStreamingJobPagingPage(
|
|
110
|
+
resourceGroupName,
|
|
111
|
+
jobName,
|
|
112
|
+
options
|
|
113
|
+
)) {
|
|
114
|
+
yield* page;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
49
118
|
/**
|
|
50
|
-
*
|
|
51
|
-
* the existing one under the streaming job.
|
|
119
|
+
* Creates an output or replaces an already existing output under an existing streaming job.
|
|
52
120
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
53
121
|
* @param jobName The name of the streaming job.
|
|
54
122
|
* @param outputName The name of the output.
|
|
55
|
-
* @param
|
|
56
|
-
*
|
|
123
|
+
* @param output The definition of the output that will be used to create a new output or replace the
|
|
124
|
+
* existing one under the streaming job.
|
|
125
|
+
* @param options The options parameters.
|
|
57
126
|
*/
|
|
58
|
-
createOrReplace(
|
|
59
|
-
|
|
127
|
+
createOrReplace(
|
|
128
|
+
resourceGroupName: string,
|
|
129
|
+
jobName: string,
|
|
130
|
+
outputName: string,
|
|
131
|
+
output: Output,
|
|
132
|
+
options?: OutputsCreateOrReplaceOptionalParams
|
|
133
|
+
): Promise<OutputsCreateOrReplaceResponse> {
|
|
60
134
|
return this.client.sendOperationRequest(
|
|
61
|
-
{
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
jobName,
|
|
65
|
-
outputName,
|
|
66
|
-
options
|
|
67
|
-
},
|
|
68
|
-
createOrReplaceOperationSpec,
|
|
69
|
-
callback) as Promise<Models.OutputsCreateOrReplaceResponse>;
|
|
135
|
+
{ resourceGroupName, jobName, outputName, output, options },
|
|
136
|
+
createOrReplaceOperationSpec
|
|
137
|
+
);
|
|
70
138
|
}
|
|
71
139
|
|
|
72
140
|
/**
|
|
73
141
|
* Updates an existing output under an existing streaming job. This can be used to partially update
|
|
74
142
|
* (ie. update one or two properties) an output without affecting the rest the job or output
|
|
75
143
|
* definition.
|
|
76
|
-
* @param output An Output object. The properties specified here will overwrite the corresponding
|
|
77
|
-
* properties in the existing output (ie. Those properties will be updated). Any properties that
|
|
78
|
-
* are set to null here will mean that the corresponding property in the existing output will
|
|
79
|
-
* remain the same and not change as a result of this PATCH operation.
|
|
80
144
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
81
145
|
* @param jobName The name of the streaming job.
|
|
82
146
|
* @param outputName The name of the output.
|
|
83
|
-
* @param [options] The optional parameters
|
|
84
|
-
* @returns Promise<Models.OutputsUpdateResponse>
|
|
85
|
-
*/
|
|
86
|
-
update(output: Models.Output, resourceGroupName: string, jobName: string, outputName: string, options?: Models.OutputsUpdateOptionalParams): Promise<Models.OutputsUpdateResponse>;
|
|
87
|
-
/**
|
|
88
147
|
* @param output An Output object. The properties specified here will overwrite the corresponding
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
* @param
|
|
93
|
-
* @param jobName The name of the streaming job.
|
|
94
|
-
* @param outputName The name of the output.
|
|
95
|
-
* @param callback The callback
|
|
96
|
-
*/
|
|
97
|
-
update(output: Models.Output, resourceGroupName: string, jobName: string, outputName: string, callback: msRest.ServiceCallback<Models.Output>): void;
|
|
98
|
-
/**
|
|
99
|
-
* @param output An Output object. The properties specified here will overwrite the corresponding
|
|
100
|
-
* properties in the existing output (ie. Those properties will be updated). Any properties that
|
|
101
|
-
* are set to null here will mean that the corresponding property in the existing output will
|
|
102
|
-
* 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 outputName The name of the output.
|
|
106
|
-
* @param options The optional parameters
|
|
107
|
-
* @param callback The callback
|
|
148
|
+
* properties in the existing output (ie. Those properties will be updated). Any properties that are
|
|
149
|
+
* set to null here will mean that the corresponding property in the existing output will remain the
|
|
150
|
+
* same and not change as a result of this PATCH operation.
|
|
151
|
+
* @param options The options parameters.
|
|
108
152
|
*/
|
|
109
|
-
update(
|
|
110
|
-
|
|
153
|
+
update(
|
|
154
|
+
resourceGroupName: string,
|
|
155
|
+
jobName: string,
|
|
156
|
+
outputName: string,
|
|
157
|
+
output: Output,
|
|
158
|
+
options?: OutputsUpdateOptionalParams
|
|
159
|
+
): Promise<OutputsUpdateResponse> {
|
|
111
160
|
return this.client.sendOperationRequest(
|
|
112
|
-
{
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
jobName,
|
|
116
|
-
outputName,
|
|
117
|
-
options
|
|
118
|
-
},
|
|
119
|
-
updateOperationSpec,
|
|
120
|
-
callback) as Promise<Models.OutputsUpdateResponse>;
|
|
161
|
+
{ resourceGroupName, jobName, outputName, output, options },
|
|
162
|
+
updateOperationSpec
|
|
163
|
+
);
|
|
121
164
|
}
|
|
122
165
|
|
|
123
166
|
/**
|
|
@@ -125,35 +168,18 @@ export class Outputs {
|
|
|
125
168
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
126
169
|
* @param jobName The name of the streaming job.
|
|
127
170
|
* @param outputName The name of the output.
|
|
128
|
-
* @param
|
|
129
|
-
* @returns Promise<msRest.RestResponse>
|
|
130
|
-
*/
|
|
131
|
-
deleteMethod(resourceGroupName: string, jobName: string, outputName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
|
|
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 outputName The name of the output.
|
|
136
|
-
* @param callback The callback
|
|
171
|
+
* @param options The options parameters.
|
|
137
172
|
*/
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
* @param callback The callback
|
|
145
|
-
*/
|
|
146
|
-
deleteMethod(resourceGroupName: string, jobName: string, outputName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
|
|
147
|
-
deleteMethod(resourceGroupName: string, jobName: string, outputName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<msRest.RestResponse> {
|
|
173
|
+
delete(
|
|
174
|
+
resourceGroupName: string,
|
|
175
|
+
jobName: string,
|
|
176
|
+
outputName: string,
|
|
177
|
+
options?: OutputsDeleteOptionalParams
|
|
178
|
+
): Promise<void> {
|
|
148
179
|
return this.client.sendOperationRequest(
|
|
149
|
-
{
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
outputName,
|
|
153
|
-
options
|
|
154
|
-
},
|
|
155
|
-
deleteMethodOperationSpec,
|
|
156
|
-
callback);
|
|
180
|
+
{ resourceGroupName, jobName, outputName, options },
|
|
181
|
+
deleteOperationSpec
|
|
182
|
+
);
|
|
157
183
|
}
|
|
158
184
|
|
|
159
185
|
/**
|
|
@@ -161,159 +187,150 @@ export class Outputs {
|
|
|
161
187
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
162
188
|
* @param jobName The name of the streaming job.
|
|
163
189
|
* @param outputName The name of the output.
|
|
164
|
-
* @param
|
|
165
|
-
* @returns Promise<Models.OutputsGetResponse>
|
|
190
|
+
* @param options The options parameters.
|
|
166
191
|
*/
|
|
167
|
-
get(
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
*/
|
|
174
|
-
get(resourceGroupName: string, jobName: string, outputName: string, callback: msRest.ServiceCallback<Models.Output>): void;
|
|
175
|
-
/**
|
|
176
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
177
|
-
* @param jobName The name of the streaming job.
|
|
178
|
-
* @param outputName The name of the output.
|
|
179
|
-
* @param options The optional parameters
|
|
180
|
-
* @param callback The callback
|
|
181
|
-
*/
|
|
182
|
-
get(resourceGroupName: string, jobName: string, outputName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Output>): void;
|
|
183
|
-
get(resourceGroupName: string, jobName: string, outputName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.Output>, callback?: msRest.ServiceCallback<Models.Output>): Promise<Models.OutputsGetResponse> {
|
|
192
|
+
get(
|
|
193
|
+
resourceGroupName: string,
|
|
194
|
+
jobName: string,
|
|
195
|
+
outputName: string,
|
|
196
|
+
options?: OutputsGetOptionalParams
|
|
197
|
+
): Promise<OutputsGetResponse> {
|
|
184
198
|
return this.client.sendOperationRequest(
|
|
185
|
-
{
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
outputName,
|
|
189
|
-
options
|
|
190
|
-
},
|
|
191
|
-
getOperationSpec,
|
|
192
|
-
callback) as Promise<Models.OutputsGetResponse>;
|
|
199
|
+
{ resourceGroupName, jobName, outputName, options },
|
|
200
|
+
getOperationSpec
|
|
201
|
+
);
|
|
193
202
|
}
|
|
194
203
|
|
|
195
204
|
/**
|
|
196
205
|
* Lists all of the outputs under the specified streaming job.
|
|
197
206
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
198
207
|
* @param jobName The name of the streaming job.
|
|
199
|
-
* @param
|
|
200
|
-
* @returns Promise<Models.OutputsListByStreamingJobResponse>
|
|
201
|
-
*/
|
|
202
|
-
listByStreamingJob(resourceGroupName: string, jobName: string, options?: Models.OutputsListByStreamingJobOptionalParams): Promise<Models.OutputsListByStreamingJobResponse>;
|
|
203
|
-
/**
|
|
204
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
205
|
-
* @param jobName The name of the streaming job.
|
|
206
|
-
* @param callback The callback
|
|
208
|
+
* @param options The options parameters.
|
|
207
209
|
*/
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
* @param callback The callback
|
|
214
|
-
*/
|
|
215
|
-
listByStreamingJob(resourceGroupName: string, jobName: string, options: Models.OutputsListByStreamingJobOptionalParams, callback: msRest.ServiceCallback<Models.OutputListResult>): void;
|
|
216
|
-
listByStreamingJob(resourceGroupName: string, jobName: string, options?: Models.OutputsListByStreamingJobOptionalParams | msRest.ServiceCallback<Models.OutputListResult>, callback?: msRest.ServiceCallback<Models.OutputListResult>): Promise<Models.OutputsListByStreamingJobResponse> {
|
|
210
|
+
private _listByStreamingJob(
|
|
211
|
+
resourceGroupName: string,
|
|
212
|
+
jobName: string,
|
|
213
|
+
options?: OutputsListByStreamingJobOptionalParams
|
|
214
|
+
): Promise<OutputsListByStreamingJobResponse> {
|
|
217
215
|
return this.client.sendOperationRequest(
|
|
218
|
-
{
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
options
|
|
222
|
-
},
|
|
223
|
-
listByStreamingJobOperationSpec,
|
|
224
|
-
callback) as Promise<Models.OutputsListByStreamingJobResponse>;
|
|
216
|
+
{ resourceGroupName, jobName, options },
|
|
217
|
+
listByStreamingJobOperationSpec
|
|
218
|
+
);
|
|
225
219
|
}
|
|
226
220
|
|
|
227
221
|
/**
|
|
228
|
-
* Tests whether an output’s datasource is reachable and usable by the Azure Stream Analytics
|
|
229
|
-
* service.
|
|
222
|
+
* Tests whether an output’s datasource is reachable and usable by the Azure Stream Analytics service.
|
|
230
223
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
231
224
|
* @param jobName The name of the streaming job.
|
|
232
225
|
* @param outputName The name of the output.
|
|
233
|
-
* @param
|
|
234
|
-
* @returns Promise<Models.OutputsTestResponse>
|
|
226
|
+
* @param options The options parameters.
|
|
235
227
|
*/
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
228
|
+
async beginTest(
|
|
229
|
+
resourceGroupName: string,
|
|
230
|
+
jobName: string,
|
|
231
|
+
outputName: string,
|
|
232
|
+
options?: OutputsTestOptionalParams
|
|
233
|
+
): Promise<
|
|
234
|
+
PollerLike<PollOperationState<OutputsTestResponse>, OutputsTestResponse>
|
|
235
|
+
> {
|
|
236
|
+
const directSendOperation = async (
|
|
237
|
+
args: coreClient.OperationArguments,
|
|
238
|
+
spec: coreClient.OperationSpec
|
|
239
|
+
): Promise<OutputsTestResponse> => {
|
|
240
|
+
return this.client.sendOperationRequest(args, spec);
|
|
241
|
+
};
|
|
242
|
+
const sendOperation = async (
|
|
243
|
+
args: coreClient.OperationArguments,
|
|
244
|
+
spec: coreClient.OperationSpec
|
|
245
|
+
) => {
|
|
246
|
+
let currentRawResponse:
|
|
247
|
+
| coreClient.FullOperationResponse
|
|
248
|
+
| undefined = undefined;
|
|
249
|
+
const providedCallback = args.options?.onResponse;
|
|
250
|
+
const callback: coreClient.RawResponseCallback = (
|
|
251
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
252
|
+
flatResponse: unknown
|
|
253
|
+
) => {
|
|
254
|
+
currentRawResponse = rawResponse;
|
|
255
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
256
|
+
};
|
|
257
|
+
const updatedArgs = {
|
|
258
|
+
...args,
|
|
259
|
+
options: {
|
|
260
|
+
...args.options,
|
|
261
|
+
onResponse: callback
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
265
|
+
return {
|
|
266
|
+
flatResponse,
|
|
267
|
+
rawResponse: {
|
|
268
|
+
statusCode: currentRawResponse!.status,
|
|
269
|
+
body: currentRawResponse!.parsedBody,
|
|
270
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
const lro = new LroImpl(
|
|
276
|
+
sendOperation,
|
|
277
|
+
{ resourceGroupName, jobName, outputName, options },
|
|
278
|
+
testOperationSpec
|
|
279
|
+
);
|
|
280
|
+
return new LroEngine(lro, {
|
|
281
|
+
resumeFrom: options?.resumeFrom,
|
|
282
|
+
intervalInMs: options?.updateIntervalInMs
|
|
283
|
+
});
|
|
239
284
|
}
|
|
240
285
|
|
|
241
286
|
/**
|
|
242
|
-
* Tests whether an output’s datasource is reachable and usable by the Azure Stream Analytics
|
|
243
|
-
* service.
|
|
287
|
+
* Tests whether an output’s datasource is reachable and usable by the Azure Stream Analytics service.
|
|
244
288
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
245
289
|
* @param jobName The name of the streaming job.
|
|
246
290
|
* @param outputName The name of the output.
|
|
247
|
-
* @param
|
|
248
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
291
|
+
* @param options The options parameters.
|
|
249
292
|
*/
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
293
|
+
async beginTestAndWait(
|
|
294
|
+
resourceGroupName: string,
|
|
295
|
+
jobName: string,
|
|
296
|
+
outputName: string,
|
|
297
|
+
options?: OutputsTestOptionalParams
|
|
298
|
+
): Promise<OutputsTestResponse> {
|
|
299
|
+
const poller = await this.beginTest(
|
|
300
|
+
resourceGroupName,
|
|
301
|
+
jobName,
|
|
302
|
+
outputName,
|
|
303
|
+
options
|
|
304
|
+
);
|
|
305
|
+
return poller.pollUntilDone();
|
|
260
306
|
}
|
|
261
307
|
|
|
262
308
|
/**
|
|
263
|
-
*
|
|
264
|
-
* @param
|
|
265
|
-
* @param
|
|
266
|
-
* @
|
|
267
|
-
|
|
268
|
-
listByStreamingJobNext(nextPageLink: string, options?: Models.OutputsListByStreamingJobNextOptionalParams): Promise<Models.OutputsListByStreamingJobNextResponse>;
|
|
269
|
-
/**
|
|
270
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
271
|
-
* @param callback The callback
|
|
272
|
-
*/
|
|
273
|
-
listByStreamingJobNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.OutputListResult>): void;
|
|
274
|
-
/**
|
|
275
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
276
|
-
* @param options The optional parameters
|
|
277
|
-
* @param callback The callback
|
|
309
|
+
* ListByStreamingJobNext
|
|
310
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
311
|
+
* @param jobName The name of the streaming job.
|
|
312
|
+
* @param nextLink The nextLink from the previous successful call to the ListByStreamingJob method.
|
|
313
|
+
* @param options The options parameters.
|
|
278
314
|
*/
|
|
279
|
-
|
|
280
|
-
|
|
315
|
+
private _listByStreamingJobNext(
|
|
316
|
+
resourceGroupName: string,
|
|
317
|
+
jobName: string,
|
|
318
|
+
nextLink: string,
|
|
319
|
+
options?: OutputsListByStreamingJobNextOptionalParams
|
|
320
|
+
): Promise<OutputsListByStreamingJobNextResponse> {
|
|
281
321
|
return this.client.sendOperationRequest(
|
|
282
|
-
{
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
},
|
|
286
|
-
listByStreamingJobNextOperationSpec,
|
|
287
|
-
callback) as Promise<Models.OutputsListByStreamingJobNextResponse>;
|
|
322
|
+
{ resourceGroupName, jobName, nextLink, options },
|
|
323
|
+
listByStreamingJobNextOperationSpec
|
|
324
|
+
);
|
|
288
325
|
}
|
|
289
326
|
}
|
|
290
|
-
|
|
291
327
|
// Operation Specifications
|
|
292
|
-
const serializer =
|
|
293
|
-
|
|
328
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
329
|
+
|
|
330
|
+
const createOrReplaceOperationSpec: coreClient.OperationSpec = {
|
|
331
|
+
path:
|
|
332
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/outputs/{outputName}",
|
|
294
333
|
httpMethod: "PUT",
|
|
295
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/outputs/{outputName}",
|
|
296
|
-
urlParameters: [
|
|
297
|
-
Parameters.subscriptionId,
|
|
298
|
-
Parameters.resourceGroupName,
|
|
299
|
-
Parameters.jobName,
|
|
300
|
-
Parameters.outputName
|
|
301
|
-
],
|
|
302
|
-
queryParameters: [
|
|
303
|
-
Parameters.apiVersion0
|
|
304
|
-
],
|
|
305
|
-
headerParameters: [
|
|
306
|
-
Parameters.ifMatch,
|
|
307
|
-
Parameters.ifNoneMatch,
|
|
308
|
-
Parameters.acceptLanguage
|
|
309
|
-
],
|
|
310
|
-
requestBody: {
|
|
311
|
-
parameterPath: "output",
|
|
312
|
-
mapper: {
|
|
313
|
-
...Mappers.Output,
|
|
314
|
-
required: true
|
|
315
|
-
}
|
|
316
|
-
},
|
|
317
334
|
responses: {
|
|
318
335
|
200: {
|
|
319
336
|
bodyMapper: Mappers.Output,
|
|
@@ -324,64 +341,61 @@ const createOrReplaceOperationSpec: msRest.OperationSpec = {
|
|
|
324
341
|
headersMapper: Mappers.OutputsCreateOrReplaceHeaders
|
|
325
342
|
},
|
|
326
343
|
default: {
|
|
327
|
-
bodyMapper: Mappers.ErrorModel
|
|
328
|
-
headersMapper: Mappers.OutputsCreateOrReplaceHeaders
|
|
344
|
+
bodyMapper: Mappers.ErrorModel
|
|
329
345
|
}
|
|
330
346
|
},
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
const updateOperationSpec: msRest.OperationSpec = {
|
|
335
|
-
httpMethod: "PATCH",
|
|
336
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/outputs/{outputName}",
|
|
347
|
+
requestBody: Parameters.output,
|
|
348
|
+
queryParameters: [Parameters.apiVersion],
|
|
337
349
|
urlParameters: [
|
|
350
|
+
Parameters.$host,
|
|
338
351
|
Parameters.subscriptionId,
|
|
339
352
|
Parameters.resourceGroupName,
|
|
340
353
|
Parameters.jobName,
|
|
341
354
|
Parameters.outputName
|
|
342
355
|
],
|
|
343
|
-
queryParameters: [
|
|
344
|
-
Parameters.apiVersion0
|
|
345
|
-
],
|
|
346
356
|
headerParameters: [
|
|
357
|
+
Parameters.accept,
|
|
358
|
+
Parameters.contentType,
|
|
347
359
|
Parameters.ifMatch,
|
|
348
|
-
Parameters.
|
|
360
|
+
Parameters.ifNoneMatch
|
|
349
361
|
],
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
}
|
|
356
|
-
|
|
362
|
+
mediaType: "json",
|
|
363
|
+
serializer
|
|
364
|
+
};
|
|
365
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
366
|
+
path:
|
|
367
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/outputs/{outputName}",
|
|
368
|
+
httpMethod: "PATCH",
|
|
357
369
|
responses: {
|
|
358
370
|
200: {
|
|
359
371
|
bodyMapper: Mappers.Output,
|
|
360
372
|
headersMapper: Mappers.OutputsUpdateHeaders
|
|
361
373
|
},
|
|
362
374
|
default: {
|
|
363
|
-
bodyMapper: Mappers.ErrorModel
|
|
364
|
-
headersMapper: Mappers.OutputsUpdateHeaders
|
|
375
|
+
bodyMapper: Mappers.ErrorModel
|
|
365
376
|
}
|
|
366
377
|
},
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
371
|
-
httpMethod: "DELETE",
|
|
372
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/outputs/{outputName}",
|
|
378
|
+
requestBody: Parameters.output,
|
|
379
|
+
queryParameters: [Parameters.apiVersion],
|
|
373
380
|
urlParameters: [
|
|
381
|
+
Parameters.$host,
|
|
374
382
|
Parameters.subscriptionId,
|
|
375
383
|
Parameters.resourceGroupName,
|
|
376
384
|
Parameters.jobName,
|
|
377
385
|
Parameters.outputName
|
|
378
386
|
],
|
|
379
|
-
queryParameters: [
|
|
380
|
-
Parameters.apiVersion0
|
|
381
|
-
],
|
|
382
387
|
headerParameters: [
|
|
383
|
-
Parameters.
|
|
388
|
+
Parameters.accept,
|
|
389
|
+
Parameters.contentType,
|
|
390
|
+
Parameters.ifMatch
|
|
384
391
|
],
|
|
392
|
+
mediaType: "json",
|
|
393
|
+
serializer
|
|
394
|
+
};
|
|
395
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
396
|
+
path:
|
|
397
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/outputs/{outputName}",
|
|
398
|
+
httpMethod: "DELETE",
|
|
385
399
|
responses: {
|
|
386
400
|
200: {},
|
|
387
401
|
204: {},
|
|
@@ -389,52 +403,45 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
|
389
403
|
bodyMapper: Mappers.ErrorModel
|
|
390
404
|
}
|
|
391
405
|
},
|
|
392
|
-
|
|
393
|
-
};
|
|
394
|
-
|
|
395
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
396
|
-
httpMethod: "GET",
|
|
397
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/outputs/{outputName}",
|
|
406
|
+
queryParameters: [Parameters.apiVersion],
|
|
398
407
|
urlParameters: [
|
|
408
|
+
Parameters.$host,
|
|
399
409
|
Parameters.subscriptionId,
|
|
400
410
|
Parameters.resourceGroupName,
|
|
401
411
|
Parameters.jobName,
|
|
402
412
|
Parameters.outputName
|
|
403
413
|
],
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
414
|
+
headerParameters: [Parameters.accept],
|
|
415
|
+
serializer
|
|
416
|
+
};
|
|
417
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
418
|
+
path:
|
|
419
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/outputs/{outputName}",
|
|
420
|
+
httpMethod: "GET",
|
|
410
421
|
responses: {
|
|
411
422
|
200: {
|
|
412
423
|
bodyMapper: Mappers.Output,
|
|
413
424
|
headersMapper: Mappers.OutputsGetHeaders
|
|
414
425
|
},
|
|
415
426
|
default: {
|
|
416
|
-
bodyMapper: Mappers.ErrorModel
|
|
417
|
-
headersMapper: Mappers.OutputsGetHeaders
|
|
427
|
+
bodyMapper: Mappers.ErrorModel
|
|
418
428
|
}
|
|
419
429
|
},
|
|
420
|
-
|
|
421
|
-
};
|
|
422
|
-
|
|
423
|
-
const listByStreamingJobOperationSpec: msRest.OperationSpec = {
|
|
424
|
-
httpMethod: "GET",
|
|
425
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/outputs",
|
|
430
|
+
queryParameters: [Parameters.apiVersion],
|
|
426
431
|
urlParameters: [
|
|
432
|
+
Parameters.$host,
|
|
427
433
|
Parameters.subscriptionId,
|
|
428
434
|
Parameters.resourceGroupName,
|
|
429
|
-
Parameters.jobName
|
|
430
|
-
|
|
431
|
-
queryParameters: [
|
|
432
|
-
Parameters.select,
|
|
433
|
-
Parameters.apiVersion0
|
|
434
|
-
],
|
|
435
|
-
headerParameters: [
|
|
436
|
-
Parameters.acceptLanguage
|
|
435
|
+
Parameters.jobName,
|
|
436
|
+
Parameters.outputName
|
|
437
437
|
],
|
|
438
|
+
headerParameters: [Parameters.accept],
|
|
439
|
+
serializer
|
|
440
|
+
};
|
|
441
|
+
const listByStreamingJobOperationSpec: coreClient.OperationSpec = {
|
|
442
|
+
path:
|
|
443
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/outputs",
|
|
444
|
+
httpMethod: "GET",
|
|
438
445
|
responses: {
|
|
439
446
|
200: {
|
|
440
447
|
bodyMapper: Mappers.OutputListResult
|
|
@@ -443,57 +450,53 @@ const listByStreamingJobOperationSpec: msRest.OperationSpec = {
|
|
|
443
450
|
bodyMapper: Mappers.ErrorModel
|
|
444
451
|
}
|
|
445
452
|
},
|
|
446
|
-
|
|
447
|
-
};
|
|
448
|
-
|
|
449
|
-
const beginTestOperationSpec: msRest.OperationSpec = {
|
|
450
|
-
httpMethod: "POST",
|
|
451
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/outputs/{outputName}/test",
|
|
453
|
+
queryParameters: [Parameters.apiVersion, Parameters.select],
|
|
452
454
|
urlParameters: [
|
|
455
|
+
Parameters.$host,
|
|
453
456
|
Parameters.subscriptionId,
|
|
454
457
|
Parameters.resourceGroupName,
|
|
455
|
-
Parameters.jobName
|
|
456
|
-
Parameters.outputName
|
|
457
|
-
],
|
|
458
|
-
queryParameters: [
|
|
459
|
-
Parameters.apiVersion0
|
|
460
|
-
],
|
|
461
|
-
headerParameters: [
|
|
462
|
-
Parameters.acceptLanguage
|
|
458
|
+
Parameters.jobName
|
|
463
459
|
],
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
460
|
+
headerParameters: [Parameters.accept],
|
|
461
|
+
serializer
|
|
462
|
+
};
|
|
463
|
+
const testOperationSpec: coreClient.OperationSpec = {
|
|
464
|
+
path:
|
|
465
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/outputs/{outputName}/test",
|
|
466
|
+
httpMethod: "POST",
|
|
471
467
|
responses: {
|
|
472
468
|
200: {
|
|
473
469
|
bodyMapper: Mappers.ResourceTestStatus
|
|
474
470
|
},
|
|
475
|
-
|
|
471
|
+
201: {
|
|
472
|
+
bodyMapper: Mappers.ResourceTestStatus
|
|
473
|
+
},
|
|
474
|
+
202: {
|
|
475
|
+
bodyMapper: Mappers.ResourceTestStatus
|
|
476
|
+
},
|
|
477
|
+
204: {
|
|
478
|
+
bodyMapper: Mappers.ResourceTestStatus
|
|
479
|
+
},
|
|
476
480
|
default: {
|
|
477
481
|
bodyMapper: Mappers.ErrorModel
|
|
478
482
|
}
|
|
479
483
|
},
|
|
484
|
+
requestBody: Parameters.output1,
|
|
485
|
+
queryParameters: [Parameters.apiVersion],
|
|
486
|
+
urlParameters: [
|
|
487
|
+
Parameters.$host,
|
|
488
|
+
Parameters.subscriptionId,
|
|
489
|
+
Parameters.resourceGroupName,
|
|
490
|
+
Parameters.jobName,
|
|
491
|
+
Parameters.outputName
|
|
492
|
+
],
|
|
493
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
494
|
+
mediaType: "json",
|
|
480
495
|
serializer
|
|
481
496
|
};
|
|
482
|
-
|
|
483
|
-
const listByStreamingJobNextOperationSpec: msRest.OperationSpec = {
|
|
484
|
-
httpMethod: "GET",
|
|
485
|
-
baseUrl: "https://management.azure.com",
|
|
497
|
+
const listByStreamingJobNextOperationSpec: coreClient.OperationSpec = {
|
|
486
498
|
path: "{nextLink}",
|
|
487
|
-
|
|
488
|
-
Parameters.nextPageLink
|
|
489
|
-
],
|
|
490
|
-
queryParameters: [
|
|
491
|
-
Parameters.select,
|
|
492
|
-
Parameters.apiVersion0
|
|
493
|
-
],
|
|
494
|
-
headerParameters: [
|
|
495
|
-
Parameters.acceptLanguage
|
|
496
|
-
],
|
|
499
|
+
httpMethod: "GET",
|
|
497
500
|
responses: {
|
|
498
501
|
200: {
|
|
499
502
|
bodyMapper: Mappers.OutputListResult
|
|
@@ -502,5 +505,14 @@ const listByStreamingJobNextOperationSpec: msRest.OperationSpec = {
|
|
|
502
505
|
bodyMapper: Mappers.ErrorModel
|
|
503
506
|
}
|
|
504
507
|
},
|
|
508
|
+
queryParameters: [Parameters.apiVersion, Parameters.select],
|
|
509
|
+
urlParameters: [
|
|
510
|
+
Parameters.$host,
|
|
511
|
+
Parameters.nextLink,
|
|
512
|
+
Parameters.subscriptionId,
|
|
513
|
+
Parameters.resourceGroupName,
|
|
514
|
+
Parameters.jobName
|
|
515
|
+
],
|
|
516
|
+
headerParameters: [Parameters.accept],
|
|
505
517
|
serializer
|
|
506
518
|
};
|