@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.
Files changed (115) hide show
  1. package/dist/browser/lroImpl.js +7 -3
  2. package/dist/browser/lroImpl.js.map +1 -1
  3. package/dist/browser/models/mappers.js +791 -359
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/clusters.js +100 -136
  6. package/dist/browser/operations/clusters.js.map +1 -1
  7. package/dist/browser/operations/functions.js +34 -46
  8. package/dist/browser/operations/functions.js.map +1 -1
  9. package/dist/browser/operations/inputs.js +34 -46
  10. package/dist/browser/operations/inputs.js.map +1 -1
  11. package/dist/browser/operations/operations.js +23 -40
  12. package/dist/browser/operations/operations.js.map +1 -1
  13. package/dist/browser/operations/outputs.js +34 -46
  14. package/dist/browser/operations/outputs.js.map +1 -1
  15. package/dist/browser/operations/privateEndpoints.js +34 -46
  16. package/dist/browser/operations/privateEndpoints.js.map +1 -1
  17. package/dist/browser/operations/skuOperations.js +23 -40
  18. package/dist/browser/operations/skuOperations.js.map +1 -1
  19. package/dist/browser/operations/streamingJobs.js +100 -109
  20. package/dist/browser/operations/streamingJobs.js.map +1 -1
  21. package/dist/browser/operations/subscriptions.js +45 -24
  22. package/dist/browser/operations/subscriptions.js.map +1 -1
  23. package/dist/browser/operations/transformations.js +1 -0
  24. package/dist/browser/operations/transformations.js.map +1 -1
  25. package/dist/browser/pagingHelper.js +2 -4
  26. package/dist/browser/pagingHelper.js.map +1 -1
  27. package/dist/browser/streamAnalyticsManagementClient.js +22 -5
  28. package/dist/browser/streamAnalyticsManagementClient.js.map +1 -1
  29. package/dist/commonjs/lroImpl.js +7 -3
  30. package/dist/commonjs/lroImpl.js.map +1 -1
  31. package/dist/commonjs/models/mappers.js +791 -359
  32. package/dist/commonjs/models/mappers.js.map +1 -1
  33. package/dist/commonjs/operations/clusters.js +100 -135
  34. package/dist/commonjs/operations/clusters.js.map +1 -1
  35. package/dist/commonjs/operations/functions.js +34 -45
  36. package/dist/commonjs/operations/functions.js.map +1 -1
  37. package/dist/commonjs/operations/inputs.js +34 -45
  38. package/dist/commonjs/operations/inputs.js.map +1 -1
  39. package/dist/commonjs/operations/operations.js +23 -39
  40. package/dist/commonjs/operations/operations.js.map +1 -1
  41. package/dist/commonjs/operations/outputs.js +34 -45
  42. package/dist/commonjs/operations/outputs.js.map +1 -1
  43. package/dist/commonjs/operations/privateEndpoints.js +34 -45
  44. package/dist/commonjs/operations/privateEndpoints.js.map +1 -1
  45. package/dist/commonjs/operations/skuOperations.js +23 -39
  46. package/dist/commonjs/operations/skuOperations.js.map +1 -1
  47. package/dist/commonjs/operations/streamingJobs.js +100 -108
  48. package/dist/commonjs/operations/streamingJobs.js.map +1 -1
  49. package/dist/commonjs/operations/subscriptions.js +45 -24
  50. package/dist/commonjs/operations/subscriptions.js.map +1 -1
  51. package/dist/commonjs/operations/transformations.js +1 -0
  52. package/dist/commonjs/operations/transformations.js.map +1 -1
  53. package/dist/commonjs/pagingHelper.js +2 -4
  54. package/dist/commonjs/pagingHelper.js.map +1 -1
  55. package/dist/commonjs/streamAnalyticsManagementClient.js +22 -5
  56. package/dist/commonjs/streamAnalyticsManagementClient.js.map +1 -1
  57. package/dist/commonjs/tsdoc-metadata.json +11 -11
  58. package/dist/esm/lroImpl.js +7 -3
  59. package/dist/esm/lroImpl.js.map +1 -1
  60. package/dist/esm/models/mappers.js +791 -359
  61. package/dist/esm/models/mappers.js.map +1 -1
  62. package/dist/esm/operations/clusters.js +100 -136
  63. package/dist/esm/operations/clusters.js.map +1 -1
  64. package/dist/esm/operations/functions.js +34 -46
  65. package/dist/esm/operations/functions.js.map +1 -1
  66. package/dist/esm/operations/inputs.js +34 -46
  67. package/dist/esm/operations/inputs.js.map +1 -1
  68. package/dist/esm/operations/operations.js +23 -40
  69. package/dist/esm/operations/operations.js.map +1 -1
  70. package/dist/esm/operations/outputs.js +34 -46
  71. package/dist/esm/operations/outputs.js.map +1 -1
  72. package/dist/esm/operations/privateEndpoints.js +34 -46
  73. package/dist/esm/operations/privateEndpoints.js.map +1 -1
  74. package/dist/esm/operations/skuOperations.js +23 -40
  75. package/dist/esm/operations/skuOperations.js.map +1 -1
  76. package/dist/esm/operations/streamingJobs.js +100 -109
  77. package/dist/esm/operations/streamingJobs.js.map +1 -1
  78. package/dist/esm/operations/subscriptions.js +45 -24
  79. package/dist/esm/operations/subscriptions.js.map +1 -1
  80. package/dist/esm/operations/transformations.js +1 -0
  81. package/dist/esm/operations/transformations.js.map +1 -1
  82. package/dist/esm/pagingHelper.js +2 -4
  83. package/dist/esm/pagingHelper.js.map +1 -1
  84. package/dist/esm/streamAnalyticsManagementClient.js +22 -5
  85. package/dist/esm/streamAnalyticsManagementClient.js.map +1 -1
  86. package/dist/react-native/lroImpl.js +7 -3
  87. package/dist/react-native/lroImpl.js.map +1 -1
  88. package/dist/react-native/models/mappers.js +791 -359
  89. package/dist/react-native/models/mappers.js.map +1 -1
  90. package/dist/react-native/operations/clusters.js +100 -136
  91. package/dist/react-native/operations/clusters.js.map +1 -1
  92. package/dist/react-native/operations/functions.js +34 -46
  93. package/dist/react-native/operations/functions.js.map +1 -1
  94. package/dist/react-native/operations/inputs.js +34 -46
  95. package/dist/react-native/operations/inputs.js.map +1 -1
  96. package/dist/react-native/operations/operations.js +23 -40
  97. package/dist/react-native/operations/operations.js.map +1 -1
  98. package/dist/react-native/operations/outputs.js +34 -46
  99. package/dist/react-native/operations/outputs.js.map +1 -1
  100. package/dist/react-native/operations/privateEndpoints.js +34 -46
  101. package/dist/react-native/operations/privateEndpoints.js.map +1 -1
  102. package/dist/react-native/operations/skuOperations.js +23 -40
  103. package/dist/react-native/operations/skuOperations.js.map +1 -1
  104. package/dist/react-native/operations/streamingJobs.js +100 -109
  105. package/dist/react-native/operations/streamingJobs.js.map +1 -1
  106. package/dist/react-native/operations/subscriptions.js +45 -24
  107. package/dist/react-native/operations/subscriptions.js.map +1 -1
  108. package/dist/react-native/operations/transformations.js +1 -0
  109. package/dist/react-native/operations/transformations.js.map +1 -1
  110. package/dist/react-native/pagingHelper.js +2 -4
  111. package/dist/react-native/pagingHelper.js.map +1 -1
  112. package/dist/react-native/streamAnalyticsManagementClient.js +22 -5
  113. package/dist/react-native/streamAnalyticsManagementClient.js.map +1 -1
  114. package/package.json +2 -2
  115. package/review/arm-streamanalytics-node.api.md +2128 -2128
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
15
14
  /// <reference lib="esnext.asynciterable" />
