@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
@@ -5,13 +5,13 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import * as coreClient from "@azure/core-client";
10
9
  import * as Mappers from "../models/mappers.js";
11
10
  import * as Parameters from "../models/parameters.js";
12
11
  /// <reference lib="esnext.asynciterable" />
13
12
  /** Class containing APIKeys operations. */
14
13
  export class APIKeysImpl {
14
+ client;
15
15
  /**
16
16
  * Initialize a new instance of the class APIKeys class.
17
17
  * @param client Reference to the service client
@@ -35,39 +35,22 @@ export class APIKeysImpl {
35
35
  return this;
36
36
  },
37
37
  byPage: (settings) => {
38
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
38
+ if (settings?.maxPageSize) {
39
39
  throw new Error("maxPageSize is not supported by this operation.");
40
40
  }
41
41
  return this.listPagingPage(resourceGroupName, resourceName, options, settings);
42
42
  },
43
43
  };
44
44
  }
45
- listPagingPage(resourceGroupName, resourceName, options, _settings) {
46
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
47
- let result;
48
- result = yield __await(this._list(resourceGroupName, resourceName, options));
49
- yield yield __await(result.value || []);
50
- });
45
+ async *listPagingPage(resourceGroupName, resourceName, options, _settings) {
46
+ let result;
47
+ result = await this._list(resourceGroupName, resourceName, options);
48
+ yield result.value || [];
51
49
  }
52
- listPagingAll(resourceGroupName, resourceName, options) {
53
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
54
- var _a, e_1, _b, _c;
55
- try {
56
- for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, resourceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
57
- _c = _f.value;
58
- _d = false;
59
- const page = _c;
60
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
61
- }
62
- }
63
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
64
- finally {
65
- try {
66
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
67
- }
68
- finally { if (e_1) throw e_1.error; }
69
- }
70
- });
50
+ async *listPagingAll(resourceGroupName, resourceName, options) {
51
+ for await (const page of this.listPagingPage(resourceGroupName, resourceName, options)) {
52
+ yield* page;
53
+ }
71
54
  }
72
55
  /**
73
56
  * Gets a list of API keys of an Application Insights component.
@@ -1 +1 @@
1
- {"version":3,"file":"aPIKeys.js","sourceRoot":"","sources":["../../../src/operations/aPIKeys.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD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CAAC,KAAK;KACjB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,2IAA2I;IACjJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kCAAkC;SACvD;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;QACvB,UAAU,CAAC,KAAK;KACjB;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 { APIKeys } 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 ApplicationInsightsComponentAPIKey,\n APIKeysListOptionalParams,\n APIKeysListResponse,\n APIKeyRequest,\n APIKeysCreateOptionalParams,\n APIKeysCreateResponse,\n APIKeysDeleteOptionalParams,\n APIKeysDeleteResponse,\n APIKeysGetOptionalParams,\n APIKeysGetResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing APIKeys operations. */\nexport class APIKeysImpl implements APIKeys {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class APIKeys 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 API keys 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 public list(\n resourceGroupName: string,\n resourceName: string,\n options?: APIKeysListOptionalParams,\n ): PagedAsyncIterableIterator<ApplicationInsightsComponentAPIKey> {\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?: APIKeysListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<ApplicationInsightsComponentAPIKey[]> {\n let result: APIKeysListResponse;\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?: APIKeysListOptionalParams,\n ): AsyncIterableIterator<ApplicationInsightsComponentAPIKey> {\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 API keys 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 private _list(\n resourceGroupName: string,\n resourceName: string,\n options?: APIKeysListOptionalParams,\n ): Promise<APIKeysListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Create an API Key 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 aPIKeyProperties Properties that need to be specified to create an API key of a Application\n * Insights component.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n resourceName: string,\n aPIKeyProperties: APIKeyRequest,\n options?: APIKeysCreateOptionalParams,\n ): Promise<APIKeysCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, aPIKeyProperties, options },\n createOperationSpec,\n );\n }\n\n /**\n * Delete an API Key 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 keyId The API Key ID. This is unique within a Application Insights component.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n keyId: string,\n options?: APIKeysDeleteOptionalParams,\n ): Promise<APIKeysDeleteResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, keyId, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Get the API Key for this key 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 keyId The API Key ID. This is unique within a Application Insights component.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n keyId: string,\n options?: APIKeysGetOptionalParams,\n ): Promise<APIKeysGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, keyId, options },\n getOperationSpec,\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}/ApiKeys\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAPIKeyListResult,\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 createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ApiKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAPIKey,\n },\n },\n requestBody: Parameters.aPIKeyProperties,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/APIKeys/{keyId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAPIKey,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.keyId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/APIKeys/{keyId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAPIKey,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.keyId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"aPIKeys.js","sourceRoot":"","sources":["../../../src/operations/aPIKeys.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,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U,EAAE,OAAO,CAAC,kCAAkC;SACvD;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;QACvB,UAAU,CAAC,KAAK;KACjB;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 { APIKeys } 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 ApplicationInsightsComponentAPIKey,\n APIKeysListOptionalParams,\n APIKeysListResponse,\n APIKeyRequest,\n APIKeysCreateOptionalParams,\n APIKeysCreateResponse,\n APIKeysDeleteOptionalParams,\n APIKeysDeleteResponse,\n APIKeysGetOptionalParams,\n APIKeysGetResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing APIKeys operations. */\nexport class APIKeysImpl implements APIKeys {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class APIKeys 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 API keys 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 public list(\n resourceGroupName: string,\n resourceName: string,\n options?: APIKeysListOptionalParams,\n ): PagedAsyncIterableIterator<ApplicationInsightsComponentAPIKey> {\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?: APIKeysListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<ApplicationInsightsComponentAPIKey[]> {\n let result: APIKeysListResponse;\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?: APIKeysListOptionalParams,\n ): AsyncIterableIterator<ApplicationInsightsComponentAPIKey> {\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 API keys 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 private _list(\n resourceGroupName: string,\n resourceName: string,\n options?: APIKeysListOptionalParams,\n ): Promise<APIKeysListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Create an API Key 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 aPIKeyProperties Properties that need to be specified to create an API key of a Application\n * Insights component.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n resourceName: string,\n aPIKeyProperties: APIKeyRequest,\n options?: APIKeysCreateOptionalParams,\n ): Promise<APIKeysCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, aPIKeyProperties, options },\n createOperationSpec,\n );\n }\n\n /**\n * Delete an API Key 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 keyId The API Key ID. This is unique within a Application Insights component.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n keyId: string,\n options?: APIKeysDeleteOptionalParams,\n ): Promise<APIKeysDeleteResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, keyId, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Get the API Key for this key 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 keyId The API Key ID. This is unique within a Application Insights component.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n keyId: string,\n options?: APIKeysGetOptionalParams,\n ): Promise<APIKeysGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, keyId, options },\n getOperationSpec,\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}/ApiKeys\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAPIKeyListResult,\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 createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ApiKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAPIKey,\n },\n },\n requestBody: Parameters.aPIKeyProperties,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/APIKeys/{keyId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAPIKey,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.keyId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/APIKeys/{keyId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAPIKey,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.keyId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
10
10
  import * as Parameters from "../models/parameters.js";
11
11
  /** Class containing AnalyticsItems operations. */
