@azure/arm-appinsights 5.0.0-alpha.20250618.1 → 5.0.0-alpha.20250718.2

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 (187) hide show
  1. package/dist/browser/applicationInsightsManagementClient.js +32 -5
  2. package/dist/browser/applicationInsightsManagementClient.js.map +1 -1
  3. package/dist/browser/models/mappers.js +194 -91
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/aPIKeys.js +10 -27
  6. package/dist/browser/operations/aPIKeys.js.map +1 -1
  7. package/dist/browser/operations/analyticsItems.js +1 -0
  8. package/dist/browser/operations/analyticsItems.js.map +1 -1
  9. package/dist/browser/operations/annotations.js +10 -27
  10. package/dist/browser/operations/annotations.js.map +1 -1
  11. package/dist/browser/operations/componentAvailableFeatures.js +1 -0
  12. package/dist/browser/operations/componentAvailableFeatures.js.map +1 -1
  13. package/dist/browser/operations/componentCurrentBillingFeatures.js +1 -0
  14. package/dist/browser/operations/componentCurrentBillingFeatures.js.map +1 -1
  15. package/dist/browser/operations/componentFeatureCapabilities.js +1 -0
  16. package/dist/browser/operations/componentFeatureCapabilities.js.map +1 -1
  17. package/dist/browser/operations/componentLinkedStorageAccountsOperations.js +1 -0
  18. package/dist/browser/operations/componentLinkedStorageAccountsOperations.js.map +1 -1
  19. package/dist/browser/operations/componentQuotaStatus.js +1 -0
  20. package/dist/browser/operations/componentQuotaStatus.js.map +1 -1
  21. package/dist/browser/operations/components.js +45 -79
  22. package/dist/browser/operations/components.js.map +1 -1
  23. package/dist/browser/operations/deletedWorkbooks.js +23 -40
  24. package/dist/browser/operations/deletedWorkbooks.js.map +1 -1
  25. package/dist/browser/operations/exportConfigurations.js +1 -0
  26. package/dist/browser/operations/exportConfigurations.js.map +1 -1
  27. package/dist/browser/operations/favorites.js +1 -0
  28. package/dist/browser/operations/favorites.js.map +1 -1
  29. package/dist/browser/operations/liveToken.js +1 -0
  30. package/dist/browser/operations/liveToken.js.map +1 -1
  31. package/dist/browser/operations/operations.js +23 -40
  32. package/dist/browser/operations/operations.js.map +1 -1
  33. package/dist/browser/operations/proactiveDetectionConfigurations.js +1 -0
  34. package/dist/browser/operations/proactiveDetectionConfigurations.js.map +1 -1
  35. package/dist/browser/operations/webTestLocations.js +10 -27
  36. package/dist/browser/operations/webTestLocations.js.map +1 -1
  37. package/dist/browser/operations/webTests.js +67 -118
  38. package/dist/browser/operations/webTests.js.map +1 -1
  39. package/dist/browser/operations/workItemConfigurations.js +10 -27
  40. package/dist/browser/operations/workItemConfigurations.js.map +1 -1
  41. package/dist/browser/operations/workbookTemplates.js +10 -27
  42. package/dist/browser/operations/workbookTemplates.js.map +1 -1
  43. package/dist/browser/operations/workbooks.js +67 -118
  44. package/dist/browser/operations/workbooks.js.map +1 -1
  45. package/dist/browser/pagingHelper.js +2 -4
  46. package/dist/browser/pagingHelper.js.map +1 -1
  47. package/dist/commonjs/applicationInsightsManagementClient.js +32 -5
  48. package/dist/commonjs/applicationInsightsManagementClient.js.map +1 -1
  49. package/dist/commonjs/models/mappers.js +194 -91
  50. package/dist/commonjs/models/mappers.js.map +1 -1
  51. package/dist/commonjs/operations/aPIKeys.js +10 -26
  52. package/dist/commonjs/operations/aPIKeys.js.map +1 -1
  53. package/dist/commonjs/operations/analyticsItems.js +1 -0
  54. package/dist/commonjs/operations/analyticsItems.js.map +1 -1
  55. package/dist/commonjs/operations/annotations.js +10 -26
  56. package/dist/commonjs/operations/annotations.js.map +1 -1
  57. package/dist/commonjs/operations/componentAvailableFeatures.js +1 -0
  58. package/dist/commonjs/operations/componentAvailableFeatures.js.map +1 -1
  59. package/dist/commonjs/operations/componentCurrentBillingFeatures.js +1 -0
  60. package/dist/commonjs/operations/componentCurrentBillingFeatures.js.map +1 -1
  61. package/dist/commonjs/operations/componentFeatureCapabilities.js +1 -0
  62. package/dist/commonjs/operations/componentFeatureCapabilities.js.map +1 -1
  63. package/dist/commonjs/operations/componentLinkedStorageAccountsOperations.js +1 -0
  64. package/dist/commonjs/operations/componentLinkedStorageAccountsOperations.js.map +1 -1
  65. package/dist/commonjs/operations/componentQuotaStatus.js +1 -0
  66. package/dist/commonjs/operations/componentQuotaStatus.js.map +1 -1
  67. package/dist/commonjs/operations/components.js +45 -78
  68. package/dist/commonjs/operations/components.js.map +1 -1
  69. package/dist/commonjs/operations/deletedWorkbooks.js +23 -39
  70. package/dist/commonjs/operations/deletedWorkbooks.js.map +1 -1
  71. package/dist/commonjs/operations/exportConfigurations.js +1 -0
  72. package/dist/commonjs/operations/exportConfigurations.js.map +1 -1
  73. package/dist/commonjs/operations/favorites.js +1 -0
  74. package/dist/commonjs/operations/favorites.js.map +1 -1
  75. package/dist/commonjs/operations/liveToken.js +1 -0
  76. package/dist/commonjs/operations/liveToken.js.map +1 -1
  77. package/dist/commonjs/operations/operations.js +23 -39
  78. package/dist/commonjs/operations/operations.js.map +1 -1
  79. package/dist/commonjs/operations/proactiveDetectionConfigurations.js +1 -0
  80. package/dist/commonjs/operations/proactiveDetectionConfigurations.js.map +1 -1
  81. package/dist/commonjs/operations/webTestLocations.js +10 -26
  82. package/dist/commonjs/operations/webTestLocations.js.map +1 -1
  83. package/dist/commonjs/operations/webTests.js +67 -117
  84. package/dist/commonjs/operations/webTests.js.map +1 -1
  85. package/dist/commonjs/operations/workItemConfigurations.js +10 -26
  86. package/dist/commonjs/operations/workItemConfigurations.js.map +1 -1
  87. package/dist/commonjs/operations/workbookTemplates.js +10 -26
  88. package/dist/commonjs/operations/workbookTemplates.js.map +1 -1
  89. package/dist/commonjs/operations/workbooks.js +67 -117
  90. package/dist/commonjs/operations/workbooks.js.map +1 -1
  91. package/dist/commonjs/pagingHelper.js +2 -4
  92. package/dist/commonjs/pagingHelper.js.map +1 -1
  93. package/dist/commonjs/tsdoc-metadata.json +11 -11
  94. package/dist/esm/applicationInsightsManagementClient.js +32 -5
  95. package/dist/esm/applicationInsightsManagementClient.js.map +1 -1
  96. package/dist/esm/models/mappers.js +194 -91
  97. package/dist/esm/models/mappers.js.map +1 -1
  98. package/dist/esm/operations/aPIKeys.js +10 -27
  99. package/dist/esm/operations/aPIKeys.js.map +1 -1
  100. package/dist/esm/operations/analyticsItems.js +1 -0
  101. package/dist/esm/operations/analyticsItems.js.map +1 -1
  102. package/dist/esm/operations/annotations.js +10 -27
  103. package/dist/esm/operations/annotations.js.map +1 -1
  104. package/dist/esm/operations/componentAvailableFeatures.js +1 -0
  105. package/dist/esm/operations/componentAvailableFeatures.js.map +1 -1
  106. package/dist/esm/operations/componentCurrentBillingFeatures.js +1 -0
  107. package/dist/esm/operations/componentCurrentBillingFeatures.js.map +1 -1
  108. package/dist/esm/operations/componentFeatureCapabilities.js +1 -0
  109. package/dist/esm/operations/componentFeatureCapabilities.js.map +1 -1
  110. package/dist/esm/operations/componentLinkedStorageAccountsOperations.js +1 -0
  111. package/dist/esm/operations/componentLinkedStorageAccountsOperations.js.map +1 -1
  112. package/dist/esm/operations/componentQuotaStatus.js +1 -0
  113. package/dist/esm/operations/componentQuotaStatus.js.map +1 -1
  114. package/dist/esm/operations/components.js +45 -79
  115. package/dist/esm/operations/components.js.map +1 -1
  116. package/dist/esm/operations/deletedWorkbooks.js +23 -40
  117. package/dist/esm/operations/deletedWorkbooks.js.map +1 -1
  118. package/dist/esm/operations/exportConfigurations.js +1 -0
  119. package/dist/esm/operations/exportConfigurations.js.map +1 -1
  120. package/dist/esm/operations/favorites.js +1 -0
  121. package/dist/esm/operations/favorites.js.map +1 -1
  122. package/dist/esm/operations/liveToken.js +1 -0
  123. package/dist/esm/operations/liveToken.js.map +1 -1
  124. package/dist/esm/operations/operations.js +23 -40
  125. package/dist/esm/operations/operations.js.map +1 -1
  126. package/dist/esm/operations/proactiveDetectionConfigurations.js +1 -0
  127. package/dist/esm/operations/proactiveDetectionConfigurations.js.map +1 -1
  128. package/dist/esm/operations/webTestLocations.js +10 -27
  129. package/dist/esm/operations/webTestLocations.js.map +1 -1
  130. package/dist/esm/operations/webTests.js +67 -118
  131. package/dist/esm/operations/webTests.js.map +1 -1
  132. package/dist/esm/operations/workItemConfigurations.js +10 -27
  133. package/dist/esm/operations/workItemConfigurations.js.map +1 -1
  134. package/dist/esm/operations/workbookTemplates.js +10 -27
  135. package/dist/esm/operations/workbookTemplates.js.map +1 -1
  136. package/dist/esm/operations/workbooks.js +67 -118
  137. package/dist/esm/operations/workbooks.js.map +1 -1
  138. package/dist/esm/pagingHelper.js +2 -4
  139. package/dist/esm/pagingHelper.js.map +1 -1
  140. package/dist/react-native/applicationInsightsManagementClient.js +32 -5
  141. package/dist/react-native/applicationInsightsManagementClient.js.map +1 -1
  142. package/dist/react-native/models/mappers.js +194 -91
  143. package/dist/react-native/models/mappers.js.map +1 -1
  144. package/dist/react-native/operations/aPIKeys.js +10 -27
  145. package/dist/react-native/operations/aPIKeys.js.map +1 -1
  146. package/dist/react-native/operations/analyticsItems.js +1 -0
  147. package/dist/react-native/operations/analyticsItems.js.map +1 -1
  148. package/dist/react-native/operations/annotations.js +10 -27
  149. package/dist/react-native/operations/annotations.js.map +1 -1
  150. package/dist/react-native/operations/componentAvailableFeatures.js +1 -0
  151. package/dist/react-native/operations/componentAvailableFeatures.js.map +1 -1
  152. package/dist/react-native/operations/componentCurrentBillingFeatures.js +1 -0
  153. package/dist/react-native/operations/componentCurrentBillingFeatures.js.map +1 -1
  154. package/dist/react-native/operations/componentFeatureCapabilities.js +1 -0
  155. package/dist/react-native/operations/componentFeatureCapabilities.js.map +1 -1
  156. package/dist/react-native/operations/componentLinkedStorageAccountsOperations.js +1 -0
  157. package/dist/react-native/operations/componentLinkedStorageAccountsOperations.js.map +1 -1
  158. package/dist/react-native/operations/componentQuotaStatus.js +1 -0
  159. package/dist/react-native/operations/componentQuotaStatus.js.map +1 -1
  160. package/dist/react-native/operations/components.js +45 -79
  161. package/dist/react-native/operations/components.js.map +1 -1
  162. package/dist/react-native/operations/deletedWorkbooks.js +23 -40
  163. package/dist/react-native/operations/deletedWorkbooks.js.map +1 -1
  164. package/dist/react-native/operations/exportConfigurations.js +1 -0
  165. package/dist/react-native/operations/exportConfigurations.js.map +1 -1
  166. package/dist/react-native/operations/favorites.js +1 -0
  167. package/dist/react-native/operations/favorites.js.map +1 -1
  168. package/dist/react-native/operations/liveToken.js +1 -0
  169. package/dist/react-native/operations/liveToken.js.map +1 -1
  170. package/dist/react-native/operations/operations.js +23 -40
  171. package/dist/react-native/operations/operations.js.map +1 -1
  172. package/dist/react-native/operations/proactiveDetectionConfigurations.js +1 -0
  173. package/dist/react-native/operations/proactiveDetectionConfigurations.js.map +1 -1
  174. package/dist/react-native/operations/webTestLocations.js +10 -27
  175. package/dist/react-native/operations/webTestLocations.js.map +1 -1
  176. package/dist/react-native/operations/webTests.js +67 -118
  177. package/dist/react-native/operations/webTests.js.map +1 -1
  178. package/dist/react-native/operations/workItemConfigurations.js +10 -27
  179. package/dist/react-native/operations/workItemConfigurations.js.map +1 -1
  180. package/dist/react-native/operations/workbookTemplates.js +10 -27
  181. package/dist/react-native/operations/workbookTemplates.js.map +1 -1
  182. package/dist/react-native/operations/workbooks.js +67 -118
  183. package/dist/react-native/operations/workbooks.js.map +1 -1
  184. package/dist/react-native/pagingHelper.js +2 -4
  185. package/dist/react-native/pagingHelper.js.map +1 -1
  186. package/package.json +2 -2
  187. /package/review/{arm-appinsights.api.md → arm-appinsights-node.api.md} +0 -0
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
16
  /// <reference lib="esnext.asynciterable" />