16
15
  /** Class containing Functions operations. */
17
16
  export class FunctionsImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class Functions class.
20
20
  * @param client Reference to the service client
@@ -38,52 +38,35 @@ export class FunctionsImpl {
38
38
  return this;
39
39
  },
40
40
  byPage: (settings) => {
41
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
+ if (settings?.maxPageSize) {
42
42
  throw new Error("maxPageSize is not supported by this operation.");
43
43
  }
44
44
  return this.listByStreamingJobPagingPage(resourceGroupName, jobName, options, settings);
45
45
  },
46
46
  };
47
47
  }
48
- listByStreamingJobPagingPage(resourceGroupName, jobName, options, settings) {
49
- return __asyncGenerator(this, arguments, function* listByStreamingJobPagingPage_1() {
50
- let result;
51
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
- if (!continuationToken) {
53
- result = yield __await(this._listByStreamingJob(resourceGroupName, jobName, options));
54
- let page = result.value || [];
55
- continuationToken = result.nextLink;
56
- setContinuationToken(page, continuationToken);
57
- yield yield __await(page);
58
- }
59
- while (continuationToken) {
60
- result = yield __await(this._listByStreamingJobNext(resourceGroupName, jobName, continuationToken, options));
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- setContinuationToken(page, continuationToken);
64
- yield yield __await(page);
65
- }
66
- });
48
+ async *listByStreamingJobPagingPage(resourceGroupName, jobName, options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._listByStreamingJob(resourceGroupName, jobName, options);
53
+ let page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ setContinuationToken(page, continuationToken);
56
+ yield page;
57
+ }
58
+ while (continuationToken) {
59
+ result = await this._listByStreamingJobNext(resourceGroupName, jobName, continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ setContinuationToken(page, continuationToken);
63
+ yield page;
64
+ }
67
65
  }
68
- listByStreamingJobPagingAll(resourceGroupName, jobName, options) {
69
- return __asyncGenerator(this, arguments, function* listByStreamingJobPagingAll_1() {
70
- var _a, e_1, _b, _c;
71
- try {
72
- for (var _d = true, _e = __asyncValues(this.listByStreamingJobPagingPage(resourceGroupName, jobName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
73
- _c = _f.value;
74
- _d = false;
75
- const page = _c;
76
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
77
- }
78
- }
79
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
80
- finally {
81
- try {
82
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
83
- }
84
- finally { if (e_1) throw e_1.error; }
85
- }
86
- });
66
+ async *listByStreamingJobPagingAll(resourceGroupName, jobName, options) {
67
+ for await (const page of this.listByStreamingJobPagingPage(resourceGroupName, jobName, options)) {
68
+ yield* page;
69
+ }
87
70
  }
88
71
  /**
89
72
  * Creates a function or replaces an already existing function under an existing streaming job.
@@ -156,14 +139,19 @@ export class FunctionsImpl {
156
139
  return this.client.sendOperationRequest(args, spec);
157
140
  };
158
141
  const sendOperationFn = async (args, spec) => {
159
- var _a;
160
142
  let currentRawResponse = undefined;
161
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
143
+ const providedCallback = args.options?.onResponse;
162
144
  const callback = (rawResponse, flatResponse) => {
163
145
  currentRawResponse = rawResponse;
164
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
146
+ providedCallback?.(rawResponse, flatResponse);
147
+ };
148
+ const updatedArgs = {
149
+ ...args,
150
+ options: {
151
+ ...args.options,
152
+ onResponse: callback,
153
+ },
165
154
  };
166
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
167
155
  const flatResponse = await directSendOperation(updatedArgs, spec);
168
156
  return {
169
157
  flatResponse,
@@ -180,8 +168,8 @@ export class FunctionsImpl {
180
168
  spec: testOperationSpec,
181
169
  });
182
170
  const poller = await createHttpPoller(lro, {
183
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
184
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
171
+ restoreFrom: options?.resumeFrom,
172
+ intervalInMs: options?.updateIntervalInMs,
185
173
  });
186
174
  await poller.poll();
187
175
  return poller;
@@ -1 +1 @@
1
- {"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../src/operations/functions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAoB9C,4CAA4C;AAC5C,6CAA6C;AAC7C,MA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,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,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,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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"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
15
14
  /// <reference lib="esnext.asynciterable" />
16
15
  /** Class containing Inputs operations. */
17
16
  export class InputsImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class Inputs class.
20
20
  * @param client Reference to the service client
@@ -38,52 +38,35 @@ export class InputsImpl {
38
38
  return this;
39
39
  },
40
40
  byPage: (settings) => {
41
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
+ if (settings?.maxPageSize) {
42
42
  throw new Error("maxPageSize is not supported by this operation.");
43
43
  }
44
44
  return this.listByStreamingJobPagingPage(resourceGroupName, jobName, options, settings);
45
45
  },
46
46
  };
47
47
  }
48
- listByStreamingJobPagingPage(resourceGroupName, jobName, options, settings) {
49
- return __asyncGenerator(this, arguments, function* listByStreamingJobPagingPage_1() {
50
- let result;
51
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
- if (!continuationToken) {
53
- result = yield __await(this._listByStreamingJob(resourceGroupName, jobName, options));
54
- let page = result.value || [];
55
- continuationToken = result.nextLink;
56
- setContinuationToken(page, continuationToken);
57
- yield yield __await(page);
58
- }
59
- while (continuationToken) {
60
- result = yield __await(this._listByStreamingJobNext(resourceGroupName, jobName, continuationToken, options));
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- setContinuationToken(page, continuationToken);
64
- yield yield __await(page);
65
- }
66
- });
48
+ async *listByStreamingJobPagingPage(resourceGroupName, jobName, options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._listByStreamingJob(resourceGroupName, jobName, options);
53
+ let page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ setContinuationToken(page, continuationToken);
56
+ yield page;
57
+ }
58
+ while (continuationToken) {
59
+ result = await this._listByStreamingJobNext(resourceGroupName, jobName, continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ setContinuationToken(page, continuationToken);
63
+ yield page;
64
+ }
67
65
  }
68
- listByStreamingJobPagingAll(resourceGroupName, jobName, options) {
69
- return __asyncGenerator(this, arguments, function* listByStreamingJobPagingAll_1() {
70
- var _a, e_1, _b, _c;
71
- try {
72
- for (var _d = true, _e = __asyncValues(this.listByStreamingJobPagingPage(resourceGroupName, jobName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
73
- _c = _f.value;
74
- _d = false;
75
- const page = _c;
76
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
77
- }
78
- }
79
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
80
- finally {
81
- try {
82
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
83
- }
84
- finally { if (e_1) throw e_1.error; }
85
- }
86
- });
66
+ async *listByStreamingJobPagingAll(resourceGroupName, jobName, options) {
67
+ for await (const page of this.listByStreamingJobPagingPage(resourceGroupName, jobName, options)) {
68
+ yield* page;
69
+ }
87
70
  }
88
71
  /**
89
72
  * Creates an input or replaces an already existing input under an existing streaming job.
@@ -153,14 +136,19 @@ export class InputsImpl {
153
136
  return this.client.sendOperationRequest(args, spec);
154
137
  };
155
138
  const sendOperationFn = async (args, spec) => {
156
- var _a;
157
139
  let currentRawResponse = undefined;
158
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
140
+ const providedCallback = args.options?.onResponse;
159
141
  const callback = (rawResponse, flatResponse) => {
160
142
  currentRawResponse = rawResponse;
161
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
143
+ providedCallback?.(rawResponse, flatResponse);
144
+ };
145
+ const updatedArgs = {
146
+ ...args,
147
+ options: {
148
+ ...args.options,
149
+ onResponse: callback,
150
+ },
162
151
  };
163
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
164
152
  const flatResponse = await directSendOperation(updatedArgs, spec);
165
153
  return {
166
154
  flatResponse,
@@ -177,8 +165,8 @@ export class InputsImpl {
177
165
  spec: testOperationSpec,
178
166
  });
179
167
  const poller = await createHttpPoller(lro, {
180
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
181
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
168
+ restoreFrom: options?.resumeFrom,
169
+ intervalInMs: options?.updateIntervalInMs,
182
170
  });
183
171
  await poller.poll();
184
172
  return poller;
@@ -1 +1 @@
1
- {"version":3,"file":"inputs.js","sourceRoot":"","sources":["../../../src/operations/inputs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAkB9C,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAM,OAAO,UAAU;IAGrB;;;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,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,4BAA4B,CACtC,iBAAiB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ourcesContent":["/*\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,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aA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AC7D,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"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing Operations operations. */
15
14
  export class OperationsImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class Operations class.
18
18
  * @param client Reference to the service client
@@ -34,52 +34,35 @@ export class OperationsImpl {
34
34
  return this;
35
35
  },
36
36
  byPage: (settings) => {
37
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
37
+ if (settings?.maxPageSize) {
38
38
  throw new Error("maxPageSize is not supported by this operation.");
39
39
  }
40
40
  return this.listPagingPage(options, settings);
41
41
  },
42
42
  };
43
43
  }
44
- listPagingPage(options, settings) {
45
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
46
- let result;
47
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
48
- if (!continuationToken) {
49
- result = yield __await(this._list(options));
50
- let page = result.value || [];
51
- continuationToken = result.nextLink;
52
- setContinuationToken(page, continuationToken);
53
- yield yield __await(page);
54
- }
55
- while (continuationToken) {
56
- result = yield __await(this._listNext(continuationToken, options));
57
- continuationToken = result.nextLink;
58
- let page = result.value || [];
59
- setContinuationToken(page, continuationToken);
60
- yield yield __await(page);
61
- }
62
- });
44
+ async *listPagingPage(options, settings) {
45
+ let result;
46
+ let continuationToken = settings?.continuationToken;
47
+ if (!continuationToken) {
48
+ result = await this._list(options);
49
+ let page = result.value || [];
50
+ continuationToken = result.nextLink;
51
+ setContinuationToken(page, continuationToken);
52
+ yield page;
53
+ }
54
+ while (continuationToken) {
55
+ result = await this._listNext(continuationToken, options);
56
+ continuationToken = result.nextLink;
57
+ let page = result.value || [];
58
+ setContinuationToken(page, continuationToken);
59
+ yield page;
60
+ }
63
61
  }
64
- listPagingAll(options) {
65
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
66
- var _a, e_1, _b, _c;
67
- try {
68
- for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
69
- _c = _f.value;
70
- _d = false;
71
- const page = _c;
72
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
73
- }
74
- }
75
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
76
- finally {
77
- try {
78
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
79
- }
80
- finally { if (e_1) throw e_1.error; }
81
- }
82
- });
62
+ async *listPagingAll(options) {
63
+ for await (const page of this.listPagingPage(options)) {
64
+ yield* page;
65
+ }
83
66
  }
84
67
  /**
85
68
  * Lists all of the available Stream Analytics related operations.