@azure/arm-costmanagement 1.0.0-alpha.20250718.1 → 1.0.0-alpha.20250730.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/costManagementClient.js +28 -5
- package/dist/browser/costManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +256 -117
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/alerts.js +1 -0
- package/dist/browser/operations/alerts.js.map +1 -1
- package/dist/browser/operations/benefitRecommendations.js +23 -40
- package/dist/browser/operations/benefitRecommendations.js.map +1 -1
- package/dist/browser/operations/benefitUtilizationSummaries.js +89 -157
- package/dist/browser/operations/benefitUtilizationSummaries.js.map +1 -1
- package/dist/browser/operations/dimensions.js +19 -53
- package/dist/browser/operations/dimensions.js.map +1 -1
- package/dist/browser/operations/exports.js +1 -0
- package/dist/browser/operations/exports.js.map +1 -1
- package/dist/browser/operations/forecast.js +1 -0
- package/dist/browser/operations/forecast.js.map +1 -1
- package/dist/browser/operations/generateCostDetailsReport.js +23 -12
- package/dist/browser/operations/generateCostDetailsReport.js.map +1 -1
- package/dist/browser/operations/generateDetailedCostReport.js +12 -6
- package/dist/browser/operations/generateDetailedCostReport.js.map +1 -1
- package/dist/browser/operations/generateDetailedCostReportOperationResults.js +12 -6
- package/dist/browser/operations/generateDetailedCostReportOperationResults.js.map +1 -1
- package/dist/browser/operations/generateDetailedCostReportOperationStatus.js +1 -0
- package/dist/browser/operations/generateDetailedCostReportOperationStatus.js.map +1 -1
- package/dist/browser/operations/generateReservationDetailsReport.js +23 -12
- package/dist/browser/operations/generateReservationDetailsReport.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/priceSheet.js +23 -12
- package/dist/browser/operations/priceSheet.js.map +1 -1
- package/dist/browser/operations/query.js +1 -0
- package/dist/browser/operations/query.js.map +1 -1
- package/dist/browser/operations/scheduledActions.js +45 -79
- package/dist/browser/operations/scheduledActions.js.map +1 -1
- package/dist/browser/operations/views.js +45 -79
- package/dist/browser/operations/views.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/costManagementClient.js +28 -5
- package/dist/commonjs/costManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +256 -117
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/alerts.js +1 -0
- package/dist/commonjs/operations/alerts.js.map +1 -1
- package/dist/commonjs/operations/benefitRecommendations.js +23 -39
- package/dist/commonjs/operations/benefitRecommendations.js.map +1 -1
- package/dist/commonjs/operations/benefitUtilizationSummaries.js +89 -156
- package/dist/commonjs/operations/benefitUtilizationSummaries.js.map +1 -1
- package/dist/commonjs/operations/dimensions.js +19 -52
- package/dist/commonjs/operations/dimensions.js.map +1 -1
- package/dist/commonjs/operations/exports.js +1 -0
- package/dist/commonjs/operations/exports.js.map +1 -1
- package/dist/commonjs/operations/forecast.js +1 -0
- package/dist/commonjs/operations/forecast.js.map +1 -1
- package/dist/commonjs/operations/generateCostDetailsReport.js +23 -12
- package/dist/commonjs/operations/generateCostDetailsReport.js.map +1 -1
- package/dist/commonjs/operations/generateDetailedCostReport.js +12 -6
- package/dist/commonjs/operations/generateDetailedCostReport.js.map +1 -1
- package/dist/commonjs/operations/generateDetailedCostReportOperationResults.js +12 -6
- package/dist/commonjs/operations/generateDetailedCostReportOperationResults.js.map +1 -1
- package/dist/commonjs/operations/generateDetailedCostReportOperationStatus.js +1 -0
- package/dist/commonjs/operations/generateDetailedCostReportOperationStatus.js.map +1 -1
- package/dist/commonjs/operations/generateReservationDetailsReport.js +23 -12
- package/dist/commonjs/operations/generateReservationDetailsReport.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/priceSheet.js +23 -12
- package/dist/commonjs/operations/priceSheet.js.map +1 -1
- package/dist/commonjs/operations/query.js +1 -0
- package/dist/commonjs/operations/query.js.map +1 -1
- package/dist/commonjs/operations/scheduledActions.js +45 -78
- package/dist/commonjs/operations/scheduledActions.js.map +1 -1
- package/dist/commonjs/operations/views.js +45 -78
- package/dist/commonjs/operations/views.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/costManagementClient.js +28 -5
- package/dist/esm/costManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +256 -117
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/alerts.js +1 -0
- package/dist/esm/operations/alerts.js.map +1 -1
- package/dist/esm/operations/benefitRecommendations.js +23 -40
- package/dist/esm/operations/benefitRecommendations.js.map +1 -1
- package/dist/esm/operations/benefitUtilizationSummaries.js +89 -157
- package/dist/esm/operations/benefitUtilizationSummaries.js.map +1 -1
- package/dist/esm/operations/dimensions.js +19 -53
- package/dist/esm/operations/dimensions.js.map +1 -1
- package/dist/esm/operations/exports.js +1 -0
- package/dist/esm/operations/exports.js.map +1 -1
- package/dist/esm/operations/forecast.js +1 -0
- package/dist/esm/operations/forecast.js.map +1 -1
- package/dist/esm/operations/generateCostDetailsReport.js +23 -12
- package/dist/esm/operations/generateCostDetailsReport.js.map +1 -1
- package/dist/esm/operations/generateDetailedCostReport.js +12 -6
- package/dist/esm/operations/generateDetailedCostReport.js.map +1 -1
- package/dist/esm/operations/generateDetailedCostReportOperationResults.js +12 -6
- package/dist/esm/operations/generateDetailedCostReportOperationResults.js.map +1 -1
- package/dist/esm/operations/generateDetailedCostReportOperationStatus.js +1 -0
- package/dist/esm/operations/generateDetailedCostReportOperationStatus.js.map +1 -1
- package/dist/esm/operations/generateReservationDetailsReport.js +23 -12
- package/dist/esm/operations/generateReservationDetailsReport.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/priceSheet.js +23 -12
- package/dist/esm/operations/priceSheet.js.map +1 -1
- package/dist/esm/operations/query.js +1 -0
- package/dist/esm/operations/query.js.map +1 -1
- package/dist/esm/operations/scheduledActions.js +45 -79
- package/dist/esm/operations/scheduledActions.js.map +1 -1
- package/dist/esm/operations/views.js +45 -79
- package/dist/esm/operations/views.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/costManagementClient.js +28 -5
- package/dist/react-native/costManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +256 -117
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/alerts.js +1 -0
- package/dist/react-native/operations/alerts.js.map +1 -1
- package/dist/react-native/operations/benefitRecommendations.js +23 -40
- package/dist/react-native/operations/benefitRecommendations.js.map +1 -1
- package/dist/react-native/operations/benefitUtilizationSummaries.js +89 -157
- package/dist/react-native/operations/benefitUtilizationSummaries.js.map +1 -1
- package/dist/react-native/operations/dimensions.js +19 -53
- package/dist/react-native/operations/dimensions.js.map +1 -1
- package/dist/react-native/operations/exports.js +1 -0
- package/dist/react-native/operations/exports.js.map +1 -1
- package/dist/react-native/operations/forecast.js +1 -0
- package/dist/react-native/operations/forecast.js.map +1 -1
- package/dist/react-native/operations/generateCostDetailsReport.js +23 -12
- package/dist/react-native/operations/generateCostDetailsReport.js.map +1 -1
- package/dist/react-native/operations/generateDetailedCostReport.js +12 -6
- package/dist/react-native/operations/generateDetailedCostReport.js.map +1 -1
- package/dist/react-native/operations/generateDetailedCostReportOperationResults.js +12 -6
- package/dist/react-native/operations/generateDetailedCostReportOperationResults.js.map +1 -1
- package/dist/react-native/operations/generateDetailedCostReportOperationStatus.js +1 -0
- package/dist/react-native/operations/generateDetailedCostReportOperationStatus.js.map +1 -1
- package/dist/react-native/operations/generateReservationDetailsReport.js +23 -12
- package/dist/react-native/operations/generateReservationDetailsReport.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/priceSheet.js +23 -12
- package/dist/react-native/operations/priceSheet.js.map +1 -1
- package/dist/react-native/operations/query.js +1 -0
- package/dist/react-native/operations/query.js.map +1 -1
- package/dist/react-native/operations/scheduledActions.js +45 -79
- package/dist/react-native/operations/scheduledActions.js.map +1 -1
- package/dist/react-native/operations/views.js +45 -79
- package/dist/react-native/operations/views.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-costmanagement-node.api.md +2064 -2064
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefitUtilizationSummaries.js","sourceRoot":"","sources":["../../../src/operations/benefitUtilizationSummaries.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAsBtD,4CAA4C;AAC5C,+DAA+D;AAC/D,MAAM,OAAO,+BAA+B;IAI1C;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,sBAAsB,CAC3B,gBAAwB,EACxB,OAAyE;QAEzE,MAAM,IAAI,GAAG,IAAI,CAAC,+BAA+B,CAC/C,gBAAgB,EAChB,OAAO,C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AC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,kBAAkB;QAC7B,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 { BenefitUtilizationSummaries } 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 { CostManagementClient } from \"../costManagementClient.js\";\nimport {\n BenefitUtilizationSummaryUnion,\n BenefitUtilizationSummariesListByBillingAccountIdNextOptionalParams,\n BenefitUtilizationSummariesListByBillingAccountIdOptionalParams,\n BenefitUtilizationSummariesListByBillingAccountIdResponse,\n BenefitUtilizationSummariesListByBillingProfileIdNextOptionalParams,\n BenefitUtilizationSummariesListByBillingProfileIdOptionalParams,\n BenefitUtilizationSummariesListByBillingProfileIdResponse,\n BenefitUtilizationSummariesListBySavingsPlanOrderNextOptionalParams,\n BenefitUtilizationSummariesListBySavingsPlanOrderOptionalParams,\n BenefitUtilizationSummariesListBySavingsPlanOrderResponse,\n BenefitUtilizationSummariesListBySavingsPlanIdNextOptionalParams,\n BenefitUtilizationSummariesListBySavingsPlanIdOptionalParams,\n BenefitUtilizationSummariesListBySavingsPlanIdResponse,\n BenefitUtilizationSummariesListByBillingAccountIdNextResponse,\n BenefitUtilizationSummariesListByBillingProfileIdNextResponse,\n BenefitUtilizationSummariesListBySavingsPlanOrderNextResponse,\n BenefitUtilizationSummariesListBySavingsPlanIdNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BenefitUtilizationSummaries operations. */\nexport class BenefitUtilizationSummariesImpl\n implements BenefitUtilizationSummaries {\n private readonly client: CostManagementClient;\n\n /**\n * Initialize a new instance of the class BenefitUtilizationSummaries class.\n * @param client Reference to the service client\n */\n constructor(client: CostManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists savings plan utilization summaries for the enterprise agreement scope. Supported at grain\n * values: 'Daily' and 'Monthly'.\n * @param billingAccountId Billing account ID\n * @param options The options parameters.\n */\n public listByBillingAccountId(\n billingAccountId: string,\n options?: BenefitUtilizationSummariesListByBillingAccountIdOptionalParams\n ): PagedAsyncIterableIterator<BenefitUtilizationSummaryUnion> {\n const iter = this.listByBillingAccountIdPagingAll(\n billingAccountId,\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.listByBillingAccountIdPagingPage(\n billingAccountId,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByBillingAccountIdPagingPage(\n billingAccountId: string,\n options?: BenefitUtilizationSummariesListByBillingAccountIdOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<BenefitUtilizationSummaryUnion[]> {\n let result: BenefitUtilizationSummariesListByBillingAccountIdResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByBillingAccountId(billingAccountId, 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._listByBillingAccountIdNext(\n billingAccountId,\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 *listByBillingAccountIdPagingAll(\n billingAccountId: string,\n options?: BenefitUtilizationSummariesListByBillingAccountIdOptionalParams\n ): AsyncIterableIterator<BenefitUtilizationSummaryUnion> {\n for await (const page of this.listByBillingAccountIdPagingPage(\n billingAccountId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists savings plan utilization summaries for billing profile. Supported at grain values: 'Daily' and\n * 'Monthly'.\n * @param billingAccountId Billing account ID\n * @param billingProfileId Billing profile ID.\n * @param options The options parameters.\n */\n public listByBillingProfileId(\n billingAccountId: string,\n billingProfileId: string,\n options?: BenefitUtilizationSummariesListByBillingProfileIdOptionalParams\n ): PagedAsyncIterableIterator<BenefitUtilizationSummaryUnion> {\n const iter = this.listByBillingProfileIdPagingAll(\n billingAccountId,\n billingProfileId,\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.listByBillingProfileIdPagingPage(\n billingAccountId,\n billingProfileId,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByBillingProfileIdPagingPage(\n billingAccountId: string,\n billingProfileId: string,\n options?: BenefitUtilizationSummariesListByBillingProfileIdOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<BenefitUtilizationSummaryUnion[]> {\n let result: BenefitUtilizationSummariesListByBillingProfileIdResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByBillingProfileId(\n billingAccountId,\n billingProfileId,\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._listByBillingProfileIdNext(\n billingAccountId,\n billingProfileId,\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 *listByBillingProfileIdPagingAll(\n billingAccountId: string,\n billingProfileId: string,\n options?: BenefitUtilizationSummariesListByBillingProfileIdOptionalParams\n ): AsyncIterableIterator<BenefitUtilizationSummaryUnion> {\n for await (const page of this.listByBillingProfileIdPagingPage(\n billingAccountId,\n billingProfileId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the savings plan utilization summaries for daily or monthly grain.\n * @param savingsPlanOrderId Savings plan order ID.\n * @param options The options parameters.\n */\n public listBySavingsPlanOrder(\n savingsPlanOrderId: string,\n options?: BenefitUtilizationSummariesListBySavingsPlanOrderOptionalParams\n ): PagedAsyncIterableIterator<BenefitUtilizationSummaryUnion> {\n const iter = this.listBySavingsPlanOrderPagingAll(\n savingsPlanOrderId,\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.listBySavingsPlanOrderPagingPage(\n savingsPlanOrderId,\n options,\n settings\n );\n }\n };\n }\n\n private async *listBySavingsPlanOrderPagingPage(\n savingsPlanOrderId: string,\n options?: BenefitUtilizationSummariesListBySavingsPlanOrderOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<BenefitUtilizationSummaryUnion[]> {\n let result: BenefitUtilizationSummariesListBySavingsPlanOrderResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySavingsPlanOrder(savingsPlanOrderId, 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._listBySavingsPlanOrderNext(\n savingsPlanOrderId,\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 *listBySavingsPlanOrderPagingAll(\n savingsPlanOrderId: string,\n options?: BenefitUtilizationSummariesListBySavingsPlanOrderOptionalParams\n ): AsyncIterableIterator<BenefitUtilizationSummaryUnion> {\n for await (const page of this.listBySavingsPlanOrderPagingPage(\n savingsPlanOrderId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the savings plan utilization summaries for daily or monthly grain.\n * @param savingsPlanOrderId Savings plan order ID.\n * @param savingsPlanId Savings plan ID.\n * @param options The options parameters.\n */\n public listBySavingsPlanId(\n savingsPlanOrderId: string,\n savingsPlanId: string,\n options?: BenefitUtilizationSummariesListBySavingsPlanIdOptionalParams\n ): PagedAsyncIterableIterator<BenefitUtilizationSummaryUnion> {\n const iter = this.listBySavingsPlanIdPagingAll(\n savingsPlanOrderId,\n savingsPlanId,\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.listBySavingsPlanIdPagingPage(\n savingsPlanOrderId,\n savingsPlanId,\n options,\n settings\n );\n }\n };\n }\n\n private async *listBySavingsPlanIdPagingPage(\n savingsPlanOrderId: string,\n savingsPlanId: string,\n options?: BenefitUtilizationSummariesListBySavingsPlanIdOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<BenefitUtilizationSummaryUnion[]> {\n let result: BenefitUtilizationSummariesListBySavingsPlanIdResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySavingsPlanId(\n savingsPlanOrderId,\n savingsPlanId,\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._listBySavingsPlanIdNext(\n savingsPlanOrderId,\n savingsPlanId,\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 *listBySavingsPlanIdPagingAll(\n savingsPlanOrderId: string,\n savingsPlanId: string,\n options?: BenefitUtilizationSummariesListBySavingsPlanIdOptionalParams\n ): AsyncIterableIterator<BenefitUtilizationSummaryUnion> {\n for await (const page of this.listBySavingsPlanIdPagingPage(\n savingsPlanOrderId,\n savingsPlanId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists savings plan utilization summaries for the enterprise agreement scope. Supported at grain\n * values: 'Daily' and 'Monthly'.\n * @param billingAccountId Billing account ID\n * @param options The options parameters.\n */\n private _listByBillingAccountId(\n billingAccountId: string,\n options?: BenefitUtilizationSummariesListByBillingAccountIdOptionalParams\n ): Promise<BenefitUtilizationSummariesListByBillingAccountIdResponse> {\n return this.client.sendOperationRequest(\n { billingAccountId, options },\n listByBillingAccountIdOperationSpec\n );\n }\n\n /**\n * Lists savings plan utilization summaries for billing profile. Supported at grain values: 'Daily' and\n * 'Monthly'.\n * @param billingAccountId Billing account ID\n * @param billingProfileId Billing profile ID.\n * @param options The options parameters.\n */\n private _listByBillingProfileId(\n billingAccountId: string,\n billingProfileId: string,\n options?: BenefitUtilizationSummariesListByBillingProfileIdOptionalParams\n ): Promise<BenefitUtilizationSummariesListByBillingProfileIdResponse> {\n return this.client.sendOperationRequest(\n { billingAccountId, billingProfileId, options },\n listByBillingProfileIdOperationSpec\n );\n }\n\n /**\n * Lists the savings plan utilization summaries for daily or monthly grain.\n * @param savingsPlanOrderId Savings plan order ID.\n * @param options The options parameters.\n */\n private _listBySavingsPlanOrder(\n savingsPlanOrderId: string,\n options?: BenefitUtilizationSummariesListBySavingsPlanOrderOptionalParams\n ): Promise<BenefitUtilizationSummariesListBySavingsPlanOrderResponse> {\n return this.client.sendOperationRequest(\n { savingsPlanOrderId, options },\n listBySavingsPlanOrderOperationSpec\n );\n }\n\n /**\n * Lists the savings plan utilization summaries for daily or monthly grain.\n * @param savingsPlanOrderId Savings plan order ID.\n * @param savingsPlanId Savings plan ID.\n * @param options The options parameters.\n */\n private _listBySavingsPlanId(\n savingsPlanOrderId: string,\n savingsPlanId: string,\n options?: BenefitUtilizationSummariesListBySavingsPlanIdOptionalParams\n ): Promise<BenefitUtilizationSummariesListBySavingsPlanIdResponse> {\n return this.client.sendOperationRequest(\n { savingsPlanOrderId, savingsPlanId, options },\n listBySavingsPlanIdOperationSpec\n );\n }\n\n /**\n * ListByBillingAccountIdNext\n * @param billingAccountId Billing account ID\n * @param nextLink The nextLink from the previous successful call to the ListByBillingAccountId method.\n * @param options The options parameters.\n */\n private _listByBillingAccountIdNext(\n billingAccountId: string,\n nextLink: string,\n options?: BenefitUtilizationSummariesListByBillingAccountIdNextOptionalParams\n ): Promise<BenefitUtilizationSummariesListByBillingAccountIdNextResponse> {\n return this.client.sendOperationRequest(\n { billingAccountId, nextLink, options },\n listByBillingAccountIdNextOperationSpec\n );\n }\n\n /**\n * ListByBillingProfileIdNext\n * @param billingAccountId Billing account ID\n * @param billingProfileId Billing profile ID.\n * @param nextLink The nextLink from the previous successful call to the ListByBillingProfileId method.\n * @param options The options parameters.\n */\n private _listByBillingProfileIdNext(\n billingAccountId: string,\n billingProfileId: string,\n nextLink: string,\n options?: BenefitUtilizationSummariesListByBillingProfileIdNextOptionalParams\n ): Promise<BenefitUtilizationSummariesListByBillingProfileIdNextResponse> {\n return this.client.sendOperationRequest(\n { billingAccountId, billingProfileId, nextLink, options },\n listByBillingProfileIdNextOperationSpec\n );\n }\n\n /**\n * ListBySavingsPlanOrderNext\n * @param savingsPlanOrderId Savings plan order ID.\n * @param nextLink The nextLink from the previous successful call to the ListBySavingsPlanOrder method.\n * @param options The options parameters.\n */\n private _listBySavingsPlanOrderNext(\n savingsPlanOrderId: string,\n nextLink: string,\n options?: BenefitUtilizationSummariesListBySavingsPlanOrderNextOptionalParams\n ): Promise<BenefitUtilizationSummariesListBySavingsPlanOrderNextResponse> {\n return this.client.sendOperationRequest(\n { savingsPlanOrderId, nextLink, options },\n listBySavingsPlanOrderNextOperationSpec\n );\n }\n\n /**\n * ListBySavingsPlanIdNext\n * @param savingsPlanOrderId Savings plan order ID.\n * @param savingsPlanId Savings plan ID.\n * @param nextLink The nextLink from the previous successful call to the ListBySavingsPlanId method.\n * @param options The options parameters.\n */\n private _listBySavingsPlanIdNext(\n savingsPlanOrderId: string,\n savingsPlanId: string,\n nextLink: string,\n options?: BenefitUtilizationSummariesListBySavingsPlanIdNextOptionalParams\n ): Promise<BenefitUtilizationSummariesListBySavingsPlanIdNextResponse> {\n return this.client.sendOperationRequest(\n { savingsPlanOrderId, savingsPlanId, nextLink, options },\n listBySavingsPlanIdNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByBillingAccountIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BenefitUtilizationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.grainParameter,\n Parameters.filter1\n ],\n urlParameters: [Parameters.$host, Parameters.billingAccountId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByBillingProfileIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BenefitUtilizationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.grainParameter,\n Parameters.filter1\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountId,\n Parameters.billingProfileId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySavingsPlanOrderOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BenefitUtilizationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.grainParameter\n ],\n urlParameters: [Parameters.$host, Parameters.savingsPlanOrderId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySavingsPlanIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BenefitUtilizationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.grainParameter\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.savingsPlanOrderId,\n Parameters.savingsPlanId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByBillingAccountIdNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BenefitUtilizationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.billingAccountId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByBillingProfileIdNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BenefitUtilizationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.billingAccountId,\n Parameters.billingProfileId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySavingsPlanOrderNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BenefitUtilizationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.savingsPlanOrderId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySavingsPlanIdNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BenefitUtilizationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.savingsPlanOrderId,\n Parameters.savingsPlanId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"benefitUtilizationSummaries.js","sourceRoot":"","sources":["../../../src/operations/benefitUtilizationSummaries.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAsBtD,4CAA4C;AAC5C,+DAA+D;AAC/D,MAAM,OAAO,+BAA+B;IAEzB,MAAM,CAAuB;IAE9C;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,sBAAsB,CAC3B,gBAAwB,EACxB,OAAyE;QAEzE,MAAM,IAAI,GAAG,IAAI,CAAC,+BAA+B,CAC/C,gBAAgB,EAChB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDA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,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qCAAqC;SAC1D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,kBAAkB;QAC7B,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 { BenefitUtilizationSummaries } 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 { CostManagementClient } from \"../costManagementClient.js\";\nimport {\n BenefitUtilizationSummaryUnion,\n BenefitUtilizationSummariesListByBillingAccountIdNextOptionalParams,\n BenefitUtilizationSummariesListByBillingAccountIdOptionalParams,\n BenefitUtilizationSummariesListByBillingAccountIdResponse,\n BenefitUtilizationSummariesListByBillingProfileIdNextOptionalParams,\n BenefitUtilizationSummariesListByBillingProfileIdOptionalParams,\n BenefitUtilizationSummariesListByBillingProfileIdResponse,\n BenefitUtilizationSummariesListBySavingsPlanOrderNextOptionalParams,\n BenefitUtilizationSummariesListBySavingsPlanOrderOptionalParams,\n BenefitUtilizationSummariesListBySavingsPlanOrderResponse,\n BenefitUtilizationSummariesListBySavingsPlanIdNextOptionalParams,\n BenefitUtilizationSummariesListBySavingsPlanIdOptionalParams,\n BenefitUtilizationSummariesListBySavingsPlanIdResponse,\n BenefitUtilizationSummariesListByBillingAccountIdNextResponse,\n BenefitUtilizationSummariesListByBillingProfileIdNextResponse,\n BenefitUtilizationSummariesListBySavingsPlanOrderNextResponse,\n BenefitUtilizationSummariesListBySavingsPlanIdNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BenefitUtilizationSummaries operations. */\nexport class BenefitUtilizationSummariesImpl\n implements BenefitUtilizationSummaries {\n private readonly client: CostManagementClient;\n\n /**\n * Initialize a new instance of the class BenefitUtilizationSummaries class.\n * @param client Reference to the service client\n */\n constructor(client: CostManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists savings plan utilization summaries for the enterprise agreement scope. Supported at grain\n * values: 'Daily' and 'Monthly'.\n * @param billingAccountId Billing account ID\n * @param options The options parameters.\n */\n public listByBillingAccountId(\n billingAccountId: string,\n options?: BenefitUtilizationSummariesListByBillingAccountIdOptionalParams\n ): PagedAsyncIterableIterator<BenefitUtilizationSummaryUnion> {\n const iter = this.listByBillingAccountIdPagingAll(\n billingAccountId,\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.listByBillingAccountIdPagingPage(\n billingAccountId,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByBillingAccountIdPagingPage(\n billingAccountId: string,\n options?: BenefitUtilizationSummariesListByBillingAccountIdOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<BenefitUtilizationSummaryUnion[]> {\n let result: BenefitUtilizationSummariesListByBillingAccountIdResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByBillingAccountId(billingAccountId, 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._listByBillingAccountIdNext(\n billingAccountId,\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 *listByBillingAccountIdPagingAll(\n billingAccountId: string,\n options?: BenefitUtilizationSummariesListByBillingAccountIdOptionalParams\n ): AsyncIterableIterator<BenefitUtilizationSummaryUnion> {\n for await (const page of this.listByBillingAccountIdPagingPage(\n billingAccountId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists savings plan utilization summaries for billing profile. Supported at grain values: 'Daily' and\n * 'Monthly'.\n * @param billingAccountId Billing account ID\n * @param billingProfileId Billing profile ID.\n * @param options The options parameters.\n */\n public listByBillingProfileId(\n billingAccountId: string,\n billingProfileId: string,\n options?: BenefitUtilizationSummariesListByBillingProfileIdOptionalParams\n ): PagedAsyncIterableIterator<BenefitUtilizationSummaryUnion> {\n const iter = this.listByBillingProfileIdPagingAll(\n billingAccountId,\n billingProfileId,\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.listByBillingProfileIdPagingPage(\n billingAccountId,\n billingProfileId,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByBillingProfileIdPagingPage(\n billingAccountId: string,\n billingProfileId: string,\n options?: BenefitUtilizationSummariesListByBillingProfileIdOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<BenefitUtilizationSummaryUnion[]> {\n let result: BenefitUtilizationSummariesListByBillingProfileIdResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByBillingProfileId(\n billingAccountId,\n billingProfileId,\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._listByBillingProfileIdNext(\n billingAccountId,\n billingProfileId,\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 *listByBillingProfileIdPagingAll(\n billingAccountId: string,\n billingProfileId: string,\n options?: BenefitUtilizationSummariesListByBillingProfileIdOptionalParams\n ): AsyncIterableIterator<BenefitUtilizationSummaryUnion> {\n for await (const page of this.listByBillingProfileIdPagingPage(\n billingAccountId,\n billingProfileId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the savings plan utilization summaries for daily or monthly grain.\n * @param savingsPlanOrderId Savings plan order ID.\n * @param options The options parameters.\n */\n public listBySavingsPlanOrder(\n savingsPlanOrderId: string,\n options?: BenefitUtilizationSummariesListBySavingsPlanOrderOptionalParams\n ): PagedAsyncIterableIterator<BenefitUtilizationSummaryUnion> {\n const iter = this.listBySavingsPlanOrderPagingAll(\n savingsPlanOrderId,\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.listBySavingsPlanOrderPagingPage(\n savingsPlanOrderId,\n options,\n settings\n );\n }\n };\n }\n\n private async *listBySavingsPlanOrderPagingPage(\n savingsPlanOrderId: string,\n options?: BenefitUtilizationSummariesListBySavingsPlanOrderOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<BenefitUtilizationSummaryUnion[]> {\n let result: BenefitUtilizationSummariesListBySavingsPlanOrderResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySavingsPlanOrder(savingsPlanOrderId, 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._listBySavingsPlanOrderNext(\n savingsPlanOrderId,\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 *listBySavingsPlanOrderPagingAll(\n savingsPlanOrderId: string,\n options?: BenefitUtilizationSummariesListBySavingsPlanOrderOptionalParams\n ): AsyncIterableIterator<BenefitUtilizationSummaryUnion> {\n for await (const page of this.listBySavingsPlanOrderPagingPage(\n savingsPlanOrderId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the savings plan utilization summaries for daily or monthly grain.\n * @param savingsPlanOrderId Savings plan order ID.\n * @param savingsPlanId Savings plan ID.\n * @param options The options parameters.\n */\n public listBySavingsPlanId(\n savingsPlanOrderId: string,\n savingsPlanId: string,\n options?: BenefitUtilizationSummariesListBySavingsPlanIdOptionalParams\n ): PagedAsyncIterableIterator<BenefitUtilizationSummaryUnion> {\n const iter = this.listBySavingsPlanIdPagingAll(\n savingsPlanOrderId,\n savingsPlanId,\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.listBySavingsPlanIdPagingPage(\n savingsPlanOrderId,\n savingsPlanId,\n options,\n settings\n );\n }\n };\n }\n\n private async *listBySavingsPlanIdPagingPage(\n savingsPlanOrderId: string,\n savingsPlanId: string,\n options?: BenefitUtilizationSummariesListBySavingsPlanIdOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<BenefitUtilizationSummaryUnion[]> {\n let result: BenefitUtilizationSummariesListBySavingsPlanIdResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySavingsPlanId(\n savingsPlanOrderId,\n savingsPlanId,\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._listBySavingsPlanIdNext(\n savingsPlanOrderId,\n savingsPlanId,\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 *listBySavingsPlanIdPagingAll(\n savingsPlanOrderId: string,\n savingsPlanId: string,\n options?: BenefitUtilizationSummariesListBySavingsPlanIdOptionalParams\n ): AsyncIterableIterator<BenefitUtilizationSummaryUnion> {\n for await (const page of this.listBySavingsPlanIdPagingPage(\n savingsPlanOrderId,\n savingsPlanId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists savings plan utilization summaries for the enterprise agreement scope. Supported at grain\n * values: 'Daily' and 'Monthly'.\n * @param billingAccountId Billing account ID\n * @param options The options parameters.\n */\n private _listByBillingAccountId(\n billingAccountId: string,\n options?: BenefitUtilizationSummariesListByBillingAccountIdOptionalParams\n ): Promise<BenefitUtilizationSummariesListByBillingAccountIdResponse> {\n return this.client.sendOperationRequest(\n { billingAccountId, options },\n listByBillingAccountIdOperationSpec\n );\n }\n\n /**\n * Lists savings plan utilization summaries for billing profile. Supported at grain values: 'Daily' and\n * 'Monthly'.\n * @param billingAccountId Billing account ID\n * @param billingProfileId Billing profile ID.\n * @param options The options parameters.\n */\n private _listByBillingProfileId(\n billingAccountId: string,\n billingProfileId: string,\n options?: BenefitUtilizationSummariesListByBillingProfileIdOptionalParams\n ): Promise<BenefitUtilizationSummariesListByBillingProfileIdResponse> {\n return this.client.sendOperationRequest(\n { billingAccountId, billingProfileId, options },\n listByBillingProfileIdOperationSpec\n );\n }\n\n /**\n * Lists the savings plan utilization summaries for daily or monthly grain.\n * @param savingsPlanOrderId Savings plan order ID.\n * @param options The options parameters.\n */\n private _listBySavingsPlanOrder(\n savingsPlanOrderId: string,\n options?: BenefitUtilizationSummariesListBySavingsPlanOrderOptionalParams\n ): Promise<BenefitUtilizationSummariesListBySavingsPlanOrderResponse> {\n return this.client.sendOperationRequest(\n { savingsPlanOrderId, options },\n listBySavingsPlanOrderOperationSpec\n );\n }\n\n /**\n * Lists the savings plan utilization summaries for daily or monthly grain.\n * @param savingsPlanOrderId Savings plan order ID.\n * @param savingsPlanId Savings plan ID.\n * @param options The options parameters.\n */\n private _listBySavingsPlanId(\n savingsPlanOrderId: string,\n savingsPlanId: string,\n options?: BenefitUtilizationSummariesListBySavingsPlanIdOptionalParams\n ): Promise<BenefitUtilizationSummariesListBySavingsPlanIdResponse> {\n return this.client.sendOperationRequest(\n { savingsPlanOrderId, savingsPlanId, options },\n listBySavingsPlanIdOperationSpec\n );\n }\n\n /**\n * ListByBillingAccountIdNext\n * @param billingAccountId Billing account ID\n * @param nextLink The nextLink from the previous successful call to the ListByBillingAccountId method.\n * @param options The options parameters.\n */\n private _listByBillingAccountIdNext(\n billingAccountId: string,\n nextLink: string,\n options?: BenefitUtilizationSummariesListByBillingAccountIdNextOptionalParams\n ): Promise<BenefitUtilizationSummariesListByBillingAccountIdNextResponse> {\n return this.client.sendOperationRequest(\n { billingAccountId, nextLink, options },\n listByBillingAccountIdNextOperationSpec\n );\n }\n\n /**\n * ListByBillingProfileIdNext\n * @param billingAccountId Billing account ID\n * @param billingProfileId Billing profile ID.\n * @param nextLink The nextLink from the previous successful call to the ListByBillingProfileId method.\n * @param options The options parameters.\n */\n private _listByBillingProfileIdNext(\n billingAccountId: string,\n billingProfileId: string,\n nextLink: string,\n options?: BenefitUtilizationSummariesListByBillingProfileIdNextOptionalParams\n ): Promise<BenefitUtilizationSummariesListByBillingProfileIdNextResponse> {\n return this.client.sendOperationRequest(\n { billingAccountId, billingProfileId, nextLink, options },\n listByBillingProfileIdNextOperationSpec\n );\n }\n\n /**\n * ListBySavingsPlanOrderNext\n * @param savingsPlanOrderId Savings plan order ID.\n * @param nextLink The nextLink from the previous successful call to the ListBySavingsPlanOrder method.\n * @param options The options parameters.\n */\n private _listBySavingsPlanOrderNext(\n savingsPlanOrderId: string,\n nextLink: string,\n options?: BenefitUtilizationSummariesListBySavingsPlanOrderNextOptionalParams\n ): Promise<BenefitUtilizationSummariesListBySavingsPlanOrderNextResponse> {\n return this.client.sendOperationRequest(\n { savingsPlanOrderId, nextLink, options },\n listBySavingsPlanOrderNextOperationSpec\n );\n }\n\n /**\n * ListBySavingsPlanIdNext\n * @param savingsPlanOrderId Savings plan order ID.\n * @param savingsPlanId Savings plan ID.\n * @param nextLink The nextLink from the previous successful call to the ListBySavingsPlanId method.\n * @param options The options parameters.\n */\n private _listBySavingsPlanIdNext(\n savingsPlanOrderId: string,\n savingsPlanId: string,\n nextLink: string,\n options?: BenefitUtilizationSummariesListBySavingsPlanIdNextOptionalParams\n ): Promise<BenefitUtilizationSummariesListBySavingsPlanIdNextResponse> {\n return this.client.sendOperationRequest(\n { savingsPlanOrderId, savingsPlanId, nextLink, options },\n listBySavingsPlanIdNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByBillingAccountIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BenefitUtilizationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.grainParameter,\n Parameters.filter1\n ],\n urlParameters: [Parameters.$host, Parameters.billingAccountId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByBillingProfileIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BenefitUtilizationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.grainParameter,\n Parameters.filter1\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountId,\n Parameters.billingProfileId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySavingsPlanOrderOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BenefitUtilizationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.grainParameter\n ],\n urlParameters: [Parameters.$host, Parameters.savingsPlanOrderId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySavingsPlanIdOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BenefitUtilizationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.grainParameter\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.savingsPlanOrderId,\n Parameters.savingsPlanId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByBillingAccountIdNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BenefitUtilizationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.billingAccountId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByBillingProfileIdNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BenefitUtilizationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.billingAccountId,\n Parameters.billingProfileId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySavingsPlanOrderNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BenefitUtilizationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.savingsPlanOrderId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySavingsPlanIdNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BenefitUtilizationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.savingsPlanOrderId,\n Parameters.savingsPlanId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import * as coreClient from "@azure/core-client";
|
|
10
9
|
import * as Mappers from "../models/mappers.js";
|
|
11
10
|
import * as Parameters from "../models/parameters.js";
|
|
12
11
|
/// <reference lib="esnext.asynciterable" />
|
|
13
12
|
/** Class containing Dimensions operations. */
|
|
14
13
|
export class DimensionsImpl {
|
|
14
|
+
client;
|
|
15
15
|
/**
|
|
16
16
|
* Initialize a new instance of the class Dimensions class.
|
|
17
17
|
* @param client Reference to the service client
|
|
@@ -48,39 +48,22 @@ export class DimensionsImpl {
|
|
|
48
48
|
return this;
|
|
49
49
|
},
|
|
50
50
|
byPage: (settings) => {
|
|
51
|
-
if (settings
|
|
51
|
+
if (settings?.maxPageSize) {
|
|
52
52
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
53
53
|
}
|
|
54
54
|
return this.listPagingPage(scope, options, settings);
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
listPagingPage(scope, options, _settings) {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
yield yield __await(result.value || []);
|
|
63
|
-
});
|
|
58
|
+
async *listPagingPage(scope, options, _settings) {
|
|
59
|
+
let result;
|
|
60
|
+
result = await this._list(scope, options);
|
|
61
|
+
yield result.value || [];
|
|
64
62
|
}
|
|
65
|
-
listPagingAll(scope, options) {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(scope, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
70
|
-
_c = _f.value;
|
|
71
|
-
_d = false;
|
|
72
|
-
const page = _c;
|
|
73
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
77
|
-
finally {
|
|
78
|
-
try {
|
|
79
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
80
|
-
}
|
|
81
|
-
finally { if (e_1) throw e_1.error; }
|
|
82
|
-
}
|
|
83
|
-
});
|
|
63
|
+
async *listPagingAll(scope, options) {
|
|
64
|
+
for await (const page of this.listPagingPage(scope, options)) {
|
|
65
|
+
yield* page;
|
|
66
|
+
}
|
|
84
67
|
}
|
|
85
68
|
/**
|
|
86
69
|
* Lists the dimensions by the external cloud provider type.
|
|
@@ -101,39 +84,22 @@ export class DimensionsImpl {
|
|
|
101
84
|
return this;
|
|
102
85
|
},
|
|
103
86
|
byPage: (settings) => {
|
|
104
|
-
if (settings
|
|
87
|
+
if (settings?.maxPageSize) {
|
|
105
88
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
106
89
|
}
|
|
107
90
|
return this.byExternalCloudProviderTypePagingPage(externalCloudProviderType, externalCloudProviderId, options, settings);
|
|
108
91
|
}
|
|
109
92
|
};
|
|
110
93
|
}
|
|
111
|
-
byExternalCloudProviderTypePagingPage(externalCloudProviderType, externalCloudProviderId, options, _settings) {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
yield yield __await(result.value || []);
|
|
116
|
-
});
|
|
94
|
+
async *byExternalCloudProviderTypePagingPage(externalCloudProviderType, externalCloudProviderId, options, _settings) {
|
|
95
|
+
let result;
|
|
96
|
+
result = await this._byExternalCloudProviderType(externalCloudProviderType, externalCloudProviderId, options);
|
|
97
|
+
yield result.value || [];
|
|
117
98
|
}
|
|
118
|
-
byExternalCloudProviderTypePagingAll(externalCloudProviderType, externalCloudProviderId, options) {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
for (var _d = true, _e = __asyncValues(this.byExternalCloudProviderTypePagingPage(externalCloudProviderType, externalCloudProviderId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
123
|
-
_c = _f.value;
|
|
124
|
-
_d = false;
|
|
125
|
-
const page = _c;
|
|
126
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
130
|
-
finally {
|
|
131
|
-
try {
|
|
132
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
133
|
-
}
|
|
134
|
-
finally { if (e_2) throw e_2.error; }
|
|
135
|
-
}
|
|
136
|
-
});
|
|
99
|
+
async *byExternalCloudProviderTypePagingAll(externalCloudProviderType, externalCloudProviderId, options) {
|
|
100
|
+
for await (const page of this.byExternalCloudProviderTypePagingPage(externalCloudProviderType, externalCloudProviderId, options)) {
|
|
101
|
+
yield* page;
|
|
102
|
+
}
|
|
137
103
|
}
|
|
138
104
|
/**
|
|
139
105
|
* Lists the dimensions by the defined scope.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dim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UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC;IACpD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,wCAAwC,GAA6B;IACzE,IAAI,EACF,sGAAsG;IACxG,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,GAAG;KACf;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,yBAAyB;QACpC,UAAU,CAAC,uBAAuB;KACnC;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 { Dimensions } 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 { CostManagementClient } from \"../costManagementClient.js\";\nimport {\n Dimension,\n DimensionsListOptionalParams,\n DimensionsListResponse,\n ExternalCloudProviderType,\n DimensionsByExternalCloudProviderTypeOptionalParams,\n DimensionsByExternalCloudProviderTypeResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Dimensions operations. */\nexport class DimensionsImpl implements Dimensions {\n private readonly client: CostManagementClient;\n\n /**\n * Initialize a new instance of the class Dimensions class.\n * @param client Reference to the service client\n */\n constructor(client: CostManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the dimensions by the defined scope.\n * @param scope The scope associated with dimension operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}'\n * for Management Group scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billingProfile scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'\n * for invoiceSection scope, and\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for\n * partners.\n * @param options The options parameters.\n */\n public list(\n scope: string,\n options?: DimensionsListOptionalParams\n ): PagedAsyncIterableIterator<Dimension> {\n const iter = this.listPagingAll(scope, 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(scope, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n scope: string,\n options?: DimensionsListOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Dimension[]> {\n let result: DimensionsListResponse;\n result = await this._list(scope, options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n scope: string,\n options?: DimensionsListOptionalParams\n ): AsyncIterableIterator<Dimension> {\n for await (const page of this.listPagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the dimensions by the external cloud provider type.\n * @param externalCloudProviderType The external cloud provider type associated with dimension/query\n * operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts'\n * for consolidated account.\n * @param externalCloudProviderId This can be '{externalSubscriptionId}' for linked account or\n * '{externalBillingAccountId}' for consolidated account used with dimension/query operations.\n * @param options The options parameters.\n */\n public listByExternalCloudProviderType(\n externalCloudProviderType: ExternalCloudProviderType,\n externalCloudProviderId: string,\n options?: DimensionsByExternalCloudProviderTypeOptionalParams\n ): PagedAsyncIterableIterator<Dimension> {\n const iter = this.byExternalCloudProviderTypePagingAll(\n externalCloudProviderType,\n externalCloudProviderId,\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.byExternalCloudProviderTypePagingPage(\n externalCloudProviderType,\n externalCloudProviderId,\n options,\n settings\n );\n }\n };\n }\n\n private async *byExternalCloudProviderTypePagingPage(\n externalCloudProviderType: ExternalCloudProviderType,\n externalCloudProviderId: string,\n options?: DimensionsByExternalCloudProviderTypeOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Dimension[]> {\n let result: DimensionsByExternalCloudProviderTypeResponse;\n result = await this._byExternalCloudProviderType(\n externalCloudProviderType,\n externalCloudProviderId,\n options\n );\n yield result.value || [];\n }\n\n private async *byExternalCloudProviderTypePagingAll(\n externalCloudProviderType: ExternalCloudProviderType,\n externalCloudProviderId: string,\n options?: DimensionsByExternalCloudProviderTypeOptionalParams\n ): AsyncIterableIterator<Dimension> {\n for await (const page of this.byExternalCloudProviderTypePagingPage(\n externalCloudProviderType,\n externalCloudProviderId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the dimensions by the defined scope.\n * @param scope The scope associated with dimension operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}'\n * for Management Group scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billingProfile scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'\n * for invoiceSection scope, and\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for\n * partners.\n * @param options The options parameters.\n */\n private _list(\n scope: string,\n options?: DimensionsListOptionalParams\n ): Promise<DimensionsListResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listOperationSpec\n );\n }\n\n /**\n * Lists the dimensions by the external cloud provider type.\n * @param externalCloudProviderType The external cloud provider type associated with dimension/query\n * operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts'\n * for consolidated account.\n * @param externalCloudProviderId This can be '{externalSubscriptionId}' for linked account or\n * '{externalBillingAccountId}' for consolidated account used with dimension/query operations.\n * @param options The options parameters.\n */\n private _byExternalCloudProviderType(\n externalCloudProviderType: ExternalCloudProviderType,\n externalCloudProviderId: string,\n options?: DimensionsByExternalCloudProviderTypeOptionalParams\n ): Promise<DimensionsByExternalCloudProviderTypeResponse> {\n return this.client.sendOperationRequest(\n { externalCloudProviderType, externalCloudProviderId, options },\n byExternalCloudProviderTypeOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/dimensions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DimensionsListResult\n },\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.expand,\n Parameters.skiptoken,\n Parameters.top\n ],\n urlParameters: [Parameters.$host, Parameters.scope1],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst byExternalCloudProviderTypeOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/dimensions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DimensionsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.expand,\n Parameters.skiptoken,\n Parameters.top\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.externalCloudProviderType,\n Parameters.externalCloudProviderId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"dimensions.js","sourceRoot":"","sources":["../../../src/operations/dimensions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAWtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IACR,MAAM,CAAuB;IAE9C;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACI,IAAI,CACT,KAAa,EACb,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAChD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,C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AA6B;IAClD,IAAI,EAAE,wDAAwD;IAC9D,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,GAAG;KACf;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC;IACpD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,wCAAwC,GAA6B;IACzE,IAAI,EACF,sGAAsG;IACxG,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,GAAG;KACf;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,yBAAyB;QACpC,UAAU,CAAC,uBAAuB;KACnC;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 { Dimensions } 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 { CostManagementClient } from \"../costManagementClient.js\";\nimport {\n Dimension,\n DimensionsListOptionalParams,\n DimensionsListResponse,\n ExternalCloudProviderType,\n DimensionsByExternalCloudProviderTypeOptionalParams,\n DimensionsByExternalCloudProviderTypeResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Dimensions operations. */\nexport class DimensionsImpl implements Dimensions {\n private readonly client: CostManagementClient;\n\n /**\n * Initialize a new instance of the class Dimensions class.\n * @param client Reference to the service client\n */\n constructor(client: CostManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the dimensions by the defined scope.\n * @param scope The scope associated with dimension operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}'\n * for Management Group scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billingProfile scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'\n * for invoiceSection scope, and\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for\n * partners.\n * @param options The options parameters.\n */\n public list(\n scope: string,\n options?: DimensionsListOptionalParams\n ): PagedAsyncIterableIterator<Dimension> {\n const iter = this.listPagingAll(scope, 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(scope, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n scope: string,\n options?: DimensionsListOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Dimension[]> {\n let result: DimensionsListResponse;\n result = await this._list(scope, options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n scope: string,\n options?: DimensionsListOptionalParams\n ): AsyncIterableIterator<Dimension> {\n for await (const page of this.listPagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the dimensions by the external cloud provider type.\n * @param externalCloudProviderType The external cloud provider type associated with dimension/query\n * operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts'\n * for consolidated account.\n * @param externalCloudProviderId This can be '{externalSubscriptionId}' for linked account or\n * '{externalBillingAccountId}' for consolidated account used with dimension/query operations.\n * @param options The options parameters.\n */\n public listByExternalCloudProviderType(\n externalCloudProviderType: ExternalCloudProviderType,\n externalCloudProviderId: string,\n options?: DimensionsByExternalCloudProviderTypeOptionalParams\n ): PagedAsyncIterableIterator<Dimension> {\n const iter = this.byExternalCloudProviderTypePagingAll(\n externalCloudProviderType,\n externalCloudProviderId,\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.byExternalCloudProviderTypePagingPage(\n externalCloudProviderType,\n externalCloudProviderId,\n options,\n settings\n );\n }\n };\n }\n\n private async *byExternalCloudProviderTypePagingPage(\n externalCloudProviderType: ExternalCloudProviderType,\n externalCloudProviderId: string,\n options?: DimensionsByExternalCloudProviderTypeOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Dimension[]> {\n let result: DimensionsByExternalCloudProviderTypeResponse;\n result = await this._byExternalCloudProviderType(\n externalCloudProviderType,\n externalCloudProviderId,\n options\n );\n yield result.value || [];\n }\n\n private async *byExternalCloudProviderTypePagingAll(\n externalCloudProviderType: ExternalCloudProviderType,\n externalCloudProviderId: string,\n options?: DimensionsByExternalCloudProviderTypeOptionalParams\n ): AsyncIterableIterator<Dimension> {\n for await (const page of this.byExternalCloudProviderTypePagingPage(\n externalCloudProviderType,\n externalCloudProviderId,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the dimensions by the defined scope.\n * @param scope The scope associated with dimension operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}'\n * for Management Group scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billingProfile scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'\n * for invoiceSection scope, and\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for\n * partners.\n * @param options The options parameters.\n */\n private _list(\n scope: string,\n options?: DimensionsListOptionalParams\n ): Promise<DimensionsListResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listOperationSpec\n );\n }\n\n /**\n * Lists the dimensions by the external cloud provider type.\n * @param externalCloudProviderType The external cloud provider type associated with dimension/query\n * operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts'\n * for consolidated account.\n * @param externalCloudProviderId This can be '{externalSubscriptionId}' for linked account or\n * '{externalBillingAccountId}' for consolidated account used with dimension/query operations.\n * @param options The options parameters.\n */\n private _byExternalCloudProviderType(\n externalCloudProviderType: ExternalCloudProviderType,\n externalCloudProviderId: string,\n options?: DimensionsByExternalCloudProviderTypeOptionalParams\n ): Promise<DimensionsByExternalCloudProviderTypeResponse> {\n return this.client.sendOperationRequest(\n { externalCloudProviderType, externalCloudProviderId, options },\n byExternalCloudProviderTypeOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/dimensions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DimensionsListResult\n },\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.expand,\n Parameters.skiptoken,\n Parameters.top\n ],\n urlParameters: [Parameters.$host, Parameters.scope1],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst byExternalCloudProviderTypeOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/dimensions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DimensionsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.expand,\n Parameters.skiptoken,\n Parameters.top\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.externalCloudProviderType,\n Parameters.externalCloudProviderId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing Exports operations. */
|
|
12
12
|
export class ExportsImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class Exports class.
|
|
15
16
|
* @param client Reference to the service client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AI,EAAE,sEAAsE;IAC5E,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,UAAU,CAAC;IAC3E,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EACF,6EAA6E;IAC/E,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,UAAU,CAAC;IAC3E,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 { Exports } 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 { CostManagementClient } from \"../costManagementClient.js\";\nimport {\n ExportsListOptionalParams,\n ExportsListResponse,\n ExportsGetOptionalParams,\n ExportsGetResponse,\n Export,\n ExportsCreateOrUpdateOptionalParams,\n ExportsCreateOrUpdateResponse,\n ExportsDeleteOptionalParams,\n ExportsExecuteOptionalParams,\n ExportsGetExecutionHistoryOptionalParams,\n ExportsGetExecutionHistoryResponse\n} from \"../models/index.js\";\n\n/** Class containing Exports operations. */\nexport class ExportsImpl implements Exports {\n private readonly client: CostManagementClient;\n\n /**\n * Initialize a new instance of the class Exports class.\n * @param client Reference to the service client\n */\n constructor(client: CostManagementClient) {\n this.client = client;\n }\n\n /**\n * The operation to list all exports at the given scope.\n * @param scope The scope associated with export operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}\n * for Management Group scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billingProfile scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'\n * for invoiceSection scope, and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific\n * for partners.\n * @param options The options parameters.\n */\n list(\n scope: string,\n options?: ExportsListOptionalParams\n ): Promise<ExportsListResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listOperationSpec\n );\n }\n\n /**\n * The operation to get the export for the defined scope by export name.\n * @param scope The scope associated with export operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}\n * for Management Group scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billingProfile scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'\n * for invoiceSection scope, and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific\n * for partners.\n * @param exportName Export Name.\n * @param options The options parameters.\n */\n get(\n scope: string,\n exportName: string,\n options?: ExportsGetOptionalParams\n ): Promise<ExportsGetResponse> {\n return this.client.sendOperationRequest(\n { scope, exportName, options },\n getOperationSpec\n );\n }\n\n /**\n * The operation to create or update a export. Update operation requires latest eTag to be set in the\n * request. You may obtain the latest eTag by performing a get operation. Create operation does not\n * require eTag.\n * @param scope The scope associated with export operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}\n * for Management Group scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billingProfile scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'\n * for invoiceSection scope, and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific\n * for partners.\n * @param exportName Export Name.\n * @param parameters Parameters supplied to the CreateOrUpdate Export operation.\n * @param options The options parameters.\n */\n createOrUpdate(\n scope: string,\n exportName: string,\n parameters: Export,\n options?: ExportsCreateOrUpdateOptionalParams\n ): Promise<ExportsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { scope, exportName, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * The operation to delete a export.\n * @param scope The scope associated with export operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}\n * for Management Group scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billingProfile scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'\n * for invoiceSection scope, and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific\n * for partners.\n * @param exportName Export Name.\n * @param options The options parameters.\n */\n delete(\n scope: string,\n exportName: string,\n options?: ExportsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { scope, exportName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * The operation to run an export.\n * @param scope The scope associated with export operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}\n * for Management Group scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billingProfile scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'\n * for invoiceSection scope, and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific\n * for partners.\n * @param exportName Export Name.\n * @param options The options parameters.\n */\n execute(\n scope: string,\n exportName: string,\n options?: ExportsExecuteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { scope, exportName, options },\n executeOperationSpec\n );\n }\n\n /**\n * The operation to get the run history of an export for the defined scope and export name.\n * @param scope The scope associated with export operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}\n * for Management Group scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billingProfile scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'\n * for invoiceSection scope, and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific\n * for partners.\n * @param exportName Export Name.\n * @param options The options parameters.\n */\n getExecutionHistory(\n scope: string,\n exportName: string,\n options?: ExportsGetExecutionHistoryOptionalParams\n ): Promise<ExportsGetExecutionHistoryResponse> {\n return this.client.sendOperationRequest(\n { scope, exportName, options },\n getExecutionHistoryOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/exports\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExportListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [Parameters.$host, Parameters.scope1],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/exports/{exportName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Export\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [Parameters.$host, Parameters.scope1, Parameters.exportName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/exports/{exportName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Export\n },\n 201: {\n bodyMapper: Mappers.Export\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope1, Parameters.exportName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/exports/{exportName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope1, Parameters.exportName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst executeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/run\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope1, Parameters.exportName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getExecutionHistoryOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/runHistory\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExportExecutionListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope1, Parameters.exportName],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../src/operations/exports.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAgBtD,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IACL,MAAM,CAAuB;IAE9C;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CACF,KAAa,EACb,OAAmC;QAEnC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,KAAK,EAAE,OAAO,EAAE,EAClB,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,GAAG,CACD,KAAa,EACb,UAAkB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C,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,UAAU,CAAC;IAC3E,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 { Exports } 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 { CostManagementClient } from \"../costManagementClient.js\";\nimport {\n ExportsListOptionalParams,\n ExportsListResponse,\n ExportsGetOptionalParams,\n ExportsGetResponse,\n Export,\n ExportsCreateOrUpdateOptionalParams,\n ExportsCreateOrUpdateResponse,\n ExportsDeleteOptionalParams,\n ExportsExecuteOptionalParams,\n ExportsGetExecutionHistoryOptionalParams,\n ExportsGetExecutionHistoryResponse\n} from \"../models/index.js\";\n\n/** Class containing Exports operations. */\nexport class ExportsImpl implements Exports {\n private readonly client: CostManagementClient;\n\n /**\n * Initialize a new instance of the class Exports class.\n * @param client Reference to the service client\n */\n constructor(client: CostManagementClient) {\n this.client = client;\n }\n\n /**\n * The operation to list all exports at the given scope.\n * @param scope The scope associated with export operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}\n * for Management Group scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billingProfile scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'\n * for invoiceSection scope, and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific\n * for partners.\n * @param options The options parameters.\n */\n list(\n scope: string,\n options?: ExportsListOptionalParams\n ): Promise<ExportsListResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listOperationSpec\n );\n }\n\n /**\n * The operation to get the export for the defined scope by export name.\n * @param scope The scope associated with export operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}\n * for Management Group scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billingProfile scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'\n * for invoiceSection scope, and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific\n * for partners.\n * @param exportName Export Name.\n * @param options The options parameters.\n */\n get(\n scope: string,\n exportName: string,\n options?: ExportsGetOptionalParams\n ): Promise<ExportsGetResponse> {\n return this.client.sendOperationRequest(\n { scope, exportName, options },\n getOperationSpec\n );\n }\n\n /**\n * The operation to create or update a export. Update operation requires latest eTag to be set in the\n * request. You may obtain the latest eTag by performing a get operation. Create operation does not\n * require eTag.\n * @param scope The scope associated with export operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}\n * for Management Group scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billingProfile scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'\n * for invoiceSection scope, and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific\n * for partners.\n * @param exportName Export Name.\n * @param parameters Parameters supplied to the CreateOrUpdate Export operation.\n * @param options The options parameters.\n */\n createOrUpdate(\n scope: string,\n exportName: string,\n parameters: Export,\n options?: ExportsCreateOrUpdateOptionalParams\n ): Promise<ExportsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { scope, exportName, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * The operation to delete a export.\n * @param scope The scope associated with export operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}\n * for Management Group scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billingProfile scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'\n * for invoiceSection scope, and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific\n * for partners.\n * @param exportName Export Name.\n * @param options The options parameters.\n */\n delete(\n scope: string,\n exportName: string,\n options?: ExportsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { scope, exportName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * The operation to run an export.\n * @param scope The scope associated with export operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}\n * for Management Group scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billingProfile scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'\n * for invoiceSection scope, and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific\n * for partners.\n * @param exportName Export Name.\n * @param options The options parameters.\n */\n execute(\n scope: string,\n exportName: string,\n options?: ExportsExecuteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { scope, exportName, options },\n executeOperationSpec\n );\n }\n\n /**\n * The operation to get the run history of an export for the defined scope and export name.\n * @param scope The scope associated with export operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}\n * for Management Group scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billingProfile scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'\n * for invoiceSection scope, and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific\n * for partners.\n * @param exportName Export Name.\n * @param options The options parameters.\n */\n getExecutionHistory(\n scope: string,\n exportName: string,\n options?: ExportsGetExecutionHistoryOptionalParams\n ): Promise<ExportsGetExecutionHistoryResponse> {\n return this.client.sendOperationRequest(\n { scope, exportName, options },\n getExecutionHistoryOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/exports\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExportListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [Parameters.$host, Parameters.scope1],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/exports/{exportName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Export\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [Parameters.$host, Parameters.scope1, Parameters.exportName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/exports/{exportName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Export\n },\n 201: {\n bodyMapper: Mappers.Export\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope1, Parameters.exportName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/exports/{exportName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope1, Parameters.exportName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst executeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/run\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope1, Parameters.exportName],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getExecutionHistoryOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/runHistory\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ExportExecutionListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope1, Parameters.exportName],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing Forecast operations. */
|
|
12
12
|
export class ForecastImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class Forecast class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forecast.js","sourceRoot":"","sources":["../../../src/operations/forecast.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAWtD,4CAA4C;AAC5C,MAAM,OAAO,YAAY;
|
|
1
|
+
{"version":3,"file":"forecast.js","sourceRoot":"","sources":["../../../src/operations/forecast.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAWtD,4CAA4C;AAC5C,MAAM,OAAO,YAAY;IACN,MAAM,CAAuB;IAE9C;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CACH,KAAa,EACb,UAA8B,EAC9B,OAAqC;QAErC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,EAC9B,kBAAkB,CACnB,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACH,0BAA0B,CACxB,yBAAoD,EACpD,uBAA+B,EAC/B,UAA8B,EAC9B,OAA0D;QAE1D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YAC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AAW,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 { Forecast } 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 { CostManagementClient } from \"../costManagementClient.js\";\nimport {\n ForecastDefinition,\n ForecastUsageOptionalParams,\n ForecastUsageResponse,\n ExternalCloudProviderType,\n ForecastExternalCloudProviderUsageOptionalParams,\n ForecastExternalCloudProviderUsageResponse\n} from \"../models/index.js\";\n\n/** Class containing Forecast operations. */\nexport class ForecastImpl implements Forecast {\n private readonly client: CostManagementClient;\n\n /**\n * Initialize a new instance of the class Forecast class.\n * @param client Reference to the service client\n */\n constructor(client: CostManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the forecast charges for scope defined.\n * @param scope The scope associated with forecast operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}\n * for Management Group scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billingProfile scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'\n * for invoiceSection scope, and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific\n * for partners.\n * @param parameters Parameters supplied to the CreateOrUpdate Forecast Config operation.\n * @param options The options parameters.\n */\n usage(\n scope: string,\n parameters: ForecastDefinition,\n options?: ForecastUsageOptionalParams\n ): Promise<ForecastUsageResponse> {\n return this.client.sendOperationRequest(\n { scope, parameters, options },\n usageOperationSpec\n );\n }\n\n /**\n * Lists the forecast charges for external cloud provider type defined.\n * @param externalCloudProviderType The external cloud provider type associated with dimension/query\n * operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts'\n * for consolidated account.\n * @param externalCloudProviderId This can be '{externalSubscriptionId}' for linked account or\n * '{externalBillingAccountId}' for consolidated account used with dimension/query operations.\n * @param parameters Parameters supplied to the CreateOrUpdate Forecast Config operation.\n * @param options The options parameters.\n */\n externalCloudProviderUsage(\n externalCloudProviderType: ExternalCloudProviderType,\n externalCloudProviderId: string,\n parameters: ForecastDefinition,\n options?: ForecastExternalCloudProviderUsageOptionalParams\n ): Promise<ForecastExternalCloudProviderUsageResponse> {\n return this.client.sendOperationRequest(\n {\n externalCloudProviderType,\n externalCloudProviderId,\n parameters,\n options\n },\n externalCloudProviderUsageOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst usageOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/forecast\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ForecastResult\n },\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [Parameters.$host, Parameters.scope1],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst externalCloudProviderUsageOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/forecast\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ForecastResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.externalCloudProviderType,\n Parameters.externalCloudProviderId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
|
|
@@ -12,6 +12,7 @@ import { createHttpPoller } from "@azure/core-lro";
|
|
|
12
12
|
import { createLroSpec } from "../lroImpl.js";
|
|
13
13
|
/** Class containing GenerateCostDetailsReport operations. */
|
|
14
14
|
export class GenerateCostDetailsReportImpl {
|
|
15
|
+
client;
|
|
15
16
|
/**
|
|
16
17
|
* Initialize a new instance of the class GenerateCostDetailsReport class.
|
|
17
18
|
* @param client Reference to the service client
|
|
@@ -42,14 +43,19 @@ export class GenerateCostDetailsReportImpl {
|
|
|
42
43
|
return this.client.sendOperationRequest(args, spec);
|
|
43
44
|
};
|
|
44
45
|
const sendOperationFn = async (args, spec) => {
|
|
45
|
-
var _a;
|
|
46
46
|
let currentRawResponse = undefined;
|
|
47
|
-
const providedCallback =
|
|
47
|
+
const providedCallback = args.options?.onResponse;
|
|
48
48
|
const callback = (rawResponse, flatResponse) => {
|
|
49
49
|
currentRawResponse = rawResponse;
|
|
50
|
-
providedCallback
|
|
50
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
51
|
+
};
|
|
52
|
+
const updatedArgs = {
|
|
53
|
+
...args,
|
|
54
|
+
options: {
|
|
55
|
+
...args.options,
|
|
56
|
+
onResponse: callback
|
|
57
|
+
}
|
|
51
58
|
};
|
|
52
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
53
59
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
54
60
|
return {
|
|
55
61
|
flatResponse,
|
|
@@ -66,8 +72,8 @@ export class GenerateCostDetailsReportImpl {
|
|
|
66
72
|
spec: createOperationOperationSpec
|
|
67
73
|
});
|
|
68
74
|
const poller = await createHttpPoller(lro, {
|
|
69
|
-
restoreFrom: options
|
|
70
|
-
intervalInMs: options
|
|
75
|
+
restoreFrom: options?.resumeFrom,
|
|
76
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
71
77
|
resourceLocationConfig: "location"
|
|
72
78
|
});
|
|
73
79
|
await poller.poll();
|
|
@@ -108,14 +114,19 @@ export class GenerateCostDetailsReportImpl {
|
|
|
108
114
|
return this.client.sendOperationRequest(args, spec);
|
|
109
115
|
};
|
|
110
116
|
const sendOperationFn = async (args, spec) => {
|
|
111
|
-
var _a;
|
|
112
117
|
let currentRawResponse = undefined;
|
|
113
|
-
const providedCallback =
|
|
118
|
+
const providedCallback = args.options?.onResponse;
|
|
114
119
|
const callback = (rawResponse, flatResponse) => {
|
|
115
120
|
currentRawResponse = rawResponse;
|
|
116
|
-
providedCallback
|
|
121
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
122
|
+
};
|
|
123
|
+
const updatedArgs = {
|
|
124
|
+
...args,
|
|
125
|
+
options: {
|
|
126
|
+
...args.options,
|
|
127
|
+
onResponse: callback
|
|
128
|
+
}
|
|
117
129
|
};
|
|
118
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
119
130
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
120
131
|
return {
|
|
121
132
|
flatResponse,
|
|
@@ -132,8 +143,8 @@ export class GenerateCostDetailsReportImpl {
|
|
|
132
143
|
spec: getOperationResultsOperationSpec
|
|
133
144
|
});
|
|
134
145
|
const poller = await createHttpPoller(lro, {
|
|
135
|
-
restoreFrom: options
|
|
136
|
-
intervalInMs: options
|
|
146
|
+
restoreFrom: options?.resumeFrom,
|
|
147
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
137
148
|
resourceLocationConfig: "location"
|
|
138
149
|
});
|
|
139
150
|
await poller.poll();
|