17
17
  /** Class containing Operations operations. */
18
18
  class OperationsImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class Operations class.
21
22
  * @param client Reference to the service client
@@ -37,52 +38,35 @@ class OperationsImpl {
37
38
  return this;
38
39
  },
39
40
  byPage: (settings) => {
40
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
+ if (settings?.maxPageSize) {
41
42
  throw new Error("maxPageSize is not supported by this operation.");
42
43
  }
43
44
  return this.listPagingPage(options, settings);
44
45
  },
45
46
  };
46
47
  }
47
- listPagingPage(options, settings) {
48
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
49
- let result;
50
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
51
- if (!continuationToken) {
52
- result = yield tslib_1.__await(this._list(options));
53
- let page = result.value || [];
54
- continuationToken = result.nextLink;
55
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
56
- yield yield tslib_1.__await(page);
57
- }
58
- while (continuationToken) {
59
- result = yield tslib_1.__await(this._listNext(continuationToken, options));
60
- continuationToken = result.nextLink;
61
- let page = result.value || [];
62
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
- yield yield tslib_1.__await(page);
64
- }
65
- });
48
+ async *listPagingPage(options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._list(options);
53
+ let page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
56
+ yield page;
57
+ }
58
+ while (continuationToken) {
59
+ result = await this._listNext(continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
+ yield page;
64
+ }
66
65
  }
