@azure/arm-consumption 9.2.1-alpha.20250619.1 → 9.2.1-alpha.20250718.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/dist/browser/consumptionManagementClient.js +30 -5
  2. package/dist/browser/consumptionManagementClient.js.map +1 -1
  3. package/dist/browser/models/mappers.js +798 -385
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/aggregatedCost.js +1 -0
  6. package/dist/browser/operations/aggregatedCost.js.map +1 -1
  7. package/dist/browser/operations/balances.js +1 -0
  8. package/dist/browser/operations/balances.js.map +1 -1
  9. package/dist/browser/operations/budgets.js +23 -40
  10. package/dist/browser/operations/budgets.js.map +1 -1
  11. package/dist/browser/operations/charges.js +1 -0
  12. package/dist/browser/operations/charges.js.map +1 -1
  13. package/dist/browser/operations/credits.js +1 -0
  14. package/dist/browser/operations/credits.js.map +1 -1
  15. package/dist/browser/operations/eventsOperations.js +45 -79
  16. package/dist/browser/operations/eventsOperations.js.map +1 -1
  17. package/dist/browser/operations/lotsOperations.js +45 -79
  18. package/dist/browser/operations/lotsOperations.js.map +1 -1
  19. package/dist/browser/operations/marketplaces.js +23 -40
  20. package/dist/browser/operations/marketplaces.js.map +1 -1
  21. package/dist/browser/operations/operations.js +23 -40
  22. package/dist/browser/operations/operations.js.map +1 -1
  23. package/dist/browser/operations/priceSheet.js +1 -0
  24. package/dist/browser/operations/priceSheet.js.map +1 -1
  25. package/dist/browser/operations/reservationRecommendationDetails.js +1 -0
  26. package/dist/browser/operations/reservationRecommendationDetails.js.map +1 -1
  27. package/dist/browser/operations/reservationRecommendations.js +23 -40
  28. package/dist/browser/operations/reservationRecommendations.js.map +1 -1
  29. package/dist/browser/operations/reservationTransactions.js +45 -79
  30. package/dist/browser/operations/reservationTransactions.js.map +1 -1
  31. package/dist/browser/operations/reservationsDetails.js +67 -118
  32. package/dist/browser/operations/reservationsDetails.js.map +1 -1
  33. package/dist/browser/operations/reservationsSummaries.js +67 -118
  34. package/dist/browser/operations/reservationsSummaries.js.map +1 -1
  35. package/dist/browser/operations/tags.js +1 -0
  36. package/dist/browser/operations/tags.js.map +1 -1
  37. package/dist/browser/operations/usageDetails.js +23 -40
  38. package/dist/browser/operations/usageDetails.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/consumptionManagementClient.js +30 -5
  42. package/dist/commonjs/consumptionManagementClient.js.map +1 -1
  43. package/dist/commonjs/models/mappers.js +798 -385
  44. package/dist/commonjs/models/mappers.js.map +1 -1
  45. package/dist/commonjs/operations/aggregatedCost.js +1 -0
  46. package/dist/commonjs/operations/aggregatedCost.js.map +1 -1
  47. package/dist/commonjs/operations/balances.js +1 -0
  48. package/dist/commonjs/operations/balances.js.map +1 -1
  49. package/dist/commonjs/operations/budgets.js +23 -39
  50. package/dist/commonjs/operations/budgets.js.map +1 -1
  51. package/dist/commonjs/operations/charges.js +1 -0
  52. package/dist/commonjs/operations/charges.js.map +1 -1
  53. package/dist/commonjs/operations/credits.js +1 -0
  54. package/dist/commonjs/operations/credits.js.map +1 -1
  55. package/dist/commonjs/operations/eventsOperations.js +45 -78
  56. package/dist/commonjs/operations/eventsOperations.js.map +1 -1
  57. package/dist/commonjs/operations/lotsOperations.js +45 -78
  58. package/dist/commonjs/operations/lotsOperations.js.map +1 -1
  59. package/dist/commonjs/operations/marketplaces.js +23 -39
  60. package/dist/commonjs/operations/marketplaces.js.map +1 -1
  61. package/dist/commonjs/operations/operations.js +23 -39
  62. package/dist/commonjs/operations/operations.js.map +1 -1
  63. package/dist/commonjs/operations/priceSheet.js +1 -0
  64. package/dist/commonjs/operations/priceSheet.js.map +1 -1
  65. package/dist/commonjs/operations/reservationRecommendationDetails.js +1 -0
  66. package/dist/commonjs/operations/reservationRecommendationDetails.js.map +1 -1
  67. package/dist/commonjs/operations/reservationRecommendations.js +23 -39
  68. package/dist/commonjs/operations/reservationRecommendations.js.map +1 -1
  69. package/dist/commonjs/operations/reservationTransactions.js +45 -78
  70. package/dist/commonjs/operations/reservationTransactions.js.map +1 -1
  71. package/dist/commonjs/operations/reservationsDetails.js +67 -117
  72. package/dist/commonjs/operations/reservationsDetails.js.map +1 -1
  73. package/dist/commonjs/operations/reservationsSummaries.js +67 -117
  74. package/dist/commonjs/operations/reservationsSummaries.js.map +1 -1
  75. package/dist/commonjs/operations/tags.js +1 -0
  76. package/dist/commonjs/operations/tags.js.map +1 -1
  77. package/dist/commonjs/operations/usageDetails.js +23 -39
  78. package/dist/commonjs/operations/usageDetails.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/consumptionManagementClient.js +30 -5
  83. package/dist/esm/consumptionManagementClient.js.map +1 -1
  84. package/dist/esm/models/mappers.js +798 -385
  85. package/dist/esm/models/mappers.js.map +1 -1
  86. package/dist/esm/operations/aggregatedCost.js +1 -0
  87. package/dist/esm/operations/aggregatedCost.js.map +1 -1
  88. package/dist/esm/operations/balances.js +1 -0
  89. package/dist/esm/operations/balances.js.map +1 -1
  90. package/dist/esm/operations/budgets.js +23 -40
  91. package/dist/esm/operations/budgets.js.map +1 -1
  92. package/dist/esm/operations/charges.js +1 -0
  93. package/dist/esm/operations/charges.js.map +1 -1
  94. package/dist/esm/operations/credits.js +1 -0
  95. package/dist/esm/operations/credits.js.map +1 -1
  96. package/dist/esm/operations/eventsOperations.js +45 -79
  97. package/dist/esm/operations/eventsOperations.js.map +1 -1
  98. package/dist/esm/operations/lotsOperations.js +45 -79
  99. package/dist/esm/operations/lotsOperations.js.map +1 -1
  100. package/dist/esm/operations/marketplaces.js +23 -40
  101. package/dist/esm/operations/marketplaces.js.map +1 -1
  102. package/dist/esm/operations/operations.js +23 -40
  103. package/dist/esm/operations/operations.js.map +1 -1
  104. package/dist/esm/operations/priceSheet.js +1 -0
  105. package/dist/esm/operations/priceSheet.js.map +1 -1
  106. package/dist/esm/operations/reservationRecommendationDetails.js +1 -0
  107. package/dist/esm/operations/reservationRecommendationDetails.js.map +1 -1
  108. package/dist/esm/operations/reservationRecommendations.js +23 -40
  109. package/dist/esm/operations/reservationRecommendations.js.map +1 -1
  110. package/dist/esm/operations/reservationTransactions.js +45 -79
  111. package/dist/esm/operations/reservationTransactions.js.map +1 -1
  112. package/dist/esm/operations/reservationsDetails.js +67 -118
  113. package/dist/esm/operations/reservationsDetails.js.map +1 -1
  114. package/dist/esm/operations/reservationsSummaries.js +67 -118
  115. package/dist/esm/operations/reservationsSummaries.js.map +1 -1
  116. package/dist/esm/operations/tags.js +1 -0
  117. package/dist/esm/operations/tags.js.map +1 -1
  118. package/dist/esm/operations/usageDetails.js +23 -40
  119. package/dist/esm/operations/usageDetails.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/consumptionManagementClient.js +30 -5
  123. package/dist/react-native/consumptionManagementClient.js.map +1 -1
  124. package/dist/react-native/models/mappers.js +798 -385
  125. package/dist/react-native/models/mappers.js.map +1 -1
  126. package/dist/react-native/operations/aggregatedCost.js +1 -0
  127. package/dist/react-native/operations/aggregatedCost.js.map +1 -1
  128. package/dist/react-native/operations/balances.js +1 -0
  129. package/dist/react-native/operations/balances.js.map +1 -1
  130. package/dist/react-native/operations/budgets.js +23 -40
  131. package/dist/react-native/operations/budgets.js.map +1 -1
  132. package/dist/react-native/operations/charges.js +1 -0
  133. package/dist/react-native/operations/charges.js.map +1 -1
  134. package/dist/react-native/operations/credits.js +1 -0
  135. package/dist/react-native/operations/credits.js.map +1 -1
  136. package/dist/react-native/operations/eventsOperations.js +45 -79
  137. package/dist/react-native/operations/eventsOperations.js.map +1 -1
  138. package/dist/react-native/operations/lotsOperations.js +45 -79
  139. package/dist/react-native/operations/lotsOperations.js.map +1 -1
  140. package/dist/react-native/operations/marketplaces.js +23 -40
  141. package/dist/react-native/operations/marketplaces.js.map +1 -1
  142. package/dist/react-native/operations/operations.js +23 -40
  143. package/dist/react-native/operations/operations.js.map +1 -1
  144. package/dist/react-native/operations/priceSheet.js +1 -0
  145. package/dist/react-native/operations/priceSheet.js.map +1 -1
  146. package/dist/react-native/operations/reservationRecommendationDetails.js +1 -0
  147. package/dist/react-native/operations/reservationRecommendationDetails.js.map +1 -1
  148. package/dist/react-native/operations/reservationRecommendations.js +23 -40
  149. package/dist/react-native/operations/reservationRecommendations.js.map +1 -1
  150. package/dist/react-native/operations/reservationTransactions.js +45 -79
  151. package/dist/react-native/operations/reservationTransactions.js.map +1 -1
  152. package/dist/react-native/operations/reservationsDetails.js +67 -118
  153. package/dist/react-native/operations/reservationsDetails.js.map +1 -1
  154. package/dist/react-native/operations/reservationsSummaries.js +67 -118
  155. package/dist/react-native/operations/reservationsSummaries.js.map +1 -1
  156. package/dist/react-native/operations/tags.js +1 -0
  157. package/dist/react-native/operations/tags.js.map +1 -1
  158. package/dist/react-native/operations/usageDetails.js +23 -40
  159. package/dist/react-native/operations/usageDetails.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-consumption.api.md → arm-consumption-node.api.md} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"reservationsDetails.js","sourceRoot":"","sources":["../../../src/operations/reservationsDetails.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAkBtD,4CAA4C;AAC5C,uDAAuD;AACvD,MAAa,uBAAuB;IAGlC;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,sBAAsB,CAC3B,kBAA0B,EAC1B,MAAc,EACd,OAA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AK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qDAAqD,GAA6B;IACtF,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;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;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACxE,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 { ReservationsDetails } 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 { ConsumptionManagementClient } from \"../consumptionManagementClient.js\";\nimport {\n ReservationDetail,\n ReservationsDetailsListByReservationOrderNextOptionalParams,\n ReservationsDetailsListByReservationOrderOptionalParams,\n ReservationsDetailsListByReservationOrderResponse,\n ReservationsDetailsListByReservationOrderAndReservationNextOptionalParams,\n ReservationsDetailsListByReservationOrderAndReservationOptionalParams,\n ReservationsDetailsListByReservationOrderAndReservationResponse,\n ReservationsDetailsListNextOptionalParams,\n ReservationsDetailsListOptionalParams,\n ReservationsDetailsListResponse,\n ReservationsDetailsListByReservationOrderNextResponse,\n ReservationsDetailsListByReservationOrderAndReservationNextResponse,\n ReservationsDetailsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ReservationsDetails operations. */\nexport class ReservationsDetailsImpl implements ReservationsDetails {\n private readonly client: ConsumptionManagementClient;\n\n /**\n * Initialize a new instance of the class ReservationsDetails class.\n * @param client Reference to the service client\n */\n constructor(client: ConsumptionManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the reservations details for provided date range.\n * @param reservationOrderId Order Id of the reservation\n * @param filter Filter reservation details by date range. The properties/UsageDate for start date and\n * end date. The filter supports 'le' and 'ge'\n * @param options The options parameters.\n */\n public listByReservationOrder(\n reservationOrderId: string,\n filter: string,\n options?: ReservationsDetailsListByReservationOrderOptionalParams\n ): PagedAsyncIterableIterator<ReservationDetail> {\n const iter = this.listByReservationOrderPagingAll(\n reservationOrderId,\n filter,\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.listByReservationOrderPagingPage(\n reservationOrderId,\n filter,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByReservationOrderPagingPage(\n reservationOrderId: string,\n filter: string,\n options?: ReservationsDetailsListByReservationOrderOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ReservationDetail[]> {\n let result: ReservationsDetailsListByReservationOrderResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByReservationOrder(\n reservationOrderId,\n filter,\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._listByReservationOrderNext(\n reservationOrderId,\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 *listByReservationOrderPagingAll(\n reservationOrderId: string,\n filter: string,\n options?: ReservationsDetailsListByReservationOrderOptionalParams\n ): AsyncIterableIterator<ReservationDetail> {\n for await (const page of this.listByReservationOrderPagingPage(\n reservationOrderId,\n filter,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the reservations details for provided date range.\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation\n * @param filter Filter reservation details by date range. The properties/UsageDate for start date and\n * end date. The filter supports 'le' and 'ge'\n * @param options The options parameters.\n */\n public listByReservationOrderAndReservation(\n reservationOrderId: string,\n reservationId: string,\n filter: string,\n options?: ReservationsDetailsListByReservationOrderAndReservationOptionalParams\n ): PagedAsyncIterableIterator<ReservationDetail> {\n const iter = this.listByReservationOrderAndReservationPagingAll(\n reservationOrderId,\n reservationId,\n filter,\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.listByReservationOrderAndReservationPagingPage(\n reservationOrderId,\n reservationId,\n filter,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByReservationOrderAndReservationPagingPage(\n reservationOrderId: string,\n reservationId: string,\n filter: string,\n options?: ReservationsDetailsListByReservationOrderAndReservationOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ReservationDetail[]> {\n let result: ReservationsDetailsListByReservationOrderAndReservationResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByReservationOrderAndReservation(\n reservationOrderId,\n reservationId,\n filter,\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._listByReservationOrderAndReservationNext(\n reservationOrderId,\n reservationId,\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 *listByReservationOrderAndReservationPagingAll(\n reservationOrderId: string,\n reservationId: string,\n filter: string,\n options?: ReservationsDetailsListByReservationOrderAndReservationOptionalParams\n ): AsyncIterableIterator<ReservationDetail> {\n for await (const page of this.listByReservationOrderAndReservationPagingPage(\n reservationOrderId,\n reservationId,\n filter,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the reservations details for the defined scope and provided date range.\n * @param scope The scope associated with reservations details operations. This includes\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope (legacy),\n * and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope (modern).\n * @param options The options parameters.\n */\n public list(\n scope: string,\n options?: ReservationsDetailsListOptionalParams\n ): PagedAsyncIterableIterator<ReservationDetail> {\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?: ReservationsDetailsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ReservationDetail[]> {\n let result: ReservationsDetailsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(scope, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(scope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n scope: string,\n options?: ReservationsDetailsListOptionalParams\n ): AsyncIterableIterator<ReservationDetail> {\n for await (const page of this.listPagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the reservations details for provided date range.\n * @param reservationOrderId Order Id of the reservation\n * @param filter Filter reservation details by date range. The properties/UsageDate for start date and\n * end date. The filter supports 'le' and 'ge'\n * @param options The options parameters.\n */\n private _listByReservationOrder(\n reservationOrderId: string,\n filter: string,\n options?: ReservationsDetailsListByReservationOrderOptionalParams\n ): Promise<ReservationsDetailsListByReservationOrderResponse> {\n return this.client.sendOperationRequest(\n { reservationOrderId, filter, options },\n listByReservationOrderOperationSpec\n );\n }\n\n /**\n * Lists the reservations details for provided date range.\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation\n * @param filter Filter reservation details by date range. The properties/UsageDate for start date and\n * end date. The filter supports 'le' and 'ge'\n * @param options The options parameters.\n */\n private _listByReservationOrderAndReservation(\n reservationOrderId: string,\n reservationId: string,\n filter: string,\n options?: ReservationsDetailsListByReservationOrderAndReservationOptionalParams\n ): Promise<ReservationsDetailsListByReservationOrderAndReservationResponse> {\n return this.client.sendOperationRequest(\n { reservationOrderId, reservationId, filter, options },\n listByReservationOrderAndReservationOperationSpec\n );\n }\n\n /**\n * Lists the reservations details for the defined scope and provided date range.\n * @param scope The scope associated with reservations details operations. This includes\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope (legacy),\n * and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope (modern).\n * @param options The options parameters.\n */\n private _list(\n scope: string,\n options?: ReservationsDetailsListOptionalParams\n ): Promise<ReservationsDetailsListResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listOperationSpec\n );\n }\n\n /**\n * ListByReservationOrderNext\n * @param reservationOrderId Order Id of the reservation\n * @param nextLink The nextLink from the previous successful call to the ListByReservationOrder method.\n * @param options The options parameters.\n */\n private _listByReservationOrderNext(\n reservationOrderId: string,\n nextLink: string,\n options?: ReservationsDetailsListByReservationOrderNextOptionalParams\n ): Promise<ReservationsDetailsListByReservationOrderNextResponse> {\n return this.client.sendOperationRequest(\n { reservationOrderId, nextLink, options },\n listByReservationOrderNextOperationSpec\n );\n }\n\n /**\n * ListByReservationOrderAndReservationNext\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation\n * @param nextLink The nextLink from the previous successful call to the\n * ListByReservationOrderAndReservation method.\n * @param options The options parameters.\n */\n private _listByReservationOrderAndReservationNext(\n reservationOrderId: string,\n reservationId: string,\n nextLink: string,\n options?: ReservationsDetailsListByReservationOrderAndReservationNextOptionalParams\n ): Promise<\n ReservationsDetailsListByReservationOrderAndReservationNextResponse\n > {\n return this.client.sendOperationRequest(\n { reservationOrderId, reservationId, nextLink, options },\n listByReservationOrderAndReservationNextOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param scope The scope associated with reservations details operations. This includes\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope (legacy),\n * and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope (modern).\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n scope: string,\n nextLink: string,\n options?: ReservationsDetailsListNextOptionalParams\n ): Promise<ReservationsDetailsListNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByReservationOrderOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/providers/Microsoft.Consumption/reservationDetails\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationDetailsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter1],\n urlParameters: [Parameters.$host, Parameters.reservationOrderId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByReservationOrderAndReservationOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/reservations/{reservationId}/providers/Microsoft.Consumption/reservationDetails\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationDetailsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter1],\n urlParameters: [\n Parameters.$host,\n Parameters.reservationOrderId,\n Parameters.reservationId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Consumption/reservationDetails\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationDetailsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.filter,\n Parameters.apiVersion,\n Parameters.startDate,\n Parameters.endDate,\n Parameters.reservationId1,\n Parameters.reservationOrderId1\n ],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByReservationOrderNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationDetailsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.reservationOrderId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByReservationOrderAndReservationNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationDetailsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.reservationOrderId,\n Parameters.reservationId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationDetailsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.scope, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"reservationsDetails.js","sourceRoot":"","sources":["../../../src/operations/reservationsDetails.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAkBtD,4CAA4C;AAC5C,uDAAuD;AACvD,MAAa,uBAAuB;IACjB,MAAM,CAA8B;IAErD;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,sBAAsB,CAC3B,kBAA0B,EAC1B,MAAc,EACd,OAAiE;QAEjE,MAAM,IAAI,GAAG,IAAI,CAAC,+BAA+B,CAC/C,kBAAkB,EAClB,MAAM,EACN,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,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\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 { ReservationsDetails } 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 { ConsumptionManagementClient } from \"../consumptionManagementClient.js\";\nimport {\n ReservationDetail,\n ReservationsDetailsListByReservationOrderNextOptionalParams,\n ReservationsDetailsListByReservationOrderOptionalParams,\n ReservationsDetailsListByReservationOrderResponse,\n ReservationsDetailsListByReservationOrderAndReservationNextOptionalParams,\n ReservationsDetailsListByReservationOrderAndReservationOptionalParams,\n ReservationsDetailsListByReservationOrderAndReservationResponse,\n ReservationsDetailsListNextOptionalParams,\n ReservationsDetailsListOptionalParams,\n ReservationsDetailsListResponse,\n ReservationsDetailsListByReservationOrderNextResponse,\n ReservationsDetailsListByReservationOrderAndReservationNextResponse,\n ReservationsDetailsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ReservationsDetails operations. */\nexport class ReservationsDetailsImpl implements ReservationsDetails {\n private readonly client: ConsumptionManagementClient;\n\n /**\n * Initialize a new instance of the class ReservationsDetails class.\n * @param client Reference to the service client\n */\n constructor(client: ConsumptionManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the reservations details for provided date range.\n * @param reservationOrderId Order Id of the reservation\n * @param filter Filter reservation details by date range. The properties/UsageDate for start date and\n * end date. The filter supports 'le' and 'ge'\n * @param options The options parameters.\n */\n public listByReservationOrder(\n reservationOrderId: string,\n filter: string,\n options?: ReservationsDetailsListByReservationOrderOptionalParams\n ): PagedAsyncIterableIterator<ReservationDetail> {\n const iter = this.listByReservationOrderPagingAll(\n reservationOrderId,\n filter,\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.listByReservationOrderPagingPage(\n reservationOrderId,\n filter,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByReservationOrderPagingPage(\n reservationOrderId: string,\n filter: string,\n options?: ReservationsDetailsListByReservationOrderOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ReservationDetail[]> {\n let result: ReservationsDetailsListByReservationOrderResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByReservationOrder(\n reservationOrderId,\n filter,\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._listByReservationOrderNext(\n reservationOrderId,\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 *listByReservationOrderPagingAll(\n reservationOrderId: string,\n filter: string,\n options?: ReservationsDetailsListByReservationOrderOptionalParams\n ): AsyncIterableIterator<ReservationDetail> {\n for await (const page of this.listByReservationOrderPagingPage(\n reservationOrderId,\n filter,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the reservations details for provided date range.\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation\n * @param filter Filter reservation details by date range. The properties/UsageDate for start date and\n * end date. The filter supports 'le' and 'ge'\n * @param options The options parameters.\n */\n public listByReservationOrderAndReservation(\n reservationOrderId: string,\n reservationId: string,\n filter: string,\n options?: ReservationsDetailsListByReservationOrderAndReservationOptionalParams\n ): PagedAsyncIterableIterator<ReservationDetail> {\n const iter = this.listByReservationOrderAndReservationPagingAll(\n reservationOrderId,\n reservationId,\n filter,\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.listByReservationOrderAndReservationPagingPage(\n reservationOrderId,\n reservationId,\n filter,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByReservationOrderAndReservationPagingPage(\n reservationOrderId: string,\n reservationId: string,\n filter: string,\n options?: ReservationsDetailsListByReservationOrderAndReservationOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ReservationDetail[]> {\n let result: ReservationsDetailsListByReservationOrderAndReservationResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByReservationOrderAndReservation(\n reservationOrderId,\n reservationId,\n filter,\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._listByReservationOrderAndReservationNext(\n reservationOrderId,\n reservationId,\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 *listByReservationOrderAndReservationPagingAll(\n reservationOrderId: string,\n reservationId: string,\n filter: string,\n options?: ReservationsDetailsListByReservationOrderAndReservationOptionalParams\n ): AsyncIterableIterator<ReservationDetail> {\n for await (const page of this.listByReservationOrderAndReservationPagingPage(\n reservationOrderId,\n reservationId,\n filter,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the reservations details for the defined scope and provided date range.\n * @param scope The scope associated with reservations details operations. This includes\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope (legacy),\n * and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope (modern).\n * @param options The options parameters.\n */\n public list(\n scope: string,\n options?: ReservationsDetailsListOptionalParams\n ): PagedAsyncIterableIterator<ReservationDetail> {\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?: ReservationsDetailsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ReservationDetail[]> {\n let result: ReservationsDetailsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(scope, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(scope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n scope: string,\n options?: ReservationsDetailsListOptionalParams\n ): AsyncIterableIterator<ReservationDetail> {\n for await (const page of this.listPagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the reservations details for provided date range.\n * @param reservationOrderId Order Id of the reservation\n * @param filter Filter reservation details by date range. The properties/UsageDate for start date and\n * end date. The filter supports 'le' and 'ge'\n * @param options The options parameters.\n */\n private _listByReservationOrder(\n reservationOrderId: string,\n filter: string,\n options?: ReservationsDetailsListByReservationOrderOptionalParams\n ): Promise<ReservationsDetailsListByReservationOrderResponse> {\n return this.client.sendOperationRequest(\n { reservationOrderId, filter, options },\n listByReservationOrderOperationSpec\n );\n }\n\n /**\n * Lists the reservations details for provided date range.\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation\n * @param filter Filter reservation details by date range. The properties/UsageDate for start date and\n * end date. The filter supports 'le' and 'ge'\n * @param options The options parameters.\n */\n private _listByReservationOrderAndReservation(\n reservationOrderId: string,\n reservationId: string,\n filter: string,\n options?: ReservationsDetailsListByReservationOrderAndReservationOptionalParams\n ): Promise<ReservationsDetailsListByReservationOrderAndReservationResponse> {\n return this.client.sendOperationRequest(\n { reservationOrderId, reservationId, filter, options },\n listByReservationOrderAndReservationOperationSpec\n );\n }\n\n /**\n * Lists the reservations details for the defined scope and provided date range.\n * @param scope The scope associated with reservations details operations. This includes\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope (legacy),\n * and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope (modern).\n * @param options The options parameters.\n */\n private _list(\n scope: string,\n options?: ReservationsDetailsListOptionalParams\n ): Promise<ReservationsDetailsListResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listOperationSpec\n );\n }\n\n /**\n * ListByReservationOrderNext\n * @param reservationOrderId Order Id of the reservation\n * @param nextLink The nextLink from the previous successful call to the ListByReservationOrder method.\n * @param options The options parameters.\n */\n private _listByReservationOrderNext(\n reservationOrderId: string,\n nextLink: string,\n options?: ReservationsDetailsListByReservationOrderNextOptionalParams\n ): Promise<ReservationsDetailsListByReservationOrderNextResponse> {\n return this.client.sendOperationRequest(\n { reservationOrderId, nextLink, options },\n listByReservationOrderNextOperationSpec\n );\n }\n\n /**\n * ListByReservationOrderAndReservationNext\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation\n * @param nextLink The nextLink from the previous successful call to the\n * ListByReservationOrderAndReservation method.\n * @param options The options parameters.\n */\n private _listByReservationOrderAndReservationNext(\n reservationOrderId: string,\n reservationId: string,\n nextLink: string,\n options?: ReservationsDetailsListByReservationOrderAndReservationNextOptionalParams\n ): Promise<\n ReservationsDetailsListByReservationOrderAndReservationNextResponse\n > {\n return this.client.sendOperationRequest(\n { reservationOrderId, reservationId, nextLink, options },\n listByReservationOrderAndReservationNextOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param scope The scope associated with reservations details operations. This includes\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope (legacy),\n * and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope (modern).\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n scope: string,\n nextLink: string,\n options?: ReservationsDetailsListNextOptionalParams\n ): Promise<ReservationsDetailsListNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByReservationOrderOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/providers/Microsoft.Consumption/reservationDetails\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationDetailsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter1],\n urlParameters: [Parameters.$host, Parameters.reservationOrderId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByReservationOrderAndReservationOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/reservations/{reservationId}/providers/Microsoft.Consumption/reservationDetails\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationDetailsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter1],\n urlParameters: [\n Parameters.$host,\n Parameters.reservationOrderId,\n Parameters.reservationId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Consumption/reservationDetails\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationDetailsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.filter,\n Parameters.apiVersion,\n Parameters.startDate,\n Parameters.endDate,\n Parameters.reservationId1,\n Parameters.reservationOrderId1\n ],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByReservationOrderNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationDetailsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.reservationOrderId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByReservationOrderAndReservationNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationDetailsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.reservationOrderId,\n Parameters.reservationId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationDetailsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.scope, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
16
  /// <reference lib="esnext.asynciterable" />
17
17
  /** Class containing ReservationsSummaries operations. */
18
18
  class ReservationsSummariesImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class ReservationsSummaries class.
21
22
  * @param client Reference to the service client
@@ -39,52 +40,35 @@ class ReservationsSummariesImpl {
39
40
  return this;
40
41
  },
41
42
  byPage: (settings) => {
42
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
43
+ if (settings?.maxPageSize) {
43
44
  throw new Error("maxPageSize is not supported by this operation.");
44
45
  }
45
46
  return this.listByReservationOrderPagingPage(reservationOrderId, grain, options, settings);
46
47
  }
47
48
  };
