@azure/arm-streamanalytics 5.0.0-alpha.20250718.1 → 5.0.0-alpha.20250721.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +791 -359
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/clusters.js +100 -136
- package/dist/browser/operations/clusters.js.map +1 -1
- package/dist/browser/operations/functions.js +34 -46
- package/dist/browser/operations/functions.js.map +1 -1
- package/dist/browser/operations/inputs.js +34 -46
- package/dist/browser/operations/inputs.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/outputs.js +34 -46
- package/dist/browser/operations/outputs.js.map +1 -1
- package/dist/browser/operations/privateEndpoints.js +34 -46
- package/dist/browser/operations/privateEndpoints.js.map +1 -1
- package/dist/browser/operations/skuOperations.js +23 -40
- package/dist/browser/operations/skuOperations.js.map +1 -1
- package/dist/browser/operations/streamingJobs.js +100 -109
- package/dist/browser/operations/streamingJobs.js.map +1 -1
- package/dist/browser/operations/subscriptions.js +45 -24
- package/dist/browser/operations/subscriptions.js.map +1 -1
- package/dist/browser/operations/transformations.js +1 -0
- package/dist/browser/operations/transformations.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/streamAnalyticsManagementClient.js +22 -5
- package/dist/browser/streamAnalyticsManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +791 -359
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/clusters.js +100 -135
- package/dist/commonjs/operations/clusters.js.map +1 -1
- package/dist/commonjs/operations/functions.js +34 -45
- package/dist/commonjs/operations/functions.js.map +1 -1
- package/dist/commonjs/operations/inputs.js +34 -45
- package/dist/commonjs/operations/inputs.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/outputs.js +34 -45
- package/dist/commonjs/operations/outputs.js.map +1 -1
- package/dist/commonjs/operations/privateEndpoints.js +34 -45
- package/dist/commonjs/operations/privateEndpoints.js.map +1 -1
- package/dist/commonjs/operations/skuOperations.js +23 -39
- package/dist/commonjs/operations/skuOperations.js.map +1 -1
- package/dist/commonjs/operations/streamingJobs.js +100 -108
- package/dist/commonjs/operations/streamingJobs.js.map +1 -1
- package/dist/commonjs/operations/subscriptions.js +45 -24
- package/dist/commonjs/operations/subscriptions.js.map +1 -1
- package/dist/commonjs/operations/transformations.js +1 -0
- package/dist/commonjs/operations/transformations.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/streamAnalyticsManagementClient.js +22 -5
- package/dist/commonjs/streamAnalyticsManagementClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +791 -359
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/clusters.js +100 -136
- package/dist/esm/operations/clusters.js.map +1 -1
- package/dist/esm/operations/functions.js +34 -46
- package/dist/esm/operations/functions.js.map +1 -1
- package/dist/esm/operations/inputs.js +34 -46
- package/dist/esm/operations/inputs.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/outputs.js +34 -46
- package/dist/esm/operations/outputs.js.map +1 -1
- package/dist/esm/operations/privateEndpoints.js +34 -46
- package/dist/esm/operations/privateEndpoints.js.map +1 -1
- package/dist/esm/operations/skuOperations.js +23 -40
- package/dist/esm/operations/skuOperations.js.map +1 -1
- package/dist/esm/operations/streamingJobs.js +100 -109
- package/dist/esm/operations/streamingJobs.js.map +1 -1
- package/dist/esm/operations/subscriptions.js +45 -24
- package/dist/esm/operations/subscriptions.js.map +1 -1
- package/dist/esm/operations/transformations.js +1 -0
- package/dist/esm/operations/transformations.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/streamAnalyticsManagementClient.js +22 -5
- package/dist/esm/streamAnalyticsManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +791 -359
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/clusters.js +100 -136
- package/dist/react-native/operations/clusters.js.map +1 -1
- package/dist/react-native/operations/functions.js +34 -46
- package/dist/react-native/operations/functions.js.map +1 -1
- package/dist/react-native/operations/inputs.js +34 -46
- package/dist/react-native/operations/inputs.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/outputs.js +34 -46
- package/dist/react-native/operations/outputs.js.map +1 -1
- package/dist/react-native/operations/privateEndpoints.js +34 -46
- package/dist/react-native/operations/privateEndpoints.js.map +1 -1
- package/dist/react-native/operations/skuOperations.js +23 -40
- package/dist/react-native/operations/skuOperations.js.map +1 -1
- package/dist/react-native/operations/streamingJobs.js +100 -109
- package/dist/react-native/operations/streamingJobs.js.map +1 -1
- package/dist/react-native/operations/subscriptions.js +45 -24
- package/dist/react-native/operations/subscriptions.js.map +1 -1
- package/dist/react-native/operations/transformations.js +1 -0
- package/dist/react-native/operations/transformations.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/streamAnalyticsManagementClient.js +22 -5
- package/dist/react-native/streamAnalyticsManagementClient.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-streamanalytics-node.api.md +2128 -2128
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing Functions operations. */
|
|
20
20
|
class FunctionsImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class Functions class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -41,52 +42,35 @@ class FunctionsImpl {
|
|
|
41
42
|
return this;
|
|
42
43
|
},
|
|
43
44
|
byPage: (settings) => {
|
|
44
|
-
if (settings
|
|
45
|
+
if (settings?.maxPageSize) {
|
|
45
46
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
46
47
|
}
|
|
47
48
|
return this.listByStreamingJobPagingPage(resourceGroupName, jobName, options, settings);
|
|
48
49
|
},
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
|
-
listByStreamingJobPagingPage(resourceGroupName, jobName, options, settings) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
});
|
|
52
|
+
async *listByStreamingJobPagingPage(resourceGroupName, jobName, options, settings) {
|
|
53
|
+
let result;
|
|
54
|
+
let continuationToken = settings?.continuationToken;
|
|
55
|
+
if (!continuationToken) {
|
|
56
|
+
result = await this._listByStreamingJob(resourceGroupName, jobName, options);
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
60
|
+
yield page;
|
|
61
|
+
}
|
|
62
|
+
while (continuationToken) {
|
|
63
|
+
result = await this._listByStreamingJobNext(resourceGroupName, jobName, continuationToken, options);
|
|
64
|
+
continuationToken = result.nextLink;
|
|
65
|
+
let page = result.value || [];
|
|
66
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
67
|
+
yield page;
|
|
68
|
+
}
|
|
70
69
|
}
|
|
71
|
-
listByStreamingJobPagingAll(resourceGroupName, jobName, options) {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByStreamingJobPagingPage(resourceGroupName, jobName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
76
|
-
_c = _f.value;
|
|
77
|
-
_d = false;
|
|
78
|
-
const page = _c;
|
|
79
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
83
|
-
finally {
|
|
84
|
-
try {
|
|
85
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
86
|
-
}
|
|
87
|
-
finally { if (e_1) throw e_1.error; }
|
|
88
|
-
}
|
|
89
|
-
});
|
|
70
|
+
async *listByStreamingJobPagingAll(resourceGroupName, jobName, options) {
|
|
71
|
+
for await (const page of this.listByStreamingJobPagingPage(resourceGroupName, jobName, options)) {
|
|
72
|
+
yield* page;
|
|
73
|
+
}
|
|
90
74
|
}
|
|
91
75
|
/**
|
|
92
76
|
* Creates a function or replaces an already existing function under an existing streaming job.
|
|
@@ -159,14 +143,19 @@ class FunctionsImpl {
|
|
|
159
143
|
return this.client.sendOperationRequest(args, spec);
|
|
160
144
|
};
|
|
161
145
|
const sendOperationFn = async (args, spec) => {
|
|
162
|
-
var _a;
|
|
163
146
|
let currentRawResponse = undefined;
|
|
164
|
-
const providedCallback =
|
|
147
|
+
const providedCallback = args.options?.onResponse;
|
|
165
148
|
const callback = (rawResponse, flatResponse) => {
|
|
166
149
|
currentRawResponse = rawResponse;
|
|
167
|
-
providedCallback
|
|
150
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
151
|
+
};
|
|
152
|
+
const updatedArgs = {
|
|
153
|
+
...args,
|
|
154
|
+
options: {
|
|
155
|
+
...args.options,
|
|
156
|
+
onResponse: callback,
|
|
157
|
+
},
|
|
168
158
|
};
|
|
169
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
170
159
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
171
160
|
return {
|
|
172
161
|
flatResponse,
|
|
@@ -183,8 +172,8 @@ class FunctionsImpl {
|
|
|
183
172
|
spec: testOperationSpec,
|
|
184
173
|
});
|
|
185
174
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
186
|
-
restoreFrom: options
|
|
187
|
-
intervalInMs: options
|
|
175
|
+
restoreFrom: options?.resumeFrom,
|
|
176
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
188
177
|
});
|
|
189
178
|
await poller.poll();
|
|
190
179
|
return poller;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../src/operations/functions.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAoB9C,4CAA4C;AAC5C,6CAA6C;AAC7C,MAAa,aAAa;IAGxB;;;OAGG;IACH,YAAY,MAAuC;QACjD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,kBAAkB,CACvB,iBAAyB,EACzB,OAAe,EACf,OAAmD;QAEnD,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAC3C,iBAAiB,EACjB,OAAO,EACP,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC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AC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,sCAAsC,GAA6B;IACvE,IAAI,EAAE,mLAAmL;IACzL,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,2CAA2C;IACnE,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Functions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StreamAnalyticsManagementClient } from \"../streamAnalyticsManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n FunctionModel,\n FunctionsListByStreamingJobNextOptionalParams,\n FunctionsListByStreamingJobOptionalParams,\n FunctionsListByStreamingJobResponse,\n FunctionsCreateOrReplaceOptionalParams,\n FunctionsCreateOrReplaceResponse,\n FunctionsUpdateOptionalParams,\n FunctionsUpdateResponse,\n FunctionsDeleteOptionalParams,\n FunctionsGetOptionalParams,\n FunctionsGetResponse,\n FunctionsTestOptionalParams,\n FunctionsTestResponse,\n FunctionsRetrieveDefaultDefinitionOptionalParams,\n FunctionsRetrieveDefaultDefinitionResponse,\n FunctionsListByStreamingJobNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Functions operations. */\nexport class FunctionsImpl implements Functions {\n private readonly client: StreamAnalyticsManagementClient;\n\n /**\n * Initialize a new instance of the class Functions class.\n * @param client Reference to the service client\n */\n constructor(client: StreamAnalyticsManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the functions under the specified streaming job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param options The options parameters.\n */\n public listByStreamingJob(\n resourceGroupName: string,\n jobName: string,\n options?: FunctionsListByStreamingJobOptionalParams,\n ): PagedAsyncIterableIterator<FunctionModel> {\n const iter = this.listByStreamingJobPagingAll(\n resourceGroupName,\n jobName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByStreamingJobPagingPage(\n resourceGroupName,\n jobName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByStreamingJobPagingPage(\n resourceGroupName: string,\n jobName: string,\n options?: FunctionsListByStreamingJobOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<FunctionModel[]> {\n let result: FunctionsListByStreamingJobResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByStreamingJob(\n resourceGroupName,\n jobName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByStreamingJobNext(\n resourceGroupName,\n jobName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByStreamingJobPagingAll(\n resourceGroupName: string,\n jobName: string,\n options?: FunctionsListByStreamingJobOptionalParams,\n ): AsyncIterableIterator<FunctionModel> {\n for await (const page of this.listByStreamingJobPagingPage(\n resourceGroupName,\n jobName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates a function or replaces an already existing function under an existing streaming job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param functionName The name of the function.\n * @param functionParam The definition of the function that will be used to create a new function or\n * replace the existing one under the streaming job.\n * @param options The options parameters.\n */\n createOrReplace(\n resourceGroupName: string,\n jobName: string,\n functionName: string,\n functionParam: FunctionModel,\n options?: FunctionsCreateOrReplaceOptionalParams,\n ): Promise<FunctionsCreateOrReplaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, functionName, functionParam, options },\n createOrReplaceOperationSpec,\n );\n }\n\n /**\n * Updates an existing function under an existing streaming job. This can be used to partially update\n * (ie. update one or two properties) a function without affecting the rest the job or function\n * definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param functionName The name of the function.\n * @param functionParam A function object. The properties specified here will overwrite the\n * corresponding properties in the existing function (ie. Those properties will be updated). Any\n * properties that are set to null here will mean that the corresponding property in the existing\n * function will remain the same and not change as a result of this PATCH operation.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n jobName: string,\n functionName: string,\n functionParam: FunctionModel,\n options?: FunctionsUpdateOptionalParams,\n ): Promise<FunctionsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, functionName, functionParam, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Deletes a function from the streaming job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param functionName The name of the function.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n jobName: string,\n functionName: string,\n options?: FunctionsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, functionName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets details about the specified function.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param functionName The name of the function.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n jobName: string,\n functionName: string,\n options?: FunctionsGetOptionalParams,\n ): Promise<FunctionsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, functionName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Lists all of the functions under the specified streaming job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param options The options parameters.\n */\n private _listByStreamingJob(\n resourceGroupName: string,\n jobName: string,\n options?: FunctionsListByStreamingJobOptionalParams,\n ): Promise<FunctionsListByStreamingJobResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, options },\n listByStreamingJobOperationSpec,\n );\n }\n\n /**\n * Tests if the information provided for a function is valid. This can range from testing the\n * connection to the underlying web service behind the function or making sure the function code\n * provided is syntactically correct.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param functionName The name of the function.\n * @param options The options parameters.\n */\n async beginTest(\n resourceGroupName: string,\n jobName: string,\n functionName: string,\n options?: FunctionsTestOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<FunctionsTestResponse>,\n FunctionsTestResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<FunctionsTestResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, jobName, functionName, options },\n spec: testOperationSpec,\n });\n const poller = await createHttpPoller<\n FunctionsTestResponse,\n OperationState<FunctionsTestResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Tests if the information provided for a function is valid. This can range from testing the\n * connection to the underlying web service behind the function or making sure the function code\n * provided is syntactically correct.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param functionName The name of the function.\n * @param options The options parameters.\n */\n async beginTestAndWait(\n resourceGroupName: string,\n jobName: string,\n functionName: string,\n options?: FunctionsTestOptionalParams,\n ): Promise<FunctionsTestResponse> {\n const poller = await this.beginTest(\n resourceGroupName,\n jobName,\n functionName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Retrieves the default definition of a function based on the parameters specified.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param functionName The name of the function.\n * @param options The options parameters.\n */\n retrieveDefaultDefinition(\n resourceGroupName: string,\n jobName: string,\n functionName: string,\n options?: FunctionsRetrieveDefaultDefinitionOptionalParams,\n ): Promise<FunctionsRetrieveDefaultDefinitionResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, functionName, options },\n retrieveDefaultDefinitionOperationSpec,\n );\n }\n\n /**\n * ListByStreamingJobNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param nextLink The nextLink from the previous successful call to the ListByStreamingJob method.\n * @param options The options parameters.\n */\n private _listByStreamingJobNext(\n resourceGroupName: string,\n jobName: string,\n nextLink: string,\n options?: FunctionsListByStreamingJobNextOptionalParams,\n ): Promise<FunctionsListByStreamingJobNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, nextLink, options },\n listByStreamingJobNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrReplaceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.FunctionModel,\n headersMapper: Mappers.FunctionsCreateOrReplaceHeaders,\n },\n 201: {\n bodyMapper: Mappers.FunctionModel,\n headersMapper: Mappers.FunctionsCreateOrReplaceHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.functionParam,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.functionName,\n ],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.FunctionModel,\n headersMapper: Mappers.FunctionsUpdateHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.functionParam,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.functionName,\n ],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.functionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FunctionModel,\n headersMapper: Mappers.FunctionsGetHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.functionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByStreamingJobOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FunctionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.select],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst testOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}/test\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceTestStatus,\n },\n 201: {\n bodyMapper: Mappers.ResourceTestStatus,\n },\n 202: {\n bodyMapper: Mappers.ResourceTestStatus,\n },\n 204: {\n bodyMapper: Mappers.ResourceTestStatus,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.functionParam1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.functionName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst retrieveDefaultDefinitionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}/retrieveDefaultDefinition\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.FunctionModel,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.functionRetrieveDefaultDefinitionParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.functionName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst listByStreamingJobNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FunctionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../src/operations/functions.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAoB9C,4CAA4C;AAC5C,6CAA6C;AAC7C,MAAa,aAAa;IACP,MAAM,CAAkC;IAEzD;;;OAGG;IACH,YAAY,MAAuC;QACjD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,kBAAkB,CACvB,iBAAyB,EACzB,OAAe,EACf,OAAmD;QAEnD,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAC3C,iBAAiB,EACjB,OAAO,EACP,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YAC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ACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,2CAA2C;IACnE,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Functions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StreamAnalyticsManagementClient } from \"../streamAnalyticsManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n FunctionModel,\n FunctionsListByStreamingJobNextOptionalParams,\n FunctionsListByStreamingJobOptionalParams,\n FunctionsListByStreamingJobResponse,\n FunctionsCreateOrReplaceOptionalParams,\n FunctionsCreateOrReplaceResponse,\n FunctionsUpdateOptionalParams,\n FunctionsUpdateResponse,\n FunctionsDeleteOptionalParams,\n FunctionsGetOptionalParams,\n FunctionsGetResponse,\n FunctionsTestOptionalParams,\n FunctionsTestResponse,\n FunctionsRetrieveDefaultDefinitionOptionalParams,\n FunctionsRetrieveDefaultDefinitionResponse,\n FunctionsListByStreamingJobNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Functions operations. */\nexport class FunctionsImpl implements Functions {\n private readonly client: StreamAnalyticsManagementClient;\n\n /**\n * Initialize a new instance of the class Functions class.\n * @param client Reference to the service client\n */\n constructor(client: StreamAnalyticsManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the functions under the specified streaming job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param options The options parameters.\n */\n public listByStreamingJob(\n resourceGroupName: string,\n jobName: string,\n options?: FunctionsListByStreamingJobOptionalParams,\n ): PagedAsyncIterableIterator<FunctionModel> {\n const iter = this.listByStreamingJobPagingAll(\n resourceGroupName,\n jobName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByStreamingJobPagingPage(\n resourceGroupName,\n jobName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByStreamingJobPagingPage(\n resourceGroupName: string,\n jobName: string,\n options?: FunctionsListByStreamingJobOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<FunctionModel[]> {\n let result: FunctionsListByStreamingJobResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByStreamingJob(\n resourceGroupName,\n jobName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByStreamingJobNext(\n resourceGroupName,\n jobName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByStreamingJobPagingAll(\n resourceGroupName: string,\n jobName: string,\n options?: FunctionsListByStreamingJobOptionalParams,\n ): AsyncIterableIterator<FunctionModel> {\n for await (const page of this.listByStreamingJobPagingPage(\n resourceGroupName,\n jobName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates a function or replaces an already existing function under an existing streaming job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param functionName The name of the function.\n * @param functionParam The definition of the function that will be used to create a new function or\n * replace the existing one under the streaming job.\n * @param options The options parameters.\n */\n createOrReplace(\n resourceGroupName: string,\n jobName: string,\n functionName: string,\n functionParam: FunctionModel,\n options?: FunctionsCreateOrReplaceOptionalParams,\n ): Promise<FunctionsCreateOrReplaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, functionName, functionParam, options },\n createOrReplaceOperationSpec,\n );\n }\n\n /**\n * Updates an existing function under an existing streaming job. This can be used to partially update\n * (ie. update one or two properties) a function without affecting the rest the job or function\n * definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param functionName The name of the function.\n * @param functionParam A function object. The properties specified here will overwrite the\n * corresponding properties in the existing function (ie. Those properties will be updated). Any\n * properties that are set to null here will mean that the corresponding property in the existing\n * function will remain the same and not change as a result of this PATCH operation.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n jobName: string,\n functionName: string,\n functionParam: FunctionModel,\n options?: FunctionsUpdateOptionalParams,\n ): Promise<FunctionsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, functionName, functionParam, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Deletes a function from the streaming job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param functionName The name of the function.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n jobName: string,\n functionName: string,\n options?: FunctionsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, functionName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets details about the specified function.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param functionName The name of the function.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n jobName: string,\n functionName: string,\n options?: FunctionsGetOptionalParams,\n ): Promise<FunctionsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, functionName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Lists all of the functions under the specified streaming job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param options The options parameters.\n */\n private _listByStreamingJob(\n resourceGroupName: string,\n jobName: string,\n options?: FunctionsListByStreamingJobOptionalParams,\n ): Promise<FunctionsListByStreamingJobResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, options },\n listByStreamingJobOperationSpec,\n );\n }\n\n /**\n * Tests if the information provided for a function is valid. This can range from testing the\n * connection to the underlying web service behind the function or making sure the function code\n * provided is syntactically correct.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param functionName The name of the function.\n * @param options The options parameters.\n */\n async beginTest(\n resourceGroupName: string,\n jobName: string,\n functionName: string,\n options?: FunctionsTestOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<FunctionsTestResponse>,\n FunctionsTestResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<FunctionsTestResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, jobName, functionName, options },\n spec: testOperationSpec,\n });\n const poller = await createHttpPoller<\n FunctionsTestResponse,\n OperationState<FunctionsTestResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Tests if the information provided for a function is valid. This can range from testing the\n * connection to the underlying web service behind the function or making sure the function code\n * provided is syntactically correct.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param functionName The name of the function.\n * @param options The options parameters.\n */\n async beginTestAndWait(\n resourceGroupName: string,\n jobName: string,\n functionName: string,\n options?: FunctionsTestOptionalParams,\n ): Promise<FunctionsTestResponse> {\n const poller = await this.beginTest(\n resourceGroupName,\n jobName,\n functionName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Retrieves the default definition of a function based on the parameters specified.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param functionName The name of the function.\n * @param options The options parameters.\n */\n retrieveDefaultDefinition(\n resourceGroupName: string,\n jobName: string,\n functionName: string,\n options?: FunctionsRetrieveDefaultDefinitionOptionalParams,\n ): Promise<FunctionsRetrieveDefaultDefinitionResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, functionName, options },\n retrieveDefaultDefinitionOperationSpec,\n );\n }\n\n /**\n * ListByStreamingJobNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param nextLink The nextLink from the previous successful call to the ListByStreamingJob method.\n * @param options The options parameters.\n */\n private _listByStreamingJobNext(\n resourceGroupName: string,\n jobName: string,\n nextLink: string,\n options?: FunctionsListByStreamingJobNextOptionalParams,\n ): Promise<FunctionsListByStreamingJobNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, nextLink, options },\n listByStreamingJobNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrReplaceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.FunctionModel,\n headersMapper: Mappers.FunctionsCreateOrReplaceHeaders,\n },\n 201: {\n bodyMapper: Mappers.FunctionModel,\n headersMapper: Mappers.FunctionsCreateOrReplaceHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.functionParam,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.functionName,\n ],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.FunctionModel,\n headersMapper: Mappers.FunctionsUpdateHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.functionParam,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.functionName,\n ],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.functionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FunctionModel,\n headersMapper: Mappers.FunctionsGetHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.functionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByStreamingJobOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FunctionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.select],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst testOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}/test\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceTestStatus,\n },\n 201: {\n bodyMapper: Mappers.ResourceTestStatus,\n },\n 202: {\n bodyMapper: Mappers.ResourceTestStatus,\n },\n 204: {\n bodyMapper: Mappers.ResourceTestStatus,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.functionParam1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.functionName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst retrieveDefaultDefinitionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/functions/{functionName}/retrieveDefaultDefinition\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.FunctionModel,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.functionRetrieveDefaultDefinitionParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.functionName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst listByStreamingJobNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FunctionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing Inputs operations. */
|
|
20
20
|
class InputsImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class Inputs class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -41,52 +42,35 @@ class InputsImpl {
|
|
|
41
42
|
return this;
|
|
42
43
|
},
|
|
43
44
|
byPage: (settings) => {
|
|
44
|
-
if (settings
|
|
45
|
+
if (settings?.maxPageSize) {
|
|
45
46
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
46
47
|
}
|
|
47
48
|
return this.listByStreamingJobPagingPage(resourceGroupName, jobName, options, settings);
|
|
48
49
|
},
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
|
-
listByStreamingJobPagingPage(resourceGroupName, jobName, options, settings) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
});
|
|
52
|
+
async *listByStreamingJobPagingPage(resourceGroupName, jobName, options, settings) {
|
|
53
|
+
let result;
|
|
54
|
+
let continuationToken = settings?.continuationToken;
|
|
55
|
+
if (!continuationToken) {
|
|
56
|
+
result = await this._listByStreamingJob(resourceGroupName, jobName, options);
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
60
|
+
yield page;
|
|
61
|
+
}
|
|
62
|
+
while (continuationToken) {
|
|
63
|
+
result = await this._listByStreamingJobNext(resourceGroupName, jobName, continuationToken, options);
|
|
64
|
+
continuationToken = result.nextLink;
|
|
65
|
+
let page = result.value || [];
|
|
66
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
67
|
+
yield page;
|
|
68
|
+
}
|
|
70
69
|
}
|
|
71
|
-
listByStreamingJobPagingAll(resourceGroupName, jobName, options) {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByStreamingJobPagingPage(resourceGroupName, jobName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
76
|
-
_c = _f.value;
|
|
77
|
-
_d = false;
|
|
78
|
-
const page = _c;
|
|
79
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
83
|
-
finally {
|
|
84
|
-
try {
|
|
85
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
86
|
-
}
|
|
87
|
-
finally { if (e_1) throw e_1.error; }
|
|
88
|
-
}
|
|
89
|
-
});
|
|
70
|
+
async *listByStreamingJobPagingAll(resourceGroupName, jobName, options) {
|
|
71
|
+
for await (const page of this.listByStreamingJobPagingPage(resourceGroupName, jobName, options)) {
|
|
72
|
+
yield* page;
|
|
73
|
+
}
|
|
90
74
|
}
|
|
91
75
|
/**
|
|
92
76
|
* Creates an input or replaces an already existing input under an existing streaming job.
|
|
@@ -156,14 +140,19 @@ class InputsImpl {
|
|
|
156
140
|
return this.client.sendOperationRequest(args, spec);
|
|
157
141
|
};
|
|
158
142
|
const sendOperationFn = async (args, spec) => {
|
|
159
|
-
var _a;
|
|
160
143
|
let currentRawResponse = undefined;
|
|
161
|
-
const providedCallback =
|
|
144
|
+
const providedCallback = args.options?.onResponse;
|
|
162
145
|
const callback = (rawResponse, flatResponse) => {
|
|
163
146
|
currentRawResponse = rawResponse;
|
|
164
|
-
providedCallback
|
|
147
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
148
|
+
};
|
|
149
|
+
const updatedArgs = {
|
|
150
|
+
...args,
|
|
151
|
+
options: {
|
|
152
|
+
...args.options,
|
|
153
|
+
onResponse: callback,
|
|
154
|
+
},
|
|
165
155
|
};
|
|
166
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
167
156
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
168
157
|
return {
|
|
169
158
|
flatResponse,
|
|
@@ -180,8 +169,8 @@ class InputsImpl {
|
|
|
180
169
|
spec: testOperationSpec,
|
|
181
170
|
});
|
|
182
171
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
183
|
-
restoreFrom: options
|
|
184
|
-
intervalInMs: options
|
|
172
|
+
restoreFrom: options?.resumeFrom,
|
|
173
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
185
174
|
});
|
|
186
175
|
await poller.poll();
|
|
187
176
|
return poller;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputs.js","sourceRoot":"","sources":["../../../src/operations/inputs.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,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C,MAAM;IAC9B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Inputs } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StreamAnalyticsManagementClient } from \"../streamAnalyticsManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Input,\n InputsListByStreamingJobNextOptionalParams,\n InputsListByStreamingJobOptionalParams,\n InputsListByStreamingJobResponse,\n InputsCreateOrReplaceOptionalParams,\n InputsCreateOrReplaceResponse,\n InputsUpdateOptionalParams,\n InputsUpdateResponse,\n InputsDeleteOptionalParams,\n InputsGetOptionalParams,\n InputsGetResponse,\n InputsTestOptionalParams,\n InputsTestResponse,\n InputsListByStreamingJobNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Inputs operations. */\nexport class InputsImpl implements Inputs {\n private readonly client: StreamAnalyticsManagementClient;\n\n /**\n * Initialize a new instance of the class Inputs class.\n * @param client Reference to the service client\n */\n constructor(client: StreamAnalyticsManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the inputs under the specified streaming job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param options The options parameters.\n */\n public listByStreamingJob(\n resourceGroupName: string,\n jobName: string,\n options?: InputsListByStreamingJobOptionalParams,\n ): PagedAsyncIterableIterator<Input> {\n const iter = this.listByStreamingJobPagingAll(\n resourceGroupName,\n jobName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByStreamingJobPagingPage(\n resourceGroupName,\n jobName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByStreamingJobPagingPage(\n resourceGroupName: string,\n jobName: string,\n options?: InputsListByStreamingJobOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Input[]> {\n let result: InputsListByStreamingJobResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByStreamingJob(\n resourceGroupName,\n jobName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByStreamingJobNext(\n resourceGroupName,\n jobName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByStreamingJobPagingAll(\n resourceGroupName: string,\n jobName: string,\n options?: InputsListByStreamingJobOptionalParams,\n ): AsyncIterableIterator<Input> {\n for await (const page of this.listByStreamingJobPagingPage(\n resourceGroupName,\n jobName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates an input or replaces an already existing input under an existing streaming job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param inputName The name of the input.\n * @param input The definition of the input that will be used to create a new input or replace the\n * existing one under the streaming job.\n * @param options The options parameters.\n */\n createOrReplace(\n resourceGroupName: string,\n jobName: string,\n inputName: string,\n input: Input,\n options?: InputsCreateOrReplaceOptionalParams,\n ): Promise<InputsCreateOrReplaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, inputName, input, options },\n createOrReplaceOperationSpec,\n );\n }\n\n /**\n * Updates an existing input under an existing streaming job. This can be used to partially update (ie.\n * update one or two properties) an input without affecting the rest the job or input definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param inputName The name of the input.\n * @param input An Input object. The properties specified here will overwrite the corresponding\n * properties in the existing input (ie. Those properties will be updated). Any properties that are set\n * to null here will mean that the corresponding property in the existing input will remain the same\n * and not change as a result of this PATCH operation.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n jobName: string,\n inputName: string,\n input: Input,\n options?: InputsUpdateOptionalParams,\n ): Promise<InputsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, inputName, input, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Deletes an input from the streaming job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param inputName The name of the input.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n jobName: string,\n inputName: string,\n options?: InputsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, inputName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets details about the specified input.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param inputName The name of the input.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n jobName: string,\n inputName: string,\n options?: InputsGetOptionalParams,\n ): Promise<InputsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, inputName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Lists all of the inputs under the specified streaming job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param options The options parameters.\n */\n private _listByStreamingJob(\n resourceGroupName: string,\n jobName: string,\n options?: InputsListByStreamingJobOptionalParams,\n ): Promise<InputsListByStreamingJobResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, options },\n listByStreamingJobOperationSpec,\n );\n }\n\n /**\n * Tests whether an input’s datasource is reachable and usable by the Azure Stream Analytics service.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param inputName The name of the input.\n * @param options The options parameters.\n */\n async beginTest(\n resourceGroupName: string,\n jobName: string,\n inputName: string,\n options?: InputsTestOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<InputsTestResponse>, InputsTestResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<InputsTestResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, jobName, inputName, options },\n spec: testOperationSpec,\n });\n const poller = await createHttpPoller<\n InputsTestResponse,\n OperationState<InputsTestResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Tests whether an input’s datasource is reachable and usable by the Azure Stream Analytics service.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param inputName The name of the input.\n * @param options The options parameters.\n */\n async beginTestAndWait(\n resourceGroupName: string,\n jobName: string,\n inputName: string,\n options?: InputsTestOptionalParams,\n ): Promise<InputsTestResponse> {\n const poller = await this.beginTest(\n resourceGroupName,\n jobName,\n inputName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByStreamingJobNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param nextLink The nextLink from the previous successful call to the ListByStreamingJob method.\n * @param options The options parameters.\n */\n private _listByStreamingJobNext(\n resourceGroupName: string,\n jobName: string,\n nextLink: string,\n options?: InputsListByStreamingJobNextOptionalParams,\n ): Promise<InputsListByStreamingJobNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, nextLink, options },\n listByStreamingJobNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrReplaceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/inputs/{inputName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Input,\n headersMapper: Mappers.InputsCreateOrReplaceHeaders,\n },\n 201: {\n bodyMapper: Mappers.Input,\n headersMapper: Mappers.InputsCreateOrReplaceHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.input,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.inputName,\n ],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/inputs/{inputName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Input,\n headersMapper: Mappers.InputsUpdateHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.input,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.inputName,\n ],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/inputs/{inputName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.inputName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/inputs/{inputName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Input,\n headersMapper: Mappers.InputsGetHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.inputName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByStreamingJobOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/inputs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InputListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.select],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst testOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/inputs/{inputName}/test\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceTestStatus,\n },\n 201: {\n bodyMapper: Mappers.ResourceTestStatus,\n },\n 202: {\n bodyMapper: Mappers.ResourceTestStatus,\n },\n 204: {\n bodyMapper: Mappers.ResourceTestStatus,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.input1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.inputName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst listByStreamingJobNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InputListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"inputs.js","sourceRoot":"","sources":["../../../src/operations/inputs.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAkB9C,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAa,UAAU;IACJ,MAAM,CAAkC;IAEzD;;;OAGG;IACH,YAAY,MAAuC;QACjD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,kBAAkB,CACvB,iBAAyB,EACzB,OAAe,EACf,OAAgD;QAEhD,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAC3C,iBAAiB,EACjB,OAAO,EACP,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,I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GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,MAAM;IAC9B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Inputs } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StreamAnalyticsManagementClient } from \"../streamAnalyticsManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Input,\n InputsListByStreamingJobNextOptionalParams,\n InputsListByStreamingJobOptionalParams,\n InputsListByStreamingJobResponse,\n InputsCreateOrReplaceOptionalParams,\n InputsCreateOrReplaceResponse,\n InputsUpdateOptionalParams,\n InputsUpdateResponse,\n InputsDeleteOptionalParams,\n InputsGetOptionalParams,\n InputsGetResponse,\n InputsTestOptionalParams,\n InputsTestResponse,\n InputsListByStreamingJobNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Inputs operations. */\nexport class InputsImpl implements Inputs {\n private readonly client: StreamAnalyticsManagementClient;\n\n /**\n * Initialize a new instance of the class Inputs class.\n * @param client Reference to the service client\n */\n constructor(client: StreamAnalyticsManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the inputs under the specified streaming job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param options The options parameters.\n */\n public listByStreamingJob(\n resourceGroupName: string,\n jobName: string,\n options?: InputsListByStreamingJobOptionalParams,\n ): PagedAsyncIterableIterator<Input> {\n const iter = this.listByStreamingJobPagingAll(\n resourceGroupName,\n jobName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByStreamingJobPagingPage(\n resourceGroupName,\n jobName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByStreamingJobPagingPage(\n resourceGroupName: string,\n jobName: string,\n options?: InputsListByStreamingJobOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Input[]> {\n let result: InputsListByStreamingJobResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByStreamingJob(\n resourceGroupName,\n jobName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByStreamingJobNext(\n resourceGroupName,\n jobName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByStreamingJobPagingAll(\n resourceGroupName: string,\n jobName: string,\n options?: InputsListByStreamingJobOptionalParams,\n ): AsyncIterableIterator<Input> {\n for await (const page of this.listByStreamingJobPagingPage(\n resourceGroupName,\n jobName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates an input or replaces an already existing input under an existing streaming job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param inputName The name of the input.\n * @param input The definition of the input that will be used to create a new input or replace the\n * existing one under the streaming job.\n * @param options The options parameters.\n */\n createOrReplace(\n resourceGroupName: string,\n jobName: string,\n inputName: string,\n input: Input,\n options?: InputsCreateOrReplaceOptionalParams,\n ): Promise<InputsCreateOrReplaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, inputName, input, options },\n createOrReplaceOperationSpec,\n );\n }\n\n /**\n * Updates an existing input under an existing streaming job. This can be used to partially update (ie.\n * update one or two properties) an input without affecting the rest the job or input definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param inputName The name of the input.\n * @param input An Input object. The properties specified here will overwrite the corresponding\n * properties in the existing input (ie. Those properties will be updated). Any properties that are set\n * to null here will mean that the corresponding property in the existing input will remain the same\n * and not change as a result of this PATCH operation.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n jobName: string,\n inputName: string,\n input: Input,\n options?: InputsUpdateOptionalParams,\n ): Promise<InputsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, inputName, input, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Deletes an input from the streaming job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param inputName The name of the input.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n jobName: string,\n inputName: string,\n options?: InputsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, inputName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets details about the specified input.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param inputName The name of the input.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n jobName: string,\n inputName: string,\n options?: InputsGetOptionalParams,\n ): Promise<InputsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, inputName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Lists all of the inputs under the specified streaming job.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param options The options parameters.\n */\n private _listByStreamingJob(\n resourceGroupName: string,\n jobName: string,\n options?: InputsListByStreamingJobOptionalParams,\n ): Promise<InputsListByStreamingJobResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, options },\n listByStreamingJobOperationSpec,\n );\n }\n\n /**\n * Tests whether an input’s datasource is reachable and usable by the Azure Stream Analytics service.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param inputName The name of the input.\n * @param options The options parameters.\n */\n async beginTest(\n resourceGroupName: string,\n jobName: string,\n inputName: string,\n options?: InputsTestOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<InputsTestResponse>, InputsTestResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<InputsTestResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, jobName, inputName, options },\n spec: testOperationSpec,\n });\n const poller = await createHttpPoller<\n InputsTestResponse,\n OperationState<InputsTestResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Tests whether an input’s datasource is reachable and usable by the Azure Stream Analytics service.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param inputName The name of the input.\n * @param options The options parameters.\n */\n async beginTestAndWait(\n resourceGroupName: string,\n jobName: string,\n inputName: string,\n options?: InputsTestOptionalParams,\n ): Promise<InputsTestResponse> {\n const poller = await this.beginTest(\n resourceGroupName,\n jobName,\n inputName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByStreamingJobNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param jobName The name of the streaming job.\n * @param nextLink The nextLink from the previous successful call to the ListByStreamingJob method.\n * @param options The options parameters.\n */\n private _listByStreamingJobNext(\n resourceGroupName: string,\n jobName: string,\n nextLink: string,\n options?: InputsListByStreamingJobNextOptionalParams,\n ): Promise<InputsListByStreamingJobNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, nextLink, options },\n listByStreamingJobNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrReplaceOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/inputs/{inputName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Input,\n headersMapper: Mappers.InputsCreateOrReplaceHeaders,\n },\n 201: {\n bodyMapper: Mappers.Input,\n headersMapper: Mappers.InputsCreateOrReplaceHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.input,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.inputName,\n ],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/inputs/{inputName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Input,\n headersMapper: Mappers.InputsUpdateHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.input,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.inputName,\n ],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/inputs/{inputName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.inputName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/inputs/{inputName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Input,\n headersMapper: Mappers.InputsGetHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.inputName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByStreamingJobOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/inputs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InputListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.select],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst testOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/inputs/{inputName}/test\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceTestStatus,\n },\n 201: {\n bodyMapper: Mappers.ResourceTestStatus,\n },\n 202: {\n bodyMapper: Mappers.ResourceTestStatus,\n },\n 204: {\n bodyMapper: Mappers.ResourceTestStatus,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.input1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.inputName,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst listByStreamingJobNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InputListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing Operations operations. */
|
|
18
18
|
class OperationsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class Operations class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -37,52 +38,35 @@ class OperationsImpl {
|
|
|
37
38
|
return this;
|
|
38
39
|
},
|
|
39
40
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
41
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
43
|
}
|
|
43
44
|
return this.listPagingPage(options, settings);
|
|
44
45
|
},
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
|
-
listPagingPage(options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
48
|
+
async *listPagingPage(options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._list(options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listNext(continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
66
65
|
}
|
|
67
|
-
listPagingAll(options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
66
|
+
async *listPagingAll(options) {
|
|
67
|
+
for await (const page of this.listPagingPage(options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
86
70
|
}
|
|
87
71
|
/**
|
|
88
72
|
* Lists all of the available Stream Analytics related operations.
|