67
- listPagingAll(options) {
68
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
69
- var _a, e_1, _b, _c;
70
- try {
71
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
72
- _c = _f.value;
73
- _d = false;
74
- const page = _c;
75
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
76
- }
77
- }
78
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
79
- finally {
80
- try {
81
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
82
- }
83
- finally { if (e_1) throw e_1.error; }
84
- }
85
- });
66
+ async *listPagingAll(options) {
67
+ for await (const page of this.listPagingPage(options)) {
68
+ yield* page;
69
+ }
86
70
  }
87
71
  /**
88
72
  * Lists all of the available insights REST API operations.
@@ -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,MAA2C;QACrD,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,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,iBAAiB,CAAC;YACpD,IAAI,CAAC,iBAAiB,EAAE,CAAC;gBACvB,MAAM,GAAG,sBAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,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2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,0CAA0C;IAChD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,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,aAAa;SAClC;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 { ApplicationInsightsManagementClient } from \"../applicationInsightsManagementClient.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: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the available insights REST API 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 insights REST API 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.Insights/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion3],\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.ErrorResponse,\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,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,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,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,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BAAiB,CAAC,CAAC;IAC1E,CAAC;IAED;;;;OAIG;IACK,SAAS,CACf,QAAgB,EAChB,OAA0C;QAE1C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,OAAO,EAAE,EACrB,qBAAqB,CACtB,CAAC;IACJ,CAAC;CACF;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,0CAA0C;IAChD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,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,aAAa;SAClC;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 { ApplicationInsightsManagementClient } from \"../applicationInsightsManagementClient.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: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all of the available insights REST API 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 insights REST API 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.Insights/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion3],\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.ErrorResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
14
  const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /** Class containing ProactiveDetectionConfigurations operations. */