12
12
  export class AnalyticsItemsImpl {
13
+ client;
13
14
  /**
14
15
  * Initialize a new instance of the class AnalyticsItems class.
15
16
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"analyticsItems.js","sourceRoot":"","sources":["../../../src/operations/analyticsItems.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AActD,kD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E,UAAU,CAAC,cAAc;IACtC,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,YAAY,CAAC;IAClE,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,4IAA4I;IAClJ,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;IACtB,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,EAAE,UAAU,CAAC,IAAI,CAAC;IACzE,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,SAAS;KACrB;IACD,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 { AnalyticsItems } 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 ItemScopePath,\n AnalyticsItemsListOptionalParams,\n AnalyticsItemsListResponse,\n AnalyticsItemsGetOptionalParams,\n AnalyticsItemsGetResponse,\n ApplicationInsightsComponentAnalyticsItem,\n AnalyticsItemsPutOptionalParams,\n AnalyticsItemsPutResponse,\n AnalyticsItemsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing AnalyticsItems operations. */\nexport class AnalyticsItemsImpl implements AnalyticsItems {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class AnalyticsItems 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 Analytics Items defined within 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 scopePath Enum indicating if this item definition is owned by a specific user or is shared\n * between all users with access to the Application Insights component.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n resourceName: string,\n scopePath: ItemScopePath,\n options?: AnalyticsItemsListOptionalParams,\n ): Promise<AnalyticsItemsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, scopePath, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets a specific Analytics Items defined within 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 scopePath Enum indicating if this item definition is owned by a specific user or is shared\n * between all users with access to the Application Insights component.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n scopePath: ItemScopePath,\n options?: AnalyticsItemsGetOptionalParams,\n ): Promise<AnalyticsItemsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, scopePath, options },\n getOperationSpec,\n );\n }\n\n /**\n * Adds or Updates a specific Analytics Item within 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 scopePath Enum indicating if this item definition is owned by a specific user or is shared\n * between all users with access to the Application Insights component.\n * @param itemProperties Properties that need to be specified to create a new item and add it to an\n * Application Insights component.\n * @param options The options parameters.\n */\n put(\n resourceGroupName: string,\n resourceName: string,\n scopePath: ItemScopePath,\n itemProperties: ApplicationInsightsComponentAnalyticsItem,\n options?: AnalyticsItemsPutOptionalParams,\n ): Promise<AnalyticsItemsPutResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, scopePath, itemProperties, options },\n putOperationSpec,\n );\n }\n\n /**\n * Deletes a specific Analytics Items defined within 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 scopePath Enum indicating if this item definition is owned by a specific user or is shared\n * between all users with access to the Application Insights component.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n scopePath: ItemScopePath,\n options?: AnalyticsItemsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, scopePath, options },\n deleteOperationSpec,\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}/{scopePath}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ApplicationInsightsComponentAnalyticsItem\",\n },\n },\n },\n },\n },\n },\n queryParameters: [\n Parameters.apiVersion1,\n Parameters.scope,\n Parameters.typeParam,\n Parameters.includeContent,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.scopePath,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAnalyticsItem,\n },\n },\n queryParameters: [Parameters.apiVersion1, Parameters.id, Parameters.name],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.scopePath,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst putOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAnalyticsItem,\n },\n },\n requestBody: Parameters.itemProperties,\n queryParameters: [Parameters.apiVersion1, Parameters.overrideItem],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.scopePath,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item\",\n httpMethod: \"DELETE\",\n responses: { 200: {} },\n queryParameters: [Parameters.apiVersion1, Parameters.id, Parameters.name],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.scopePath,\n ],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"analyticsItems.js","sourceRoot":"","sources":["../../../src/operations/analyticsItems.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AActD,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IACZ,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,iBAAyB,EACzB,Y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CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,SAAS;KACrB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,4IAA4I;IAClJ,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;IACtB,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,EAAE,UAAU,CAAC,IAAI,CAAC;IACzE,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,SAAS;KACrB;IACD,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 { AnalyticsItems } 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 ItemScopePath,\n AnalyticsItemsListOptionalParams,\n AnalyticsItemsListResponse,\n AnalyticsItemsGetOptionalParams,\n AnalyticsItemsGetResponse,\n ApplicationInsightsComponentAnalyticsItem,\n AnalyticsItemsPutOptionalParams,\n AnalyticsItemsPutResponse,\n AnalyticsItemsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing AnalyticsItems operations. */\nexport class AnalyticsItemsImpl implements AnalyticsItems {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class AnalyticsItems 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 Analytics Items defined within 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 scopePath Enum indicating if this item definition is owned by a specific user or is shared\n * between all users with access to the Application Insights component.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n resourceName: string,\n scopePath: ItemScopePath,\n options?: AnalyticsItemsListOptionalParams,\n ): Promise<AnalyticsItemsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, scopePath, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets a specific Analytics Items defined within 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 scopePath Enum indicating if this item definition is owned by a specific user or is shared\n * between all users with access to the Application Insights component.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n scopePath: ItemScopePath,\n options?: AnalyticsItemsGetOptionalParams,\n ): Promise<AnalyticsItemsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, scopePath, options },\n getOperationSpec,\n );\n }\n\n /**\n * Adds or Updates a specific Analytics Item within 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 scopePath Enum indicating if this item definition is owned by a specific user or is shared\n * between all users with access to the Application Insights component.\n * @param itemProperties Properties that need to be specified to create a new item and add it to an\n * Application Insights component.\n * @param options The options parameters.\n */\n put(\n resourceGroupName: string,\n resourceName: string,\n scopePath: ItemScopePath,\n itemProperties: ApplicationInsightsComponentAnalyticsItem,\n options?: AnalyticsItemsPutOptionalParams,\n ): Promise<AnalyticsItemsPutResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, scopePath, itemProperties, options },\n putOperationSpec,\n );\n }\n\n /**\n * Deletes a specific Analytics Items defined within 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 scopePath Enum indicating if this item definition is owned by a specific user or is shared\n * between all users with access to the Application Insights component.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n scopePath: ItemScopePath,\n options?: AnalyticsItemsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, scopePath, options },\n deleteOperationSpec,\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}/{scopePath}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ApplicationInsightsComponentAnalyticsItem\",\n },\n },\n },\n },\n },\n },\n queryParameters: [\n Parameters.apiVersion1,\n Parameters.scope,\n Parameters.typeParam,\n Parameters.includeContent,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.scopePath,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAnalyticsItem,\n },\n },\n queryParameters: [Parameters.apiVersion1, Parameters.id, Parameters.name],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.scopePath,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst putOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAnalyticsItem,\n },\n },\n requestBody: Parameters.itemProperties,\n queryParameters: [Parameters.apiVersion1, Parameters.overrideItem],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.scopePath,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item\",\n httpMethod: \"DELETE\",\n responses: { 200: {} },\n queryParameters: [Parameters.apiVersion1, Parameters.id, Parameters.name],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.scopePath,\n ],\n serializer,\n};\n"]}
@@ -5,13 +5,13 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import * as coreClient from "@azure/core-client";
10
9
  import * as Mappers from "../models/mappers.js";
11
10
  import * as Parameters from "../models/parameters.js";
12
11
  /// <reference lib="esnext.asynciterable" />
13
12
  /** Class containing Annotations operations. */