48
49
  }
49
- listByReservationOrderPagingPage(reservationOrderId, grain, options, settings) {
50
- return tslib_1.__asyncGenerator(this, arguments, function* listByReservationOrderPagingPage_1() {
51
- let result;
52
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
53
- if (!continuationToken) {
54
- result = yield tslib_1.__await(this._listByReservationOrder(reservationOrderId, grain, options));
55
- let page = result.value || [];
56
- continuationToken = result.nextLink;
57
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
58
- yield yield tslib_1.__await(page);
59
- }
60
- while (continuationToken) {
61
- result = yield tslib_1.__await(this._listByReservationOrderNext(reservationOrderId, continuationToken, options));
62
- continuationToken = result.nextLink;
63
- let page = result.value || [];
64
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
65
- yield yield tslib_1.__await(page);
66
- }
67
- });
50
+ async *listByReservationOrderPagingPage(reservationOrderId, grain, options, settings) {
51
+ let result;
52
+ let continuationToken = settings?.continuationToken;
53
+ if (!continuationToken) {
54
+ result = await this._listByReservationOrder(reservationOrderId, grain, options);
55
+ let page = result.value || [];
56
+ continuationToken = result.nextLink;
57
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
58
+ yield page;
59
+ }
60
+ while (continuationToken) {
61
+ result = await this._listByReservationOrderNext(reservationOrderId, continuationToken, options);
62
+ continuationToken = result.nextLink;
63
+ let page = result.value || [];
64
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
65
+ yield page;
66
+ }
68
67
  }
69
- listByReservationOrderPagingAll(reservationOrderId, grain, options) {
70
- return tslib_1.__asyncGenerator(this, arguments, function* listByReservationOrderPagingAll_1() {
71
- var _a, e_1, _b, _c;
72
- try {
73
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByReservationOrderPagingPage(reservationOrderId, grain, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
74
- _c = _f.value;
75
- _d = false;
76
- const page = _c;
77
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
78
- }
79
- }
80
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
81
- finally {
82
- try {
83
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
84
- }
85
- finally { if (e_1) throw e_1.error; }
86
- }
87
- });
68
+ async *listByReservationOrderPagingAll(reservationOrderId, grain, options) {
69
+ for await (const page of this.listByReservationOrderPagingPage(reservationOrderId, grain, options)) {
70
+ yield* page;
71
+ }
88
72
  }
89
73
  /**
90
74
  * Lists the reservations summaries for daily or monthly grain.
@@ -103,52 +87,35 @@ class ReservationsSummariesImpl {
103
87
  return this;
104
88
  },
105
89
  byPage: (settings) => {
106
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
90
+ if (settings?.maxPageSize) {
107
91
  throw new Error("maxPageSize is not supported by this operation.");
108
92
  }
109
93
  return this.listByReservationOrderAndReservationPagingPage(reservationOrderId, reservationId, grain, options, settings);
110
94
  }
111
95
  };
112
96
  }
113
- listByReservationOrderAndReservationPagingPage(reservationOrderId, reservationId, grain, options, settings) {
114
- return tslib_1.__asyncGenerator(this, arguments, function* listByReservationOrderAndReservationPagingPage_1() {
115
- let result;
116
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
117
- if (!continuationToken) {
118
- result = yield tslib_1.__await(this._listByReservationOrderAndReservation(reservationOrderId, reservationId, grain, options));
119
- let page = result.value || [];
120
- continuationToken = result.nextLink;
121
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
122
- yield yield tslib_1.__await(page);
123
- }
124
- while (continuationToken) {
125
- result = yield tslib_1.__await(this._listByReservationOrderAndReservationNext(reservationOrderId, reservationId, continuationToken, options));
126
- continuationToken = result.nextLink;
127
- let page = result.value || [];
128
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
129
- yield yield tslib_1.__await(page);
130
- }
131
- });
97
+ async *listByReservationOrderAndReservationPagingPage(reservationOrderId, reservationId, grain, options, settings) {
98
+ let result;
99
+ let continuationToken = settings?.continuationToken;
100
+ if (!continuationToken) {
101
+ result = await this._listByReservationOrderAndReservation(reservationOrderId, reservationId, grain, options);
102
+ let page = result.value || [];
103
+ continuationToken = result.nextLink;
104
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
105
+ yield page;
106
+ }
107
+ while (continuationToken) {
108
+ result = await this._listByReservationOrderAndReservationNext(reservationOrderId, reservationId, continuationToken, options);
109
+ continuationToken = result.nextLink;
110
+ let page = result.value || [];
111
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
112
+ yield page;
113
+ }
132
114
  }
133
- listByReservationOrderAndReservationPagingAll(reservationOrderId, reservationId, grain, options) {
134
- return tslib_1.__asyncGenerator(this, arguments, function* listByReservationOrderAndReservationPagingAll_1() {
135
- var _a, e_2, _b, _c;
136
- try {
137
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByReservationOrderAndReservationPagingPage(reservationOrderId, reservationId, grain, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
138
- _c = _f.value;
139
- _d = false;
140
- const page = _c;
141
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
142
- }
143
- }
144
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
145
- finally {
146
- try {
147
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
148
- }
149
- finally { if (e_2) throw e_2.error; }
150
- }
151
- });
115
+ async *listByReservationOrderAndReservationPagingAll(reservationOrderId, reservationId, grain, options) {
116
+ for await (const page of this.listByReservationOrderAndReservationPagingPage(reservationOrderId, reservationId, grain, options)) {
117
+ yield* page;
118
+ }
152
119
  }
153
120
  /**
154
121
  * Lists the reservations summaries for the defined scope daily or monthly grain.
@@ -170,52 +137,35 @@ class ReservationsSummariesImpl {
170
137
  return this;
171
138
  },
172
139
  byPage: (settings) => {
173
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
140
+ if (settings?.maxPageSize) {
174
141
  throw new Error("maxPageSize is not supported by this operation.");
175
142
  }
176
143
  return this.listPagingPage(scope, grain, options, settings);
177
144
  }
178
145
  };
179
146
  }
180
- listPagingPage(scope, grain, options, settings) {
181
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
182
- let result;
183
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
184
- if (!continuationToken) {
185
- result = yield tslib_1.__await(this._list(scope, grain, options));
186
- let page = result.value || [];
187
- continuationToken = result.nextLink;
188
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
189
- yield yield tslib_1.__await(page);
190
- }
191
- while (continuationToken) {
192
- result = yield tslib_1.__await(this._listNext(scope, continuationToken, options));
193
- continuationToken = result.nextLink;
194
- let page = result.value || [];
195
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
196
- yield yield tslib_1.__await(page);
197
- }
198
- });
147
+ async *listPagingPage(scope, grain, options, settings) {
148
+ let result;
149
+ let continuationToken = settings?.continuationToken;
150
+ if (!continuationToken) {
151
+ result = await this._list(scope, grain, options);
152
+ let page = result.value || [];
153
+ continuationToken = result.nextLink;
154
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
155
+ yield page;
156
+ }
157
+ while (continuationToken) {
158
+ result = await this._listNext(scope, continuationToken, options);
159
+ continuationToken = result.nextLink;
160
+ let page = result.value || [];
161
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
162
+ yield page;
163
+ }
199
164
  }
200
- listPagingAll(scope, grain, options) {
201
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
202
- var _a, e_3, _b, _c;
203
- try {
204
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(scope, grain, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
205
- _c = _f.value;
206
- _d = false;
207
- const page = _c;
208
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
209
- }
210
- }
211
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
212
- finally {
213
- try {
214
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
215
- }
216
- finally { if (e_3) throw e_3.error; }
217
- }
218
- });
165
+ async *listPagingAll(scope, grain, options) {
166
+ for await (const page of this.listPagingPage(scope, grain, options)) {
167
+ yield* page;
168
+ }
219
169
  }
220
170
  /**
221
171
  * Lists the reservations summaries for daily or monthly grain.
@@ -1 +1 @@
1
- {"version":3,"file":"reservationsSummaries.js","sourceRoot":"","sources":["../../../src/operations/reservationsSummaries.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAmBtD,4CAA4C;AAC5C,yDAAyD;AACzD,MAAa,yBAAyB;IAGpC;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,sBAAsB,CAC3B,kBAA0B,EAC1B,KAAgB,EAChB,OAAmE;QAEnE,MAAM,IAAI,GAAG,IAAI,CAAC,+BAA+B,CAC/C,kBAAkB,EAClB,KAAK,EACL,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,gCAAgC,CAC1C,kBAAkB,EAClB,KAAK,EACL,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF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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;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACxE,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 { ReservationsSummaries } 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 { ConsumptionManagementClient } from \"../consumptionManagementClient.js\";\nimport {\n ReservationSummary,\n ReservationsSummariesListByReservationOrderNextOptionalParams,\n Datagrain,\n ReservationsSummariesListByReservationOrderOptionalParams,\n ReservationsSummariesListByReservationOrderResponse,\n ReservationsSummariesListByReservationOrderAndReservationNextOptionalParams,\n ReservationsSummariesListByReservationOrderAndReservationOptionalParams,\n ReservationsSummariesListByReservationOrderAndReservationResponse,\n ReservationsSummariesListNextOptionalParams,\n ReservationsSummariesListOptionalParams,\n ReservationsSummariesListResponse,\n ReservationsSummariesListByReservationOrderNextResponse,\n ReservationsSummariesListByReservationOrderAndReservationNextResponse,\n ReservationsSummariesListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ReservationsSummaries operations. */\nexport class ReservationsSummariesImpl implements ReservationsSummaries {\n private readonly client: ConsumptionManagementClient;\n\n /**\n * Initialize a new instance of the class ReservationsSummaries class.\n * @param client Reference to the service client\n */\n constructor(client: ConsumptionManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the reservations summaries for daily or monthly grain.\n * @param reservationOrderId Order Id of the reservation\n * @param grain Can be daily or monthly\n * @param options The options parameters.\n */\n public listByReservationOrder(\n reservationOrderId: string,\n grain: Datagrain,\n options?: ReservationsSummariesListByReservationOrderOptionalParams\n ): PagedAsyncIterableIterator<ReservationSummary> {\n const iter = this.listByReservationOrderPagingAll(\n reservationOrderId,\n grain,\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.listByReservationOrderPagingPage(\n reservationOrderId,\n grain,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByReservationOrderPagingPage(\n reservationOrderId: string,\n grain: Datagrain,\n options?: ReservationsSummariesListByReservationOrderOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ReservationSummary[]> {\n let result: ReservationsSummariesListByReservationOrderResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByReservationOrder(\n reservationOrderId,\n grain,\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._listByReservationOrderNext(\n reservationOrderId,\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 *listByReservationOrderPagingAll(\n reservationOrderId: string,\n grain: Datagrain,\n options?: ReservationsSummariesListByReservationOrderOptionalParams\n ): AsyncIterableIterator<ReservationSummary> {\n for await (const page of this.listByReservationOrderPagingPage(\n reservationOrderId,\n grain,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the reservations summaries for daily or monthly grain.\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation\n * @param grain Can be daily or monthly\n * @param options The options parameters.\n */\n public listByReservationOrderAndReservation(\n reservationOrderId: string,\n reservationId: string,\n grain: Datagrain,\n options?: ReservationsSummariesListByReservationOrderAndReservationOptionalParams\n ): PagedAsyncIterableIterator<ReservationSummary> {\n const iter = this.listByReservationOrderAndReservationPagingAll(\n reservationOrderId,\n reservationId,\n grain,\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.listByReservationOrderAndReservationPagingPage(\n reservationOrderId,\n reservationId,\n grain,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByReservationOrderAndReservationPagingPage(\n reservationOrderId: string,\n reservationId: string,\n grain: Datagrain,\n options?: ReservationsSummariesListByReservationOrderAndReservationOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ReservationSummary[]> {\n let result: ReservationsSummariesListByReservationOrderAndReservationResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByReservationOrderAndReservation(\n reservationOrderId,\n reservationId,\n grain,\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._listByReservationOrderAndReservationNext(\n reservationOrderId,\n reservationId,\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 *listByReservationOrderAndReservationPagingAll(\n reservationOrderId: string,\n reservationId: string,\n grain: Datagrain,\n options?: ReservationsSummariesListByReservationOrderAndReservationOptionalParams\n ): AsyncIterableIterator<ReservationSummary> {\n for await (const page of this.listByReservationOrderAndReservationPagingPage(\n reservationOrderId,\n reservationId,\n grain,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the reservations summaries for the defined scope daily or monthly grain.\n * @param scope The scope associated with reservations summaries operations. This includes\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope (legacy),\n * and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope (modern).\n * @param grain Can be daily or monthly\n * @param options The options parameters.\n */\n public list(\n scope: string,\n grain: Datagrain,\n options?: ReservationsSummariesListOptionalParams\n ): PagedAsyncIterableIterator<ReservationSummary> {\n const iter = this.listPagingAll(scope, grain, 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, grain, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n scope: string,\n grain: Datagrain,\n options?: ReservationsSummariesListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ReservationSummary[]> {\n let result: ReservationsSummariesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(scope, grain, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(scope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n scope: string,\n grain: Datagrain,\n options?: ReservationsSummariesListOptionalParams\n ): AsyncIterableIterator<ReservationSummary> {\n for await (const page of this.listPagingPage(scope, grain, options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the reservations summaries for daily or monthly grain.\n * @param reservationOrderId Order Id of the reservation\n * @param grain Can be daily or monthly\n * @param options The options parameters.\n */\n private _listByReservationOrder(\n reservationOrderId: string,\n grain: Datagrain,\n options?: ReservationsSummariesListByReservationOrderOptionalParams\n ): Promise<ReservationsSummariesListByReservationOrderResponse> {\n return this.client.sendOperationRequest(\n { reservationOrderId, grain, options },\n listByReservationOrderOperationSpec\n );\n }\n\n /**\n * Lists the reservations summaries for daily or monthly grain.\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation\n * @param grain Can be daily or monthly\n * @param options The options parameters.\n */\n private _listByReservationOrderAndReservation(\n reservationOrderId: string,\n reservationId: string,\n grain: Datagrain,\n options?: ReservationsSummariesListByReservationOrderAndReservationOptionalParams\n ): Promise<\n ReservationsSummariesListByReservationOrderAndReservationResponse\n > {\n return this.client.sendOperationRequest(\n { reservationOrderId, reservationId, grain, options },\n listByReservationOrderAndReservationOperationSpec\n );\n }\n\n /**\n * Lists the reservations summaries for the defined scope daily or monthly grain.\n * @param scope The scope associated with reservations summaries operations. This includes\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope (legacy),\n * and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope (modern).\n * @param grain Can be daily or monthly\n * @param options The options parameters.\n */\n private _list(\n scope: string,\n grain: Datagrain,\n options?: ReservationsSummariesListOptionalParams\n ): Promise<ReservationsSummariesListResponse> {\n return this.client.sendOperationRequest(\n { scope, grain, options },\n listOperationSpec\n );\n }\n\n /**\n * ListByReservationOrderNext\n * @param reservationOrderId Order Id of the reservation\n * @param nextLink The nextLink from the previous successful call to the ListByReservationOrder method.\n * @param options The options parameters.\n */\n private _listByReservationOrderNext(\n reservationOrderId: string,\n nextLink: string,\n options?: ReservationsSummariesListByReservationOrderNextOptionalParams\n ): Promise<ReservationsSummariesListByReservationOrderNextResponse> {\n return this.client.sendOperationRequest(\n { reservationOrderId, nextLink, options },\n listByReservationOrderNextOperationSpec\n );\n }\n\n /**\n * ListByReservationOrderAndReservationNext\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation\n * @param nextLink The nextLink from the previous successful call to the\n * ListByReservationOrderAndReservation method.\n * @param options The options parameters.\n */\n private _listByReservationOrderAndReservationNext(\n reservationOrderId: string,\n reservationId: string,\n nextLink: string,\n options?: ReservationsSummariesListByReservationOrderAndReservationNextOptionalParams\n ): Promise<\n ReservationsSummariesListByReservationOrderAndReservationNextResponse\n > {\n return this.client.sendOperationRequest(\n { reservationOrderId, reservationId, nextLink, options },\n listByReservationOrderAndReservationNextOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param scope The scope associated with reservations summaries operations. This includes\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope (legacy),\n * and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope (modern).\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n scope: string,\n nextLink: string,\n options?: ReservationsSummariesListNextOptionalParams\n ): Promise<ReservationsSummariesListNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByReservationOrderOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/providers/Microsoft.Consumption/reservationSummaries\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.filter, Parameters.apiVersion, Parameters.grain],\n urlParameters: [Parameters.$host, Parameters.reservationOrderId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByReservationOrderAndReservationOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/reservations/{reservationId}/providers/Microsoft.Consumption/reservationSummaries\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.filter, Parameters.apiVersion, Parameters.grain],\n urlParameters: [\n Parameters.$host,\n Parameters.reservationOrderId,\n Parameters.reservationId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Consumption/reservationSummaries\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.filter,\n Parameters.apiVersion,\n Parameters.startDate,\n Parameters.endDate,\n Parameters.grain,\n Parameters.reservationId1,\n Parameters.reservationOrderId1\n ],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByReservationOrderNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.reservationOrderId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByReservationOrderAndReservationNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.reservationOrderId,\n Parameters.reservationId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.scope, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"reservationsSummaries.js","sourceRoot":"","sources":["../../../src/operations/reservationsSummaries.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAmBtD,4CAA4C;AAC5C,yDAAyD;AACzD,MAAa,yBAAyB;IACnB,MAAM,CAA8B;IAErD;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,sBAAsB,CAC3B,kBAA0B,EAC1B,KAAgB,EAChB,OAAmE;QAEnE,MAAM,IAAI,GAAG,IAAI,CAAC,+BAA+B,CAC/C,kBAAkB,EAClB,KAAK,EACL,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,gCAAgC,CAC1C,kBAAkB,EAClB,KAAK,EACL,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,gCAAgC,CAC7C,kBAA0B,EAC1B,KAAgB,EAChB,OAAmE,EACnE,QAAu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ACxE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;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;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qDAAqD,GAA6B;IACtF,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;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;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACxE,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 { ReservationsSummaries } 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 { ConsumptionManagementClient } from \"../consumptionManagementClient.js\";\nimport {\n ReservationSummary,\n ReservationsSummariesListByReservationOrderNextOptionalParams,\n Datagrain,\n ReservationsSummariesListByReservationOrderOptionalParams,\n ReservationsSummariesListByReservationOrderResponse,\n ReservationsSummariesListByReservationOrderAndReservationNextOptionalParams,\n ReservationsSummariesListByReservationOrderAndReservationOptionalParams,\n ReservationsSummariesListByReservationOrderAndReservationResponse,\n ReservationsSummariesListNextOptionalParams,\n ReservationsSummariesListOptionalParams,\n ReservationsSummariesListResponse,\n ReservationsSummariesListByReservationOrderNextResponse,\n ReservationsSummariesListByReservationOrderAndReservationNextResponse,\n ReservationsSummariesListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ReservationsSummaries operations. */\nexport class ReservationsSummariesImpl implements ReservationsSummaries {\n private readonly client: ConsumptionManagementClient;\n\n /**\n * Initialize a new instance of the class ReservationsSummaries class.\n * @param client Reference to the service client\n */\n constructor(client: ConsumptionManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the reservations summaries for daily or monthly grain.\n * @param reservationOrderId Order Id of the reservation\n * @param grain Can be daily or monthly\n * @param options The options parameters.\n */\n public listByReservationOrder(\n reservationOrderId: string,\n grain: Datagrain,\n options?: ReservationsSummariesListByReservationOrderOptionalParams\n ): PagedAsyncIterableIterator<ReservationSummary> {\n const iter = this.listByReservationOrderPagingAll(\n reservationOrderId,\n grain,\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.listByReservationOrderPagingPage(\n reservationOrderId,\n grain,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByReservationOrderPagingPage(\n reservationOrderId: string,\n grain: Datagrain,\n options?: ReservationsSummariesListByReservationOrderOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ReservationSummary[]> {\n let result: ReservationsSummariesListByReservationOrderResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByReservationOrder(\n reservationOrderId,\n grain,\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._listByReservationOrderNext(\n reservationOrderId,\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 *listByReservationOrderPagingAll(\n reservationOrderId: string,\n grain: Datagrain,\n options?: ReservationsSummariesListByReservationOrderOptionalParams\n ): AsyncIterableIterator<ReservationSummary> {\n for await (const page of this.listByReservationOrderPagingPage(\n reservationOrderId,\n grain,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the reservations summaries for daily or monthly grain.\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation\n * @param grain Can be daily or monthly\n * @param options The options parameters.\n */\n public listByReservationOrderAndReservation(\n reservationOrderId: string,\n reservationId: string,\n grain: Datagrain,\n options?: ReservationsSummariesListByReservationOrderAndReservationOptionalParams\n ): PagedAsyncIterableIterator<ReservationSummary> {\n const iter = this.listByReservationOrderAndReservationPagingAll(\n reservationOrderId,\n reservationId,\n grain,\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.listByReservationOrderAndReservationPagingPage(\n reservationOrderId,\n reservationId,\n grain,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByReservationOrderAndReservationPagingPage(\n reservationOrderId: string,\n reservationId: string,\n grain: Datagrain,\n options?: ReservationsSummariesListByReservationOrderAndReservationOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ReservationSummary[]> {\n let result: ReservationsSummariesListByReservationOrderAndReservationResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByReservationOrderAndReservation(\n reservationOrderId,\n reservationId,\n grain,\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._listByReservationOrderAndReservationNext(\n reservationOrderId,\n reservationId,\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 *listByReservationOrderAndReservationPagingAll(\n reservationOrderId: string,\n reservationId: string,\n grain: Datagrain,\n options?: ReservationsSummariesListByReservationOrderAndReservationOptionalParams\n ): AsyncIterableIterator<ReservationSummary> {\n for await (const page of this.listByReservationOrderAndReservationPagingPage(\n reservationOrderId,\n reservationId,\n grain,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the reservations summaries for the defined scope daily or monthly grain.\n * @param scope The scope associated with reservations summaries operations. This includes\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope (legacy),\n * and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope (modern).\n * @param grain Can be daily or monthly\n * @param options The options parameters.\n */\n public list(\n scope: string,\n grain: Datagrain,\n options?: ReservationsSummariesListOptionalParams\n ): PagedAsyncIterableIterator<ReservationSummary> {\n const iter = this.listPagingAll(scope, grain, 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, grain, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n scope: string,\n grain: Datagrain,\n options?: ReservationsSummariesListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ReservationSummary[]> {\n let result: ReservationsSummariesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(scope, grain, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(scope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n scope: string,\n grain: Datagrain,\n options?: ReservationsSummariesListOptionalParams\n ): AsyncIterableIterator<ReservationSummary> {\n for await (const page of this.listPagingPage(scope, grain, options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the reservations summaries for daily or monthly grain.\n * @param reservationOrderId Order Id of the reservation\n * @param grain Can be daily or monthly\n * @param options The options parameters.\n */\n private _listByReservationOrder(\n reservationOrderId: string,\n grain: Datagrain,\n options?: ReservationsSummariesListByReservationOrderOptionalParams\n ): Promise<ReservationsSummariesListByReservationOrderResponse> {\n return this.client.sendOperationRequest(\n { reservationOrderId, grain, options },\n listByReservationOrderOperationSpec\n );\n }\n\n /**\n * Lists the reservations summaries for daily or monthly grain.\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation\n * @param grain Can be daily or monthly\n * @param options The options parameters.\n */\n private _listByReservationOrderAndReservation(\n reservationOrderId: string,\n reservationId: string,\n grain: Datagrain,\n options?: ReservationsSummariesListByReservationOrderAndReservationOptionalParams\n ): Promise<\n ReservationsSummariesListByReservationOrderAndReservationResponse\n > {\n return this.client.sendOperationRequest(\n { reservationOrderId, reservationId, grain, options },\n listByReservationOrderAndReservationOperationSpec\n );\n }\n\n /**\n * Lists the reservations summaries for the defined scope daily or monthly grain.\n * @param scope The scope associated with reservations summaries operations. This includes\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope (legacy),\n * and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope (modern).\n * @param grain Can be daily or monthly\n * @param options The options parameters.\n */\n private _list(\n scope: string,\n grain: Datagrain,\n options?: ReservationsSummariesListOptionalParams\n ): Promise<ReservationsSummariesListResponse> {\n return this.client.sendOperationRequest(\n { scope, grain, options },\n listOperationSpec\n );\n }\n\n /**\n * ListByReservationOrderNext\n * @param reservationOrderId Order Id of the reservation\n * @param nextLink The nextLink from the previous successful call to the ListByReservationOrder method.\n * @param options The options parameters.\n */\n private _listByReservationOrderNext(\n reservationOrderId: string,\n nextLink: string,\n options?: ReservationsSummariesListByReservationOrderNextOptionalParams\n ): Promise<ReservationsSummariesListByReservationOrderNextResponse> {\n return this.client.sendOperationRequest(\n { reservationOrderId, nextLink, options },\n listByReservationOrderNextOperationSpec\n );\n }\n\n /**\n * ListByReservationOrderAndReservationNext\n * @param reservationOrderId Order Id of the reservation\n * @param reservationId Id of the reservation\n * @param nextLink The nextLink from the previous successful call to the\n * ListByReservationOrderAndReservation method.\n * @param options The options parameters.\n */\n private _listByReservationOrderAndReservationNext(\n reservationOrderId: string,\n reservationId: string,\n nextLink: string,\n options?: ReservationsSummariesListByReservationOrderAndReservationNextOptionalParams\n ): Promise<\n ReservationsSummariesListByReservationOrderAndReservationNextResponse\n > {\n return this.client.sendOperationRequest(\n { reservationOrderId, reservationId, nextLink, options },\n listByReservationOrderAndReservationNextOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param scope The scope associated with reservations summaries operations. This includes\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope (legacy),\n * and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope (modern).\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n scope: string,\n nextLink: string,\n options?: ReservationsSummariesListNextOptionalParams\n ): Promise<ReservationsSummariesListNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByReservationOrderOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/providers/Microsoft.Consumption/reservationSummaries\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.filter, Parameters.apiVersion, Parameters.grain],\n urlParameters: [Parameters.$host, Parameters.reservationOrderId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByReservationOrderAndReservationOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Capacity/reservationorders/{reservationOrderId}/reservations/{reservationId}/providers/Microsoft.Consumption/reservationSummaries\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.filter, Parameters.apiVersion, Parameters.grain],\n urlParameters: [\n Parameters.$host,\n Parameters.reservationOrderId,\n Parameters.reservationId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Consumption/reservationSummaries\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.filter,\n Parameters.apiVersion,\n Parameters.startDate,\n Parameters.endDate,\n Parameters.grain,\n Parameters.reservationId1,\n Parameters.reservationOrderId1\n ],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByReservationOrderNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.reservationOrderId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByReservationOrderAndReservationNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.reservationOrderId,\n Parameters.reservationId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReservationSummariesListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.scope, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
14
  const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /** Class containing Tags operations. */
16
16
  class TagsImpl {
17
+ client;
17
18
  /**
18
19
  * Initialize a new instance of the class Tags class.
19
20
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"tags.js","sourceRoot":"","sources":["../../../src/operations/tags.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAItD,wCAAwC;AACxC,MAAa,QAAQ;IAGnB;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,GAAG,CACD,KAAa,EACb,OAA+B;QAE/B,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,KAAK,EAAE,OAAO,EAAE,EAClB,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AAjCD,4BAiCC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,+CAA+C;IACrD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;QACD,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,KAAK,CAAC;IACnD,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 { Tags } 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 { ConsumptionManagementClient } from \"../consumptionManagementClient.js\";\nimport { TagsGetOptionalParams, TagsGetResponse } from \"../models/index.js\";\n\n/** Class containing Tags operations. */\nexport class TagsImpl implements Tags {\n private readonly client: ConsumptionManagementClient;\n\n /**\n * Initialize a new instance of the class Tags class.\n * @param client Reference to the service client\n */\n constructor(client: ConsumptionManagementClient) {\n this.client = client;\n }\n\n /**\n * Get all available tag keys for the defined scope\n * @param scope The scope associated with tags 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 and\n * '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope..\n * @param options The options parameters.\n */\n get(\n scope: string,\n options?: TagsGetOptionalParams\n ): Promise<TagsGetResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n getOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Consumption/tags\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TagsResult\n },\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"tags.js","sourceRoot":"","sources":["../../../src/operations/tags.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAItD,wCAAwC;AACxC,MAAa,QAAQ;IACF,MAAM,CAA8B;IAErD;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,GAAG,CACD,KAAa,EACb,OAA+B;QAE/B,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,KAAK,EAAE,OAAO,EAAE,EAClB,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AAjCD,4BAiCC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,+CAA+C;IACrD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;QACD,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,KAAK,CAAC;IACnD,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 { Tags } 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 { ConsumptionManagementClient } from \"../consumptionManagementClient.js\";\nimport { TagsGetOptionalParams, TagsGetResponse } from \"../models/index.js\";\n\n/** Class containing Tags operations. */\nexport class TagsImpl implements Tags {\n private readonly client: ConsumptionManagementClient;\n\n /**\n * Initialize a new instance of the class Tags class.\n * @param client Reference to the service client\n */\n constructor(client: ConsumptionManagementClient) {\n this.client = client;\n }\n\n /**\n * Get all available tag keys for the defined scope\n * @param scope The scope associated with tags 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 and\n * '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope..\n * @param options The options parameters.\n */\n get(\n scope: string,\n options?: TagsGetOptionalParams\n ): Promise<TagsGetResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n getOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Consumption/tags\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TagsResult\n },\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
16
  /// <reference lib="esnext.asynciterable" />
17
17
  /** Class containing UsageDetails operations. */
18
18
  class UsageDetailsImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class UsageDetails class.
21
22
  * @param client Reference to the service client
@@ -57,52 +58,35 @@ class UsageDetailsImpl {
57
58
  return this;
58
59
  },
59
60
  byPage: (settings) => {
60
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
61
+ if (settings?.maxPageSize) {
61
62
  throw new Error("maxPageSize is not supported by this operation.");
62
63
  }
63
64
  return this.listPagingPage(scope, options, settings);
64
65
  }
65
66
  };
66
67
  }
67
- listPagingPage(scope, options, settings) {
68
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
69
- let result;
70
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
71
- if (!continuationToken) {
72
- result = yield tslib_1.__await(this._list(scope, options));
73
- let page = result.value || [];
74
- continuationToken = result.nextLink;
75
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
76
- yield yield tslib_1.__await(page);
77
- }
78
- while (continuationToken) {
79
- result = yield tslib_1.__await(this._listNext(scope, continuationToken, options));
80
- continuationToken = result.nextLink;
81
- let page = result.value || [];
82
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
83
- yield yield tslib_1.__await(page);
84
- }
85
- });
68
+ async *listPagingPage(scope, options, settings) {
69
+ let result;
70
+ let continuationToken = settings?.continuationToken;
71
+ if (!continuationToken) {
72
+ result = await this._list(scope, options);
73
+ let page = result.value || [];
74
+ continuationToken = result.nextLink;
75
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
76
+ yield page;
77
+ }
78
+ while (continuationToken) {
79
+ result = await this._listNext(scope, continuationToken, options);
80
+ continuationToken = result.nextLink;
81
+ let page = result.value || [];
82
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
83
+ yield page;
84
+ }
86
85
  }
87
- listPagingAll(scope, options) {
88
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
89
- var _a, e_1, _b, _c;
90
- try {
91
- 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) {
92
- _c = _f.value;
93
- _d = false;
94
- const page = _c;
95
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
96
- }
97
- }
98
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
99
- finally {
100
- try {
101
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
102
- }
103
- finally { if (e_1) throw e_1.error; }
104
- }
105
- });
86
+ async *listPagingAll(scope, options) {
87
+ for await (const page of this.listPagingPage(scope, options)) {
88
+ yield* page;
89
+ }
106
90
  }
107
91
  /**
108
92
  * Lists the usage details for the defined scope. Usage details are available via this API only for May