16
16
  class ProactiveDetectionConfigurationsImpl {
17
+ client;
17
18
  /**
18
19
  * Initialize a new instance of the class ProactiveDetectionConfigurations class.
19
20
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"proactiveDetectionConfigurations.js","sourceRoot":"","sources":["../../../src/operations/proactiveDetectionConfigurations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD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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 { ProactiveDetectionConfigurations } 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 { ApplicationInsightsManagementClient } from \"../applicationInsightsManagementClient.js\";\nimport {\n ProactiveDetectionConfigurationsListOptionalParams,\n ProactiveDetectionConfigurationsListResponse,\n ProactiveDetectionConfigurationsGetOptionalParams,\n ProactiveDetectionConfigurationsGetResponse,\n ApplicationInsightsComponentProactiveDetectionConfiguration,\n ProactiveDetectionConfigurationsUpdateOptionalParams,\n ProactiveDetectionConfigurationsUpdateResponse,\n} from \"../models/index.js\";\n\n/** Class containing ProactiveDetectionConfigurations operations. */\nexport class ProactiveDetectionConfigurationsImpl\n implements ProactiveDetectionConfigurations\n{\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class ProactiveDetectionConfigurations class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of ProactiveDetection configurations of an Application Insights component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n resourceName: string,\n options?: ProactiveDetectionConfigurationsListOptionalParams,\n ): Promise<ProactiveDetectionConfigurationsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Get the ProactiveDetection configuration for this configuration id.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param configurationId The ProactiveDetection configuration ID. This is unique within a Application\n * Insights component.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n configurationId: string,\n options?: ProactiveDetectionConfigurationsGetOptionalParams,\n ): Promise<ProactiveDetectionConfigurationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, configurationId, options },\n getOperationSpec,\n );\n }\n\n /**\n * Update the ProactiveDetection configuration for this configuration id.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param configurationId The ProactiveDetection configuration ID. This is unique within a Application\n * Insights component.\n * @param proactiveDetectionProperties Properties that need to be specified to update the\n * ProactiveDetection configuration.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n configurationId: string,\n proactiveDetectionProperties: ApplicationInsightsComponentProactiveDetectionConfiguration,\n options?: ProactiveDetectionConfigurationsUpdateOptionalParams,\n ): Promise<ProactiveDetectionConfigurationsUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n configurationId,\n proactiveDetectionProperties,\n options,\n },\n updateOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className:\n \"ApplicationInsightsComponentProactiveDetectionConfiguration\",\n },\n },\n },\n },\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs/{ConfigurationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper:\n Mappers.ApplicationInsightsComponentProactiveDetectionConfiguration,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.configurationId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs/{ConfigurationId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper:\n Mappers.ApplicationInsightsComponentProactiveDetectionConfiguration,\n },\n },\n requestBody: Parameters.proactiveDetectionProperties,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.configurationId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
1
+ {"version":3,"file":"proactiveDetectionConfigurations.js","sourceRoot":"","sources":["../../../src/operations/proactiveDetectionConfigurations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAYtD,oEAAoE;AACpE,MAAa,oCAAoC;IAG9B,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,iBAAyB,EACzB,YAAoB,EACpB,OAA4D;QAE5D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,EAC5C,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,eAAuB,EACvB,OAA2D;QAE3D,OAAO,IAAI,CA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C,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,uKAAuK;IAC7K,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EACR,OAAO,CAAC,2DAA2D;SACtE;KACF;IACD,WAAW,EAAE,UAAU,CAAC,4BAA4B;IACpD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,eAAe;KAC3B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,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 { ProactiveDetectionConfigurations } 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 { ApplicationInsightsManagementClient } from \"../applicationInsightsManagementClient.js\";\nimport {\n ProactiveDetectionConfigurationsListOptionalParams,\n ProactiveDetectionConfigurationsListResponse,\n ProactiveDetectionConfigurationsGetOptionalParams,\n ProactiveDetectionConfigurationsGetResponse,\n ApplicationInsightsComponentProactiveDetectionConfiguration,\n ProactiveDetectionConfigurationsUpdateOptionalParams,\n ProactiveDetectionConfigurationsUpdateResponse,\n} from \"../models/index.js\";\n\n/** Class containing ProactiveDetectionConfigurations operations. */\nexport class ProactiveDetectionConfigurationsImpl\n implements ProactiveDetectionConfigurations\n{\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class ProactiveDetectionConfigurations class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of ProactiveDetection configurations of an Application Insights component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n resourceName: string,\n options?: ProactiveDetectionConfigurationsListOptionalParams,\n ): Promise<ProactiveDetectionConfigurationsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Get the ProactiveDetection configuration for this configuration id.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param configurationId The ProactiveDetection configuration ID. This is unique within a Application\n * Insights component.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n configurationId: string,\n options?: ProactiveDetectionConfigurationsGetOptionalParams,\n ): Promise<ProactiveDetectionConfigurationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, configurationId, options },\n getOperationSpec,\n );\n }\n\n /**\n * Update the ProactiveDetection configuration for this configuration id.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param configurationId The ProactiveDetection configuration ID. This is unique within a Application\n * Insights component.\n * @param proactiveDetectionProperties Properties that need to be specified to update the\n * ProactiveDetection configuration.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n configurationId: string,\n proactiveDetectionProperties: ApplicationInsightsComponentProactiveDetectionConfiguration,\n options?: ProactiveDetectionConfigurationsUpdateOptionalParams,\n ): Promise<ProactiveDetectionConfigurationsUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n configurationId,\n proactiveDetectionProperties,\n options,\n },\n updateOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className:\n \"ApplicationInsightsComponentProactiveDetectionConfiguration\",\n },\n },\n },\n },\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs/{ConfigurationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper:\n Mappers.ApplicationInsightsComponentProactiveDetectionConfiguration,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.configurationId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs/{ConfigurationId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper:\n Mappers.ApplicationInsightsComponentProactiveDetectionConfiguration,\n },\n },\n requestBody: Parameters.proactiveDetectionProperties,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.configurationId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
@@ -15,6 +15,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /// <reference lib="esnext.asynciterable" />
16
16
  /** Class containing WebTestLocations operations. */
