@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.
Files changed (163) hide show
  1. package/dist/browser/costManagementClient.js +28 -5
  2. package/dist/browser/costManagementClient.js.map +1 -1
  3. package/dist/browser/lroImpl.js +7 -3
  4. package/dist/browser/lroImpl.js.map +1 -1
  5. package/dist/browser/models/mappers.js +256 -117
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/alerts.js +1 -0
  8. package/dist/browser/operations/alerts.js.map +1 -1
  9. package/dist/browser/operations/benefitRecommendations.js +23 -40
  10. package/dist/browser/operations/benefitRecommendations.js.map +1 -1
  11. package/dist/browser/operations/benefitUtilizationSummaries.js +89 -157
  12. package/dist/browser/operations/benefitUtilizationSummaries.js.map +1 -1
  13. package/dist/browser/operations/dimensions.js +19 -53
  14. package/dist/browser/operations/dimensions.js.map +1 -1
  15. package/dist/browser/operations/exports.js +1 -0
  16. package/dist/browser/operations/exports.js.map +1 -1
  17. package/dist/browser/operations/forecast.js +1 -0
  18. package/dist/browser/operations/forecast.js.map +1 -1
  19. package/dist/browser/operations/generateCostDetailsReport.js +23 -12
  20. package/dist/browser/operations/generateCostDetailsReport.js.map +1 -1
  21. package/dist/browser/operations/generateDetailedCostReport.js +12 -6
  22. package/dist/browser/operations/generateDetailedCostReport.js.map +1 -1
  23. package/dist/browser/operations/generateDetailedCostReportOperationResults.js +12 -6
  24. package/dist/browser/operations/generateDetailedCostReportOperationResults.js.map +1 -1
  25. package/dist/browser/operations/generateDetailedCostReportOperationStatus.js +1 -0
  26. package/dist/browser/operations/generateDetailedCostReportOperationStatus.js.map +1 -1
  27. package/dist/browser/operations/generateReservationDetailsReport.js +23 -12
  28. package/dist/browser/operations/generateReservationDetailsReport.js.map +1 -1
  29. package/dist/browser/operations/operations.js +23 -40
  30. package/dist/browser/operations/operations.js.map +1 -1
  31. package/dist/browser/operations/priceSheet.js +23 -12
  32. package/dist/browser/operations/priceSheet.js.map +1 -1
  33. package/dist/browser/operations/query.js +1 -0
  34. package/dist/browser/operations/query.js.map +1 -1
  35. package/dist/browser/operations/scheduledActions.js +45 -79
  36. package/dist/browser/operations/scheduledActions.js.map +1 -1
  37. package/dist/browser/operations/views.js +45 -79
  38. package/dist/browser/operations/views.js.map +1 -1
  39. package/dist/browser/pagingHelper.js +2 -4
  40. package/dist/browser/pagingHelper.js.map +1 -1
  41. package/dist/commonjs/costManagementClient.js +28 -5
  42. package/dist/commonjs/costManagementClient.js.map +1 -1
  43. package/dist/commonjs/lroImpl.js +7 -3
  44. package/dist/commonjs/lroImpl.js.map +1 -1
  45. package/dist/commonjs/models/mappers.js +256 -117
  46. package/dist/commonjs/models/mappers.js.map +1 -1
  47. package/dist/commonjs/operations/alerts.js +1 -0
  48. package/dist/commonjs/operations/alerts.js.map +1 -1
  49. package/dist/commonjs/operations/benefitRecommendations.js +23 -39
  50. package/dist/commonjs/operations/benefitRecommendations.js.map +1 -1
  51. package/dist/commonjs/operations/benefitUtilizationSummaries.js +89 -156
  52. package/dist/commonjs/operations/benefitUtilizationSummaries.js.map +1 -1
  53. package/dist/commonjs/operations/dimensions.js +19 -52
  54. package/dist/commonjs/operations/dimensions.js.map +1 -1
  55. package/dist/commonjs/operations/exports.js +1 -0
  56. package/dist/commonjs/operations/exports.js.map +1 -1
  57. package/dist/commonjs/operations/forecast.js +1 -0
  58. package/dist/commonjs/operations/forecast.js.map +1 -1
  59. package/dist/commonjs/operations/generateCostDetailsReport.js +23 -12
  60. package/dist/commonjs/operations/generateCostDetailsReport.js.map +1 -1
  61. package/dist/commonjs/operations/generateDetailedCostReport.js +12 -6
  62. package/dist/commonjs/operations/generateDetailedCostReport.js.map +1 -1
  63. package/dist/commonjs/operations/generateDetailedCostReportOperationResults.js +12 -6
  64. package/dist/commonjs/operations/generateDetailedCostReportOperationResults.js.map +1 -1
  65. package/dist/commonjs/operations/generateDetailedCostReportOperationStatus.js +1 -0
  66. package/dist/commonjs/operations/generateDetailedCostReportOperationStatus.js.map +1 -1
  67. package/dist/commonjs/operations/generateReservationDetailsReport.js +23 -12
  68. package/dist/commonjs/operations/generateReservationDetailsReport.js.map +1 -1
  69. package/dist/commonjs/operations/operations.js +23 -39
  70. package/dist/commonjs/operations/operations.js.map +1 -1
  71. package/dist/commonjs/operations/priceSheet.js +23 -12
  72. package/dist/commonjs/operations/priceSheet.js.map +1 -1
  73. package/dist/commonjs/operations/query.js +1 -0
  74. package/dist/commonjs/operations/query.js.map +1 -1
  75. package/dist/commonjs/operations/scheduledActions.js +45 -78
  76. package/dist/commonjs/operations/scheduledActions.js.map +1 -1
  77. package/dist/commonjs/operations/views.js +45 -78
  78. package/dist/commonjs/operations/views.js.map +1 -1
  79. package/dist/commonjs/pagingHelper.js +2 -4
  80. package/dist/commonjs/pagingHelper.js.map +1 -1
  81. package/dist/commonjs/tsdoc-metadata.json +11 -11
  82. package/dist/esm/costManagementClient.js +28 -5
  83. package/dist/esm/costManagementClient.js.map +1 -1
  84. package/dist/esm/lroImpl.js +7 -3
  85. package/dist/esm/lroImpl.js.map +1 -1
  86. package/dist/esm/models/mappers.js +256 -117
  87. package/dist/esm/models/mappers.js.map +1 -1
  88. package/dist/esm/operations/alerts.js +1 -0
  89. package/dist/esm/operations/alerts.js.map +1 -1
  90. package/dist/esm/operations/benefitRecommendations.js +23 -40
  91. package/dist/esm/operations/benefitRecommendations.js.map +1 -1
  92. package/dist/esm/operations/benefitUtilizationSummaries.js +89 -157
  93. package/dist/esm/operations/benefitUtilizationSummaries.js.map +1 -1
  94. package/dist/esm/operations/dimensions.js +19 -53
  95. package/dist/esm/operations/dimensions.js.map +1 -1
  96. package/dist/esm/operations/exports.js +1 -0
  97. package/dist/esm/operations/exports.js.map +1 -1
  98. package/dist/esm/operations/forecast.js +1 -0
  99. package/dist/esm/operations/forecast.js.map +1 -1
  100. package/dist/esm/operations/generateCostDetailsReport.js +23 -12
  101. package/dist/esm/operations/generateCostDetailsReport.js.map +1 -1
  102. package/dist/esm/operations/generateDetailedCostReport.js +12 -6
  103. package/dist/esm/operations/generateDetailedCostReport.js.map +1 -1
  104. package/dist/esm/operations/generateDetailedCostReportOperationResults.js +12 -6
  105. package/dist/esm/operations/generateDetailedCostReportOperationResults.js.map +1 -1
  106. package/dist/esm/operations/generateDetailedCostReportOperationStatus.js +1 -0
  107. package/dist/esm/operations/generateDetailedCostReportOperationStatus.js.map +1 -1
  108. package/dist/esm/operations/generateReservationDetailsReport.js +23 -12
  109. package/dist/esm/operations/generateReservationDetailsReport.js.map +1 -1
  110. package/dist/esm/operations/operations.js +23 -40
  111. package/dist/esm/operations/operations.js.map +1 -1
  112. package/dist/esm/operations/priceSheet.js +23 -12
  113. package/dist/esm/operations/priceSheet.js.map +1 -1
  114. package/dist/esm/operations/query.js +1 -0
  115. package/dist/esm/operations/query.js.map +1 -1
  116. package/dist/esm/operations/scheduledActions.js +45 -79
  117. package/dist/esm/operations/scheduledActions.js.map +1 -1
  118. package/dist/esm/operations/views.js +45 -79
  119. package/dist/esm/operations/views.js.map +1 -1
  120. package/dist/esm/pagingHelper.js +2 -4
  121. package/dist/esm/pagingHelper.js.map +1 -1
  122. package/dist/react-native/costManagementClient.js +28 -5
  123. package/dist/react-native/costManagementClient.js.map +1 -1
  124. package/dist/react-native/lroImpl.js +7 -3
  125. package/dist/react-native/lroImpl.js.map +1 -1
  126. package/dist/react-native/models/mappers.js +256 -117
  127. package/dist/react-native/models/mappers.js.map +1 -1
  128. package/dist/react-native/operations/alerts.js +1 -0
  129. package/dist/react-native/operations/alerts.js.map +1 -1
  130. package/dist/react-native/operations/benefitRecommendations.js +23 -40
  131. package/dist/react-native/operations/benefitRecommendations.js.map +1 -1
  132. package/dist/react-native/operations/benefitUtilizationSummaries.js +89 -157
  133. package/dist/react-native/operations/benefitUtilizationSummaries.js.map +1 -1
  134. package/dist/react-native/operations/dimensions.js +19 -53
  135. package/dist/react-native/operations/dimensions.js.map +1 -1
  136. package/dist/react-native/operations/exports.js +1 -0
  137. package/dist/react-native/operations/exports.js.map +1 -1
  138. package/dist/react-native/operations/forecast.js +1 -0
  139. package/dist/react-native/operations/forecast.js.map +1 -1
  140. package/dist/react-native/operations/generateCostDetailsReport.js +23 -12
  141. package/dist/react-native/operations/generateCostDetailsReport.js.map +1 -1
  142. package/dist/react-native/operations/generateDetailedCostReport.js +12 -6
  143. package/dist/react-native/operations/generateDetailedCostReport.js.map +1 -1
  144. package/dist/react-native/operations/generateDetailedCostReportOperationResults.js +12 -6
  145. package/dist/react-native/operations/generateDetailedCostReportOperationResults.js.map +1 -1
  146. package/dist/react-native/operations/generateDetailedCostReportOperationStatus.js +1 -0
  147. package/dist/react-native/operations/generateDetailedCostReportOperationStatus.js.map +1 -1
  148. package/dist/react-native/operations/generateReservationDetailsReport.js +23 -12
  149. package/dist/react-native/operations/generateReservationDetailsReport.js.map +1 -1
  150. package/dist/react-native/operations/operations.js +23 -40
  151. package/dist/react-native/operations/operations.js.map +1 -1
  152. package/dist/react-native/operations/priceSheet.js +23 -12
  153. package/dist/react-native/operations/priceSheet.js.map +1 -1
  154. package/dist/react-native/operations/query.js +1 -0
  155. package/dist/react-native/operations/query.js.map +1 -1
  156. package/dist/react-native/operations/scheduledActions.js +45 -79
  157. package/dist/react-native/operations/scheduledActions.js.map +1 -1
  158. package/dist/react-native/operations/views.js +45 -79
  159. package/dist/react-native/operations/views.js.map +1 -1
  160. package/dist/react-native/pagingHelper.js +2 -4
  161. package/dist/react-native/pagingHelper.js.map +1 -1
  162. package/package.json +2 -2
  163. 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,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAsBtD,4CAA4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,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,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"]}
