@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,166 @@
|
|
|
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 { Functions } 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
|
+
FunctionModel,
|
|
19
|
+
FunctionsListByStreamingJobNextOptionalParams,
|
|
20
|
+
FunctionsListByStreamingJobOptionalParams,
|
|
21
|
+
FunctionsCreateOrReplaceOptionalParams,
|
|
22
|
+
FunctionsCreateOrReplaceResponse,
|
|
23
|
+
FunctionsUpdateOptionalParams,
|
|
24
|
+
FunctionsUpdateResponse,
|
|
25
|
+
FunctionsDeleteOptionalParams,
|
|
26
|
+
FunctionsGetOptionalParams,
|
|
27
|
+
FunctionsGetResponse,
|
|
28
|
+
FunctionsListByStreamingJobResponse,
|
|
29
|
+
FunctionsTestOptionalParams,
|
|
30
|
+
FunctionsTestResponse,
|
|
31
|
+
FunctionsRetrieveDefaultDefinitionOptionalParams,
|
|
32
|
+
FunctionsRetrieveDefaultDefinitionResponse,
|
|
33
|
+
FunctionsListByStreamingJobNextResponse
|
|
34
|
+
} from "../models";
|
|
16
35
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
36
|
+
/// <reference lib="esnext.asynciterable" />
|
|
37
|
+
/** Class containing Functions operations. */
|
|
38
|
+
export class FunctionsImpl implements Functions {
|
|
39
|
+
private readonly client: StreamAnalyticsManagementClient;
|
|
20
40
|
|
|
21
41
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
42
|
+
* Initialize a new instance of the class Functions class.
|
|
43
|
+
* @param client Reference to the service client
|
|
24
44
|
*/
|
|
25
|
-
constructor(client:
|
|
45
|
+
constructor(client: StreamAnalyticsManagementClient) {
|
|
26
46
|
this.client = client;
|
|
27
47
|
}
|
|
28
48
|
|
|
29
49
|
/**
|
|
30
|
-
*
|
|
31
|
-
* @param functionParameter The definition of the function that will be used to create a new
|
|
32
|
-
* function or replace the existing one under the streaming job.
|
|
33
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
34
|
-
* @param jobName The name of the streaming job.
|
|
35
|
-
* @param functionName The name of the function.
|
|
36
|
-
* @param [options] The optional parameters
|
|
37
|
-
* @returns Promise<Models.FunctionsCreateOrReplaceResponse>
|
|
38
|
-
*/
|
|
39
|
-
createOrReplace(functionParameter: Models.FunctionModel, resourceGroupName: string, jobName: string, functionName: string, options?: Models.FunctionsCreateOrReplaceOptionalParams): Promise<Models.FunctionsCreateOrReplaceResponse>;
|
|
40
|
-
/**
|
|
41
|
-
* @param functionParameter The definition of the function that will be used to create a new
|
|
42
|
-
* function or replace the existing one under the streaming job.
|
|
43
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
44
|
-
* @param jobName The name of the streaming job.
|
|
45
|
-
* @param functionName The name of the function.
|
|
46
|
-
* @param callback The callback
|
|
47
|
-
*/
|
|
48
|
-
createOrReplace(functionParameter: Models.FunctionModel, resourceGroupName: string, jobName: string, functionName: string, callback: msRest.ServiceCallback<Models.FunctionModel>): void;
|
|
49
|
-
/**
|
|
50
|
-
* @param functionParameter The definition of the function that will be used to create a new
|
|
51
|
-
* function or replace the existing one under the streaming job.
|
|
50
|
+
* Lists all of the functions under the specified streaming job.
|
|
52
51
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
53
52
|
* @param jobName The name of the streaming job.
|
|
54
|
-
* @param
|
|
55
|
-
* @param options The optional parameters
|
|
56
|
-
* @param callback The callback
|
|
53
|
+
* @param options The options parameters.
|
|
57
54
|
*/
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
55
|
+
public listByStreamingJob(
|
|
56
|
+
resourceGroupName: string,
|
|
57
|
+
jobName: string,
|
|
58
|
+
options?: FunctionsListByStreamingJobOptionalParams
|
|
59
|
+
): PagedAsyncIterableIterator<FunctionModel> {
|
|
60
|
+
const iter = this.listByStreamingJobPagingAll(
|
|
61
|
+
resourceGroupName,
|
|
62
|
+
jobName,
|
|
63
|
+
options
|
|
64
|
+
);
|
|
65
|
+
return {
|
|
66
|
+
next() {
|
|
67
|
+
return iter.next();
|
|
68
|
+
},
|
|
69
|
+
[Symbol.asyncIterator]() {
|
|
70
|
+
return this;
|
|
71
|
+
},
|
|
72
|
+
byPage: () => {
|
|
73
|
+
return this.listByStreamingJobPagingPage(
|
|
74
|
+
resourceGroupName,
|
|
75
|
+
jobName,
|
|
76
|
+
options
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
private async *listByStreamingJobPagingPage(
|
|
83
|
+
resourceGroupName: string,
|
|
84
|
+
jobName: string,
|
|
85
|
+
options?: FunctionsListByStreamingJobOptionalParams
|
|
86
|
+
): AsyncIterableIterator<FunctionModel[]> {
|
|
87
|
+
let result = await this._listByStreamingJob(
|
|
88
|
+
resourceGroupName,
|
|
89
|
+
jobName,
|
|
90
|
+
options
|
|
91
|
+
);
|
|
92
|
+
yield result.value || [];
|
|
93
|
+
let continuationToken = result.nextLink;
|
|
94
|
+
while (continuationToken) {
|
|
95
|
+
result = await this._listByStreamingJobNext(
|
|
63
96
|
resourceGroupName,
|
|
64
97
|
jobName,
|
|
65
|
-
|
|
98
|
+
continuationToken,
|
|
66
99
|
options
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
100
|
+
);
|
|
101
|
+
continuationToken = result.nextLink;
|
|
102
|
+
yield result.value || [];
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
private async *listByStreamingJobPagingAll(
|
|
107
|
+
resourceGroupName: string,
|
|
108
|
+
jobName: string,
|
|
109
|
+
options?: FunctionsListByStreamingJobOptionalParams
|
|
110
|
+
): AsyncIterableIterator<FunctionModel> {
|
|
111
|
+
for await (const page of this.listByStreamingJobPagingPage(
|
|
112
|
+
resourceGroupName,
|
|
113
|
+
jobName,
|
|
114
|
+
options
|
|
115
|
+
)) {
|
|
116
|
+
yield* page;
|
|
117
|
+
}
|
|
70
118
|
}
|
|
71
119
|
|
|
72
120
|
/**
|
|
73
|
-
*
|
|
74
|
-
* update (ie. update one or two properties) a function without affecting the rest the job or
|
|
75
|
-
* function definition.
|
|
76
|
-
* @param functionParameter A function object. The properties specified here will overwrite the
|
|
77
|
-
* corresponding properties in the existing function (ie. Those properties will be updated). Any
|
|
78
|
-
* properties that are set to null here will mean that the corresponding property in the existing
|
|
79
|
-
* function will remain the same and not change as a result of this PATCH operation.
|
|
80
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
81
|
-
* @param jobName The name of the streaming job.
|
|
82
|
-
* @param functionName The name of the function.
|
|
83
|
-
* @param [options] The optional parameters
|
|
84
|
-
* @returns Promise<Models.FunctionsUpdateResponse>
|
|
85
|
-
*/
|
|
86
|
-
update(functionParameter: Models.FunctionModel, resourceGroupName: string, jobName: string, functionName: string, options?: Models.FunctionsUpdateOptionalParams): Promise<Models.FunctionsUpdateResponse>;
|
|
87
|
-
/**
|
|
88
|
-
* @param functionParameter A function object. The properties specified here will overwrite the
|
|
89
|
-
* corresponding properties in the existing function (ie. Those properties will be updated). Any
|
|
90
|
-
* properties that are set to null here will mean that the corresponding property in the existing
|
|
91
|
-
* function will remain the same and not change as a result of this PATCH operation.
|
|
121
|
+
* Creates a function or replaces an already existing function under an existing streaming job.
|
|
92
122
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
93
123
|
* @param jobName The name of the streaming job.
|
|
94
124
|
* @param functionName The name of the function.
|
|
95
|
-
* @param
|
|
125
|
+
* @param functionParam The definition of the function that will be used to create a new function or
|
|
126
|
+
* replace the existing one under the streaming job.
|
|
127
|
+
* @param options The options parameters.
|
|
96
128
|
*/
|
|
97
|
-
|
|
129
|
+
createOrReplace(
|
|
130
|
+
resourceGroupName: string,
|
|
131
|
+
jobName: string,
|
|
132
|
+
functionName: string,
|
|
133
|
+
functionParam: FunctionModel,
|
|
134
|
+
options?: FunctionsCreateOrReplaceOptionalParams
|
|
135
|
+
): Promise<FunctionsCreateOrReplaceResponse> {
|
|
136
|
+
return this.client.sendOperationRequest(
|
|
137
|
+
{ resourceGroupName, jobName, functionName, functionParam, options },
|
|
138
|
+
createOrReplaceOperationSpec
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
|
|
98
142
|
/**
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
* function will remain the same and not change as a result of this PATCH operation.
|
|
143
|
+
* Updates an existing function under an existing streaming job. This can be used to partially update
|
|
144
|
+
* (ie. update one or two properties) a function without affecting the rest the job or function
|
|
145
|
+
* definition.
|
|
103
146
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
104
147
|
* @param jobName The name of the streaming job.
|
|
105
148
|
* @param functionName The name of the function.
|
|
106
|
-
* @param
|
|
107
|
-
*
|
|
149
|
+
* @param functionParam A function object. The properties specified here will overwrite the
|
|
150
|
+
* corresponding properties in the existing function (ie. Those properties will be updated). Any
|
|
151
|
+
* properties that are set to null here will mean that the corresponding property in the existing
|
|
152
|
+
* function will remain the same and not change as a result of this PATCH operation.
|
|
153
|
+
* @param options The options parameters.
|
|
108
154
|
*/
|
|
109
|
-
update(
|
|
110
|
-
|
|
155
|
+
update(
|
|
156
|
+
resourceGroupName: string,
|
|
157
|
+
jobName: string,
|
|
158
|
+
functionName: string,
|
|
159
|
+
functionParam: FunctionModel,
|
|
160
|
+
options?: FunctionsUpdateOptionalParams
|
|
161
|
+
): Promise<FunctionsUpdateResponse> {
|
|
111
162
|
return this.client.sendOperationRequest(
|
|
112
|
-
{
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
jobName,
|
|
116
|
-
functionName,
|
|
117
|
-
options
|
|
118
|
-
},
|
|
119
|
-
updateOperationSpec,
|
|
120
|
-
callback) as Promise<Models.FunctionsUpdateResponse>;
|
|
163
|
+
{ resourceGroupName, jobName, functionName, functionParam, options },
|
|
164
|
+
updateOperationSpec
|
|
165
|
+
);
|
|
121
166
|
}
|
|
122
167
|
|
|
123
168
|
/**
|
|
@@ -125,35 +170,18 @@ export class Functions {
|
|
|
125
170
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
126
171
|
* @param jobName The name of the streaming job.
|
|
127
172
|
* @param functionName The name of the function.
|
|
128
|
-
* @param
|
|
129
|
-
* @returns Promise<msRest.RestResponse>
|
|
130
|
-
*/
|
|
131
|
-
deleteMethod(resourceGroupName: string, jobName: string, functionName: 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 functionName The name of the function.
|
|
136
|
-
* @param callback The callback
|
|
137
|
-
*/
|
|
138
|
-
deleteMethod(resourceGroupName: string, jobName: string, functionName: string, callback: msRest.ServiceCallback<void>): void;
|
|
139
|
-
/**
|
|
140
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
141
|
-
* @param jobName The name of the streaming job.
|
|
142
|
-
* @param functionName The name of the function.
|
|
143
|
-
* @param options The optional parameters
|
|
144
|
-
* @param callback The callback
|
|
173
|
+
* @param options The options parameters.
|
|
145
174
|
*/
|
|
146
|
-
|
|
147
|
-
|
|
175
|
+
delete(
|
|
176
|
+
resourceGroupName: string,
|
|
177
|
+
jobName: string,
|
|
178
|
+
functionName: string,
|
|
179
|
+
options?: FunctionsDeleteOptionalParams
|
|
180
|
+
): Promise<void> {
|
|
148
181
|
return this.client.sendOperationRequest(
|
|
149
|
-
{
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
functionName,
|
|
153
|
-
options
|
|
154
|
-
},
|
|
155
|
-
deleteMethodOperationSpec,
|
|
156
|
-
callback);
|
|
182
|
+
{ resourceGroupName, jobName, functionName, options },
|
|
183
|
+
deleteOperationSpec
|
|
184
|
+
);
|
|
157
185
|
}
|
|
158
186
|
|
|
159
187
|
/**
|
|
@@ -161,67 +189,35 @@ export class Functions {
|
|
|
161
189
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
162
190
|
* @param jobName The name of the streaming job.
|
|
163
191
|
* @param functionName The name of the function.
|
|
164
|
-
* @param
|
|
165
|
-
* @returns Promise<Models.FunctionsGetResponse>
|
|
166
|
-
*/
|
|
167
|
-
get(resourceGroupName: string, jobName: string, functionName: string, options?: msRest.RequestOptionsBase): Promise<Models.FunctionsGetResponse>;
|
|
168
|
-
/**
|
|
169
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
170
|
-
* @param jobName The name of the streaming job.
|
|
171
|
-
* @param functionName The name of the function.
|
|
172
|
-
* @param callback The callback
|
|
173
|
-
*/
|
|
174
|
-
get(resourceGroupName: string, jobName: string, functionName: string, callback: msRest.ServiceCallback<Models.FunctionModel>): 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 functionName The name of the function.
|
|
179
|
-
* @param options The optional parameters
|
|
180
|
-
* @param callback The callback
|
|
192
|
+
* @param options The options parameters.
|
|
181
193
|
*/
|
|
182
|
-
get(
|
|
183
|
-
|
|
194
|
+
get(
|
|
195
|
+
resourceGroupName: string,
|
|
196
|
+
jobName: string,
|
|
197
|
+
functionName: string,
|
|
198
|
+
options?: FunctionsGetOptionalParams
|
|
199
|
+
): Promise<FunctionsGetResponse> {
|
|
184
200
|
return this.client.sendOperationRequest(
|
|
185
|
-
{
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
functionName,
|
|
189
|
-
options
|
|
190
|
-
},
|
|
191
|
-
getOperationSpec,
|
|
192
|
-
callback) as Promise<Models.FunctionsGetResponse>;
|
|
201
|
+
{ resourceGroupName, jobName, functionName, options },
|
|
202
|
+
getOperationSpec
|
|
203
|
+
);
|
|
193
204
|
}
|
|
194
205
|
|
|
195
206
|
/**
|
|
196
207
|
* Lists all of the functions under the specified streaming job.
|
|
197
208
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
198
209
|
* @param jobName The name of the streaming job.
|
|
199
|
-
* @param
|
|
200
|
-
* @returns Promise<Models.FunctionsListByStreamingJobResponse>
|
|
201
|
-
*/
|
|
202
|
-
listByStreamingJob(resourceGroupName: string, jobName: string, options?: Models.FunctionsListByStreamingJobOptionalParams): Promise<Models.FunctionsListByStreamingJobResponse>;
|
|
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
|
|
207
|
-
*/
|
|
208
|
-
listByStreamingJob(resourceGroupName: string, jobName: string, callback: msRest.ServiceCallback<Models.FunctionListResult>): void;
|
|
209
|
-
/**
|
|
210
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
211
|
-
* @param jobName The name of the streaming job.
|
|
212
|
-
* @param options The optional parameters
|
|
213
|
-
* @param callback The callback
|
|
210
|
+
* @param options The options parameters.
|
|
214
211
|
*/
|
|
215
|
-
|
|
216
|
-
|
|
212
|
+
private _listByStreamingJob(
|
|
213
|
+
resourceGroupName: string,
|
|
214
|
+
jobName: string,
|
|
215
|
+
options?: FunctionsListByStreamingJobOptionalParams
|
|
216
|
+
): Promise<FunctionsListByStreamingJobResponse> {
|
|
217
217
|
return this.client.sendOperationRequest(
|
|
218
|
-
{
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
options
|
|
222
|
-
},
|
|
223
|
-
listByStreamingJobOperationSpec,
|
|
224
|
-
callback) as Promise<Models.FunctionsListByStreamingJobResponse>;
|
|
218
|
+
{ resourceGroupName, jobName, options },
|
|
219
|
+
listByStreamingJobOperationSpec
|
|
220
|
+
);
|
|
225
221
|
}
|
|
226
222
|
|
|
227
223
|
/**
|
|
@@ -231,127 +227,135 @@ export class Functions {
|
|
|
231
227
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
232
228
|
* @param jobName The name of the streaming job.
|
|
233
229
|
* @param functionName The name of the function.
|
|
234
|
-
* @param
|
|
235
|
-
* @returns Promise<Models.FunctionsTestResponse>
|
|
230
|
+
* @param options The options parameters.
|
|
236
231
|
*/
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
232
|
+
async beginTest(
|
|
233
|
+
resourceGroupName: string,
|
|
234
|
+
jobName: string,
|
|
235
|
+
functionName: string,
|
|
236
|
+
options?: FunctionsTestOptionalParams
|
|
237
|
+
): Promise<
|
|
238
|
+
PollerLike<PollOperationState<FunctionsTestResponse>, FunctionsTestResponse>
|
|
239
|
+
> {
|
|
240
|
+
const directSendOperation = async (
|
|
241
|
+
args: coreClient.OperationArguments,
|
|
242
|
+
spec: coreClient.OperationSpec
|
|
243
|
+
): Promise<FunctionsTestResponse> => {
|
|
244
|
+
return this.client.sendOperationRequest(args, spec);
|
|
245
|
+
};
|
|
246
|
+
const sendOperation = async (
|
|
247
|
+
args: coreClient.OperationArguments,
|
|
248
|
+
spec: coreClient.OperationSpec
|
|
249
|
+
) => {
|
|
250
|
+
let currentRawResponse:
|
|
251
|
+
| coreClient.FullOperationResponse
|
|
252
|
+
| undefined = undefined;
|
|
253
|
+
const providedCallback = args.options?.onResponse;
|
|
254
|
+
const callback: coreClient.RawResponseCallback = (
|
|
255
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
256
|
+
flatResponse: unknown
|
|
257
|
+
) => {
|
|
258
|
+
currentRawResponse = rawResponse;
|
|
259
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
260
|
+
};
|
|
261
|
+
const updatedArgs = {
|
|
262
|
+
...args,
|
|
263
|
+
options: {
|
|
264
|
+
...args.options,
|
|
265
|
+
onResponse: callback
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
269
|
+
return {
|
|
270
|
+
flatResponse,
|
|
271
|
+
rawResponse: {
|
|
272
|
+
statusCode: currentRawResponse!.status,
|
|
273
|
+
body: currentRawResponse!.parsedBody,
|
|
274
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
const lro = new LroImpl(
|
|
280
|
+
sendOperation,
|
|
281
|
+
{ resourceGroupName, jobName, functionName, options },
|
|
282
|
+
testOperationSpec
|
|
283
|
+
);
|
|
284
|
+
return new LroEngine(lro, {
|
|
285
|
+
resumeFrom: options?.resumeFrom,
|
|
286
|
+
intervalInMs: options?.updateIntervalInMs
|
|
287
|
+
});
|
|
240
288
|
}
|
|
241
289
|
|
|
242
290
|
/**
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
*
|
|
246
|
-
* @param functionName The name of the function.
|
|
247
|
-
* @param [options] The optional parameters
|
|
248
|
-
* @returns Promise<Models.FunctionsRetrieveDefaultDefinitionResponse>
|
|
249
|
-
*/
|
|
250
|
-
retrieveDefaultDefinition(resourceGroupName: string, jobName: string, functionName: string, options?: Models.FunctionsRetrieveDefaultDefinitionOptionalParams): Promise<Models.FunctionsRetrieveDefaultDefinitionResponse>;
|
|
251
|
-
/**
|
|
291
|
+
* Tests if the information provided for a function is valid. This can range from testing the
|
|
292
|
+
* connection to the underlying web service behind the function or making sure the function code
|
|
293
|
+
* provided is syntactically correct.
|
|
252
294
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
253
295
|
* @param jobName The name of the streaming job.
|
|
254
296
|
* @param functionName The name of the function.
|
|
255
|
-
* @param
|
|
297
|
+
* @param options The options parameters.
|
|
256
298
|
*/
|
|
257
|
-
|
|
299
|
+
async beginTestAndWait(
|
|
300
|
+
resourceGroupName: string,
|
|
301
|
+
jobName: string,
|
|
302
|
+
functionName: string,
|
|
303
|
+
options?: FunctionsTestOptionalParams
|
|
304
|
+
): Promise<FunctionsTestResponse> {
|
|
305
|
+
const poller = await this.beginTest(
|
|
306
|
+
resourceGroupName,
|
|
307
|
+
jobName,
|
|
308
|
+
functionName,
|
|
309
|
+
options
|
|
310
|
+
);
|
|
311
|
+
return poller.pollUntilDone();
|
|
312
|
+
}
|
|
313
|
+
|
|
258
314
|
/**
|
|
315
|
+
* Retrieves the default definition of a function based on the parameters specified.
|
|
259
316
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
260
317
|
* @param jobName The name of the streaming job.
|
|
261
318
|
* @param functionName The name of the function.
|
|
262
|
-
* @param options The
|
|
263
|
-
* @param callback The callback
|
|
319
|
+
* @param options The options parameters.
|
|
264
320
|
*/
|
|
265
|
-
retrieveDefaultDefinition(
|
|
266
|
-
|
|
321
|
+
retrieveDefaultDefinition(
|
|
322
|
+
resourceGroupName: string,
|
|
323
|
+
jobName: string,
|
|
324
|
+
functionName: string,
|
|
325
|
+
options?: FunctionsRetrieveDefaultDefinitionOptionalParams
|
|
326
|
+
): Promise<FunctionsRetrieveDefaultDefinitionResponse> {
|
|
267
327
|
return this.client.sendOperationRequest(
|
|
268
|
-
{
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
functionName,
|
|
272
|
-
options
|
|
273
|
-
},
|
|
274
|
-
retrieveDefaultDefinitionOperationSpec,
|
|
275
|
-
callback) as Promise<Models.FunctionsRetrieveDefaultDefinitionResponse>;
|
|
328
|
+
{ resourceGroupName, jobName, functionName, options },
|
|
329
|
+
retrieveDefaultDefinitionOperationSpec
|
|
330
|
+
);
|
|
276
331
|
}
|
|
277
332
|
|
|
278
333
|
/**
|
|
279
|
-
*
|
|
280
|
-
* connection to the underlying web service behind the function or making sure the function code
|
|
281
|
-
* provided is syntactically correct.
|
|
334
|
+
* ListByStreamingJobNext
|
|
282
335
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
283
336
|
* @param jobName The name of the streaming job.
|
|
284
|
-
* @param
|
|
285
|
-
* @param
|
|
286
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
287
|
-
*/
|
|
288
|
-
beginTest(resourceGroupName: string, jobName: string, functionName: string, options?: Models.FunctionsBeginTestOptionalParams): Promise<msRestAzure.LROPoller> {
|
|
289
|
-
return this.client.sendLRORequest(
|
|
290
|
-
{
|
|
291
|
-
resourceGroupName,
|
|
292
|
-
jobName,
|
|
293
|
-
functionName,
|
|
294
|
-
options
|
|
295
|
-
},
|
|
296
|
-
beginTestOperationSpec,
|
|
297
|
-
options);
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* Lists all of the functions under the specified streaming job.
|
|
302
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
303
|
-
* @param [options] The optional parameters
|
|
304
|
-
* @returns Promise<Models.FunctionsListByStreamingJobNextResponse>
|
|
305
|
-
*/
|
|
306
|
-
listByStreamingJobNext(nextPageLink: string, options?: Models.FunctionsListByStreamingJobNextOptionalParams): Promise<Models.FunctionsListByStreamingJobNextResponse>;
|
|
307
|
-
/**
|
|
308
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
309
|
-
* @param callback The callback
|
|
310
|
-
*/
|
|
311
|
-
listByStreamingJobNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.FunctionListResult>): void;
|
|
312
|
-
/**
|
|
313
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
314
|
-
* @param options The optional parameters
|
|
315
|
-
* @param callback The callback
|
|
337
|
+
* @param nextLink The nextLink from the previous successful call to the ListByStreamingJob method.
|
|
338
|
+
* @param options The options parameters.
|
|
316
339
|
*/
|
|
317
|
-
|
|
318
|
-
|
|
340
|
+
private _listByStreamingJobNext(
|
|
341
|
+
resourceGroupName: string,
|
|
342
|
+
jobName: string,
|
|
343
|
+
nextLink: string,
|
|
344
|
+
options?: FunctionsListByStreamingJobNextOptionalParams
|
|
345
|
+
): Promise<FunctionsListByStreamingJobNextResponse> {
|
|
319
346
|
return this.client.sendOperationRequest(
|
|
320
|
-
{
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
},
|
|
324
|
-
listByStreamingJobNextOperationSpec,
|
|
325
|
-
callback) as Promise<Models.FunctionsListByStreamingJobNextResponse>;
|
|
347
|
+
{ resourceGroupName, jobName, nextLink, options },
|
|
348
|
+
listByStreamingJobNextOperationSpec
|
|
349
|
+
);
|
|
326
350
|
}
|
|
327
351
|
}
|
|
328
|
-
|
|
329
352
|
// Operation Specifications
|
|
330
|
-
const serializer =
|
|
331
|
-
|
|
353
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
354
|
+
|
|
355
|
+
const createOrReplaceOperationSpec: coreClient.OperationSpec = {
|
|
356
|
+
path:
|
|
357
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}",
|
|
332
358
|
httpMethod: "PUT",
|
|
333
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}",
|
|
334
|
-
urlParameters: [
|
|
335
|
-
Parameters.subscriptionId,
|
|
336
|
-
Parameters.resourceGroupName,
|
|
337
|
-
Parameters.jobName,
|
|
338
|
-
Parameters.functionName
|
|
339
|
-
],
|
|
340
|
-
queryParameters: [
|
|
341
|
-
Parameters.apiVersion0
|
|
342
|
-
],
|
|
343
|
-
headerParameters: [
|
|
344
|
-
Parameters.ifMatch,
|
|
345
|
-
Parameters.ifNoneMatch,
|
|
346
|
-
Parameters.acceptLanguage
|
|
347
|
-
],
|
|
348
|
-
requestBody: {
|
|
349
|
-
parameterPath: "functionParameter",
|
|
350
|
-
mapper: {
|
|
351
|
-
...Mappers.FunctionModel,
|
|
352
|
-
required: true
|
|
353
|
-
}
|
|
354
|
-
},
|
|
355
359
|
responses: {
|
|
356
360
|
200: {
|
|
357
361
|
bodyMapper: Mappers.FunctionModel,
|
|
@@ -362,64 +366,61 @@ const createOrReplaceOperationSpec: msRest.OperationSpec = {
|
|
|
362
366
|
headersMapper: Mappers.FunctionsCreateOrReplaceHeaders
|
|
363
367
|
},
|
|
364
368
|
default: {
|
|
365
|
-
bodyMapper: Mappers.ErrorModel
|
|
366
|
-
headersMapper: Mappers.FunctionsCreateOrReplaceHeaders
|
|
369
|
+
bodyMapper: Mappers.ErrorModel
|
|
367
370
|
}
|
|
368
371
|
},
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
const updateOperationSpec: msRest.OperationSpec = {
|
|
373
|
-
httpMethod: "PATCH",
|
|
374
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}",
|
|
372
|
+
requestBody: Parameters.functionParam,
|
|
373
|
+
queryParameters: [Parameters.apiVersion],
|
|
375
374
|
urlParameters: [
|
|
375
|
+
Parameters.$host,
|
|
376
376
|
Parameters.subscriptionId,
|
|
377
377
|
Parameters.resourceGroupName,
|
|
378
378
|
Parameters.jobName,
|
|
379
379
|
Parameters.functionName
|
|
380
380
|
],
|
|
381
|
-
queryParameters: [
|
|
382
|
-
Parameters.apiVersion0
|
|
383
|
-
],
|
|
384
381
|
headerParameters: [
|
|
382
|
+
Parameters.accept,
|
|
383
|
+
Parameters.contentType,
|
|
385
384
|
Parameters.ifMatch,
|
|
386
|
-
Parameters.
|
|
385
|
+
Parameters.ifNoneMatch
|
|
387
386
|
],
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
}
|
|
394
|
-
|
|
387
|
+
mediaType: "json",
|
|
388
|
+
serializer
|
|
389
|
+
};
|
|
390
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
391
|
+
path:
|
|
392
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}",
|
|
393
|
+
httpMethod: "PATCH",
|
|
395
394
|
responses: {
|
|
396
395
|
200: {
|
|
397
396
|
bodyMapper: Mappers.FunctionModel,
|
|
398
397
|
headersMapper: Mappers.FunctionsUpdateHeaders
|
|
399
398
|
},
|
|
400
399
|
default: {
|
|
401
|
-
bodyMapper: Mappers.ErrorModel
|
|
402
|
-
headersMapper: Mappers.FunctionsUpdateHeaders
|
|
400
|
+
bodyMapper: Mappers.ErrorModel
|
|
403
401
|
}
|
|
404
402
|
},
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
409
|
-
httpMethod: "DELETE",
|
|
410
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}",
|
|
403
|
+
requestBody: Parameters.functionParam,
|
|
404
|
+
queryParameters: [Parameters.apiVersion],
|
|
411
405
|
urlParameters: [
|
|
406
|
+
Parameters.$host,
|
|
412
407
|
Parameters.subscriptionId,
|
|
413
408
|
Parameters.resourceGroupName,
|
|
414
409
|
Parameters.jobName,
|
|
415
410
|
Parameters.functionName
|
|
416
411
|
],
|
|
417
|
-
queryParameters: [
|
|
418
|
-
Parameters.apiVersion0
|
|
419
|
-
],
|
|
420
412
|
headerParameters: [
|
|
421
|
-
Parameters.
|
|
413
|
+
Parameters.accept,
|
|
414
|
+
Parameters.contentType,
|
|
415
|
+
Parameters.ifMatch
|
|
422
416
|
],
|
|
417
|
+
mediaType: "json",
|
|
418
|
+
serializer
|
|
419
|
+
};
|
|
420
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
421
|
+
path:
|
|
422
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}",
|
|
423
|
+
httpMethod: "DELETE",
|
|
423
424
|
responses: {
|
|
424
425
|
200: {},
|
|
425
426
|
204: {},
|
|
@@ -427,52 +428,45 @@ const deleteMethodOperationSpec: msRest.OperationSpec = {
|
|
|
427
428
|
bodyMapper: Mappers.ErrorModel
|
|
428
429
|
}
|
|
429
430
|
},
|
|
430
|
-
|
|
431
|
-
};
|
|
432
|
-
|
|
433
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
434
|
-
httpMethod: "GET",
|
|
435
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}",
|
|
431
|
+
queryParameters: [Parameters.apiVersion],
|
|
436
432
|
urlParameters: [
|
|
433
|
+
Parameters.$host,
|
|
437
434
|
Parameters.subscriptionId,
|
|
438
435
|
Parameters.resourceGroupName,
|
|
439
436
|
Parameters.jobName,
|
|
440
437
|
Parameters.functionName
|
|
441
438
|
],
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
439
|
+
headerParameters: [Parameters.accept],
|
|
440
|
+
serializer
|
|
441
|
+
};
|
|
442
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
443
|
+
path:
|
|
444
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}",
|
|
445
|
+
httpMethod: "GET",
|
|
448
446
|
responses: {
|
|
449
447
|
200: {
|
|
450
448
|
bodyMapper: Mappers.FunctionModel,
|
|
451
449
|
headersMapper: Mappers.FunctionsGetHeaders
|
|
452
450
|
},
|
|
453
451
|
default: {
|
|
454
|
-
bodyMapper: Mappers.ErrorModel
|
|
455
|
-
headersMapper: Mappers.FunctionsGetHeaders
|
|
452
|
+
bodyMapper: Mappers.ErrorModel
|
|
456
453
|
}
|
|
457
454
|
},
|
|
458
|
-
|
|
459
|
-
};
|
|
460
|
-
|
|
461
|
-
const listByStreamingJobOperationSpec: msRest.OperationSpec = {
|
|
462
|
-
httpMethod: "GET",
|
|
463
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions",
|
|
455
|
+
queryParameters: [Parameters.apiVersion],
|
|
464
456
|
urlParameters: [
|
|
457
|
+
Parameters.$host,
|
|
465
458
|
Parameters.subscriptionId,
|
|
466
459
|
Parameters.resourceGroupName,
|
|
467
|
-
Parameters.jobName
|
|
468
|
-
|
|
469
|
-
queryParameters: [
|
|
470
|
-
Parameters.select,
|
|
471
|
-
Parameters.apiVersion0
|
|
472
|
-
],
|
|
473
|
-
headerParameters: [
|
|
474
|
-
Parameters.acceptLanguage
|
|
460
|
+
Parameters.jobName,
|
|
461
|
+
Parameters.functionName
|
|
475
462
|
],
|
|
463
|
+
headerParameters: [Parameters.accept],
|
|
464
|
+
serializer
|
|
465
|
+
};
|
|
466
|
+
const listByStreamingJobOperationSpec: coreClient.OperationSpec = {
|
|
467
|
+
path:
|
|
468
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions",
|
|
469
|
+
httpMethod: "GET",
|
|
476
470
|
responses: {
|
|
477
471
|
200: {
|
|
478
472
|
bodyMapper: Mappers.FunctionListResult
|
|
@@ -481,90 +475,78 @@ const listByStreamingJobOperationSpec: msRest.OperationSpec = {
|
|
|
481
475
|
bodyMapper: Mappers.ErrorModel
|
|
482
476
|
}
|
|
483
477
|
},
|
|
484
|
-
|
|
485
|
-
};
|
|
486
|
-
|
|
487
|
-
const retrieveDefaultDefinitionOperationSpec: msRest.OperationSpec = {
|
|
488
|
-
httpMethod: "POST",
|
|
489
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}/retrieveDefaultDefinition",
|
|
478
|
+
queryParameters: [Parameters.apiVersion, Parameters.select],
|
|
490
479
|
urlParameters: [
|
|
480
|
+
Parameters.$host,
|
|
491
481
|
Parameters.subscriptionId,
|
|
492
482
|
Parameters.resourceGroupName,
|
|
493
|
-
Parameters.jobName
|
|
494
|
-
Parameters.functionName
|
|
495
|
-
],
|
|
496
|
-
queryParameters: [
|
|
497
|
-
Parameters.apiVersion0
|
|
498
|
-
],
|
|
499
|
-
headerParameters: [
|
|
500
|
-
Parameters.acceptLanguage
|
|
483
|
+
Parameters.jobName
|
|
501
484
|
],
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
485
|
+
headerParameters: [Parameters.accept],
|
|
486
|
+
serializer
|
|
487
|
+
};
|
|
488
|
+
const testOperationSpec: coreClient.OperationSpec = {
|
|
489
|
+
path:
|
|
490
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}/test",
|
|
491
|
+
httpMethod: "POST",
|
|
509
492
|
responses: {
|
|
510
493
|
200: {
|
|
511
|
-
bodyMapper: Mappers.
|
|
494
|
+
bodyMapper: Mappers.ResourceTestStatus
|
|
495
|
+
},
|
|
496
|
+
201: {
|
|
497
|
+
bodyMapper: Mappers.ResourceTestStatus
|
|
498
|
+
},
|
|
499
|
+
202: {
|
|
500
|
+
bodyMapper: Mappers.ResourceTestStatus
|
|
501
|
+
},
|
|
502
|
+
204: {
|
|
503
|
+
bodyMapper: Mappers.ResourceTestStatus
|
|
512
504
|
},
|
|
513
505
|
default: {
|
|
514
506
|
bodyMapper: Mappers.ErrorModel
|
|
515
507
|
}
|
|
516
508
|
},
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
const beginTestOperationSpec: msRest.OperationSpec = {
|
|
521
|
-
httpMethod: "POST",
|
|
522
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}/test",
|
|
509
|
+
requestBody: Parameters.functionParam1,
|
|
510
|
+
queryParameters: [Parameters.apiVersion],
|
|
523
511
|
urlParameters: [
|
|
512
|
+
Parameters.$host,
|
|
524
513
|
Parameters.subscriptionId,
|
|
525
514
|
Parameters.resourceGroupName,
|
|
526
515
|
Parameters.jobName,
|
|
527
516
|
Parameters.functionName
|
|
528
517
|
],
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
"options",
|
|
538
|
-
"functionParameter"
|
|
539
|
-
],
|
|
540
|
-
mapper: Mappers.FunctionModel
|
|
541
|
-
},
|
|
518
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
519
|
+
mediaType: "json",
|
|
520
|
+
serializer
|
|
521
|
+
};
|
|
522
|
+
const retrieveDefaultDefinitionOperationSpec: coreClient.OperationSpec = {
|
|
523
|
+
path:
|
|
524
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}/retrieveDefaultDefinition",
|
|
525
|
+
httpMethod: "POST",
|
|
542
526
|
responses: {
|
|
543
527
|
200: {
|
|
544
|
-
bodyMapper: Mappers.
|
|
528
|
+
bodyMapper: Mappers.FunctionModel
|
|
545
529
|
},
|
|
546
|
-
202: {},
|
|
547
530
|
default: {
|
|
548
531
|
bodyMapper: Mappers.ErrorModel
|
|
549
532
|
}
|
|
550
533
|
},
|
|
534
|
+
requestBody: Parameters.functionRetrieveDefaultDefinitionParameters,
|
|
535
|
+
queryParameters: [Parameters.apiVersion],
|
|
536
|
+
urlParameters: [
|
|
537
|
+
Parameters.$host,
|
|
538
|
+
Parameters.subscriptionId,
|
|
539
|
+
Parameters.resourceGroupName,
|
|
540
|
+
Parameters.jobName,
|
|
541
|
+
Parameters.functionName
|
|
542
|
+
],
|
|
543
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
544
|
+
mediaType: "json",
|
|
551
545
|
serializer
|
|
552
546
|
};
|
|
553
|
-
|
|
554
|
-
const listByStreamingJobNextOperationSpec: msRest.OperationSpec = {
|
|
555
|
-
httpMethod: "GET",
|
|
556
|
-
baseUrl: "https://management.azure.com",
|
|
547
|
+
const listByStreamingJobNextOperationSpec: coreClient.OperationSpec = {
|
|
557
548
|
path: "{nextLink}",
|
|
558
|
-
|
|
559
|
-
Parameters.nextPageLink
|
|
560
|
-
],
|
|
561
|
-
queryParameters: [
|
|
562
|
-
Parameters.select,
|
|
563
|
-
Parameters.apiVersion0
|
|
564
|
-
],
|
|
565
|
-
headerParameters: [
|
|
566
|
-
Parameters.acceptLanguage
|
|
567
|
-
],
|
|
549
|
+
httpMethod: "GET",
|
|
568
550
|
responses: {
|
|
569
551
|
200: {
|
|
570
552
|
bodyMapper: Mappers.FunctionListResult
|
|
@@ -573,5 +555,14 @@ const listByStreamingJobNextOperationSpec: msRest.OperationSpec = {
|
|
|
573
555
|
bodyMapper: Mappers.ErrorModel
|
|
574
556
|
}
|
|
575
557
|
},
|
|
558
|
+
queryParameters: [Parameters.apiVersion, Parameters.select],
|
|
559
|
+
urlParameters: [
|
|
560
|
+
Parameters.$host,
|
|
561
|
+
Parameters.nextLink,
|
|
562
|
+
Parameters.subscriptionId,
|
|
563
|
+
Parameters.resourceGroupName,
|
|
564
|
+
Parameters.jobName
|
|
565
|
+
],
|
|
566
|
+
headerParameters: [Parameters.accept],
|
|
576
567
|
serializer
|
|
577
568
|
};
|