@azure/arm-streamanalytics 5.0.0-alpha.20250620.1 → 5.0.0-alpha.20250721.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/dist/browser/lroImpl.js +7 -3
  2. package/dist/browser/lroImpl.js.map +1 -1
  3. package/dist/browser/models/mappers.js +791 -359
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/clusters.js +100 -136
  6. package/dist/browser/operations/clusters.js.map +1 -1
  7. package/dist/browser/operations/functions.js +34 -46
  8. package/dist/browser/operations/functions.js.map +1 -1
  9. package/dist/browser/operations/inputs.js +34 -46
  10. package/dist/browser/operations/inputs.js.map +1 -1
  11. package/dist/browser/operations/operations.js +23 -40
  12. package/dist/browser/operations/operations.js.map +1 -1
  13. package/dist/browser/operations/outputs.js +34 -46
  14. package/dist/browser/operations/outputs.js.map +1 -1
  15. package/dist/browser/operations/privateEndpoints.js +34 -46
  16. package/dist/browser/operations/privateEndpoints.js.map +1 -1
  17. package/dist/browser/operations/skuOperations.js +23 -40
  18. package/dist/browser/operations/skuOperations.js.map +1 -1
  19. package/dist/browser/operations/streamingJobs.js +100 -109
  20. package/dist/browser/operations/streamingJobs.js.map +1 -1
  21. package/dist/browser/operations/subscriptions.js +45 -24
  22. package/dist/browser/operations/subscriptions.js.map +1 -1
  23. package/dist/browser/operations/transformations.js +1 -0
  24. package/dist/browser/operations/transformations.js.map +1 -1
  25. package/dist/browser/pagingHelper.js +2 -4
  26. package/dist/browser/pagingHelper.js.map +1 -1
  27. package/dist/browser/streamAnalyticsManagementClient.js +22 -5
  28. package/dist/browser/streamAnalyticsManagementClient.js.map +1 -1
  29. package/dist/commonjs/lroImpl.js +7 -3
  30. package/dist/commonjs/lroImpl.js.map +1 -1
  31. package/dist/commonjs/models/mappers.js +791 -359
  32. package/dist/commonjs/models/mappers.js.map +1 -1
  33. package/dist/commonjs/operations/clusters.js +100 -135
  34. package/dist/commonjs/operations/clusters.js.map +1 -1
  35. package/dist/commonjs/operations/functions.js +34 -45
  36. package/dist/commonjs/operations/functions.js.map +1 -1
  37. package/dist/commonjs/operations/inputs.js +34 -45
  38. package/dist/commonjs/operations/inputs.js.map +1 -1
  39. package/dist/commonjs/operations/operations.js +23 -39
  40. package/dist/commonjs/operations/operations.js.map +1 -1
  41. package/dist/commonjs/operations/outputs.js +34 -45
  42. package/dist/commonjs/operations/outputs.js.map +1 -1
  43. package/dist/commonjs/operations/privateEndpoints.js +34 -45
  44. package/dist/commonjs/operations/privateEndpoints.js.map +1 -1
  45. package/dist/commonjs/operations/skuOperations.js +23 -39
  46. package/dist/commonjs/operations/skuOperations.js.map +1 -1
  47. package/dist/commonjs/operations/streamingJobs.js +100 -108
  48. package/dist/commonjs/operations/streamingJobs.js.map +1 -1
  49. package/dist/commonjs/operations/subscriptions.js +45 -24
  50. package/dist/commonjs/operations/subscriptions.js.map +1 -1
  51. package/dist/commonjs/operations/transformations.js +1 -0
  52. package/dist/commonjs/operations/transformations.js.map +1 -1
  53. package/dist/commonjs/pagingHelper.js +2 -4
  54. package/dist/commonjs/pagingHelper.js.map +1 -1
  55. package/dist/commonjs/streamAnalyticsManagementClient.js +22 -5
  56. package/dist/commonjs/streamAnalyticsManagementClient.js.map +1 -1
  57. package/dist/commonjs/tsdoc-metadata.json +11 -11
  58. package/dist/esm/lroImpl.js +7 -3
  59. package/dist/esm/lroImpl.js.map +1 -1
  60. package/dist/esm/models/mappers.js +791 -359
  61. package/dist/esm/models/mappers.js.map +1 -1
  62. package/dist/esm/operations/clusters.js +100 -136
  63. package/dist/esm/operations/clusters.js.map +1 -1
  64. package/dist/esm/operations/functions.js +34 -46
  65. package/dist/esm/operations/functions.js.map +1 -1
  66. package/dist/esm/operations/inputs.js +34 -46
  67. package/dist/esm/operations/inputs.js.map +1 -1
  68. package/dist/esm/operations/operations.js +23 -40
  69. package/dist/esm/operations/operations.js.map +1 -1
  70. package/dist/esm/operations/outputs.js +34 -46
  71. package/dist/esm/operations/outputs.js.map +1 -1
  72. package/dist/esm/operations/privateEndpoints.js +34 -46
  73. package/dist/esm/operations/privateEndpoints.js.map +1 -1
  74. package/dist/esm/operations/skuOperations.js +23 -40
  75. package/dist/esm/operations/skuOperations.js.map +1 -1
  76. package/dist/esm/operations/streamingJobs.js +100 -109
  77. package/dist/esm/operations/streamingJobs.js.map +1 -1
  78. package/dist/esm/operations/subscriptions.js +45 -24
  79. package/dist/esm/operations/subscriptions.js.map +1 -1
  80. package/dist/esm/operations/transformations.js +1 -0
  81. package/dist/esm/operations/transformations.js.map +1 -1
  82. package/dist/esm/pagingHelper.js +2 -4
  83. package/dist/esm/pagingHelper.js.map +1 -1
  84. package/dist/esm/streamAnalyticsManagementClient.js +22 -5
  85. package/dist/esm/streamAnalyticsManagementClient.js.map +1 -1
  86. package/dist/react-native/lroImpl.js +7 -3
  87. package/dist/react-native/lroImpl.js.map +1 -1
  88. package/dist/react-native/models/mappers.js +791 -359
  89. package/dist/react-native/models/mappers.js.map +1 -1
  90. package/dist/react-native/operations/clusters.js +100 -136
  91. package/dist/react-native/operations/clusters.js.map +1 -1
  92. package/dist/react-native/operations/functions.js +34 -46
  93. package/dist/react-native/operations/functions.js.map +1 -1
  94. package/dist/react-native/operations/inputs.js +34 -46
  95. package/dist/react-native/operations/inputs.js.map +1 -1
  96. package/dist/react-native/operations/operations.js +23 -40
  97. package/dist/react-native/operations/operations.js.map +1 -1
  98. package/dist/react-native/operations/outputs.js +34 -46
  99. package/dist/react-native/operations/outputs.js.map +1 -1
  100. package/dist/react-native/operations/privateEndpoints.js +34 -46
  101. package/dist/react-native/operations/privateEndpoints.js.map +1 -1
  102. package/dist/react-native/operations/skuOperations.js +23 -40
  103. package/dist/react-native/operations/skuOperations.js.map +1 -1
  104. package/dist/react-native/operations/streamingJobs.js +100 -109
  105. package/dist/react-native/operations/streamingJobs.js.map +1 -1
  106. package/dist/react-native/operations/subscriptions.js +45 -24
  107. package/dist/react-native/operations/subscriptions.js.map +1 -1
  108. package/dist/react-native/operations/transformations.js +1 -0
  109. package/dist/react-native/operations/transformations.js.map +1 -1
  110. package/dist/react-native/pagingHelper.js +2 -4
  111. package/dist/react-native/pagingHelper.js.map +1 -1
  112. package/dist/react-native/streamAnalyticsManagementClient.js +22 -5
  113. package/dist/react-native/streamAnalyticsManagementClient.js.map +1 -1
  114. package/package.json +2 -2
  115. /package/review/{arm-streamanalytics.api.md → arm-streamanalytics-node.api.md} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,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;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAAsC,EACtC,QAAuB;;YAEvB,IAAI,MAA8B,CAAC;YACnC,IAAI,iBAAiB,GAA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OAA0C;QAE1C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,OAAO,EAAE,EACrB,qBAAqB,CACtB,CAAC;IACJ,CAAC;CACF;AAzFD,wCAyFC;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,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IACR,MAAM,CAAkC;IAEzD;;;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;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;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"]}
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
18
18
  /// <reference lib="esnext.asynciterable" />
