@azure/arm-streamanalytics 5.0.0-alpha.20250718.1 → 5.0.0-alpha.20250730.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
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.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;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAuC;QACjD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,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,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;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,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;IAED;;;;OAIG;IACK,SAAS,CACf,QAAgB,EAChB,OAA0C;QAE1C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,OAAO,EAAE,EACrB,qBAAqB,CACtB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,iDAAiD;IACvD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,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 { Operations } 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 Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: StreamAnalyticsManagementClient;\n\n /**\n * Initialize a new instance of the class Operations 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 available Stream Analytics related operations.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams,\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\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.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams,\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available Stream Analytics related operations.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams,\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams,\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.StreamAnalytics/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.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;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IACR,MAAM,CAAkC;IAEzD;;;OAGG;IACH,YAAY,MAAuC;QACjD,IAAI,CAAC,MAAM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ACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,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 { Operations } 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 Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: StreamAnalyticsManagementClient;\n\n /**\n * Initialize a new instance of the class Operations 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 available Stream Analytics related operations.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams,\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\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.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams,\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available Stream Analytics related operations.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams,\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams,\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.StreamAnalytics/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\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 Outputs operations. */
17
16
  export class OutputsImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class Outputs class.
20
20
  * @param client Reference to the service client
@@ -38,52 +38,35 @@ export class OutputsImpl {
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 output or replaces an already existing output under an existing streaming job.
@@ -154,14 +137,19 @@ export class OutputsImpl {
154
137
  return this.client.sendOperationRequest(args, spec);
155
138
  };
156
139
  const sendOperationFn = async (args, spec) => {
157
- var _a;
158
140
  let currentRawResponse = undefined;
159
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
141
+ const providedCallback = args.options?.onResponse;
160
142
  const callback = (rawResponse, flatResponse) => {
161
143
  currentRawResponse = rawResponse;
162
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
144
+ providedCallback?.(rawResponse, flatResponse);
145
+ };
146
+ const updatedArgs = {
147
+ ...args,
148
+ options: {
149
+ ...args.options,
150
+ onResponse: callback,
151
+ },
163
152
  };
164
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
165
153
  const flatResponse = await directSendOperation(updatedArgs, spec);
166
154
  return {
167
155
  flatResponse,
@@ -178,8 +166,8 @@ export class OutputsImpl {
178
166
  spec: testOperationSpec,
179
167
  });
180
168
  const poller = await createHttpPoller(lro, {
181
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
182
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
169
+ restoreFrom: options?.resumeFrom,
170
+ intervalInMs: options?.updateIntervalInMs,
183
171
  });
184
172
  await poller.poll();
185
173
  return poller;
@@ -1 +1 @@
1
- {"version":3,"file":"outputs.js","sourceRoot":"","sources":["../../../src/operations/outputs.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,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IAGtB;;;OAGG;IACH,YAAY,MAAuC;QACjD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,kBAAkB,CACvB,iBAAyB,EACzB,OAAe,EACf,OAAiD;QAEjD,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;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,gBAAgB;SACrC;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 { Outputs } 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 Output,\n OutputsListByStreamingJobNextOptionalParams,\n OutputsListByStreamingJobOptionalParams,\n OutputsListByStreamingJobResponse,\n OutputsCreateOrReplaceOptionalParams,\n OutputsCreateOrReplaceResponse,\n OutputsUpdateOptionalParams,\n OutputsUpdateResponse,\n OutputsDeleteOptionalParams,\n OutputsGetOptionalParams,\n OutputsGetResponse,\n OutputsTestOptionalParams,\n OutputsTestResponse,\n OutputsListByStreamingJobNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Outputs operations. */\nexport class OutputsImpl implements Outputs {\n private readonly client: StreamAnalyticsManagementClient;\n\n /**\n * Initialize a new instance of the class Outputs 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 outputs 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?: OutputsListByStreamingJobOptionalParams,\n ): PagedAsyncIterableIterator<Output> {\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?: OutputsListByStreamingJobOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Output[]> {\n let result: OutputsListByStreamingJobResponse;\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?: OutputsListByStreamingJobOptionalParams,\n ): AsyncIterableIterator<Output> {\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 output or replaces an already existing output 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 outputName The name of the output.\n * @param output The definition of the output that will be used to create a new output 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 outputName: string,\n output: Output,\n options?: OutputsCreateOrReplaceOptionalParams,\n ): Promise<OutputsCreateOrReplaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, outputName, output, options },\n createOrReplaceOperationSpec,\n );\n }\n\n /**\n * Updates an existing output under an existing streaming job. This can be used to partially update\n * (ie. update one or two properties) an output without affecting the rest the job or output\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 outputName The name of the output.\n * @param output An Output object. The properties specified here will overwrite the corresponding\n * properties in the existing output (ie. Those properties will be updated). Any properties that are\n * set to null here will mean that the corresponding property in the existing output will remain the\n * 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 outputName: string,\n output: Output,\n options?: OutputsUpdateOptionalParams,\n ): Promise<OutputsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, outputName, output, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Deletes an output 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 outputName The name of the output.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n jobName: string,\n outputName: string,\n options?: OutputsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, outputName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets details about the specified output.\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 outputName The name of the output.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n jobName: string,\n outputName: string,\n options?: OutputsGetOptionalParams,\n ): Promise<OutputsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, outputName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Lists all of the outputs 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?: OutputsListByStreamingJobOptionalParams,\n ): Promise<OutputsListByStreamingJobResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, options },\n listByStreamingJobOperationSpec,\n );\n }\n\n /**\n * Tests whether an output’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 outputName The name of the output.\n * @param options The options parameters.\n */\n async beginTest(\n resourceGroupName: string,\n jobName: string,\n outputName: string,\n options?: OutputsTestOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<OutputsTestResponse>, OutputsTestResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<OutputsTestResponse> => {\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, outputName, options },\n spec: testOperationSpec,\n });\n const poller = await createHttpPoller<\n OutputsTestResponse,\n OperationState<OutputsTestResponse>\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 output’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 outputName The name of the output.\n * @param options The options parameters.\n */\n async beginTestAndWait(\n resourceGroupName: string,\n jobName: string,\n outputName: string,\n options?: OutputsTestOptionalParams,\n ): Promise<OutputsTestResponse> {\n const poller = await this.beginTest(\n resourceGroupName,\n jobName,\n outputName,\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?: OutputsListByStreamingJobNextOptionalParams,\n ): Promise<OutputsListByStreamingJobNextResponse> {\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}/outputs/{outputName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Output,\n headersMapper: Mappers.OutputsCreateOrReplaceHeaders,\n },\n 201: {\n bodyMapper: Mappers.Output,\n headersMapper: Mappers.OutputsCreateOrReplaceHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.output,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.outputName,\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}/outputs/{outputName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Output,\n headersMapper: Mappers.OutputsUpdateHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.output,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.outputName,\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}/outputs/{outputName}\",\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.outputName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/outputs/{outputName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Output,\n headersMapper: Mappers.OutputsGetHeaders,\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.outputName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByStreamingJobOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/outputs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OutputListResult,\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}/outputs/{outputName}/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.output1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.outputName,\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.OutputListResult,\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"]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;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,OAAO;IAC/B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;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 { Outputs } 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 Output,\n OutputsListByStreamingJobNextOptionalParams,\n OutputsListByStreamingJobOptionalParams,\n OutputsListByStreamingJobResponse,\n OutputsCreateOrReplaceOptionalParams,\n OutputsCreateOrReplaceResponse,\n OutputsUpdateOptionalParams,\n OutputsUpdateResponse,\n OutputsDeleteOptionalParams,\n OutputsGetOptionalParams,\n OutputsGetResponse,\n OutputsTestOptionalParams,\n OutputsTestResponse,\n OutputsListByStreamingJobNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Outputs operations. */\nexport class OutputsImpl implements Outputs {\n private readonly client: StreamAnalyticsManagementClient;\n\n /**\n * Initialize a new instance of the class Outputs 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 outputs 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?: OutputsListByStreamingJobOptionalParams,\n ): PagedAsyncIterableIterator<Output> {\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?: OutputsListByStreamingJobOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Output[]> {\n let result: OutputsListByStreamingJobResponse;\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?: OutputsListByStreamingJobOptionalParams,\n ): AsyncIterableIterator<Output> {\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 output or replaces an already existing output 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 outputName The name of the output.\n * @param output The definition of the output that will be used to create a new output 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 outputName: string,\n output: Output,\n options?: OutputsCreateOrReplaceOptionalParams,\n ): Promise<OutputsCreateOrReplaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, outputName, output, options },\n createOrReplaceOperationSpec,\n );\n }\n\n /**\n * Updates an existing output under an existing streaming job. This can be used to partially update\n * (ie. update one or two properties) an output without affecting the rest the job or output\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 outputName The name of the output.\n * @param output An Output object. The properties specified here will overwrite the corresponding\n * properties in the existing output (ie. Those properties will be updated). Any properties that are\n * set to null here will mean that the corresponding property in the existing output will remain the\n * 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 outputName: string,\n output: Output,\n options?: OutputsUpdateOptionalParams,\n ): Promise<OutputsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, outputName, output, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Deletes an output 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 outputName The name of the output.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n jobName: string,\n outputName: string,\n options?: OutputsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, outputName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets details about the specified output.\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 outputName The name of the output.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n jobName: string,\n outputName: string,\n options?: OutputsGetOptionalParams,\n ): Promise<OutputsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, outputName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Lists all of the outputs 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?: OutputsListByStreamingJobOptionalParams,\n ): Promise<OutputsListByStreamingJobResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, jobName, options },\n listByStreamingJobOperationSpec,\n );\n }\n\n /**\n * Tests whether an output’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 outputName The name of the output.\n * @param options The options parameters.\n */\n async beginTest(\n resourceGroupName: string,\n jobName: string,\n outputName: string,\n options?: OutputsTestOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<OutputsTestResponse>, OutputsTestResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<OutputsTestResponse> => {\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, outputName, options },\n spec: testOperationSpec,\n });\n const poller = await createHttpPoller<\n OutputsTestResponse,\n OperationState<OutputsTestResponse>\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 output’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 outputName The name of the output.\n * @param options The options parameters.\n */\n async beginTestAndWait(\n resourceGroupName: string,\n jobName: string,\n outputName: string,\n options?: OutputsTestOptionalParams,\n ): Promise<OutputsTestResponse> {\n const poller = await this.beginTest(\n resourceGroupName,\n jobName,\n outputName,\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?: OutputsListByStreamingJobNextOptionalParams,\n ): Promise<OutputsListByStreamingJobNextResponse> {\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}/outputs/{outputName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Output,\n headersMapper: Mappers.OutputsCreateOrReplaceHeaders,\n },\n 201: {\n bodyMapper: Mappers.Output,\n headersMapper: Mappers.OutputsCreateOrReplaceHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.output,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.outputName,\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}/outputs/{outputName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Output,\n headersMapper: Mappers.OutputsUpdateHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.output,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.outputName,\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}/outputs/{outputName}\",\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.outputName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/outputs/{outputName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Output,\n headersMapper: Mappers.OutputsGetHeaders,\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.outputName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByStreamingJobOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/outputs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OutputListResult,\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}/outputs/{outputName}/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.output1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.jobName,\n Parameters.outputName,\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.OutputListResult,\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 PrivateEndpoints operations. */
17
16
  export class PrivateEndpointsImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class PrivateEndpoints class.
20
20
  * @param client Reference to the service client
@@ -38,52 +38,35 @@ export class PrivateEndpointsImpl {
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.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
45
45
  },
46
46
  };
47
47
  }
48
- listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
49
- return __asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
50
- let result;
51
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
- if (!continuationToken) {
53
- result = yield __await(this._listByCluster(resourceGroupName, clusterName, 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._listByClusterNext(resourceGroupName, clusterName, continuationToken, options));
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- setContinuationToken(page, continuationToken);
64
- yield yield __await(page);
65
- }
66
- });
48
+ async *listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._listByCluster(resourceGroupName, clusterName, 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._listByClusterNext(resourceGroupName, clusterName, continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ setContinuationToken(page, continuationToken);
63
+ yield page;
64
+ }
67
65
  }
68
- listByClusterPagingAll(resourceGroupName, clusterName, options) {
69
- return __asyncGenerator(this, arguments, function* listByClusterPagingAll_1() {
70
- var _a, e_1, _b, _c;
71
- try {
72
- for (var _d = true, _e = __asyncValues(this.listByClusterPagingPage(resourceGroupName, clusterName, 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 *listByClusterPagingAll(resourceGroupName, clusterName, options) {
67
+ for await (const page of this.listByClusterPagingPage(resourceGroupName, clusterName, options)) {
68
+ yield* page;
69
+ }
87
70
  }
88
71
  /**
89
72
  * Creates a Stream Analytics Private Endpoint or replaces an already existing Private Endpoint.
@@ -125,14 +108,19 @@ export class PrivateEndpointsImpl {
125
108
  return this.client.sendOperationRequest(args, spec);
126
109
  };
127
110
  const sendOperationFn = async (args, spec) => {
128
- var _a;
129
111
  let currentRawResponse = undefined;
130
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
112
+ const providedCallback = args.options?.onResponse;
131
113
  const callback = (rawResponse, flatResponse) => {
132
114
  currentRawResponse = rawResponse;
133
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
115
+ providedCallback?.(rawResponse, flatResponse);
116
+ };
117
+ const updatedArgs = {
118
+ ...args,
119
+ options: {
120
+ ...args.options,
121
+ onResponse: callback,
122
+ },
134
123
  };
135
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
136
124
  const flatResponse = await directSendOperation(updatedArgs, spec);
137
125
  return {
138
126
  flatResponse,
@@ -149,8 +137,8 @@ export class PrivateEndpointsImpl {
149
137
  spec: deleteOperationSpec,
150
138
  });
151
139
  const poller = await createHttpPoller(lro, {
152
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
153
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
140
+ restoreFrom: options?.resumeFrom,
141
+ intervalInMs: options?.updateIntervalInMs,
154
142
  });
155
143
  await poller.poll();
156
144
  return poller;
@@ -1 +1 @@
1
- {"version":3,"file":"privateEndpoints.js","sourceRoot":"","sources":["../../../src/operations/privateEndpoints.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAA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U;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,WAAW;KACvB;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 { PrivateEndpoints } 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 PrivateEndpoint,\n PrivateEndpointsListByClusterNextOptionalParams,\n PrivateEndpointsListByClusterOptionalParams,\n PrivateEndpointsListByClusterResponse,\n PrivateEndpointsCreateOrUpdateOptionalParams,\n PrivateEndpointsCreateOrUpdateResponse,\n PrivateEndpointsGetOptionalParams,\n PrivateEndpointsGetResponse,\n PrivateEndpointsDeleteOptionalParams,\n PrivateEndpointsListByClusterNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateEndpoints operations. */\nexport class PrivateEndpointsImpl implements PrivateEndpoints {\n private readonly client: StreamAnalyticsManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateEndpoints class.\n * @param client Reference to the service client\n */\n constructor(client: StreamAnalyticsManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the private endpoints in the cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n public listByCluster(\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateEndpointsListByClusterOptionalParams,\n ): PagedAsyncIterableIterator<PrivateEndpoint> {\n const iter = this.listByClusterPagingAll(\n resourceGroupName,\n clusterName,\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.listByClusterPagingPage(\n resourceGroupName,\n clusterName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByClusterPagingPage(\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateEndpointsListByClusterOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PrivateEndpoint[]> {\n let result: PrivateEndpointsListByClusterResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByCluster(\n resourceGroupName,\n clusterName,\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._listByClusterNext(\n resourceGroupName,\n clusterName,\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 *listByClusterPagingAll(\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateEndpointsListByClusterOptionalParams,\n ): AsyncIterableIterator<PrivateEndpoint> {\n for await (const page of this.listByClusterPagingPage(\n resourceGroupName,\n clusterName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates a Stream Analytics Private Endpoint or replaces an already existing Private Endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param privateEndpointName The name of the private endpoint.\n * @param privateEndpoint The definition of the private endpoint that will be used to create a new\n * cluster or replace the existing one.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n clusterName: string,\n privateEndpointName: string,\n privateEndpoint: PrivateEndpoint,\n options?: PrivateEndpointsCreateOrUpdateOptionalParams,\n ): Promise<PrivateEndpointsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterName,\n privateEndpointName,\n privateEndpoint,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Gets information about the specified Private Endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param privateEndpointName The name of the private endpoint.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n privateEndpointName: string,\n options?: PrivateEndpointsGetOptionalParams,\n ): Promise<PrivateEndpointsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, privateEndpointName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Delete the specified private endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param privateEndpointName The name of the private endpoint.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterName: string,\n privateEndpointName: string,\n options?: PrivateEndpointsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\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, clusterName, privateEndpointName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete the specified private endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param privateEndpointName The name of the private endpoint.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterName: string,\n privateEndpointName: string,\n options?: PrivateEndpointsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterName,\n privateEndpointName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Lists the private endpoints in the cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n private _listByCluster(\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateEndpointsListByClusterOptionalParams,\n ): Promise<PrivateEndpointsListByClusterResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, options },\n listByClusterOperationSpec,\n );\n }\n\n /**\n * ListByClusterNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param nextLink The nextLink from the previous successful call to the ListByCluster method.\n * @param options The options parameters.\n */\n private _listByClusterNext(\n resourceGroupName: string,\n clusterName: string,\n nextLink: string,\n options?: PrivateEndpointsListByClusterNextOptionalParams,\n ): Promise<PrivateEndpointsListByClusterNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, nextLink, options },\n listByClusterNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters/{clusterName}/privateEndpoints/{privateEndpointName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpoint,\n },\n 201: {\n bodyMapper: Mappers.PrivateEndpoint,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.privateEndpoint,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.privateEndpointName,\n ],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters/{clusterName}/privateEndpoints/{privateEndpointName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpoint,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.privateEndpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters/{clusterName}/privateEndpoints/{privateEndpointName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.privateEndpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByClusterOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters/{clusterName}/privateEndpoints\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByClusterNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"privateEndpoints.js","sourceRoot":"","sources":["../../../src/operations/privateEndpoints.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;AAc9C,4CAA4C;AAC5C,oDAAoD;AACpD,MAAM,OAAO,oBAAoB;IACd,MAAM,CAAkC;IAE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AU;CACX,CAAC;AACF,MAAM,0BAA0B,GAA6B;IAC3D,IAAI,EAAE,gJAAgJ;IACtJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;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,QAAQ;QACnB,UAAU,CAAC,WAAW;KACvB;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 { PrivateEndpoints } 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 PrivateEndpoint,\n PrivateEndpointsListByClusterNextOptionalParams,\n PrivateEndpointsListByClusterOptionalParams,\n PrivateEndpointsListByClusterResponse,\n PrivateEndpointsCreateOrUpdateOptionalParams,\n PrivateEndpointsCreateOrUpdateResponse,\n PrivateEndpointsGetOptionalParams,\n PrivateEndpointsGetResponse,\n PrivateEndpointsDeleteOptionalParams,\n PrivateEndpointsListByClusterNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateEndpoints operations. */\nexport class PrivateEndpointsImpl implements PrivateEndpoints {\n private readonly client: StreamAnalyticsManagementClient;\n\n /**\n * Initialize a new instance of the class PrivateEndpoints class.\n * @param client Reference to the service client\n */\n constructor(client: StreamAnalyticsManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the private endpoints in the cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n public listByCluster(\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateEndpointsListByClusterOptionalParams,\n ): PagedAsyncIterableIterator<PrivateEndpoint> {\n const iter = this.listByClusterPagingAll(\n resourceGroupName,\n clusterName,\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.listByClusterPagingPage(\n resourceGroupName,\n clusterName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByClusterPagingPage(\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateEndpointsListByClusterOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PrivateEndpoint[]> {\n let result: PrivateEndpointsListByClusterResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByCluster(\n resourceGroupName,\n clusterName,\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._listByClusterNext(\n resourceGroupName,\n clusterName,\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 *listByClusterPagingAll(\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateEndpointsListByClusterOptionalParams,\n ): AsyncIterableIterator<PrivateEndpoint> {\n for await (const page of this.listByClusterPagingPage(\n resourceGroupName,\n clusterName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates a Stream Analytics Private Endpoint or replaces an already existing Private Endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param privateEndpointName The name of the private endpoint.\n * @param privateEndpoint The definition of the private endpoint that will be used to create a new\n * cluster or replace the existing one.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n clusterName: string,\n privateEndpointName: string,\n privateEndpoint: PrivateEndpoint,\n options?: PrivateEndpointsCreateOrUpdateOptionalParams,\n ): Promise<PrivateEndpointsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterName,\n privateEndpointName,\n privateEndpoint,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Gets information about the specified Private Endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param privateEndpointName The name of the private endpoint.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n privateEndpointName: string,\n options?: PrivateEndpointsGetOptionalParams,\n ): Promise<PrivateEndpointsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, privateEndpointName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Delete the specified private endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param privateEndpointName The name of the private endpoint.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n clusterName: string,\n privateEndpointName: string,\n options?: PrivateEndpointsDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\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, clusterName, privateEndpointName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete the specified private endpoint.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param privateEndpointName The name of the private endpoint.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n clusterName: string,\n privateEndpointName: string,\n options?: PrivateEndpointsDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n clusterName,\n privateEndpointName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Lists the private endpoints in the cluster.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param options The options parameters.\n */\n private _listByCluster(\n resourceGroupName: string,\n clusterName: string,\n options?: PrivateEndpointsListByClusterOptionalParams,\n ): Promise<PrivateEndpointsListByClusterResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, options },\n listByClusterOperationSpec,\n );\n }\n\n /**\n * ListByClusterNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the cluster.\n * @param nextLink The nextLink from the previous successful call to the ListByCluster method.\n * @param options The options parameters.\n */\n private _listByClusterNext(\n resourceGroupName: string,\n clusterName: string,\n nextLink: string,\n options?: PrivateEndpointsListByClusterNextOptionalParams,\n ): Promise<PrivateEndpointsListByClusterNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, nextLink, options },\n listByClusterNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters/{clusterName}/privateEndpoints/{privateEndpointName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpoint,\n },\n 201: {\n bodyMapper: Mappers.PrivateEndpoint,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n requestBody: Parameters.privateEndpoint,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.privateEndpointName,\n ],\n headerParameters: [\n Parameters.contentType,\n Parameters.accept,\n Parameters.ifMatch,\n Parameters.ifNoneMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters/{clusterName}/privateEndpoints/{privateEndpointName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpoint,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.privateEndpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters/{clusterName}/privateEndpoints/{privateEndpointName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n Parameters.privateEndpointName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByClusterOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters/{clusterName}/privateEndpoints\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByClusterNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorModel,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.clusterName,\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 SkuOperations operations. */
15
14
  export class SkuOperationsImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class SkuOperations class.
18
18
  * @param client Reference to the service client
@@ -36,52 +36,35 @@ export class SkuOperationsImpl {
36
36
  return this;
37
37
  },
38
38
  byPage: (settings) => {
39
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
39
+ if (settings?.maxPageSize) {
40
40
  throw new Error("maxPageSize is not supported by this operation.");
41
41
  }
42
42
  return this.listPagingPage(resourceGroupName, jobName, options, settings);
43
43
  },
44
44
  };
45
45
  }
46
- listPagingPage(resourceGroupName, jobName, options, settings) {
47
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
48
- let result;
49
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
50
- if (!continuationToken) {
51
- result = yield __await(this._list(resourceGroupName, jobName, options));
52
- let page = result.value || [];
53
- continuationToken = result.nextLink;
54
- setContinuationToken(page, continuationToken);
55
- yield yield __await(page);
56
- }
57
- while (continuationToken) {
58
- result = yield __await(this._listNext(resourceGroupName, jobName, continuationToken, options));
59
- continuationToken = result.nextLink;
60
- let page = result.value || [];
61
- setContinuationToken(page, continuationToken);
62
- yield yield __await(page);
63
- }
64
- });
46
+ async *listPagingPage(resourceGroupName, jobName, options, settings) {
47
+ let result;
48
+ let continuationToken = settings?.continuationToken;
49
+ if (!continuationToken) {
50
+ result = await this._list(resourceGroupName, jobName, options);
51
+ let page = result.value || [];
52
+ continuationToken = result.nextLink;
53
+ setContinuationToken(page, continuationToken);
54
+ yield page;
55
+ }
56
+ while (continuationToken) {
57
+ result = await this._listNext(resourceGroupName, jobName, continuationToken, options);
58
+ continuationToken = result.nextLink;
59
+ let page = result.value || [];
60
+ setContinuationToken(page, continuationToken);
61
+ yield page;
62
+ }
65
63
  }
66
- listPagingAll(resourceGroupName, jobName, options) {
67
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
68
- var _a, e_1, _b, _c;
69
- try {
70
- for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, jobName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
71
- _c = _f.value;
72
- _d = false;
73
- const page = _c;
74
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
75
- }
76
- }
77
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
78
- finally {
79
- try {
80
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
81
- }
82
- finally { if (e_1) throw e_1.error; }
83
- }
84
- });
64
+ async *listPagingAll(resourceGroupName, jobName, options) {
65
+ for await (const page of this.listPagingPage(resourceGroupName, jobName, options)) {
66
+ yield* page;
67
+ }
85
68
  }
86
69
  /**
87
70
  * Gets a list of available SKUs about the specified streaming job.