14
13
  export class AnnotationsImpl {
14
+ client;
15
15
  /**
16
16
  * Initialize a new instance of the class Annotations class.
17
17
  * @param client Reference to the service client
@@ -38,39 +38,22 @@ export class AnnotationsImpl {
38
38
  return this;
39
39
  },
40
40
  byPage: (settings) => {
41
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
+ if (settings?.maxPageSize) {
42
42
  throw new Error("maxPageSize is not supported by this operation.");
43
43
  }
44
44
  return this.listPagingPage(resourceGroupName, resourceName, start, end, options, settings);
45
45
  },
46
46
  };
47
47
  }
48
- listPagingPage(resourceGroupName, resourceName, start, end, options, _settings) {
49
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
50
- let result;
51
- result = yield __await(this._list(resourceGroupName, resourceName, start, end, options));
52
- yield yield __await(result.value || []);
53
- });
48
+ async *listPagingPage(resourceGroupName, resourceName, start, end, options, _settings) {
49
+ let result;
50
+ result = await this._list(resourceGroupName, resourceName, start, end, options);
51
+ yield result.value || [];
54
52
  }
55
- listPagingAll(resourceGroupName, resourceName, start, end, options) {
56
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
57
- var _a, e_1, _b, _c;
58
- try {
59
- for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, resourceName, start, end, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
60
- _c = _f.value;
61
- _d = false;
62
- const page = _c;
63
- yield __await(yield* __asyncDelegator(__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 __await(_b.call(_e));
70
- }
71
- finally { if (e_1) throw e_1.error; }
72
- }
73
- });
53
+ async *listPagingAll(resourceGroupName, resourceName, start, end, options) {
54
+ for await (const page of this.listPagingPage(resourceGroupName, resourceName, start, end, options)) {
55
+ yield* page;
56
+ }
74
57
  }
75
58
  /**
76
59
  * Gets the list of annotations for a component for given time range
@@ -1 +1 @@
1
- {"version":3,"file":"annotations.js","sourceRoot":"","sources":["../../../src/operations/annotations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAatD,4CAA4C;AAC5C,+CAA+C;AAC/C,MAAM,OAAO,eAAe;IAG1B;;;OAGG;IACH,YAAY,MAA2C;Q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AAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,sJAAsJ;IAC5J,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;IACtB,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,YAAY;KACxB;IACD,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,sJAAsJ;IAC5J,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE;gBACV,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE;iBAClE;aACF;SACF;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;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;QACvB,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 { Annotations } 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 Annotation,\n AnnotationsListOptionalParams,\n AnnotationsListResponse,\n AnnotationsCreateOptionalParams,\n AnnotationsCreateResponse,\n AnnotationsDeleteOptionalParams,\n AnnotationsGetOptionalParams,\n AnnotationsGetResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Annotations operations. */\nexport class AnnotationsImpl implements Annotations {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class Annotations class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the list of annotations for a component for given time range\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 start The start time to query from for annotations, cannot be older than 90 days from current\n * date.\n * @param end The end time to query for annotations.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n resourceName: string,\n start: string,\n end: string,\n options?: AnnotationsListOptionalParams,\n ): PagedAsyncIterableIterator<Annotation> {\n const iter = this.listPagingAll(\n resourceGroupName,\n resourceName,\n start,\n end,\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.listPagingPage(\n resourceGroupName,\n resourceName,\n start,\n end,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n resourceName: string,\n start: string,\n end: string,\n options?: AnnotationsListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<Annotation[]> {\n let result: AnnotationsListResponse;\n result = await this._list(\n resourceGroupName,\n resourceName,\n start,\n end,\n options,\n );\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n resourceName: string,\n start: string,\n end: string,\n options?: AnnotationsListOptionalParams,\n ): AsyncIterableIterator<Annotation> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n resourceName,\n start,\n end,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the list of annotations for a component for given time range\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 start The start time to query from for annotations, cannot be older than 90 days from current\n * date.\n * @param end The end time to query for annotations.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n resourceName: string,\n start: string,\n end: string,\n options?: AnnotationsListOptionalParams,\n ): Promise<AnnotationsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, start, end, options },\n listOperationSpec,\n );\n }\n\n /**\n * Create an Annotation 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 annotationProperties Properties that need to be specified to create an annotation of a\n * Application Insights component.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n resourceName: string,\n annotationProperties: Annotation,\n options?: AnnotationsCreateOptionalParams,\n ): Promise<AnnotationsCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, annotationProperties, options },\n createOperationSpec,\n );\n }\n\n /**\n * Delete an Annotation 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 annotationId The unique annotation ID. This is unique within a Application Insights\n * component.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n annotationId: string,\n options?: AnnotationsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, annotationId, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Get the annotation for given 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 annotationId The unique annotation ID. This is unique within a Application Insights\n * component.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n annotationId: string,\n options?: AnnotationsGetOptionalParams,\n ): Promise<AnnotationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, annotationId, options },\n getOperationSpec,\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}/Annotations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AnnotationsListResult,\n },\n default: {\n bodyMapper: Mappers.AnnotationError,\n },\n },\n queryParameters: [Parameters.apiVersion1, Parameters.start, Parameters.end],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"Annotation\" } },\n },\n },\n },\n default: {\n bodyMapper: Mappers.AnnotationError,\n },\n },\n requestBody: Parameters.annotationProperties,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations/{annotationId}\",\n httpMethod: \"DELETE\",\n responses: { 200: {} },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.annotationId,\n ],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations/{annotationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"Annotation\" } },\n },\n },\n },\n default: {\n bodyMapper: Mappers.AnnotationError,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.annotationId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"annotations.js","sourceRoot":"","sources":["../../../src/operations/annotations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAatD,4CAA4C;AAC5C,+CAA+C;AAC/C,MAAM,OAAO,eAAe;IACT,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAyB,EACzB,YAAoB,EACpB,KAAa,EACb,GAAW,EACX,OAAuC;QAEvC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,YAAY,EACZ,KAAK,EACL,GAAG,EACH,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,QAAu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AAW,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE;iBAClE;aACF;SACF;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;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;QACvB,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 { Annotations } 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 Annotation,\n AnnotationsListOptionalParams,\n AnnotationsListResponse,\n AnnotationsCreateOptionalParams,\n AnnotationsCreateResponse,\n AnnotationsDeleteOptionalParams,\n AnnotationsGetOptionalParams,\n AnnotationsGetResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Annotations operations. */\nexport class AnnotationsImpl implements Annotations {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class Annotations class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the list of annotations for a component for given time range\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 start The start time to query from for annotations, cannot be older than 90 days from current\n * date.\n * @param end The end time to query for annotations.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n resourceName: string,\n start: string,\n end: string,\n options?: AnnotationsListOptionalParams,\n ): PagedAsyncIterableIterator<Annotation> {\n const iter = this.listPagingAll(\n resourceGroupName,\n resourceName,\n start,\n end,\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.listPagingPage(\n resourceGroupName,\n resourceName,\n start,\n end,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n resourceName: string,\n start: string,\n end: string,\n options?: AnnotationsListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<Annotation[]> {\n let result: AnnotationsListResponse;\n result = await this._list(\n resourceGroupName,\n resourceName,\n start,\n end,\n options,\n );\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n resourceName: string,\n start: string,\n end: string,\n options?: AnnotationsListOptionalParams,\n ): AsyncIterableIterator<Annotation> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n resourceName,\n start,\n end,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the list of annotations for a component for given time range\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 start The start time to query from for annotations, cannot be older than 90 days from current\n * date.\n * @param end The end time to query for annotations.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n resourceName: string,\n start: string,\n end: string,\n options?: AnnotationsListOptionalParams,\n ): Promise<AnnotationsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, start, end, options },\n listOperationSpec,\n );\n }\n\n /**\n * Create an Annotation 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 annotationProperties Properties that need to be specified to create an annotation of a\n * Application Insights component.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n resourceName: string,\n annotationProperties: Annotation,\n options?: AnnotationsCreateOptionalParams,\n ): Promise<AnnotationsCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, annotationProperties, options },\n createOperationSpec,\n );\n }\n\n /**\n * Delete an Annotation 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 annotationId The unique annotation ID. This is unique within a Application Insights\n * component.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n annotationId: string,\n options?: AnnotationsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, annotationId, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Get the annotation for given 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 annotationId The unique annotation ID. This is unique within a Application Insights\n * component.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n annotationId: string,\n options?: AnnotationsGetOptionalParams,\n ): Promise<AnnotationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, annotationId, options },\n getOperationSpec,\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}/Annotations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AnnotationsListResult,\n },\n default: {\n bodyMapper: Mappers.AnnotationError,\n },\n },\n queryParameters: [Parameters.apiVersion1, Parameters.start, Parameters.end],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"Annotation\" } },\n },\n },\n },\n default: {\n bodyMapper: Mappers.AnnotationError,\n },\n },\n requestBody: Parameters.annotationProperties,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations/{annotationId}\",\n httpMethod: \"DELETE\",\n responses: { 200: {} },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.annotationId,\n ],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations/{annotationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"Annotation\" } },\n },\n },\n },\n default: {\n bodyMapper: Mappers.AnnotationError,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.annotationId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
10
10
  import * as Parameters from "../models/parameters.js";
11
11
  /** Class containing ComponentAvailableFeatures operations. */