19
19
  /** Class containing Outputs operations. */
20
20
  class OutputsImpl {
21
+ client;
21
22
  /**
22
23
  * Initialize a new instance of the class Outputs class.
23
24
  * @param client Reference to the service client
@@ -41,52 +42,35 @@ class OutputsImpl {
41
42
  return this;
42
43
  },
43
44
  byPage: (settings) => {
44
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
45
+ if (settings?.maxPageSize) {
45
46
  throw new Error("maxPageSize is not supported by this operation.");
46
47
  }
47
48
  return this.listByStreamingJobPagingPage(resourceGroupName, jobName, options, settings);
48
49
  },
49
50
  };
50
51
  }
51
- listByStreamingJobPagingPage(resourceGroupName, jobName, options, settings) {
52
- return tslib_1.__asyncGenerator(this, arguments, function* listByStreamingJobPagingPage_1() {
53
- let result;
54
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
55
- if (!continuationToken) {
56
- result = yield tslib_1.__await(this._listByStreamingJob(resourceGroupName, jobName, options));
57
- let page = result.value || [];
58
- continuationToken = result.nextLink;
59
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
60
- yield yield tslib_1.__await(page);
61
- }
62
- while (continuationToken) {
63
- result = yield tslib_1.__await(this._listByStreamingJobNext(resourceGroupName, jobName, continuationToken, options));
64
- continuationToken = result.nextLink;
65
- let page = result.value || [];
66
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
67
- yield yield tslib_1.__await(page);
68
- }
69
- });
52
+ async *listByStreamingJobPagingPage(resourceGroupName, jobName, options, settings) {
53
+ let result;
54
+ let continuationToken = settings?.continuationToken;
55
+ if (!continuationToken) {
56
+ result = await this._listByStreamingJob(resourceGroupName, jobName, options);
57
+ let page = result.value || [];
58
+ continuationToken = result.nextLink;
59
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
60
+ yield page;
61
+ }
62
+ while (continuationToken) {
63
+ result = await this._listByStreamingJobNext(resourceGroupName, jobName, continuationToken, options);
64
+ continuationToken = result.nextLink;
65
+ let page = result.value || [];
66
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
67
+ yield page;
68
+ }
70
69
  }
71
- listByStreamingJobPagingAll(resourceGroupName, jobName, options) {
72
- return tslib_1.__asyncGenerator(this, arguments, function* listByStreamingJobPagingAll_1() {
73
- var _a, e_1, _b, _c;
74
- try {
75
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByStreamingJobPagingPage(resourceGroupName, jobName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
76
- _c = _f.value;
77
- _d = false;
78
- const page = _c;
79
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
80
- }
81
- }
82
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
83
- finally {
84
- try {
85
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
86
- }
87
- finally { if (e_1) throw e_1.error; }
88
- }
89
- });
70
+ async *listByStreamingJobPagingAll(resourceGroupName, jobName, options) {
71
+ for await (const page of this.listByStreamingJobPagingPage(resourceGroupName, jobName, options)) {
72
+ yield* page;
73
+ }
90
74
  }
91
75
  /**
92
76
  * Creates an output or replaces an already existing output under an existing streaming job.
@@ -157,14 +141,19 @@ class OutputsImpl {
157
141
  return this.client.sendOperationRequest(args, spec);
158
142
  };
159
143
  const sendOperationFn = async (args, spec) => {
160
- var _a;
161
144
  let currentRawResponse = undefined;
162
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
145
+ const providedCallback = args.options?.onResponse;
163
146
  const callback = (rawResponse, flatResponse) => {
164
147
  currentRawResponse = rawResponse;
165
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
148
+ providedCallback?.(rawResponse, flatResponse);
149
+ };
150
+ const updatedArgs = {
151
+ ...args,
152
+ options: {
153
+ ...args.options,
154
+ onResponse: callback,
155
+ },
166
156
  };
167
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
168
157
  const flatResponse = await directSendOperation(updatedArgs, spec);
169
158
  return {
170
159
  flatResponse,
@@ -181,8 +170,8 @@ class OutputsImpl {
181
170
  spec: testOperationSpec,
182
171
  });
183
172
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
184
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
185
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
173
+ restoreFrom: options?.resumeFrom,
174
+ intervalInMs: options?.updateIntervalInMs,
186
175
  });
187
176
  await poller.poll();
188
177
  return poller;
@@ -1 +1 @@
1
- {"version":3,"file":"outputs.js","sourceRoot":"","sources":["../../../src/operations/outputs.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAkB9C,4CAA4C;AAC5C,2CAA2C;AAC3C,MAAa,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;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,4BAA4B,CACtC,iBAAiB,EACjB,OAAO,EACP,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,4BAA4B,CACzC,iBAAyB,EACzB,OAAe,EACf,OAAiD,EACjD,QAAuB;;YAEvB,IAAI,MA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AAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,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"]}
1
+ {"version":3,"file":"outputs.js","sourceRoot":"","sources":["../../../src/operations/outputs.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAkB9C,4CAA4C;AAC5C,2CAA2C;AAC3C,MAAa,WAAW;IACL,MAAM,CAAkC;IAEzD;;;OAGG;IACH,YAAY,MAAuC;QACjD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,kBAAkB,CACvB,iBAAyB,EACzB,OAAe,EACf,OAAiD;QAEj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AU,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"]}
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
18
18
  /// <reference lib="esnext.asynciterable" />
19
19
  /** Class containing PrivateEndpoints operations. */
20
20
  class PrivateEndpointsImpl {
21
+ client;
21
22
  /**
22
23
  * Initialize a new instance of the class PrivateEndpoints class.
23
24
  * @param client Reference to the service client
@@ -41,52 +42,35 @@ class PrivateEndpointsImpl {
41
42
  return this;
42
43
  },
43
44
  byPage: (settings) => {
44
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
45
+ if (settings?.maxPageSize) {
45
46
  throw new Error("maxPageSize is not supported by this operation.");
46
47
  }
47
48
  return this.listByClusterPagingPage(resourceGroupName, clusterName, options, settings);
48
49
  },
49
50
  };
50
51
  }
51
- listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
52
- return tslib_1.__asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
53
- let result;
54
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
55
- if (!continuationToken) {
56
- result = yield tslib_1.__await(this._listByCluster(resourceGroupName, clusterName, options));
57
- let page = result.value || [];
58
- continuationToken = result.nextLink;
59
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
60
- yield yield tslib_1.__await(page);
61
- }
62
- while (continuationToken) {
63
- result = yield tslib_1.__await(this._listByClusterNext(resourceGroupName, clusterName, continuationToken, options));
64
- continuationToken = result.nextLink;
65
- let page = result.value || [];
66
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
67
- yield yield tslib_1.__await(page);
68
- }
69
- });
52
+ async *listByClusterPagingPage(resourceGroupName, clusterName, options, settings) {
53
+ let result;
54
+ let continuationToken = settings?.continuationToken;
55
+ if (!continuationToken) {
56
+ result = await this._listByCluster(resourceGroupName, clusterName, options);
57
+ let page = result.value || [];
58
+ continuationToken = result.nextLink;
59
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
60
+ yield page;
61
+ }
62
+ while (continuationToken) {
63
+ result = await this._listByClusterNext(resourceGroupName, clusterName, continuationToken, options);
64
+ continuationToken = result.nextLink;
65
+ let page = result.value || [];
66
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
67
+ yield page;
68
+ }
70
69
  }
71
- listByClusterPagingAll(resourceGroupName, clusterName, options) {
72
- return tslib_1.__asyncGenerator(this, arguments, function* listByClusterPagingAll_1() {
73
- var _a, e_1, _b, _c;
74
- try {
75
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByClusterPagingPage(resourceGroupName, clusterName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
76
- _c = _f.value;
77
- _d = false;
78
- const page = _c;
79
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
80
- }
81
- }
82
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
83
- finally {
84
- try {
85
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
86
- }
87
- finally { if (e_1) throw e_1.error; }
88
- }
89
- });
70
+ async *listByClusterPagingAll(resourceGroupName, clusterName, options) {
71
+ for await (const page of this.listByClusterPagingPage(resourceGroupName, clusterName, options)) {
72
+ yield* page;
73
+ }
90
74
  }
91
75
  /**
92
76
  * Creates a Stream Analytics Private Endpoint or replaces an already existing Private Endpoint.
@@ -128,14 +112,19 @@ class PrivateEndpointsImpl {
128
112
  return this.client.sendOperationRequest(args, spec);
129
113
  };
130
114
  const sendOperationFn = async (args, spec) => {
131
- var _a;
132
115
  let currentRawResponse = undefined;
133
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
116
+ const providedCallback = args.options?.onResponse;
134
117
  const callback = (rawResponse, flatResponse) => {
135
118
  currentRawResponse = rawResponse;
136
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
119
+ providedCallback?.(rawResponse, flatResponse);
120
+ };
121
+ const updatedArgs = {
122
+ ...args,
123
+ options: {
124
+ ...args.options,
125
+ onResponse: callback,
126
+ },
137
127
  };
138
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
139
128
  const flatResponse = await directSendOperation(updatedArgs, spec);
140
129
  return {
141
130
  flatResponse,
@@ -152,8 +141,8 @@ class PrivateEndpointsImpl {
152
141
  spec: deleteOperationSpec,
153
142
  });
154
143
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
155
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
156
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
144
+ restoreFrom: options?.resumeFrom,
145
+ intervalInMs: options?.updateIntervalInMs,
157
146
  });
158
147
  await poller.poll();
159
148
  return poller;
@@ -1 +1 @@
1
- {"version":3,"file":"privateEndpoints.js","sourceRoot":"","sources":["../../../src/operations/privateEndpoints.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAc9C,4CAA4C;AAC5C,oDAAoD;AACpD,MAAa,oBAAoB;IAG/B;;;OAGG;IACH,YAAY,MAAuC;QACjD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,aAAa,CAClB,iBAAyB,EACzB,WAAmB,EACnB,OAAqD;QAErD,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CACtC,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CA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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"]}
1
+ {"version":3,"file":"privateEndpoints.js","sourceRoot":"","sources":["../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\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"]}
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
16
  /// <reference lib="esnext.asynciterable" />
17
17
  /** Class containing SkuOperations operations. */
18
18
  class SkuOperationsImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class SkuOperations class.
21
22
  * @param client Reference to the service client
@@ -39,52 +40,35 @@ class SkuOperationsImpl {
39
40
  return this;
40
41
  },
41
42
  byPage: (settings) => {
42
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
43
+ if (settings?.maxPageSize) {
43
44
  throw new Error("maxPageSize is not supported by this operation.");
44
45
  }
45
46
  return this.listPagingPage(resourceGroupName, jobName, options, settings);
46
47
  },
47
48
  };
48
49
  }