1
+ {"version":3,"file":"benefitUtilizationSummaries.js","sourceRoot":"","sources":["../../../src/operations/benefitUtilizationSummaries.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAsBtD,4CAA4C;AAC5C,+DAA+D;AAC/D,MAAa,+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,CA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UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,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"]}
@@ -15,6 +15,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /// <reference lib="esnext.asynciterable" />
16
16
  /** Class containing Dimensions operations. */
17
17
  class DimensionsImpl {
18
+ client;
18
19
  /**
19
20
  * Initialize a new instance of the class Dimensions class.
20
21
  * @param client Reference to the service client
@@ -51,39 +52,22 @@ class DimensionsImpl {
51
52
  return this;
52
53
  },
53
54
  byPage: (settings) => {
54
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
55
+ if (settings?.maxPageSize) {
55
56
  throw new Error("maxPageSize is not supported by this operation.");
56
57
  }
57
58
  return this.listPagingPage(scope, options, settings);
58
59
  }
59
60
  };
60
61
  }
61
- listPagingPage(scope, options, _settings) {
62
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
63
- let result;
64
- result = yield tslib_1.__await(this._list(scope, options));
65
- yield yield tslib_1.__await(result.value || []);
66
- });
62
+ async *listPagingPage(scope, options, _settings) {
63
+ let result;
64
+ result = await this._list(scope, options);
65
+ yield result.value || [];
67
66
  }
68
- listPagingAll(scope, options) {
69
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
70
- var _a, e_1, _b, _c;
71
- try {
72
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(scope, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
73
- _c = _f.value;
74
- _d = false;
75
- const page = _c;
76
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
77
- }
78
- }
79
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
80
- finally {
81
- try {
82
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
83
- }
84
- finally { if (e_1) throw e_1.error; }
85
- }
86
- });
67
+ async *listPagingAll(scope, options) {
68
+ for await (const page of this.listPagingPage(scope, options)) {
69
+ yield* page;
70
+ }
87
71
  }
88
72
  /**
89
73
  * Lists the dimensions by the external cloud provider type.
@@ -104,39 +88,22 @@ class DimensionsImpl {
104
88
  return this;
105
89
  },
106
90
  byPage: (settings) => {
107
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
91
+ if (settings?.maxPageSize) {
108
92
  throw new Error("maxPageSize is not supported by this operation.");
109
93
  }
110
94
  return this.byExternalCloudProviderTypePagingPage(externalCloudProviderType, externalCloudProviderId, options, settings);
111
95
  }
112
96
  };
113
97
  }
114
- byExternalCloudProviderTypePagingPage(externalCloudProviderType, externalCloudProviderId, options, _settings) {
115
- return tslib_1.__asyncGenerator(this, arguments, function* byExternalCloudProviderTypePagingPage_1() {
116
- let result;
117
- result = yield tslib_1.__await(this._byExternalCloudProviderType(externalCloudProviderType, externalCloudProviderId, options));
118
- yield yield tslib_1.__await(result.value || []);
119
- });
98
+ async *byExternalCloudProviderTypePagingPage(externalCloudProviderType, externalCloudProviderId, options, _settings) {
99
+ let result;
100
+ result = await this._byExternalCloudProviderType(externalCloudProviderType, externalCloudProviderId, options);
101
+ yield result.value || [];
120
102
  }
121
- byExternalCloudProviderTypePagingAll(externalCloudProviderType, externalCloudProviderId, options) {
122
- return tslib_1.__asyncGenerator(this, arguments, function* byExternalCloudProviderTypePagingAll_1() {
123
- var _a, e_2, _b, _c;
124
- try {
125
- for (var _d = true, _e = tslib_1.__asyncValues(this.byExternalCloudProviderTypePagingPage(externalCloudProviderType, externalCloudProviderId, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
126
- _c = _f.value;
127
- _d = false;
128
- const page = _c;
129
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
130
- }
131
- }
132
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
133
- finally {
134
- try {
135
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
136
- }
137
- finally { if (e_2) throw e_2.error; }
138
- }
139
- });
103
+ async *byExternalCloudProviderTypePagingAll(externalCloudProviderType, externalCloudProviderId, options) {
104
+ for await (const page of this.byExternalCloudProviderTypePagingPage(externalCloudProviderType, externalCloudProviderId, options)) {
105
+ yield* page;
106
+ }
140
107
  }
141
108
  /**
142
109
  * Lists the dimensions by the defined scope.
@@ -1 +1 @@
1
- {"version":3,"file":"dimensions.js","sourceRoot":"","sources":["../../../src/operations/dimensions.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAWtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IA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ClC;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,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAWtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,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,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;YACvD,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,KAAa,EACb,OAAsC,EACtC,SAAwB;QAExB,IAAI,MAA8B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,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"]}
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
14
  const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /** Class containing Exports operations. */
16
16
  class ExportsImpl {
17
+ client;
17
18
  /**
18
19
  * Initialize a new instance of the class Exports class.
19
20
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"exports.js","sourceRoot":"","sources":["../../../src/operations/exports.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAgBtD,2CAA2C;AAC3C,MAAa,WAAW;IAGtB;;;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,CACl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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,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAgBtD,2CAA2C;AAC3C,MAAa,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,EAClB,OAAkC;QAElC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,EAC9B,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,cAAc,CACZ,KAAa,EACb,UAAkB,EAClB,UAAkB,EAClB,OAA6C;QAE7C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,EAC1C,2BAA2B,CAC5B,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CACJ,KAAa,EACb,UAAkB,EAClB,OAAqC;QAErC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,EAC9B,mBAAmB,CACpB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;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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"]}
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
14
  const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /** Class containing Forecast operations. */
16
16
  class ForecastImpl {
17
+ client;
17
18
  /**
18
19
  * Initialize a new instance of the class Forecast class.
19
20
  * @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,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAWtD,4CAA4C;AAC5C,MAAa,YAAY;IAGvB;;;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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AAC,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC;IAC3D,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,yBAAyB;QACpC,UAAU,CAAC,uBAAuB;KACnC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { 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"]}
1
+ {"version":3,"file":"forecast.js","sourceRoot":"","sources":["../../../src/operations/forecast.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAWtD,4CAA4C;AAC5C,MAAa,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;YACE,yBAAyB;YACzB,uBAAuB;YACvB,UAAU;YACV,OAAO;SACR,EACD,uCAAuC,CACxC,CAAC;IACJ,CAAC;CACF;AApED,oCAoEC;AACD,2BAA2B;AAC3B,M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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"]}
@@ -16,6 +16,7 @@ const core_lro_1 = require("@azure/core-lro");
16
16
  const lroImpl_js_1 = require("../lroImpl.js");
17
17
  /** Class containing GenerateCostDetailsReport operations. */
18
18
  class GenerateCostDetailsReportImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class GenerateCostDetailsReport class.
21
22
  * @param client Reference to the service client
@@ -46,14 +47,19 @@ class GenerateCostDetailsReportImpl {
46
47
  return this.client.sendOperationRequest(args, spec);
47
48
  };
48
49
  const sendOperationFn = async (args, spec) => {
49
- var _a;
50
50
  let currentRawResponse = undefined;
51
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
51
+ const providedCallback = args.options?.onResponse;
52
52
  const callback = (rawResponse, flatResponse) => {
53
53
  currentRawResponse = rawResponse;
54
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
54
+ providedCallback?.(rawResponse, flatResponse);
55
+ };
56
+ const updatedArgs = {
57
+ ...args,
58
+ options: {
59
+ ...args.options,
60
+ onResponse: callback
61
+ }
55
62
  };
56
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
57
63
  const flatResponse = await directSendOperation(updatedArgs, spec);
58
64
  return {
59
65
  flatResponse,
@@ -70,8 +76,8 @@ class GenerateCostDetailsReportImpl {
70
76
  spec: createOperationOperationSpec
71
77
  });
72
78
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
73
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
74
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
79
+ restoreFrom: options?.resumeFrom,
80
+ intervalInMs: options?.updateIntervalInMs,
75
81
  resourceLocationConfig: "location"
76
82
  });
77
83
  await poller.poll();
@@ -112,14 +118,19 @@ class GenerateCostDetailsReportImpl {
112
118
  return this.client.sendOperationRequest(args, spec);
113
119
  };
114
120
  const sendOperationFn = async (args, spec) => {
115
- var _a;
116
121
  let currentRawResponse = undefined;
117
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
122
+ const providedCallback = args.options?.onResponse;
118
123
  const callback = (rawResponse, flatResponse) => {
119
124
  currentRawResponse = rawResponse;
120
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
125
+ providedCallback?.(rawResponse, flatResponse);
126
+ };
127
+ const updatedArgs = {
128
+ ...args,
129
+ options: {
130
+ ...args.options,
131
+ onResponse: callback
132
+ }
121
133
  };
122
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
123
134
  const flatResponse = await directSendOperation(updatedArgs, spec);
124
135
  return {
125
136
  flatResponse,
@@ -136,8 +147,8 @@ class GenerateCostDetailsReportImpl {
136
147
  spec: getOperationResultsOperationSpec
137
148
  });
138
149
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
139
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
140
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
150
+ restoreFrom: options?.resumeFrom,
151
+ intervalInMs: options?.updateIntervalInMs,
141
152
  resourceLocationConfig: "location"
142
153
  });
143
154
  await poller.poll();