12
12
  export class ComponentAvailableFeaturesImpl {
13
+ client;
13
14
  /**
14
15
  * Initialize a new instance of the class ComponentAvailableFeatures class.
15
16
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"componentAvailableFeatures.js","sourceRoot":"","sources":["../../../src/operations/componentAvailableFeatures.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAOtD,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAKzC;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,OAAqD;QAErD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,EAC5C,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,uJAAuJ;IAC7J,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 { ComponentAvailableFeatures } 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 ComponentAvailableFeaturesGetOptionalParams,\n ComponentAvailableFeaturesGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing ComponentAvailableFeatures operations. */\nexport class ComponentAvailableFeaturesImpl\n implements ComponentAvailableFeatures\n{\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class ComponentAvailableFeatures class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns all available features of the 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 get(\n resourceGroupName: string,\n resourceName: string,\n options?: ComponentAvailableFeaturesGetOptionalParams,\n ): Promise<ComponentAvailableFeaturesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/getavailablebillingfeatures\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAvailableFeatures,\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":"componentAvailableFeatures.js","sourceRoot":"","sources":["../../../src/operations/componentAvailableFeatures.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAOtD,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAGxB,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,OAAqD;QAErD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,EAC5C,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,uJAAuJ;IAC7J,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 { ComponentAvailableFeatures } 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 ComponentAvailableFeaturesGetOptionalParams,\n ComponentAvailableFeaturesGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing ComponentAvailableFeatures operations. */\nexport class ComponentAvailableFeaturesImpl\n implements ComponentAvailableFeatures\n{\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class ComponentAvailableFeatures class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns all available features of the 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 get(\n resourceGroupName: string,\n resourceName: string,\n options?: ComponentAvailableFeaturesGetOptionalParams,\n ): Promise<ComponentAvailableFeaturesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/getavailablebillingfeatures\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAvailableFeatures,\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"]}
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
10
10
  import * as Parameters from "../models/parameters.js";
11
11
  /** Class containing ComponentCurrentBillingFeatures operations. */
12
12
  export class ComponentCurrentBillingFeaturesImpl {
13
+ client;
13
14
  /**
14
15
  * Initialize a new instance of the class ComponentCurrentBillingFeatures class.
15
16
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"componentCurrentBillingFeatures.js","sourceRoot":"","sources":["../../../src/operations/componentCurrentBillingFeatures.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,mEAAmE;AACnE,MAAM,OAAO,mCAAmC;IAK9C;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,OAA0D;QAE1D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,EAC5C,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAyB,EACzB,YAAoB,EACpB,yBAAsE,EACtE,OAA6D;QAE7D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,yBAAyB,EAAE,OAAO,EAAE,EACvE,mBAAmB,CACpB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,kJAAkJ;IACxJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2CAA2C;SAChE;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;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,kJAAkJ;IACxJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2CAA2C;SAChE;KACF;IACD,WAAW,EAAE,UAAU,CAAC,yBAAyB;IACjD,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,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 { ComponentCurrentBillingFeatures } 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 ComponentCurrentBillingFeaturesGetOptionalParams,\n ComponentCurrentBillingFeaturesGetResponse,\n ApplicationInsightsComponentBillingFeatures,\n ComponentCurrentBillingFeaturesUpdateOptionalParams,\n ComponentCurrentBillingFeaturesUpdateResponse,\n} from \"../models/index.js\";\n\n/** Class containing ComponentCurrentBillingFeatures operations. */\nexport class ComponentCurrentBillingFeaturesImpl\n implements ComponentCurrentBillingFeatures\n{\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class ComponentCurrentBillingFeatures class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns current billing features for 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 get(\n resourceGroupName: string,\n resourceName: string,\n options?: ComponentCurrentBillingFeaturesGetOptionalParams,\n ): Promise<ComponentCurrentBillingFeaturesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Update current billing features for 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 billingFeaturesProperties Properties that need to be specified to update billing features for\n * an Application Insights component.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n billingFeaturesProperties: ApplicationInsightsComponentBillingFeatures,\n options?: ComponentCurrentBillingFeaturesUpdateOptionalParams,\n ): Promise<ComponentCurrentBillingFeaturesUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, billingFeaturesProperties, options },\n updateOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/currentbillingfeatures\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentBillingFeatures,\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 updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/currentbillingfeatures\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentBillingFeatures,\n },\n },\n requestBody: Parameters.billingFeaturesProperties,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
1
+ {"version":3,"file":"componentCurrentBillingFeatures.js","sourceRoot":"","sources":["../../../src/operations/componentCurrentBillingFeatures.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,mEAAmE;AACnE,MAAM,OAAO,mCAAmC;IAG7B,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,OAA0D;QAE1D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,EAC5C,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAyB,EACzB,YAAoB,EACpB,yBAAsE,EACtE,OAA6D;QAE7D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,yBAAyB,EAAE,OAAO,EAAE,EACvE,mBAAmB,CACpB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,kJAAkJ;IACxJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2CAA2C;SAChE;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;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,kJAAkJ;IACxJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2CAA2C;SAChE;KACF;IACD,WAAW,EAAE,UAAU,CAAC,yBAAyB;IACjD,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,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 { ComponentCurrentBillingFeatures } 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 ComponentCurrentBillingFeaturesGetOptionalParams,\n ComponentCurrentBillingFeaturesGetResponse,\n ApplicationInsightsComponentBillingFeatures,\n ComponentCurrentBillingFeaturesUpdateOptionalParams,\n ComponentCurrentBillingFeaturesUpdateResponse,\n} from \"../models/index.js\";\n\n/** Class containing ComponentCurrentBillingFeatures operations. */\nexport class ComponentCurrentBillingFeaturesImpl\n implements ComponentCurrentBillingFeatures\n{\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class ComponentCurrentBillingFeatures class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns current billing features for 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 get(\n resourceGroupName: string,\n resourceName: string,\n options?: ComponentCurrentBillingFeaturesGetOptionalParams,\n ): Promise<ComponentCurrentBillingFeaturesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Update current billing features for 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 billingFeaturesProperties Properties that need to be specified to update billing features for\n * an Application Insights component.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n billingFeaturesProperties: ApplicationInsightsComponentBillingFeatures,\n options?: ComponentCurrentBillingFeaturesUpdateOptionalParams,\n ): Promise<ComponentCurrentBillingFeaturesUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, billingFeaturesProperties, options },\n updateOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/currentbillingfeatures\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentBillingFeatures,\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 updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/currentbillingfeatures\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentBillingFeatures,\n },\n },\n requestBody: Parameters.billingFeaturesProperties,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
10
10
  import * as Parameters from "../models/parameters.js";
11
11
  /** Class containing ComponentFeatureCapabilities operations. */
12
12
  export class ComponentFeatureCapabilitiesImpl {
13
+ client;
13
14
  /**
14
15
  * Initialize a new instance of the class ComponentFeatureCapabilities class.
15
16
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"componentFeatureCapabilities.js","sourceRoot":"","sources":["../../../src/operations/componentFeatureCapabilities.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAOtD,gEAAgE;AAChE,MAAM,OAAO,gCAAgC;IAK3C;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,OAAuD;QAEvD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,EAC5C,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,+IAA+I;IACrJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+CAA+C;SACpE;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 { ComponentFeatureCapabilities } 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 ComponentFeatureCapabilitiesGetOptionalParams,\n ComponentFeatureCapabilitiesGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing ComponentFeatureCapabilities operations. */\nexport class ComponentFeatureCapabilitiesImpl\n implements ComponentFeatureCapabilities\n{\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class ComponentFeatureCapabilities class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns feature capabilities of the 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 get(\n resourceGroupName: string,\n resourceName: string,\n options?: ComponentFeatureCapabilitiesGetOptionalParams,\n ): Promise<ComponentFeatureCapabilitiesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/featurecapabilities\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentFeatureCapabilities,\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":"componentFeatureCapabilities.js","sourceRoot":"","sources":["../../../src/operations/componentFeatureCapabilities.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAOtD,gEAAgE;AAChE,MAAM,OAAO,gCAAgC;IAG1B,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,OAAuD;QAEvD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,EAC5C,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,+IAA+I;IACrJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+CAA+C;SACpE;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 { ComponentFeatureCapabilities } 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 ComponentFeatureCapabilitiesGetOptionalParams,\n ComponentFeatureCapabilitiesGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing ComponentFeatureCapabilities operations. */\nexport class ComponentFeatureCapabilitiesImpl\n implements ComponentFeatureCapabilities\n{\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class ComponentFeatureCapabilities class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns feature capabilities of the 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 get(\n resourceGroupName: string,\n resourceName: string,\n options?: ComponentFeatureCapabilitiesGetOptionalParams,\n ): Promise<ComponentFeatureCapabilitiesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/featurecapabilities\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentFeatureCapabilities,\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"]}
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
10
10
  import * as Parameters from "../models/parameters.js";
11
11
  /** Class containing ComponentLinkedStorageAccountsOperations operations. */
12
12
  export class ComponentLinkedStorageAccountsOperationsImpl {
13
+ client;
13
14
  /**
14
15
  * Initialize a new instance of the class ComponentLinkedStorageAccountsOperations class.
15
16
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"componentLinkedStorageAccountsOperations.js","sourceRoot":"","sources":["../../../src/operations/componentLinkedStorageAccountsOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,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AU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,WAAW,EAAE,UAAU,CAAC,gCAAgC;IACxD,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,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,+JAA+J;IACrK,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;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;QACvB,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 { ComponentLinkedStorageAccountsOperations } 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 StorageType,\n ComponentLinkedStorageAccountsGetOptionalParams,\n ComponentLinkedStorageAccountsGetResponse,\n ComponentLinkedStorageAccounts,\n ComponentLinkedStorageAccountsCreateAndUpdateOptionalParams,\n ComponentLinkedStorageAccountsCreateAndUpdateResponse,\n ComponentLinkedStorageAccountsPatch,\n ComponentLinkedStorageAccountsUpdateOptionalParams,\n ComponentLinkedStorageAccountsUpdateResponse,\n ComponentLinkedStorageAccountsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing ComponentLinkedStorageAccountsOperations operations. */\nexport class ComponentLinkedStorageAccountsOperationsImpl\n implements ComponentLinkedStorageAccountsOperations\n{\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class ComponentLinkedStorageAccountsOperations class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns the current linked storage settings for 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 storageType The type of the Application Insights component data source for the linked storage\n * account.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n storageType: StorageType,\n options?: ComponentLinkedStorageAccountsGetOptionalParams,\n ): Promise<ComponentLinkedStorageAccountsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, storageType, options },\n getOperationSpec,\n );\n }\n\n /**\n * Replace current linked storage account for 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 storageType The type of the Application Insights component data source for the linked storage\n * account.\n * @param linkedStorageAccountsProperties Properties that need to be specified to update linked storage\n * accounts for an Application Insights component.\n * @param options The options parameters.\n */\n createAndUpdate(\n resourceGroupName: string,\n resourceName: string,\n storageType: StorageType,\n linkedStorageAccountsProperties: ComponentLinkedStorageAccounts,\n options?: ComponentLinkedStorageAccountsCreateAndUpdateOptionalParams,\n ): Promise<ComponentLinkedStorageAccountsCreateAndUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n storageType,\n linkedStorageAccountsProperties,\n options,\n },\n createAndUpdateOperationSpec,\n );\n }\n\n /**\n * Update linked storage accounts for 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 storageType The type of the Application Insights component data source for the linked storage\n * account.\n * @param linkedStorageAccountsProperties Properties that need to be specified to update a linked\n * storage accounts for an Application Insights component.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n storageType: StorageType,\n linkedStorageAccountsProperties: ComponentLinkedStorageAccountsPatch,\n options?: ComponentLinkedStorageAccountsUpdateOptionalParams,\n ): Promise<ComponentLinkedStorageAccountsUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n storageType,\n linkedStorageAccountsProperties,\n options,\n },\n updateOperationSpec,\n );\n }\n\n /**\n * Delete linked storage accounts for 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 storageType The type of the Application Insights component data source for the linked storage\n * account.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n storageType: StorageType,\n options?: ComponentLinkedStorageAccountsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, storageType, options },\n deleteOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ComponentLinkedStorageAccounts,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseLinkedStorage,\n },\n },\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.storageType,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createAndUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ComponentLinkedStorageAccounts,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseLinkedStorage,\n },\n },\n requestBody: Parameters.linkedStorageAccountsProperties,\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.storageType,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ComponentLinkedStorageAccounts,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseLinkedStorage,\n },\n },\n requestBody: Parameters.linkedStorageAccountsProperties1,\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.storageType,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponseLinkedStorage,\n },\n },\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.storageType,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"componentLinkedStorageAccountsOperations.js","sourceRoot":"","sources":["../../../src/operations/componentLinkedStorageAccountsOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,4EAA4E;AAC5E,MAAM,OAAO,4CAA4C;IAGtC,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,WAAwB,EACxB,OAAyD;QAEzD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,WAAW,EAAE,OAAO,EAAE,EACzD,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACH,eAAe,CACb,iBAAyB,EACzB,YAAoB,EACpB,WAAwB,EACxB,+BAA+D,EAC/D,OAAqE;QAErE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,YAAY;YACZ,WAAW;YACX,+BAA+B;YAC/B,OAAO;SACR,EACD,4BAA4B,CAC7B,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,iBAAyB,EACzB,YAAoB,EACpB,WAAwB,EACxB,+BAAoE,EACpE,OAA4D;QAE5D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,YAAY;YACZ,WAAW;YACX,+BAA+B;YAC/B,OAAO;SACR,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,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 { ComponentLinkedStorageAccountsOperations } 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 StorageType,\n ComponentLinkedStorageAccountsGetOptionalParams,\n ComponentLinkedStorageAccountsGetResponse,\n ComponentLinkedStorageAccounts,\n ComponentLinkedStorageAccountsCreateAndUpdateOptionalParams,\n ComponentLinkedStorageAccountsCreateAndUpdateResponse,\n ComponentLinkedStorageAccountsPatch,\n ComponentLinkedStorageAccountsUpdateOptionalParams,\n ComponentLinkedStorageAccountsUpdateResponse,\n ComponentLinkedStorageAccountsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing ComponentLinkedStorageAccountsOperations operations. */\nexport class ComponentLinkedStorageAccountsOperationsImpl\n implements ComponentLinkedStorageAccountsOperations\n{\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class ComponentLinkedStorageAccountsOperations class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns the current linked storage settings for 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 storageType The type of the Application Insights component data source for the linked storage\n * account.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n storageType: StorageType,\n options?: ComponentLinkedStorageAccountsGetOptionalParams,\n ): Promise<ComponentLinkedStorageAccountsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, storageType, options },\n getOperationSpec,\n );\n }\n\n /**\n * Replace current linked storage account for 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 storageType The type of the Application Insights component data source for the linked storage\n * account.\n * @param linkedStorageAccountsProperties Properties that need to be specified to update linked storage\n * accounts for an Application Insights component.\n * @param options The options parameters.\n */\n createAndUpdate(\n resourceGroupName: string,\n resourceName: string,\n storageType: StorageType,\n linkedStorageAccountsProperties: ComponentLinkedStorageAccounts,\n options?: ComponentLinkedStorageAccountsCreateAndUpdateOptionalParams,\n ): Promise<ComponentLinkedStorageAccountsCreateAndUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n storageType,\n linkedStorageAccountsProperties,\n options,\n },\n createAndUpdateOperationSpec,\n );\n }\n\n /**\n * Update linked storage accounts for 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 storageType The type of the Application Insights component data source for the linked storage\n * account.\n * @param linkedStorageAccountsProperties Properties that need to be specified to update a linked\n * storage accounts for an Application Insights component.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n storageType: StorageType,\n linkedStorageAccountsProperties: ComponentLinkedStorageAccountsPatch,\n options?: ComponentLinkedStorageAccountsUpdateOptionalParams,\n ): Promise<ComponentLinkedStorageAccountsUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n storageType,\n linkedStorageAccountsProperties,\n options,\n },\n updateOperationSpec,\n );\n }\n\n /**\n * Delete linked storage accounts for 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 storageType The type of the Application Insights component data source for the linked storage\n * account.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n storageType: StorageType,\n options?: ComponentLinkedStorageAccountsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, storageType, options },\n deleteOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ComponentLinkedStorageAccounts,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseLinkedStorage,\n },\n },\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.storageType,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createAndUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ComponentLinkedStorageAccounts,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseLinkedStorage,\n },\n },\n requestBody: Parameters.linkedStorageAccountsProperties,\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.storageType,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ComponentLinkedStorageAccounts,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseLinkedStorage,\n },\n },\n requestBody: Parameters.linkedStorageAccountsProperties1,\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.storageType,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponseLinkedStorage,\n },\n },\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.storageType,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
10
10
  import * as Parameters from "../models/parameters.js";
11
11
  /** Class containing ComponentQuotaStatus operations. */