17
17
  class WebTestLocationsImpl {
18
+ client;
18
19
  /**
19
20
  * Initialize a new instance of the class WebTestLocations class.
20
21
  * @param client Reference to the service client
@@ -38,39 +39,22 @@ class WebTestLocationsImpl {
38
39
  return this;
39
40
  },
40
41
  byPage: (settings) => {
41
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
42
+ if (settings?.maxPageSize) {
42
43
  throw new Error("maxPageSize is not supported by this operation.");
43
44
  }
44
45
  return this.listPagingPage(resourceGroupName, resourceName, options, settings);
45
46
  },
46
47
  };
47
48
  }
48
- listPagingPage(resourceGroupName, resourceName, options, _settings) {
49
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
50
- let result;
51
- result = yield tslib_1.__await(this._list(resourceGroupName, resourceName, options));
52
- yield yield tslib_1.__await(result.value || []);
53
- });
49
+ async *listPagingPage(resourceGroupName, resourceName, options, _settings) {
50
+ let result;
51
+ result = await this._list(resourceGroupName, resourceName, options);
52
+ yield result.value || [];
54
53
  }
55
- listPagingAll(resourceGroupName, resourceName, options) {
56
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
57
- var _a, e_1, _b, _c;
58
- try {
59
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, resourceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
60
- _c = _f.value;
61
- _d = false;
62
- const page = _c;
63
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
64
- }
65
- }
66
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
67
- finally {
68
- try {
69
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
70
- }
71
- finally { if (e_1) throw e_1.error; }
72
- }
73
- });
54
+ async *listPagingAll(resourceGroupName, resourceName, options) {
55
+ for await (const page of this.listPagingPage(resourceGroupName, resourceName, options)) {
56
+ yield* page;
57
+ }
74
58
  }
75
59
  /**
76
60
  * Gets a list of web test locations available to this Application Insights component.
@@ -1 +1 @@
1
- {"version":3,"file":"webTestLocations.js","sourceRoot":"","sources":["../../../src/operations/webTestLocations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,oDAAoD;AACpD,MAAa,oBAAoB;IAG/B;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,YAAoB,EACpB,OAA4C;QAE5C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;QAC1E,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,CACxB,iBAAiB,EACjB,YAAY,EACZ,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,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C,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;KACxB;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 { WebTestLocations } 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 { ApplicationInsightsManagementClient } from \"../applicationInsightsManagementClient.js\";\nimport {\n ApplicationInsightsComponentWebTestLocation,\n WebTestLocationsListOptionalParams,\n WebTestLocationsListResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing WebTestLocations operations. */\nexport class WebTestLocationsImpl implements WebTestLocations {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class WebTestLocations class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of web test locations available to this Application Insights component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n resourceName: string,\n options?: WebTestLocationsListOptionalParams,\n ): PagedAsyncIterableIterator<ApplicationInsightsComponentWebTestLocation> {\n const iter = this.listPagingAll(resourceGroupName, resourceName, 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(\n resourceGroupName,\n resourceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n resourceName: string,\n options?: WebTestLocationsListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<ApplicationInsightsComponentWebTestLocation[]> {\n let result: WebTestLocationsListResponse;\n result = await this._list(resourceGroupName, resourceName, options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n resourceName: string,\n options?: WebTestLocationsListOptionalParams,\n ): AsyncIterableIterator<ApplicationInsightsComponentWebTestLocation> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n resourceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of web test locations available to this Application Insights component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n resourceName: string,\n options?: WebTestLocationsListOptionalParams,\n ): Promise<WebTestLocationsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/syntheticmonitorlocations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsWebTestLocationsListResult,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"webTestLocations.js","sourceRoot":"","sources":["../../../src/operations/webTestLocations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,oDAAoD;AACpD,MAAa,oBAAoB;IACd,MAAM,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yB,EACzB,YAAoB,EACpB,OAA4C;QAE5C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,EAC5C,iBAAiB,CAClB,CAAC;IACJ,CAAC;CACF;AArFD,oDAqFC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,qJAAqJ;IAC3J,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6CAA6C;SAClE;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;KACxB;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 { WebTestLocations } 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 { ApplicationInsightsManagementClient } from \"../applicationInsightsManagementClient.js\";\nimport {\n ApplicationInsightsComponentWebTestLocation,\n WebTestLocationsListOptionalParams,\n WebTestLocationsListResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing WebTestLocations operations. */\nexport class WebTestLocationsImpl implements WebTestLocations {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class WebTestLocations class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of web test locations available to this Application Insights component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n resourceName: string,\n options?: WebTestLocationsListOptionalParams,\n ): PagedAsyncIterableIterator<ApplicationInsightsComponentWebTestLocation> {\n const iter = this.listPagingAll(resourceGroupName, resourceName, 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(\n resourceGroupName,\n resourceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n resourceName: string,\n options?: WebTestLocationsListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<ApplicationInsightsComponentWebTestLocation[]> {\n let result: WebTestLocationsListResponse;\n result = await this._list(resourceGroupName, resourceName, options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n resourceName: string,\n options?: WebTestLocationsListOptionalParams,\n ): AsyncIterableIterator<ApplicationInsightsComponentWebTestLocation> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n resourceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of web test locations available to this Application Insights component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n resourceName: string,\n options?: WebTestLocationsListOptionalParams,\n ): Promise<WebTestLocationsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/syntheticmonitorlocations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsWebTestLocationsListResult,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\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 WebTests operations. */
18
18
  class WebTestsImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class WebTests class.
21
22
  * @param client Reference to the service client
@@ -38,52 +39,35 @@ class WebTestsImpl {
38
39
  return this;
39
40
  },
40
41
  byPage: (settings) => {
41
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
42
+ if (settings?.maxPageSize) {
42
43
  throw new Error("maxPageSize is not supported by this operation.");
43
44
  }
44
45
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
45
46
  },
46
47
  };
47
48
  }
48
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
49
- return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
50
- let result;
51
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
- if (!continuationToken) {
53
- result = yield tslib_1.__await(this._listByResourceGroup(resourceGroupName, options));
54
- let page = result.value || [];
55
- continuationToken = result.nextLink;
56
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
57
- yield yield tslib_1.__await(page);
58
- }
59
- while (continuationToken) {
60
- result = yield tslib_1.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
64
- yield yield tslib_1.__await(page);
65
- }
66
- });
49
+ async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
50
+ let result;
51
+ let continuationToken = settings?.continuationToken;
52
+ if (!continuationToken) {
53
+ result = await this._listByResourceGroup(resourceGroupName, options);
54
+ let page = result.value || [];
55
+ continuationToken = result.nextLink;
56
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
57
+ yield page;
58
+ }
59
+ while (continuationToken) {
60
+ result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
61
+ continuationToken = result.nextLink;
62
+ let page = result.value || [];
63
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
64
+ yield page;
65
+ }
67
66
  }
