@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
|
@@ -0,0 +1,692 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
import { LroEngine } from "@azure/core-lro";
|
|
13
|
+
import { LroImpl } from "../lroImpl";
|
|
14
|
+
/// <reference lib="esnext.asynciterable" />
|
|
15
|
+
/** Class containing StreamingJobs operations. */
|
|
16
|
+
export class StreamingJobsImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class StreamingJobs class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Lists all of the streaming jobs in the specified resource group.
|
|
26
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
30
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
31
|
+
return {
|
|
32
|
+
next() {
|
|
33
|
+
return iter.next();
|
|
34
|
+
},
|
|
35
|
+
[Symbol.asyncIterator]() {
|
|
36
|
+
return this;
|
|
37
|
+
},
|
|
38
|
+
byPage: () => {
|
|
39
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
44
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
45
|
+
let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
|
46
|
+
yield yield __await(result.value || []);
|
|
47
|
+
let continuationToken = result.nextLink;
|
|
48
|
+
while (continuationToken) {
|
|
49
|
+
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
50
|
+
continuationToken = result.nextLink;
|
|
51
|
+
yield yield __await(result.value || []);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
56
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
57
|
+
var e_1, _a;
|
|
58
|
+
try {
|
|
59
|
+
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
60
|
+
const page = _c.value;
|
|
61
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
65
|
+
finally {
|
|
66
|
+
try {
|
|
67
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
68
|
+
}
|
|
69
|
+
finally { if (e_1) throw e_1.error; }
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Lists all of the streaming jobs in the given subscription.
|
|
75
|
+
* @param options The options parameters.
|
|
76
|
+
*/
|
|
77
|
+
list(options) {
|
|
78
|
+
const iter = this.listPagingAll(options);
|
|
79
|
+
return {
|
|
80
|
+
next() {
|
|
81
|
+
return iter.next();
|
|
82
|
+
},
|
|
83
|
+
[Symbol.asyncIterator]() {
|
|
84
|
+
return this;
|
|
85
|
+
},
|
|
86
|
+
byPage: () => {
|
|
87
|
+
return this.listPagingPage(options);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
listPagingPage(options) {
|
|
92
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
93
|
+
let result = yield __await(this._list(options));
|
|
94
|
+
yield yield __await(result.value || []);
|
|
95
|
+
let continuationToken = result.nextLink;
|
|
96
|
+
while (continuationToken) {
|
|
97
|
+
result = yield __await(this._listNext(continuationToken, options));
|
|
98
|
+
continuationToken = result.nextLink;
|
|
99
|
+
yield yield __await(result.value || []);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
listPagingAll(options) {
|
|
104
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
105
|
+
var e_2, _a;
|
|
106
|
+
try {
|
|
107
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
108
|
+
const page = _c.value;
|
|
109
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
113
|
+
finally {
|
|
114
|
+
try {
|
|
115
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
116
|
+
}
|
|
117
|
+
finally { if (e_2) throw e_2.error; }
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Creates a streaming job or replaces an already existing streaming job.
|
|
123
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
124
|
+
* @param jobName The name of the streaming job.
|
|
125
|
+
* @param streamingJob The definition of the streaming job that will be used to create a new streaming
|
|
126
|
+
* job or replace the existing one.
|
|
127
|
+
* @param options The options parameters.
|
|
128
|
+
*/
|
|
129
|
+
beginCreateOrReplace(resourceGroupName, jobName, streamingJob, options) {
|
|
130
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
131
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
132
|
+
return this.client.sendOperationRequest(args, spec);
|
|
133
|
+
});
|
|
134
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
135
|
+
var _a;
|
|
136
|
+
let currentRawResponse = undefined;
|
|
137
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
138
|
+
const callback = (rawResponse, flatResponse) => {
|
|
139
|
+
currentRawResponse = rawResponse;
|
|
140
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
141
|
+
};
|
|
142
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
143
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
144
|
+
return {
|
|
145
|
+
flatResponse,
|
|
146
|
+
rawResponse: {
|
|
147
|
+
statusCode: currentRawResponse.status,
|
|
148
|
+
body: currentRawResponse.parsedBody,
|
|
149
|
+
headers: currentRawResponse.headers.toJSON()
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
});
|
|
153
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, jobName, streamingJob, options }, createOrReplaceOperationSpec);
|
|
154
|
+
return new LroEngine(lro, {
|
|
155
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
156
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Creates a streaming job or replaces an already existing streaming job.
|
|
162
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
163
|
+
* @param jobName The name of the streaming job.
|
|
164
|
+
* @param streamingJob The definition of the streaming job that will be used to create a new streaming
|
|
165
|
+
* job or replace the existing one.
|
|
166
|
+
* @param options The options parameters.
|
|
167
|
+
*/
|
|
168
|
+
beginCreateOrReplaceAndWait(resourceGroupName, jobName, streamingJob, options) {
|
|
169
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
170
|
+
const poller = yield this.beginCreateOrReplace(resourceGroupName, jobName, streamingJob, options);
|
|
171
|
+
return poller.pollUntilDone();
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Updates an existing streaming job. This can be used to partially update (ie. update one or two
|
|
176
|
+
* properties) a streaming job without affecting the rest the job definition.
|
|
177
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
178
|
+
* @param jobName The name of the streaming job.
|
|
179
|
+
* @param streamingJob A streaming job object. The properties specified here will overwrite the
|
|
180
|
+
* corresponding properties in the existing streaming job (ie. Those properties will be updated). Any
|
|
181
|
+
* properties that are set to null here will mean that the corresponding property in the existing input
|
|
182
|
+
* will remain the same and not change as a result of this PATCH operation.
|
|
183
|
+
* @param options The options parameters.
|
|
184
|
+
*/
|
|
185
|
+
update(resourceGroupName, jobName, streamingJob, options) {
|
|
186
|
+
return this.client.sendOperationRequest({ resourceGroupName, jobName, streamingJob, options }, updateOperationSpec);
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Deletes a streaming job.
|
|
190
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
191
|
+
* @param jobName The name of the streaming job.
|
|
192
|
+
* @param options The options parameters.
|
|
193
|
+
*/
|
|
194
|
+
beginDelete(resourceGroupName, jobName, options) {
|
|
195
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
196
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
197
|
+
return this.client.sendOperationRequest(args, spec);
|
|
198
|
+
});
|
|
199
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
200
|
+
var _a;
|
|
201
|
+
let currentRawResponse = undefined;
|
|
202
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
203
|
+
const callback = (rawResponse, flatResponse) => {
|
|
204
|
+
currentRawResponse = rawResponse;
|
|
205
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
206
|
+
};
|
|
207
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
208
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
209
|
+
return {
|
|
210
|
+
flatResponse,
|
|
211
|
+
rawResponse: {
|
|
212
|
+
statusCode: currentRawResponse.status,
|
|
213
|
+
body: currentRawResponse.parsedBody,
|
|
214
|
+
headers: currentRawResponse.headers.toJSON()
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
});
|
|
218
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, jobName, options }, deleteOperationSpec);
|
|
219
|
+
return new LroEngine(lro, {
|
|
220
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
221
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
222
|
+
});
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Deletes a streaming job.
|
|
227
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
228
|
+
* @param jobName The name of the streaming job.
|
|
229
|
+
* @param options The options parameters.
|
|
230
|
+
*/
|
|
231
|
+
beginDeleteAndWait(resourceGroupName, jobName, options) {
|
|
232
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
233
|
+
const poller = yield this.beginDelete(resourceGroupName, jobName, options);
|
|
234
|
+
return poller.pollUntilDone();
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Gets details about the specified streaming job.
|
|
239
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
240
|
+
* @param jobName The name of the streaming job.
|
|
241
|
+
* @param options The options parameters.
|
|
242
|
+
*/
|
|
243
|
+
get(resourceGroupName, jobName, options) {
|
|
244
|
+
return this.client.sendOperationRequest({ resourceGroupName, jobName, options }, getOperationSpec);
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Lists all of the streaming jobs in the specified resource group.
|
|
248
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
249
|
+
* @param options The options parameters.
|
|
250
|
+
*/
|
|
251
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
252
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Lists all of the streaming jobs in the given subscription.
|
|
256
|
+
* @param options The options parameters.
|
|
257
|
+
*/
|
|
258
|
+
_list(options) {
|
|
259
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Starts a streaming job. Once a job is started it will start processing input events and produce
|
|
263
|
+
* output.
|
|
264
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
265
|
+
* @param jobName The name of the streaming job.
|
|
266
|
+
* @param options The options parameters.
|
|
267
|
+
*/
|
|
268
|
+
beginStart(resourceGroupName, jobName, options) {
|
|
269
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
270
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
271
|
+
return this.client.sendOperationRequest(args, spec);
|
|
272
|
+
});
|
|
273
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
274
|
+
var _a;
|
|
275
|
+
let currentRawResponse = undefined;
|
|
276
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
277
|
+
const callback = (rawResponse, flatResponse) => {
|
|
278
|
+
currentRawResponse = rawResponse;
|
|
279
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
280
|
+
};
|
|
281
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
282
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
283
|
+
return {
|
|
284
|
+
flatResponse,
|
|
285
|
+
rawResponse: {
|
|
286
|
+
statusCode: currentRawResponse.status,
|
|
287
|
+
body: currentRawResponse.parsedBody,
|
|
288
|
+
headers: currentRawResponse.headers.toJSON()
|
|
289
|
+
}
|
|
290
|
+
};
|
|
291
|
+
});
|
|
292
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, jobName, options }, startOperationSpec);
|
|
293
|
+
return new LroEngine(lro, {
|
|
294
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
295
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
296
|
+
});
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Starts a streaming job. Once a job is started it will start processing input events and produce
|
|
301
|
+
* output.
|
|
302
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
303
|
+
* @param jobName The name of the streaming job.
|
|
304
|
+
* @param options The options parameters.
|
|
305
|
+
*/
|
|
306
|
+
beginStartAndWait(resourceGroupName, jobName, options) {
|
|
307
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
308
|
+
const poller = yield this.beginStart(resourceGroupName, jobName, options);
|
|
309
|
+
return poller.pollUntilDone();
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Stops a running streaming job. This will cause a running streaming job to stop processing input
|
|
314
|
+
* events and producing output.
|
|
315
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
316
|
+
* @param jobName The name of the streaming job.
|
|
317
|
+
* @param options The options parameters.
|
|
318
|
+
*/
|
|
319
|
+
beginStop(resourceGroupName, jobName, options) {
|
|
320
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
321
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
322
|
+
return this.client.sendOperationRequest(args, spec);
|
|
323
|
+
});
|
|
324
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
325
|
+
var _a;
|
|
326
|
+
let currentRawResponse = undefined;
|
|
327
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
328
|
+
const callback = (rawResponse, flatResponse) => {
|
|
329
|
+
currentRawResponse = rawResponse;
|
|
330
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
331
|
+
};
|
|
332
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
333
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
334
|
+
return {
|
|
335
|
+
flatResponse,
|
|
336
|
+
rawResponse: {
|
|
337
|
+
statusCode: currentRawResponse.status,
|
|
338
|
+
body: currentRawResponse.parsedBody,
|
|
339
|
+
headers: currentRawResponse.headers.toJSON()
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
});
|
|
343
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, jobName, options }, stopOperationSpec);
|
|
344
|
+
return new LroEngine(lro, {
|
|
345
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
346
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
347
|
+
});
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Stops a running streaming job. This will cause a running streaming job to stop processing input
|
|
352
|
+
* events and producing output.
|
|
353
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
354
|
+
* @param jobName The name of the streaming job.
|
|
355
|
+
* @param options The options parameters.
|
|
356
|
+
*/
|
|
357
|
+
beginStopAndWait(resourceGroupName, jobName, options) {
|
|
358
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
359
|
+
const poller = yield this.beginStop(resourceGroupName, jobName, options);
|
|
360
|
+
return poller.pollUntilDone();
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Scales a streaming job when the job is running.
|
|
365
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
366
|
+
* @param jobName The name of the streaming job.
|
|
367
|
+
* @param options The options parameters.
|
|
368
|
+
*/
|
|
369
|
+
beginScale(resourceGroupName, jobName, options) {
|
|
370
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
371
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
372
|
+
return this.client.sendOperationRequest(args, spec);
|
|
373
|
+
});
|
|
374
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
375
|
+
var _a;
|
|
376
|
+
let currentRawResponse = undefined;
|
|
377
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
378
|
+
const callback = (rawResponse, flatResponse) => {
|
|
379
|
+
currentRawResponse = rawResponse;
|
|
380
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
381
|
+
};
|
|
382
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
383
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
384
|
+
return {
|
|
385
|
+
flatResponse,
|
|
386
|
+
rawResponse: {
|
|
387
|
+
statusCode: currentRawResponse.status,
|
|
388
|
+
body: currentRawResponse.parsedBody,
|
|
389
|
+
headers: currentRawResponse.headers.toJSON()
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
});
|
|
393
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, jobName, options }, scaleOperationSpec);
|
|
394
|
+
return new LroEngine(lro, {
|
|
395
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
396
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
397
|
+
});
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* Scales a streaming job when the job is running.
|
|
402
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
403
|
+
* @param jobName The name of the streaming job.
|
|
404
|
+
* @param options The options parameters.
|
|
405
|
+
*/
|
|
406
|
+
beginScaleAndWait(resourceGroupName, jobName, options) {
|
|
407
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
408
|
+
const poller = yield this.beginScale(resourceGroupName, jobName, options);
|
|
409
|
+
return poller.pollUntilDone();
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* ListByResourceGroupNext
|
|
414
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
415
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
416
|
+
* @param options The options parameters.
|
|
417
|
+
*/
|
|
418
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
419
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* ListNext
|
|
423
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
424
|
+
* @param options The options parameters.
|
|
425
|
+
*/
|
|
426
|
+
_listNext(nextLink, options) {
|
|
427
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
// Operation Specifications
|
|
431
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
432
|
+
const createOrReplaceOperationSpec = {
|
|
433
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}",
|
|
434
|
+
httpMethod: "PUT",
|
|
435
|
+
responses: {
|
|
436
|
+
200: {
|
|
437
|
+
bodyMapper: Mappers.StreamingJob,
|
|
438
|
+
headersMapper: Mappers.StreamingJobsCreateOrReplaceHeaders
|
|
439
|
+
},
|
|
440
|
+
201: {
|
|
441
|
+
bodyMapper: Mappers.StreamingJob,
|
|
442
|
+
headersMapper: Mappers.StreamingJobsCreateOrReplaceHeaders
|
|
443
|
+
},
|
|
444
|
+
202: {
|
|
445
|
+
bodyMapper: Mappers.StreamingJob,
|
|
446
|
+
headersMapper: Mappers.StreamingJobsCreateOrReplaceHeaders
|
|
447
|
+
},
|
|
448
|
+
204: {
|
|
449
|
+
bodyMapper: Mappers.StreamingJob,
|
|
450
|
+
headersMapper: Mappers.StreamingJobsCreateOrReplaceHeaders
|
|
451
|
+
},
|
|
452
|
+
default: {
|
|
453
|
+
bodyMapper: Mappers.ErrorModel
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
requestBody: Parameters.streamingJob,
|
|
457
|
+
queryParameters: [Parameters.apiVersion],
|
|
458
|
+
urlParameters: [
|
|
459
|
+
Parameters.$host,
|
|
460
|
+
Parameters.subscriptionId,
|
|
461
|
+
Parameters.resourceGroupName,
|
|
462
|
+
Parameters.jobName
|
|
463
|
+
],
|
|
464
|
+
headerParameters: [
|
|
465
|
+
Parameters.accept,
|
|
466
|
+
Parameters.contentType,
|
|
467
|
+
Parameters.ifMatch,
|
|
468
|
+
Parameters.ifNoneMatch
|
|
469
|
+
],
|
|
470
|
+
mediaType: "json",
|
|
471
|
+
serializer
|
|
472
|
+
};
|
|
473
|
+
const updateOperationSpec = {
|
|
474
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}",
|
|
475
|
+
httpMethod: "PATCH",
|
|
476
|
+
responses: {
|
|
477
|
+
200: {
|
|
478
|
+
bodyMapper: Mappers.StreamingJob,
|
|
479
|
+
headersMapper: Mappers.StreamingJobsUpdateHeaders
|
|
480
|
+
},
|
|
481
|
+
default: {
|
|
482
|
+
bodyMapper: Mappers.ErrorModel
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
requestBody: Parameters.streamingJob,
|
|
486
|
+
queryParameters: [Parameters.apiVersion],
|
|
487
|
+
urlParameters: [
|
|
488
|
+
Parameters.$host,
|
|
489
|
+
Parameters.subscriptionId,
|
|
490
|
+
Parameters.resourceGroupName,
|
|
491
|
+
Parameters.jobName
|
|
492
|
+
],
|
|
493
|
+
headerParameters: [
|
|
494
|
+
Parameters.accept,
|
|
495
|
+
Parameters.contentType,
|
|
496
|
+
Parameters.ifMatch
|
|
497
|
+
],
|
|
498
|
+
mediaType: "json",
|
|
499
|
+
serializer
|
|
500
|
+
};
|
|
501
|
+
const deleteOperationSpec = {
|
|
502
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}",
|
|
503
|
+
httpMethod: "DELETE",
|
|
504
|
+
responses: {
|
|
505
|
+
200: {},
|
|
506
|
+
201: {},
|
|
507
|
+
202: {},
|
|
508
|
+
204: {},
|
|
509
|
+
default: {
|
|
510
|
+
bodyMapper: Mappers.ErrorModel
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
queryParameters: [Parameters.apiVersion],
|
|
514
|
+
urlParameters: [
|
|
515
|
+
Parameters.$host,
|
|
516
|
+
Parameters.subscriptionId,
|
|
517
|
+
Parameters.resourceGroupName,
|
|
518
|
+
Parameters.jobName
|
|
519
|
+
],
|
|
520
|
+
headerParameters: [Parameters.accept],
|
|
521
|
+
serializer
|
|
522
|
+
};
|
|
523
|
+
const getOperationSpec = {
|
|
524
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}",
|
|
525
|
+
httpMethod: "GET",
|
|
526
|
+
responses: {
|
|
527
|
+
200: {
|
|
528
|
+
bodyMapper: Mappers.StreamingJob,
|
|
529
|
+
headersMapper: Mappers.StreamingJobsGetHeaders
|
|
530
|
+
},
|
|
531
|
+
default: {
|
|
532
|
+
bodyMapper: Mappers.ErrorModel
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
|
536
|
+
urlParameters: [
|
|
537
|
+
Parameters.$host,
|
|
538
|
+
Parameters.subscriptionId,
|
|
539
|
+
Parameters.resourceGroupName,
|
|
540
|
+
Parameters.jobName
|
|
541
|
+
],
|
|
542
|
+
headerParameters: [Parameters.accept],
|
|
543
|
+
serializer
|
|
544
|
+
};
|
|
545
|
+
const listByResourceGroupOperationSpec = {
|
|
546
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs",
|
|
547
|
+
httpMethod: "GET",
|
|
548
|
+
responses: {
|
|
549
|
+
200: {
|
|
550
|
+
bodyMapper: Mappers.StreamingJobListResult
|
|
551
|
+
},
|
|
552
|
+
default: {
|
|
553
|
+
bodyMapper: Mappers.ErrorModel
|
|
554
|
+
}
|
|
555
|
+
},
|
|
556
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
|
557
|
+
urlParameters: [
|
|
558
|
+
Parameters.$host,
|
|
559
|
+
Parameters.subscriptionId,
|
|
560
|
+
Parameters.resourceGroupName
|
|
561
|
+
],
|
|
562
|
+
headerParameters: [Parameters.accept],
|
|
563
|
+
serializer
|
|
564
|
+
};
|
|
565
|
+
const listOperationSpec = {
|
|
566
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/streamingjobs",
|
|
567
|
+
httpMethod: "GET",
|
|
568
|
+
responses: {
|
|
569
|
+
200: {
|
|
570
|
+
bodyMapper: Mappers.StreamingJobListResult
|
|
571
|
+
},
|
|
572
|
+
default: {
|
|
573
|
+
bodyMapper: Mappers.ErrorModel
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
|
577
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
578
|
+
headerParameters: [Parameters.accept],
|
|
579
|
+
serializer
|
|
580
|
+
};
|
|
581
|
+
const startOperationSpec = {
|
|
582
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/start",
|
|
583
|
+
httpMethod: "POST",
|
|
584
|
+
responses: {
|
|
585
|
+
200: {},
|
|
586
|
+
201: {},
|
|
587
|
+
202: {},
|
|
588
|
+
204: {},
|
|
589
|
+
default: {
|
|
590
|
+
bodyMapper: Mappers.ErrorModel
|
|
591
|
+
}
|
|
592
|
+
},
|
|
593
|
+
requestBody: Parameters.startJobParameters,
|
|
594
|
+
queryParameters: [Parameters.apiVersion],
|
|
595
|
+
urlParameters: [
|
|
596
|
+
Parameters.$host,
|
|
597
|
+
Parameters.subscriptionId,
|
|
598
|
+
Parameters.resourceGroupName,
|
|
599
|
+
Parameters.jobName
|
|
600
|
+
],
|
|
601
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
602
|
+
mediaType: "json",
|
|
603
|
+
serializer
|
|
604
|
+
};
|
|
605
|
+
const stopOperationSpec = {
|
|
606
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/stop",
|
|
607
|
+
httpMethod: "POST",
|
|
608
|
+
responses: {
|
|
609
|
+
200: {},
|
|
610
|
+
201: {},
|
|
611
|
+
202: {},
|
|
612
|
+
204: {},
|
|
613
|
+
default: {
|
|
614
|
+
bodyMapper: Mappers.ErrorModel
|
|
615
|
+
}
|
|
616
|
+
},
|
|
617
|
+
queryParameters: [Parameters.apiVersion],
|
|
618
|
+
urlParameters: [
|
|
619
|
+
Parameters.$host,
|
|
620
|
+
Parameters.subscriptionId,
|
|
621
|
+
Parameters.resourceGroupName,
|
|
622
|
+
Parameters.jobName
|
|
623
|
+
],
|
|
624
|
+
headerParameters: [Parameters.accept],
|
|
625
|
+
serializer
|
|
626
|
+
};
|
|
627
|
+
const scaleOperationSpec = {
|
|
628
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/scale",
|
|
629
|
+
httpMethod: "POST",
|
|
630
|
+
responses: {
|
|
631
|
+
200: {},
|
|
632
|
+
201: {},
|
|
633
|
+
202: {},
|
|
634
|
+
204: {},
|
|
635
|
+
default: {
|
|
636
|
+
bodyMapper: Mappers.ErrorModel
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
requestBody: Parameters.scaleJobParameters,
|
|
640
|
+
queryParameters: [Parameters.apiVersion],
|
|
641
|
+
urlParameters: [
|
|
642
|
+
Parameters.$host,
|
|
643
|
+
Parameters.subscriptionId,
|
|
644
|
+
Parameters.resourceGroupName,
|
|
645
|
+
Parameters.jobName
|
|
646
|
+
],
|
|
647
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
648
|
+
mediaType: "json",
|
|
649
|
+
serializer
|
|
650
|
+
};
|
|
651
|
+
const listByResourceGroupNextOperationSpec = {
|
|
652
|
+
path: "{nextLink}",
|
|
653
|
+
httpMethod: "GET",
|
|
654
|
+
responses: {
|
|
655
|
+
200: {
|
|
656
|
+
bodyMapper: Mappers.StreamingJobListResult
|
|
657
|
+
},
|
|
658
|
+
default: {
|
|
659
|
+
bodyMapper: Mappers.ErrorModel
|
|
660
|
+
}
|
|
661
|
+
},
|
|
662
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
|
663
|
+
urlParameters: [
|
|
664
|
+
Parameters.$host,
|
|
665
|
+
Parameters.nextLink,
|
|
666
|
+
Parameters.subscriptionId,
|
|
667
|
+
Parameters.resourceGroupName
|
|
668
|
+
],
|
|
669
|
+
headerParameters: [Parameters.accept],
|
|
670
|
+
serializer
|
|
671
|
+
};
|
|
672
|
+
const listNextOperationSpec = {
|
|
673
|
+
path: "{nextLink}",
|
|
674
|
+
httpMethod: "GET",
|
|
675
|
+
responses: {
|
|
676
|
+
200: {
|
|
677
|
+
bodyMapper: Mappers.StreamingJobListResult
|
|
678
|
+
},
|
|
679
|
+
default: {
|
|
680
|
+
bodyMapper: Mappers.ErrorModel
|
|
681
|
+
}
|
|
682
|
+
},
|
|
683
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
|
684
|
+
urlParameters: [
|
|
685
|
+
Parameters.$host,
|
|
686
|
+
Parameters.nextLink,
|
|
687
|
+
Parameters.subscriptionId
|
|
688
|
+
],
|
|
689
|
+
headerParameters: [Parameters.accept],
|
|
690
|
+
serializer
|
|
691
|
+
};
|
|
692
|
+
//# sourceMappingURL=streamingJobs.js.map
|