12
12
  export class ComponentQuotaStatusImpl {
13
+ client;
13
14
  /**
14
15
  * Initialize a new instance of the class ComponentQuotaStatus class.
15
16
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"componentQuotaStatus.js","sourceRoot":"","sources":["../../../src/operations/componentQuotaStatus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAOtD,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,OAA+C;QAE/C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,EAC5C,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,uIAAuI;IAC7I,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uCAAuC;SAC5D;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 { ComponentQuotaStatus } 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 ComponentQuotaStatusGetOptionalParams,\n ComponentQuotaStatusGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing ComponentQuotaStatus operations. */\nexport class ComponentQuotaStatusImpl implements ComponentQuotaStatus {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class ComponentQuotaStatus class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns daily data volume cap (quota) status for 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 get(\n resourceGroupName: string,\n resourceName: string,\n options?: ComponentQuotaStatusGetOptionalParams,\n ): Promise<ComponentQuotaStatusGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/quotastatus\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentQuotaStatus,\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":"componentQuotaStatus.js","sourceRoot":"","sources":["../../../src/operations/componentQuotaStatus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAOtD,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAClB,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,OAA+C;QAE/C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,EAC5C,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,uIAAuI;IAC7I,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uCAAuC;SAC5D;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 { ComponentQuotaStatus } 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 ComponentQuotaStatusGetOptionalParams,\n ComponentQuotaStatusGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing ComponentQuotaStatus operations. */\nexport class ComponentQuotaStatusImpl implements ComponentQuotaStatus {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class ComponentQuotaStatus class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns daily data volume cap (quota) status for 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 get(\n resourceGroupName: string,\n resourceName: string,\n options?: ComponentQuotaStatusGetOptionalParams,\n ): Promise<ComponentQuotaStatusGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/quotastatus\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentQuotaStatus,\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"]}