68
- listByResourceGroupPagingAll(resourceGroupName, options) {
69
- return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
70
- var _a, e_1, _b, _c;
71
- try {
72
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
73
- _c = _f.value;
74
- _d = false;
75
- const page = _c;
76
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
77
- }
78
- }
79
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
80
- finally {
81
- try {
82
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
83
- }
84
- finally { if (e_1) throw e_1.error; }
85
- }
86
- });
67
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
68
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
69
+ yield* page;
70
+ }
87
71
  }
88
72
  /**
89
73
  * Get all Application Insights web test definitions for the specified subscription.
@@ -99,52 +83,35 @@ class WebTestsImpl {
99
83
  return this;
100
84
  },
101
85
  byPage: (settings) => {
102
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
86
+ if (settings?.maxPageSize) {
103
87
  throw new Error("maxPageSize is not supported by this operation.");
104
88
  }
105
89
  return this.listPagingPage(options, settings);
106
90
  },
107
91
  };
108
92
  }
109
- listPagingPage(options, settings) {
110
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
111
- let result;
112
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
113
- if (!continuationToken) {
114
- result = yield tslib_1.__await(this._list(options));
115
- let page = result.value || [];
116
- continuationToken = result.nextLink;
117
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
118
- yield yield tslib_1.__await(page);
119
- }
120
- while (continuationToken) {
121
- result = yield tslib_1.__await(this._listNext(continuationToken, options));
122
- continuationToken = result.nextLink;
123
- let page = result.value || [];
124
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
125
- yield yield tslib_1.__await(page);
126
- }
127
- });
93
+ async *listPagingPage(options, settings) {
94
+ let result;
95
+ let continuationToken = settings?.continuationToken;
96
+ if (!continuationToken) {
97
+ result = await this._list(options);
98
+ let page = result.value || [];
99
+ continuationToken = result.nextLink;
100
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
101
+ yield page;
102
+ }
103
+ while (continuationToken) {
104
+ result = await this._listNext(continuationToken, options);
105
+ continuationToken = result.nextLink;
106
+ let page = result.value || [];
107
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
108
+ yield page;
109
+ }
128
110
  }
129
- listPagingAll(options) {
130
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
131
- var _a, e_2, _b, _c;
132
- try {
133
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
134
- _c = _f.value;
135
- _d = false;
136
- const page = _c;
137
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
138
- }
139
- }
140
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
141
- finally {
142
- try {
143
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
144
- }
145
- finally { if (e_2) throw e_2.error; }
146
- }
147
- });
111
+ async *listPagingAll(options) {
112
+ for await (const page of this.listPagingPage(options)) {
113
+ yield* page;
114
+ }
148
115
  }
149
116
  /**
150
117
  * Get all Application Insights web tests defined for the specified component.
@@ -162,52 +129,35 @@ class WebTestsImpl {
162
129
  return this;
163
130
  },
164
131
  byPage: (settings) => {
165
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
132
+ if (settings?.maxPageSize) {
166
133
  throw new Error("maxPageSize is not supported by this operation.");
167
134
  }
168
135
  return this.listByComponentPagingPage(componentName, resourceGroupName, options, settings);
169
136
  },
170
137
  };
171
138
  }
172
- listByComponentPagingPage(componentName, resourceGroupName, options, settings) {
173
- return tslib_1.__asyncGenerator(this, arguments, function* listByComponentPagingPage_1() {
174
- let result;
175
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
176
- if (!continuationToken) {
177
- result = yield tslib_1.__await(this._listByComponent(componentName, resourceGroupName, options));
178
- let page = result.value || [];
179
- continuationToken = result.nextLink;
180
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
181
- yield yield tslib_1.__await(page);
182
- }
183
- while (continuationToken) {
184
- result = yield tslib_1.__await(this._listByComponentNext(componentName, resourceGroupName, continuationToken, options));
185
- continuationToken = result.nextLink;
186
- let page = result.value || [];
187
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
188
- yield yield tslib_1.__await(page);
189
- }
190
- });
139
+ async *listByComponentPagingPage(componentName, resourceGroupName, options, settings) {
140
+ let result;
141
+ let continuationToken = settings?.continuationToken;
142
+ if (!continuationToken) {
143
+ result = await this._listByComponent(componentName, resourceGroupName, options);
144
+ let page = result.value || [];
145
+ continuationToken = result.nextLink;
146
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
147
+ yield page;
148
+ }
149
+ while (continuationToken) {
150
+ result = await this._listByComponentNext(componentName, resourceGroupName, continuationToken, options);
151
+ continuationToken = result.nextLink;
152
+ let page = result.value || [];
153
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
154
+ yield page;
155
+ }
191
156
  }
192
- listByComponentPagingAll(componentName, resourceGroupName, options) {
193
- return tslib_1.__asyncGenerator(this, arguments, function* listByComponentPagingAll_1() {
194
- var _a, e_3, _b, _c;
195
- try {
196
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByComponentPagingPage(componentName, resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
197
- _c = _f.value;
198
- _d = false;
199
- const page = _c;
200
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
201
- }
202
- }
203
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
204
- finally {
205
- try {
206
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
207
- }
208
- finally { if (e_3) throw e_3.error; }
209
- }
210
- });
157
+ async *listByComponentPagingAll(componentName, resourceGroupName, options) {
158
+ for await (const page of this.listByComponentPagingPage(componentName, resourceGroupName, options)) {
159
+ yield* page;
160
+ }
211
161
  }
212
162
  /**
213
163
  * Get all Application Insights web tests defined for the specified resource group.