49
- listPagingPage(resourceGroupName, jobName, options, settings) {
50
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
51
- let result;
52
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
53
- if (!continuationToken) {
54
- result = yield tslib_1.__await(this._list(resourceGroupName, jobName, options));
55
- let page = result.value || [];
56
- continuationToken = result.nextLink;
57
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
58
- yield yield tslib_1.__await(page);
59
- }
60
- while (continuationToken) {
61
- result = yield tslib_1.__await(this._listNext(resourceGroupName, jobName, continuationToken, options));
62
- continuationToken = result.nextLink;
63
- let page = result.value || [];
64
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
65
- yield yield tslib_1.__await(page);
66
- }
67
- });
50
+ async *listPagingPage(resourceGroupName, jobName, options, settings) {
51
+ let result;
52
+ let continuationToken = settings?.continuationToken;
53
+ if (!continuationToken) {
54
+ result = await this._list(resourceGroupName, jobName, options);
55
+ let page = result.value || [];
56
+ continuationToken = result.nextLink;
57
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
58
+ yield page;
59
+ }
60
+ while (continuationToken) {
61
+ result = await this._listNext(resourceGroupName, jobName, continuationToken, options);
62
+ continuationToken = result.nextLink;
63
+ let page = result.value || [];
64
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
65
+ yield page;
66
+ }
68
67
  }
69
- listPagingAll(resourceGroupName, jobName, options) {
70
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
71
- var _a, e_1, _b, _c;
72
- try {
73
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, jobName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
74
- _c = _f.value;
75
- _d = false;
76
- const page = _c;
77
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
78
- }
79
- }
80
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
81
- finally {
82
- try {
83
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
84
- }
85
- finally { if (e_1) throw e_1.error; }
86
- }
87
- });
68
+ async *listPagingAll(resourceGroupName, jobName, options) {
69
+ for await (const page of this.listPagingPage(resourceGroupName, jobName, options)) {
70
+ yield* page;
71
+ }
88
72
  }
89
73
  /**
90
74
  * Gets a list of available SKUs about the specified streaming job.