@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.
- package/dist/browser/applicationInsightsManagementClient.js +32 -5
- package/dist/browser/applicationInsightsManagementClient.js.map +1 -1
- package/dist/browser/models/mappers.js +194 -91
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/aPIKeys.js +10 -27
- package/dist/browser/operations/aPIKeys.js.map +1 -1
- package/dist/browser/operations/analyticsItems.js +1 -0
- package/dist/browser/operations/analyticsItems.js.map +1 -1
- package/dist/browser/operations/annotations.js +10 -27
- package/dist/browser/operations/annotations.js.map +1 -1
- package/dist/browser/operations/componentAvailableFeatures.js +1 -0
- package/dist/browser/operations/componentAvailableFeatures.js.map +1 -1
- package/dist/browser/operations/componentCurrentBillingFeatures.js +1 -0
- package/dist/browser/operations/componentCurrentBillingFeatures.js.map +1 -1
- package/dist/browser/operations/componentFeatureCapabilities.js +1 -0
- package/dist/browser/operations/componentFeatureCapabilities.js.map +1 -1
- package/dist/browser/operations/componentLinkedStorageAccountsOperations.js +1 -0
- package/dist/browser/operations/componentLinkedStorageAccountsOperations.js.map +1 -1
- package/dist/browser/operations/componentQuotaStatus.js +1 -0
- package/dist/browser/operations/componentQuotaStatus.js.map +1 -1
- package/dist/browser/operations/components.js +45 -79
- package/dist/browser/operations/components.js.map +1 -1
- package/dist/browser/operations/deletedWorkbooks.js +23 -40
- package/dist/browser/operations/deletedWorkbooks.js.map +1 -1
- package/dist/browser/operations/exportConfigurations.js +1 -0
- package/dist/browser/operations/exportConfigurations.js.map +1 -1
- package/dist/browser/operations/favorites.js +1 -0
- package/dist/browser/operations/favorites.js.map +1 -1
- package/dist/browser/operations/liveToken.js +1 -0
- package/dist/browser/operations/liveToken.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/proactiveDetectionConfigurations.js +1 -0
- package/dist/browser/operations/proactiveDetectionConfigurations.js.map +1 -1
- package/dist/browser/operations/webTestLocations.js +10 -27
- package/dist/browser/operations/webTestLocations.js.map +1 -1
- package/dist/browser/operations/webTests.js +67 -118
- package/dist/browser/operations/webTests.js.map +1 -1
- package/dist/browser/operations/workItemConfigurations.js +10 -27
- package/dist/browser/operations/workItemConfigurations.js.map +1 -1
- package/dist/browser/operations/workbookTemplates.js +10 -27
- package/dist/browser/operations/workbookTemplates.js.map +1 -1
- package/dist/browser/operations/workbooks.js +67 -118
- package/dist/browser/operations/workbooks.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/applicationInsightsManagementClient.js +32 -5
- package/dist/commonjs/applicationInsightsManagementClient.js.map +1 -1
- package/dist/commonjs/models/mappers.js +194 -91
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/aPIKeys.js +10 -26
- package/dist/commonjs/operations/aPIKeys.js.map +1 -1
- package/dist/commonjs/operations/analyticsItems.js +1 -0
- package/dist/commonjs/operations/analyticsItems.js.map +1 -1
- package/dist/commonjs/operations/annotations.js +10 -26
- package/dist/commonjs/operations/annotations.js.map +1 -1
- package/dist/commonjs/operations/componentAvailableFeatures.js +1 -0
- package/dist/commonjs/operations/componentAvailableFeatures.js.map +1 -1
- package/dist/commonjs/operations/componentCurrentBillingFeatures.js +1 -0
- package/dist/commonjs/operations/componentCurrentBillingFeatures.js.map +1 -1
- package/dist/commonjs/operations/componentFeatureCapabilities.js +1 -0
- package/dist/commonjs/operations/componentFeatureCapabilities.js.map +1 -1
- package/dist/commonjs/operations/componentLinkedStorageAccountsOperations.js +1 -0
- package/dist/commonjs/operations/componentLinkedStorageAccountsOperations.js.map +1 -1
- package/dist/commonjs/operations/componentQuotaStatus.js +1 -0
- package/dist/commonjs/operations/componentQuotaStatus.js.map +1 -1
- package/dist/commonjs/operations/components.js +45 -78
- package/dist/commonjs/operations/components.js.map +1 -1
- package/dist/commonjs/operations/deletedWorkbooks.js +23 -39
- package/dist/commonjs/operations/deletedWorkbooks.js.map +1 -1
- package/dist/commonjs/operations/exportConfigurations.js +1 -0
- package/dist/commonjs/operations/exportConfigurations.js.map +1 -1
- package/dist/commonjs/operations/favorites.js +1 -0
- package/dist/commonjs/operations/favorites.js.map +1 -1
- package/dist/commonjs/operations/liveToken.js +1 -0
- package/dist/commonjs/operations/liveToken.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/proactiveDetectionConfigurations.js +1 -0
- package/dist/commonjs/operations/proactiveDetectionConfigurations.js.map +1 -1
- package/dist/commonjs/operations/webTestLocations.js +10 -26
- package/dist/commonjs/operations/webTestLocations.js.map +1 -1
- package/dist/commonjs/operations/webTests.js +67 -117
- package/dist/commonjs/operations/webTests.js.map +1 -1
- package/dist/commonjs/operations/workItemConfigurations.js +10 -26
- package/dist/commonjs/operations/workItemConfigurations.js.map +1 -1
- package/dist/commonjs/operations/workbookTemplates.js +10 -26
- package/dist/commonjs/operations/workbookTemplates.js.map +1 -1
- package/dist/commonjs/operations/workbooks.js +67 -117
- package/dist/commonjs/operations/workbooks.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/applicationInsightsManagementClient.js +32 -5
- package/dist/esm/applicationInsightsManagementClient.js.map +1 -1
- package/dist/esm/models/mappers.js +194 -91
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/aPIKeys.js +10 -27
- package/dist/esm/operations/aPIKeys.js.map +1 -1
- package/dist/esm/operations/analyticsItems.js +1 -0
- package/dist/esm/operations/analyticsItems.js.map +1 -1
- package/dist/esm/operations/annotations.js +10 -27
- package/dist/esm/operations/annotations.js.map +1 -1
- package/dist/esm/operations/componentAvailableFeatures.js +1 -0
- package/dist/esm/operations/componentAvailableFeatures.js.map +1 -1
- package/dist/esm/operations/componentCurrentBillingFeatures.js +1 -0
- package/dist/esm/operations/componentCurrentBillingFeatures.js.map +1 -1
- package/dist/esm/operations/componentFeatureCapabilities.js +1 -0
- package/dist/esm/operations/componentFeatureCapabilities.js.map +1 -1
- package/dist/esm/operations/componentLinkedStorageAccountsOperations.js +1 -0
- package/dist/esm/operations/componentLinkedStorageAccountsOperations.js.map +1 -1
- package/dist/esm/operations/componentQuotaStatus.js +1 -0
- package/dist/esm/operations/componentQuotaStatus.js.map +1 -1
- package/dist/esm/operations/components.js +45 -79
- package/dist/esm/operations/components.js.map +1 -1
- package/dist/esm/operations/deletedWorkbooks.js +23 -40
- package/dist/esm/operations/deletedWorkbooks.js.map +1 -1
- package/dist/esm/operations/exportConfigurations.js +1 -0
- package/dist/esm/operations/exportConfigurations.js.map +1 -1
- package/dist/esm/operations/favorites.js +1 -0
- package/dist/esm/operations/favorites.js.map +1 -1
- package/dist/esm/operations/liveToken.js +1 -0
- package/dist/esm/operations/liveToken.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/proactiveDetectionConfigurations.js +1 -0
- package/dist/esm/operations/proactiveDetectionConfigurations.js.map +1 -1
- package/dist/esm/operations/webTestLocations.js +10 -27
- package/dist/esm/operations/webTestLocations.js.map +1 -1
- package/dist/esm/operations/webTests.js +67 -118
- package/dist/esm/operations/webTests.js.map +1 -1
- package/dist/esm/operations/workItemConfigurations.js +10 -27
- package/dist/esm/operations/workItemConfigurations.js.map +1 -1
- package/dist/esm/operations/workbookTemplates.js +10 -27
- package/dist/esm/operations/workbookTemplates.js.map +1 -1
- package/dist/esm/operations/workbooks.js +67 -118
- package/dist/esm/operations/workbooks.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/applicationInsightsManagementClient.js +32 -5
- package/dist/react-native/applicationInsightsManagementClient.js.map +1 -1
- package/dist/react-native/models/mappers.js +194 -91
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/aPIKeys.js +10 -27
- package/dist/react-native/operations/aPIKeys.js.map +1 -1
- package/dist/react-native/operations/analyticsItems.js +1 -0
- package/dist/react-native/operations/analyticsItems.js.map +1 -1
- package/dist/react-native/operations/annotations.js +10 -27
- package/dist/react-native/operations/annotations.js.map +1 -1
- package/dist/react-native/operations/componentAvailableFeatures.js +1 -0
- package/dist/react-native/operations/componentAvailableFeatures.js.map +1 -1
- package/dist/react-native/operations/componentCurrentBillingFeatures.js +1 -0
- package/dist/react-native/operations/componentCurrentBillingFeatures.js.map +1 -1
- package/dist/react-native/operations/componentFeatureCapabilities.js +1 -0
- package/dist/react-native/operations/componentFeatureCapabilities.js.map +1 -1
- package/dist/react-native/operations/componentLinkedStorageAccountsOperations.js +1 -0
- package/dist/react-native/operations/componentLinkedStorageAccountsOperations.js.map +1 -1
- package/dist/react-native/operations/componentQuotaStatus.js +1 -0
- package/dist/react-native/operations/componentQuotaStatus.js.map +1 -1
- package/dist/react-native/operations/components.js +45 -79
- package/dist/react-native/operations/components.js.map +1 -1
- package/dist/react-native/operations/deletedWorkbooks.js +23 -40
- package/dist/react-native/operations/deletedWorkbooks.js.map +1 -1
- package/dist/react-native/operations/exportConfigurations.js +1 -0
- package/dist/react-native/operations/exportConfigurations.js.map +1 -1
- package/dist/react-native/operations/favorites.js +1 -0
- package/dist/react-native/operations/favorites.js.map +1 -1
- package/dist/react-native/operations/liveToken.js +1 -0
- package/dist/react-native/operations/liveToken.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/proactiveDetectionConfigurations.js +1 -0
- package/dist/react-native/operations/proactiveDetectionConfigurations.js.map +1 -1
- package/dist/react-native/operations/webTestLocations.js +10 -27
- package/dist/react-native/operations/webTestLocations.js.map +1 -1
- package/dist/react-native/operations/webTests.js +67 -118
- package/dist/react-native/operations/webTests.js.map +1 -1
- package/dist/react-native/operations/workItemConfigurations.js +10 -27
- package/dist/react-native/operations/workItemConfigurations.js.map +1 -1
- package/dist/react-native/operations/workbookTemplates.js +10 -27
- package/dist/react-native/operations/workbookTemplates.js.map +1 -1
- package/dist/react-native/operations/workbooks.js +67 -118
- package/dist/react-native/operations/workbooks.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-appinsights.api.md → arm-appinsights-node.api.md} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webTests.js","sourceRoot":"","sources":["../../../src/operations/webTests.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AA0BtD,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAa,YAAY;IAGvB;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,OAAmD;QAEnD,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC3E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,6BAA6B,CACvC,iBAAiB,EACjB,OAAO,EACP,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rE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { WebTests } 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 WebTest,\n WebTestsListByResourceGroupNextOptionalParams,\n WebTestsListByResourceGroupOptionalParams,\n WebTestsListByResourceGroupResponse,\n WebTestsListNextOptionalParams,\n WebTestsListOptionalParams,\n WebTestsListResponse,\n WebTestsListByComponentNextOptionalParams,\n WebTestsListByComponentOptionalParams,\n WebTestsListByComponentResponse,\n WebTestsGetOptionalParams,\n WebTestsGetResponse,\n WebTestsCreateOrUpdateOptionalParams,\n WebTestsCreateOrUpdateResponse,\n TagsResource,\n WebTestsUpdateTagsOptionalParams,\n WebTestsUpdateTagsResponse,\n WebTestsDeleteOptionalParams,\n WebTestsListByResourceGroupNextResponse,\n WebTestsListNextResponse,\n WebTestsListByComponentNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing WebTests operations. */\nexport class WebTestsImpl implements WebTests {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class WebTests class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Get all Application Insights web tests defined for the specified resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: WebTestsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<WebTest> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, 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.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: WebTestsListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<WebTest[]> {\n let result: WebTestsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: WebTestsListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<WebTest> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get all Application Insights web test definitions for the specified subscription.\n * @param options The options parameters.\n */\n public list(\n options?: WebTestsListOptionalParams,\n ): PagedAsyncIterableIterator<WebTest> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: WebTestsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<WebTest[]> {\n let result: WebTestsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: WebTestsListOptionalParams,\n ): AsyncIterableIterator<WebTest> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Get all Application Insights web tests defined for the specified component.\n * @param componentName The name of the Application Insights component resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByComponent(\n componentName: string,\n resourceGroupName: string,\n options?: WebTestsListByComponentOptionalParams,\n ): PagedAsyncIterableIterator<WebTest> {\n const iter = this.listByComponentPagingAll(\n componentName,\n resourceGroupName,\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.listByComponentPagingPage(\n componentName,\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByComponentPagingPage(\n componentName: string,\n resourceGroupName: string,\n options?: WebTestsListByComponentOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<WebTest[]> {\n let result: WebTestsListByComponentResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByComponent(\n componentName,\n resourceGroupName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByComponentNext(\n componentName,\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByComponentPagingAll(\n componentName: string,\n resourceGroupName: string,\n options?: WebTestsListByComponentOptionalParams,\n ): AsyncIterableIterator<WebTest> {\n for await (const page of this.listByComponentPagingPage(\n componentName,\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get all Application Insights web tests defined for the specified resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: WebTestsListByResourceGroupOptionalParams,\n ): Promise<WebTestsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Get a specific Application Insights web test definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param webTestName The name of the Application Insights WebTest resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n webTestName: string,\n options?: WebTestsGetOptionalParams,\n ): Promise<WebTestsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, webTestName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates or updates an Application Insights web test definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param webTestName The name of the Application Insights WebTest resource.\n * @param webTestDefinition Properties that need to be specified to create or update an Application\n * Insights web test definition.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n webTestName: string,\n webTestDefinition: WebTest,\n options?: WebTestsCreateOrUpdateOptionalParams,\n ): Promise<WebTestsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, webTestName, webTestDefinition, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Updates the tags associated with an Application Insights web test.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param webTestName The name of the Application Insights WebTest resource.\n * @param webTestTags Updated tag information to associate with the web test resource.\n * @param options The options parameters.\n */\n updateTags(\n resourceGroupName: string,\n webTestName: string,\n webTestTags: TagsResource,\n options?: WebTestsUpdateTagsOptionalParams,\n ): Promise<WebTestsUpdateTagsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, webTestName, webTestTags, options },\n updateTagsOperationSpec,\n );\n }\n\n /**\n * Deletes an Application Insights web test.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param webTestName The name of the Application Insights WebTest resource.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n webTestName: string,\n options?: WebTestsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, webTestName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Get all Application Insights web test definitions for the specified subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: WebTestsListOptionalParams,\n ): Promise<WebTestsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Get all Application Insights web tests defined for the specified component.\n * @param componentName The name of the Application Insights component resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByComponent(\n componentName: string,\n resourceGroupName: string,\n options?: WebTestsListByComponentOptionalParams,\n ): Promise<WebTestsListByComponentResponse> {\n return this.client.sendOperationRequest(\n { componentName, resourceGroupName, options },\n listByComponentOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: WebTestsListByResourceGroupNextOptionalParams,\n ): Promise<WebTestsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: WebTestsListNextOptionalParams,\n ): Promise<WebTestsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n\n /**\n * ListByComponentNext\n * @param componentName The name of the Application Insights component resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByComponent method.\n * @param options The options parameters.\n */\n private _listByComponentNext(\n componentName: string,\n resourceGroupName: string,\n nextLink: string,\n options?: WebTestsListByComponentNextOptionalParams,\n ): Promise<WebTestsListByComponentNextResponse> {\n return this.client.sendOperationRequest(\n { componentName, resourceGroupName, nextLink, options },\n listByComponentNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WebTestListResult,\n },\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WebTest,\n },\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.webTestName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.WebTest,\n },\n },\n requestBody: Parameters.webTestDefinition,\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.webTestName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateTagsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.WebTest,\n },\n },\n requestBody: Parameters.webTestTags,\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.webTestName,\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/webtests/{webTestName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 204: {} },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.webTestName,\n ],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Insights/webtests\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WebTestListResult,\n },\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByComponentOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{componentName}/webtests\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WebTestListResult,\n },\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.componentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WebTestListResult,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WebTestListResult,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByComponentNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WebTestListResult,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.componentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"webTests.js","sourceRoot":"","sources":["../../../src/operations/webTests.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AA0BtD,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAa,YAAY;IACN,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,OAAmD;QAEnD,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC3E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,6BAA6B,CACvC,iBAAiB,EACjB,OAAO,EACP,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AQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { WebTests } 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 WebTest,\n WebTestsListByResourceGroupNextOptionalParams,\n WebTestsListByResourceGroupOptionalParams,\n WebTestsListByResourceGroupResponse,\n WebTestsListNextOptionalParams,\n WebTestsListOptionalParams,\n WebTestsListResponse,\n WebTestsListByComponentNextOptionalParams,\n WebTestsListByComponentOptionalParams,\n WebTestsListByComponentResponse,\n WebTestsGetOptionalParams,\n WebTestsGetResponse,\n WebTestsCreateOrUpdateOptionalParams,\n WebTestsCreateOrUpdateResponse,\n TagsResource,\n WebTestsUpdateTagsOptionalParams,\n WebTestsUpdateTagsResponse,\n WebTestsDeleteOptionalParams,\n WebTestsListByResourceGroupNextResponse,\n WebTestsListNextResponse,\n WebTestsListByComponentNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing WebTests operations. */\nexport class WebTestsImpl implements WebTests {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class WebTests class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Get all Application Insights web tests defined for the specified resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: WebTestsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<WebTest> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, 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.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: WebTestsListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<WebTest[]> {\n let result: WebTestsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: WebTestsListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<WebTest> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get all Application Insights web test definitions for the specified subscription.\n * @param options The options parameters.\n */\n public list(\n options?: WebTestsListOptionalParams,\n ): PagedAsyncIterableIterator<WebTest> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: WebTestsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<WebTest[]> {\n let result: WebTestsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: WebTestsListOptionalParams,\n ): AsyncIterableIterator<WebTest> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Get all Application Insights web tests defined for the specified component.\n * @param componentName The name of the Application Insights component resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByComponent(\n componentName: string,\n resourceGroupName: string,\n options?: WebTestsListByComponentOptionalParams,\n ): PagedAsyncIterableIterator<WebTest> {\n const iter = this.listByComponentPagingAll(\n componentName,\n resourceGroupName,\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.listByComponentPagingPage(\n componentName,\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByComponentPagingPage(\n componentName: string,\n resourceGroupName: string,\n options?: WebTestsListByComponentOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<WebTest[]> {\n let result: WebTestsListByComponentResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByComponent(\n componentName,\n resourceGroupName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByComponentNext(\n componentName,\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByComponentPagingAll(\n componentName: string,\n resourceGroupName: string,\n options?: WebTestsListByComponentOptionalParams,\n ): AsyncIterableIterator<WebTest> {\n for await (const page of this.listByComponentPagingPage(\n componentName,\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get all Application Insights web tests defined for the specified resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: WebTestsListByResourceGroupOptionalParams,\n ): Promise<WebTestsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Get a specific Application Insights web test definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param webTestName The name of the Application Insights WebTest resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n webTestName: string,\n options?: WebTestsGetOptionalParams,\n ): Promise<WebTestsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, webTestName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates or updates an Application Insights web test definition.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param webTestName The name of the Application Insights WebTest resource.\n * @param webTestDefinition Properties that need to be specified to create or update an Application\n * Insights web test definition.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n webTestName: string,\n webTestDefinition: WebTest,\n options?: WebTestsCreateOrUpdateOptionalParams,\n ): Promise<WebTestsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, webTestName, webTestDefinition, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Updates the tags associated with an Application Insights web test.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param webTestName The name of the Application Insights WebTest resource.\n * @param webTestTags Updated tag information to associate with the web test resource.\n * @param options The options parameters.\n */\n updateTags(\n resourceGroupName: string,\n webTestName: string,\n webTestTags: TagsResource,\n options?: WebTestsUpdateTagsOptionalParams,\n ): Promise<WebTestsUpdateTagsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, webTestName, webTestTags, options },\n updateTagsOperationSpec,\n );\n }\n\n /**\n * Deletes an Application Insights web test.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param webTestName The name of the Application Insights WebTest resource.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n webTestName: string,\n options?: WebTestsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, webTestName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Get all Application Insights web test definitions for the specified subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: WebTestsListOptionalParams,\n ): Promise<WebTestsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Get all Application Insights web tests defined for the specified component.\n * @param componentName The name of the Application Insights component resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByComponent(\n componentName: string,\n resourceGroupName: string,\n options?: WebTestsListByComponentOptionalParams,\n ): Promise<WebTestsListByComponentResponse> {\n return this.client.sendOperationRequest(\n { componentName, resourceGroupName, options },\n listByComponentOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: WebTestsListByResourceGroupNextOptionalParams,\n ): Promise<WebTestsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: WebTestsListNextOptionalParams,\n ): Promise<WebTestsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n\n /**\n * ListByComponentNext\n * @param componentName The name of the Application Insights component resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByComponent method.\n * @param options The options parameters.\n */\n private _listByComponentNext(\n componentName: string,\n resourceGroupName: string,\n nextLink: string,\n options?: WebTestsListByComponentNextOptionalParams,\n ): Promise<WebTestsListByComponentNextResponse> {\n return this.client.sendOperationRequest(\n { componentName, resourceGroupName, nextLink, options },\n listByComponentNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WebTestListResult,\n },\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WebTest,\n },\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.webTestName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.WebTest,\n },\n },\n requestBody: Parameters.webTestDefinition,\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.webTestName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateTagsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.WebTest,\n },\n },\n requestBody: Parameters.webTestTags,\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.webTestName,\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/webtests/{webTestName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 204: {} },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.webTestName,\n ],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Insights/webtests\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WebTestListResult,\n },\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByComponentOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{componentName}/webtests\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WebTestListResult,\n },\n },\n queryParameters: [Parameters.apiVersion2],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.componentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WebTestListResult,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WebTestListResult,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByComponentNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WebTestListResult,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n Parameters.componentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -15,6 +15,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
15
15
|
/// <reference lib="esnext.asynciterable" />
|
|
16
16
|
/** Class containing WorkItemConfigurations operations. */
|
|
17
17
|
class WorkItemConfigurationsImpl {
|
|
18
|
+
client;
|
|
18
19
|
/**
|
|
19
20
|
* Initialize a new instance of the class WorkItemConfigurations class.
|
|
20
21
|
* @param client Reference to the service client
|
|
@@ -38,39 +39,22 @@ class WorkItemConfigurationsImpl {
|
|
|
38
39
|
return this;
|
|
39
40
|
},
|
|
40
41
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
42
|
+
if (settings?.maxPageSize) {
|
|
42
43
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
44
|
}
|
|
44
45
|
return this.listPagingPage(resourceGroupName, resourceName, options, settings);
|
|
45
46
|
},
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
|
-
listPagingPage(resourceGroupName, resourceName, options, _settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
yield yield tslib_1.__await(result.value || []);
|
|
53
|
-
});
|
|
49
|
+
async *listPagingPage(resourceGroupName, resourceName, options, _settings) {
|
|
50
|
+
let result;
|
|
51
|
+
result = await this._list(resourceGroupName, resourceName, options);
|
|
52
|
+
yield result.value || [];
|
|
54
53
|
}
|
|
55
|
-
listPagingAll(resourceGroupName, resourceName, options) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, resourceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
60
|
-
_c = _f.value;
|
|
61
|
-
_d = false;
|
|
62
|
-
const page = _c;
|
|
63
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
67
|
-
finally {
|
|
68
|
-
try {
|
|
69
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
70
|
-
}
|
|
71
|
-
finally { if (e_1) throw e_1.error; }
|
|
72
|
-
}
|
|
73
|
-
});
|
|
54
|
+
async *listPagingAll(resourceGroupName, resourceName, options) {
|
|
55
|
+
for await (const page of this.listPagingPage(resourceGroupName, resourceName, options)) {
|
|
56
|
+
yield* page;
|
|
57
|
+
}
|
|
74
58
|
}
|
|
75
59
|
/**
|
|
76
60
|
* Gets the list work item configurations that exist for the application
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workItemConfigurations.js","sourceRoot":"","sources":["../../../src/operations/workItemConfigurations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAkBtD,4CAA4C;AAC5C,0DAA0D;AAC1D,MAAa,0BAA0B;IAGrC;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,YAAoB,EACpB,OAAkD;QAElD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;QAC1E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAiB,EACjB,YAAY,EACZ,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,iBAAyB,EACzB,YAAoB,EACpB,OAAkD,EAClD,SAAwB;;YAExB,IAAI,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UAAU,CAAC,gBAAgB;KAC5B;IACD,UAAU;CACX,CAAC;AACF,MAAM,oBAAoB,GAA6B;IACrD,IAAI,EAAE,8JAA8J;IACpK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;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,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,uBAAuB,GAA6B;IACxD,IAAI,EAAE,8JAA8J;IACpK,UAAU,EAAE,OAAO;IACnB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;KACF;IACD,WAAW,EAAE,UAAU,CAAC,+BAA+B;IACvD,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,gBAAgB;KAC5B;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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { WorkItemConfigurations } 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 WorkItemConfiguration,\n WorkItemConfigurationsListOptionalParams,\n WorkItemConfigurationsListResponse,\n WorkItemCreateConfiguration,\n WorkItemConfigurationsCreateOptionalParams,\n WorkItemConfigurationsCreateResponse,\n WorkItemConfigurationsGetDefaultOptionalParams,\n WorkItemConfigurationsGetDefaultResponse,\n WorkItemConfigurationsDeleteOptionalParams,\n WorkItemConfigurationsGetItemOptionalParams,\n WorkItemConfigurationsGetItemResponse,\n WorkItemConfigurationsUpdateItemOptionalParams,\n WorkItemConfigurationsUpdateItemResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing WorkItemConfigurations operations. */\nexport class WorkItemConfigurationsImpl implements WorkItemConfigurations {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class WorkItemConfigurations 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 work item configurations that exist for the application\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?: WorkItemConfigurationsListOptionalParams,\n ): PagedAsyncIterableIterator<WorkItemConfiguration> {\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?: WorkItemConfigurationsListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<WorkItemConfiguration[]> {\n let result: WorkItemConfigurationsListResponse;\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?: WorkItemConfigurationsListOptionalParams,\n ): AsyncIterableIterator<WorkItemConfiguration> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n resourceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the list work item configurations that exist for the application\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?: WorkItemConfigurationsListOptionalParams,\n ): Promise<WorkItemConfigurationsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Create a work item configuration 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 workItemConfigurationProperties Properties that need to be specified to create a work item\n * configuration of a Application Insights component.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n resourceName: string,\n workItemConfigurationProperties: WorkItemCreateConfiguration,\n options?: WorkItemConfigurationsCreateOptionalParams,\n ): Promise<WorkItemConfigurationsCreateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n workItemConfigurationProperties,\n options,\n },\n createOperationSpec,\n );\n }\n\n /**\n * Gets default work item configurations that exist for the application\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 getDefault(\n resourceGroupName: string,\n resourceName: string,\n options?: WorkItemConfigurationsGetDefaultOptionalParams,\n ): Promise<WorkItemConfigurationsGetDefaultResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getDefaultOperationSpec,\n );\n }\n\n /**\n * Delete a work item configuration 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 workItemConfigId The unique work item configuration Id. This can be either friendly name of\n * connector as defined in connector configuration\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n workItemConfigId: string,\n options?: WorkItemConfigurationsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, workItemConfigId, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets specified work item configuration 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 workItemConfigId The unique work item configuration Id. This can be either friendly name of\n * connector as defined in connector configuration\n * @param options The options parameters.\n */\n getItem(\n resourceGroupName: string,\n resourceName: string,\n workItemConfigId: string,\n options?: WorkItemConfigurationsGetItemOptionalParams,\n ): Promise<WorkItemConfigurationsGetItemResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, workItemConfigId, options },\n getItemOperationSpec,\n );\n }\n\n /**\n * Update a work item configuration 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 workItemConfigId The unique work item configuration Id. This can be either friendly name of\n * connector as defined in connector configuration\n * @param workItemConfigurationProperties Properties that need to be specified to update a work item\n * configuration for this Application Insights component.\n * @param options The options parameters.\n */\n updateItem(\n resourceGroupName: string,\n resourceName: string,\n workItemConfigId: string,\n workItemConfigurationProperties: WorkItemCreateConfiguration,\n options?: WorkItemConfigurationsUpdateItemOptionalParams,\n ): Promise<WorkItemConfigurationsUpdateItemResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n workItemConfigId,\n workItemConfigurationProperties,\n options,\n },\n updateItemOperationSpec,\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}/WorkItemConfigs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkItemConfigurationsListResult,\n },\n default: {\n bodyMapper: Mappers.WorkItemConfigurationError,\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}/WorkItemConfigs\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkItemConfiguration,\n },\n },\n requestBody: Parameters.workItemConfigurationProperties,\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 getDefaultOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/DefaultWorkItemConfig\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkItemConfiguration,\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 deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs/{workItemConfigId}\",\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.workItemConfigId,\n ],\n serializer,\n};\nconst getItemOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs/{workItemConfigId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkItemConfiguration,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.workItemConfigId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateItemOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs/{workItemConfigId}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkItemConfiguration,\n },\n },\n requestBody: Parameters.workItemConfigurationProperties,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.workItemConfigId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"workItemConfigurations.js","sourceRoot":"","sources":["../../../src/operations/workItemConfigurations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAkBtD,4CAA4C;AAC5C,0DAA0D;AAC1D,MAAa,0BAA0B;IACpB,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,YAAoB,EACpB,OAAkD;QAElD,MAAM,IAAI,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K;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,gBAAgB;KAC5B;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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { WorkItemConfigurations } 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 WorkItemConfiguration,\n WorkItemConfigurationsListOptionalParams,\n WorkItemConfigurationsListResponse,\n WorkItemCreateConfiguration,\n WorkItemConfigurationsCreateOptionalParams,\n WorkItemConfigurationsCreateResponse,\n WorkItemConfigurationsGetDefaultOptionalParams,\n WorkItemConfigurationsGetDefaultResponse,\n WorkItemConfigurationsDeleteOptionalParams,\n WorkItemConfigurationsGetItemOptionalParams,\n WorkItemConfigurationsGetItemResponse,\n WorkItemConfigurationsUpdateItemOptionalParams,\n WorkItemConfigurationsUpdateItemResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing WorkItemConfigurations operations. */\nexport class WorkItemConfigurationsImpl implements WorkItemConfigurations {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class WorkItemConfigurations 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 work item configurations that exist for the application\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?: WorkItemConfigurationsListOptionalParams,\n ): PagedAsyncIterableIterator<WorkItemConfiguration> {\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?: WorkItemConfigurationsListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<WorkItemConfiguration[]> {\n let result: WorkItemConfigurationsListResponse;\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?: WorkItemConfigurationsListOptionalParams,\n ): AsyncIterableIterator<WorkItemConfiguration> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n resourceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the list work item configurations that exist for the application\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?: WorkItemConfigurationsListOptionalParams,\n ): Promise<WorkItemConfigurationsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Create a work item configuration 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 workItemConfigurationProperties Properties that need to be specified to create a work item\n * configuration of a Application Insights component.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n resourceName: string,\n workItemConfigurationProperties: WorkItemCreateConfiguration,\n options?: WorkItemConfigurationsCreateOptionalParams,\n ): Promise<WorkItemConfigurationsCreateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n workItemConfigurationProperties,\n options,\n },\n createOperationSpec,\n );\n }\n\n /**\n * Gets default work item configurations that exist for the application\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 getDefault(\n resourceGroupName: string,\n resourceName: string,\n options?: WorkItemConfigurationsGetDefaultOptionalParams,\n ): Promise<WorkItemConfigurationsGetDefaultResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getDefaultOperationSpec,\n );\n }\n\n /**\n * Delete a work item configuration 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 workItemConfigId The unique work item configuration Id. This can be either friendly name of\n * connector as defined in connector configuration\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n workItemConfigId: string,\n options?: WorkItemConfigurationsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, workItemConfigId, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets specified work item configuration 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 workItemConfigId The unique work item configuration Id. This can be either friendly name of\n * connector as defined in connector configuration\n * @param options The options parameters.\n */\n getItem(\n resourceGroupName: string,\n resourceName: string,\n workItemConfigId: string,\n options?: WorkItemConfigurationsGetItemOptionalParams,\n ): Promise<WorkItemConfigurationsGetItemResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, workItemConfigId, options },\n getItemOperationSpec,\n );\n }\n\n /**\n * Update a work item configuration 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 workItemConfigId The unique work item configuration Id. This can be either friendly name of\n * connector as defined in connector configuration\n * @param workItemConfigurationProperties Properties that need to be specified to update a work item\n * configuration for this Application Insights component.\n * @param options The options parameters.\n */\n updateItem(\n resourceGroupName: string,\n resourceName: string,\n workItemConfigId: string,\n workItemConfigurationProperties: WorkItemCreateConfiguration,\n options?: WorkItemConfigurationsUpdateItemOptionalParams,\n ): Promise<WorkItemConfigurationsUpdateItemResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n workItemConfigId,\n workItemConfigurationProperties,\n options,\n },\n updateItemOperationSpec,\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}/WorkItemConfigs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkItemConfigurationsListResult,\n },\n default: {\n bodyMapper: Mappers.WorkItemConfigurationError,\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}/WorkItemConfigs\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkItemConfiguration,\n },\n },\n requestBody: Parameters.workItemConfigurationProperties,\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 getDefaultOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/DefaultWorkItemConfig\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkItemConfiguration,\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 deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs/{workItemConfigId}\",\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.workItemConfigId,\n ],\n serializer,\n};\nconst getItemOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs/{workItemConfigId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkItemConfiguration,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.workItemConfigId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateItemOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs/{workItemConfigId}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkItemConfiguration,\n },\n },\n requestBody: Parameters.workItemConfigurationProperties,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.workItemConfigId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
|
|
@@ -15,6 +15,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
15
15
|
/// <reference lib="esnext.asynciterable" />
|
|
16
16
|
/** Class containing WorkbookTemplates operations. */
|
|
17
17
|
class WorkbookTemplatesImpl {
|
|
18
|
+
client;
|
|
18
19
|
/**
|
|
19
20
|
* Initialize a new instance of the class WorkbookTemplates class.
|
|
20
21
|
* @param client Reference to the service client
|
|
@@ -37,39 +38,22 @@ class WorkbookTemplatesImpl {
|
|
|
37
38
|
return this;
|
|
38
39
|
},
|
|
39
40
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
41
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
43
|
}
|
|
43
44
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
44
45
|
},
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
|
-
listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
yield yield tslib_1.__await(result.value || []);
|
|
52
|
-
});
|
|
48
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
|
|
49
|
+
let result;
|
|
50
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
51
|
+
yield result.value || [];
|
|
53
52
|
}
|
|
54
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
59
|
-
_c = _f.value;
|
|
60
|
-
_d = false;
|
|
61
|
-
const page = _c;
|
|
62
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
66
|
-
finally {
|
|
67
|
-
try {
|
|
68
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
69
|
-
}
|
|
70
|
-
finally { if (e_1) throw e_1.error; }
|
|
71
|
-
}
|
|
72
|
-
});
|
|
53
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
54
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
55
|
+
yield* page;
|
|
56
|
+
}
|
|
73
57
|
}
|
|
74
58
|
/**
|
|
75
59
|
* Get all Workbook templates defined within a specified resource group.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workbookTemplates.js","sourceRoot":"","sources":["../../../src/operations/workbookTemplates.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4CAA4C;AAC5C,qDAAqD;AACrD,MAAa,qBAAqB;IAGhC;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,OAA4D;QAE5D,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC3E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE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AY;KACxB;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,kIAAkI;IACxI,UAAU,EAAE,OAAO;IACnB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;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;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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { WorkbookTemplates } 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 WorkbookTemplate,\n WorkbookTemplatesListByResourceGroupOptionalParams,\n WorkbookTemplatesListByResourceGroupResponse,\n WorkbookTemplatesGetOptionalParams,\n WorkbookTemplatesGetResponse,\n WorkbookTemplatesDeleteOptionalParams,\n WorkbookTemplatesCreateOrUpdateOptionalParams,\n WorkbookTemplatesCreateOrUpdateResponse,\n WorkbookTemplatesUpdateOptionalParams,\n WorkbookTemplatesUpdateResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing WorkbookTemplates operations. */\nexport class WorkbookTemplatesImpl implements WorkbookTemplates {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class WorkbookTemplates class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Get all Workbook templates defined within a specified resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: WorkbookTemplatesListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<WorkbookTemplate> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, 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.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: WorkbookTemplatesListByResourceGroupOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<WorkbookTemplate[]> {\n let result: WorkbookTemplatesListByResourceGroupResponse;\n result = await this._listByResourceGroup(resourceGroupName, options);\n yield result.value || [];\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: WorkbookTemplatesListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<WorkbookTemplate> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get all Workbook templates defined within a specified resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: WorkbookTemplatesListByResourceGroupOptionalParams,\n ): Promise<WorkbookTemplatesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Get a single workbook template by its resourceName.\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?: WorkbookTemplatesGetOptionalParams,\n ): Promise<WorkbookTemplatesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Delete a workbook template.\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 delete(\n resourceGroupName: string,\n resourceName: string,\n options?: WorkbookTemplatesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Create a new workbook template.\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 workbookTemplateProperties Properties that need to be specified to create a new workbook.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n resourceName: string,\n workbookTemplateProperties: WorkbookTemplate,\n options?: WorkbookTemplatesCreateOrUpdateOptionalParams,\n ): Promise<WorkbookTemplatesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, workbookTemplateProperties, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Updates a workbook template that has already been added.\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 update(\n resourceGroupName: string,\n resourceName: string,\n options?: WorkbookTemplatesUpdateOptionalParams,\n ): Promise<WorkbookTemplatesUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n updateOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkbookTemplatesListResult,\n },\n default: {\n bodyMapper: Mappers.WorkbookTemplateError,\n },\n },\n queryParameters: [Parameters.apiVersion4],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates/{resourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkbookTemplate,\n },\n default: {\n bodyMapper: Mappers.WorkbookTemplateError,\n },\n },\n queryParameters: [Parameters.apiVersion4],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates/{resourceName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.WorkbookTemplateError,\n },\n },\n queryParameters: [Parameters.apiVersion4],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates/{resourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkbookTemplate,\n },\n 201: {\n bodyMapper: Mappers.WorkbookTemplate,\n },\n default: {\n bodyMapper: Mappers.WorkbookTemplateError,\n },\n },\n requestBody: Parameters.workbookTemplateProperties,\n queryParameters: [Parameters.apiVersion4],\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 updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates/{resourceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkbookTemplate,\n },\n default: {\n bodyMapper: Mappers.WorkbookTemplateError,\n },\n },\n requestBody: Parameters.workbookTemplateUpdateParameters,\n queryParameters: [Parameters.apiVersion4],\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":"workbookTemplates.js","sourceRoot":"","sources":["../../../src/operations/workbookTemplates.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4CAA4C;AAC5C,qDAAqD;AACrD,MAAa,qBAAqB;IACf,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,OAA4D;QAE5D,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC3E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,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UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;KACxB;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,kIAAkI;IACxI,UAAU,EAAE,OAAO;IACnB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;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;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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { WorkbookTemplates } 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 WorkbookTemplate,\n WorkbookTemplatesListByResourceGroupOptionalParams,\n WorkbookTemplatesListByResourceGroupResponse,\n WorkbookTemplatesGetOptionalParams,\n WorkbookTemplatesGetResponse,\n WorkbookTemplatesDeleteOptionalParams,\n WorkbookTemplatesCreateOrUpdateOptionalParams,\n WorkbookTemplatesCreateOrUpdateResponse,\n WorkbookTemplatesUpdateOptionalParams,\n WorkbookTemplatesUpdateResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing WorkbookTemplates operations. */\nexport class WorkbookTemplatesImpl implements WorkbookTemplates {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class WorkbookTemplates class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Get all Workbook templates defined within a specified resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: WorkbookTemplatesListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<WorkbookTemplate> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, 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.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: WorkbookTemplatesListByResourceGroupOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<WorkbookTemplate[]> {\n let result: WorkbookTemplatesListByResourceGroupResponse;\n result = await this._listByResourceGroup(resourceGroupName, options);\n yield result.value || [];\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: WorkbookTemplatesListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<WorkbookTemplate> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Get all Workbook templates defined within a specified resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: WorkbookTemplatesListByResourceGroupOptionalParams,\n ): Promise<WorkbookTemplatesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Get a single workbook template by its resourceName.\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?: WorkbookTemplatesGetOptionalParams,\n ): Promise<WorkbookTemplatesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Delete a workbook template.\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 delete(\n resourceGroupName: string,\n resourceName: string,\n options?: WorkbookTemplatesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Create a new workbook template.\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 workbookTemplateProperties Properties that need to be specified to create a new workbook.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n resourceName: string,\n workbookTemplateProperties: WorkbookTemplate,\n options?: WorkbookTemplatesCreateOrUpdateOptionalParams,\n ): Promise<WorkbookTemplatesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, workbookTemplateProperties, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Updates a workbook template that has already been added.\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 update(\n resourceGroupName: string,\n resourceName: string,\n options?: WorkbookTemplatesUpdateOptionalParams,\n ): Promise<WorkbookTemplatesUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n updateOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkbookTemplatesListResult,\n },\n default: {\n bodyMapper: Mappers.WorkbookTemplateError,\n },\n },\n queryParameters: [Parameters.apiVersion4],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates/{resourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkbookTemplate,\n },\n default: {\n bodyMapper: Mappers.WorkbookTemplateError,\n },\n },\n queryParameters: [Parameters.apiVersion4],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates/{resourceName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.WorkbookTemplateError,\n },\n },\n queryParameters: [Parameters.apiVersion4],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates/{resourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkbookTemplate,\n },\n 201: {\n bodyMapper: Mappers.WorkbookTemplate,\n },\n default: {\n bodyMapper: Mappers.WorkbookTemplateError,\n },\n },\n requestBody: Parameters.workbookTemplateProperties,\n queryParameters: [Parameters.apiVersion4],\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 updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates/{resourceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.WorkbookTemplate,\n },\n default: {\n bodyMapper: Mappers.WorkbookTemplateError,\n },\n },\n requestBody: Parameters.workbookTemplateUpdateParameters,\n queryParameters: [Parameters.apiVersion4],\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"]}
|