@azure/arm-costmanagement 1.0.0-alpha.20230518.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/index.js +8703 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/alertsDismissSample.d.ts +2 -0
- package/dist-esm/samples-dev/alertsDismissSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/alertsDismissSample.js +56 -0
- package/dist-esm/samples-dev/alertsDismissSample.js.map +1 -0
- package/dist-esm/samples-dev/alertsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/alertsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/alertsGetSample.js +54 -0
- package/dist-esm/samples-dev/alertsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/alertsListExternalSample.d.ts +2 -0
- package/dist-esm/samples-dev/alertsListExternalSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/alertsListExternalSample.js +54 -0
- package/dist-esm/samples-dev/alertsListExternalSample.js.map +1 -0
- package/dist-esm/samples-dev/alertsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/alertsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/alertsListSample.js +132 -0
- package/dist-esm/samples-dev/alertsListSample.js.map +1 -0
- package/dist-esm/samples-dev/benefitRecommendationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/benefitRecommendationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/benefitRecommendationsListSample.js +60 -0
- package/dist-esm/samples-dev/benefitRecommendationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/benefitUtilizationSummariesListByBillingAccountIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/benefitUtilizationSummariesListByBillingAccountIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/benefitUtilizationSummariesListByBillingAccountIdSample.js +61 -0
- package/dist-esm/samples-dev/benefitUtilizationSummariesListByBillingAccountIdSample.js.map +1 -0
- package/dist-esm/samples-dev/benefitUtilizationSummariesListByBillingProfileIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/benefitUtilizationSummariesListByBillingProfileIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/benefitUtilizationSummariesListByBillingProfileIdSample.js +62 -0
- package/dist-esm/samples-dev/benefitUtilizationSummariesListByBillingProfileIdSample.js.map +1 -0
- package/dist-esm/samples-dev/benefitUtilizationSummariesListBySavingsPlanIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/benefitUtilizationSummariesListBySavingsPlanIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/benefitUtilizationSummariesListBySavingsPlanIdSample.js +58 -0
- package/dist-esm/samples-dev/benefitUtilizationSummariesListBySavingsPlanIdSample.js.map +1 -0
- package/dist-esm/samples-dev/benefitUtilizationSummariesListBySavingsPlanOrderSample.d.ts +2 -0
- package/dist-esm/samples-dev/benefitUtilizationSummariesListBySavingsPlanOrderSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/benefitUtilizationSummariesListBySavingsPlanOrderSample.js +57 -0
- package/dist-esm/samples-dev/benefitUtilizationSummariesListBySavingsPlanOrderSample.js.map +1 -0
- package/dist-esm/samples-dev/dimensionsByExternalCloudProviderTypeSample.d.ts +2 -0
- package/dist-esm/samples-dev/dimensionsByExternalCloudProviderTypeSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dimensionsByExternalCloudProviderTypeSample.js +96 -0
- package/dist-esm/samples-dev/dimensionsByExternalCloudProviderTypeSample.js.map +1 -0
- package/dist-esm/samples-dev/dimensionsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/dimensionsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dimensionsListSample.js +1044 -0
- package/dist-esm/samples-dev/dimensionsListSample.js.map +1 -0
- package/dist-esm/samples-dev/exportsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/exportsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/exportsCreateOrUpdateSample.js +326 -0
- package/dist-esm/samples-dev/exportsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/exportsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/exportsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/exportsDeleteSample.js +122 -0
- package/dist-esm/samples-dev/exportsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/exportsExecuteSample.d.ts +2 -0
- package/dist-esm/samples-dev/exportsExecuteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/exportsExecuteSample.js +122 -0
- package/dist-esm/samples-dev/exportsExecuteSample.js.map +1 -0
- package/dist-esm/samples-dev/exportsGetExecutionHistorySample.d.ts +2 -0
- package/dist-esm/samples-dev/exportsGetExecutionHistorySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/exportsGetExecutionHistorySample.js +122 -0
- package/dist-esm/samples-dev/exportsGetExecutionHistorySample.js.map +1 -0
- package/dist-esm/samples-dev/exportsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/exportsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/exportsGetSample.js +122 -0
- package/dist-esm/samples-dev/exportsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/exportsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/exportsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/exportsListSample.js +116 -0
- package/dist-esm/samples-dev/exportsListSample.js.map +1 -0
- package/dist-esm/samples-dev/forecastExternalCloudProviderUsageSample.d.ts +2 -0
- package/dist-esm/samples-dev/forecastExternalCloudProviderUsageSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/forecastExternalCloudProviderUsageSample.js +136 -0
- package/dist-esm/samples-dev/forecastExternalCloudProviderUsageSample.js.map +1 -0
- package/dist-esm/samples-dev/forecastUsageSample.d.ts +2 -0
- package/dist-esm/samples-dev/forecastUsageSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/forecastUsageSample.js +433 -0
- package/dist-esm/samples-dev/forecastUsageSample.js.map +1 -0
- package/dist-esm/samples-dev/generateCostDetailsReportCreateOperationSample.d.ts +2 -0
- package/dist-esm/samples-dev/generateCostDetailsReportCreateOperationSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/generateCostDetailsReportCreateOperationSample.js +160 -0
- package/dist-esm/samples-dev/generateCostDetailsReportCreateOperationSample.js.map +1 -0
- package/dist-esm/samples-dev/generateCostDetailsReportGetOperationResultsSample.d.ts +2 -0
- package/dist-esm/samples-dev/generateCostDetailsReportGetOperationResultsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/generateCostDetailsReportGetOperationResultsSample.js +37 -0
- package/dist-esm/samples-dev/generateCostDetailsReportGetOperationResultsSample.js.map +1 -0
- package/dist-esm/samples-dev/generateDetailedCostReportCreateOperationSample.d.ts +2 -0
- package/dist-esm/samples-dev/generateDetailedCostReportCreateOperationSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/generateDetailedCostReportCreateOperationSample.js +121 -0
- package/dist-esm/samples-dev/generateDetailedCostReportCreateOperationSample.js.map +1 -0
- package/dist-esm/samples-dev/generateDetailedCostReportOperationResultsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/generateDetailedCostReportOperationResultsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/generateDetailedCostReportOperationResultsGetSample.js +37 -0
- package/dist-esm/samples-dev/generateDetailedCostReportOperationResultsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/generateDetailedCostReportOperationStatusGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/generateDetailedCostReportOperationStatusGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/generateDetailedCostReportOperationStatusGetSample.js +37 -0
- package/dist-esm/samples-dev/generateDetailedCostReportOperationStatusGetSample.js.map +1 -0
- package/dist-esm/samples-dev/generateReservationDetailsReportByBillingAccountIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/generateReservationDetailsReportByBillingAccountIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/generateReservationDetailsReportByBillingAccountIdSample.js +38 -0
- package/dist-esm/samples-dev/generateReservationDetailsReportByBillingAccountIdSample.js.map +1 -0
- package/dist-esm/samples-dev/generateReservationDetailsReportByBillingProfileIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/generateReservationDetailsReportByBillingProfileIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/generateReservationDetailsReportByBillingProfileIdSample.js +39 -0
- package/dist-esm/samples-dev/generateReservationDetailsReportByBillingProfileIdSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +56 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/priceSheetDownloadByBillingProfileSample.d.ts +2 -0
- package/dist-esm/samples-dev/priceSheetDownloadByBillingProfileSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/priceSheetDownloadByBillingProfileSample.js +37 -0
- package/dist-esm/samples-dev/priceSheetDownloadByBillingProfileSample.js.map +1 -0
- package/dist-esm/samples-dev/priceSheetDownloadSample.d.ts +2 -0
- package/dist-esm/samples-dev/priceSheetDownloadSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/priceSheetDownloadSample.js +38 -0
- package/dist-esm/samples-dev/priceSheetDownloadSample.js.map +1 -0
- package/dist-esm/samples-dev/queryUsageByExternalCloudProviderTypeSample.d.ts +2 -0
- package/dist-esm/samples-dev/queryUsageByExternalCloudProviderTypeSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/queryUsageByExternalCloudProviderTypeSample.js +126 -0
- package/dist-esm/samples-dev/queryUsageByExternalCloudProviderTypeSample.js.map +1 -0
- package/dist-esm/samples-dev/queryUsageSample.d.ts +2 -0
- package/dist-esm/samples-dev/queryUsageSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/queryUsageSample.js +790 -0
- package/dist-esm/samples-dev/queryUsageSample.js.map +1 -0
- package/dist-esm/samples-dev/scheduledActionsCheckNameAvailabilityByScopeSample.d.ts +2 -0
- package/dist-esm/samples-dev/scheduledActionsCheckNameAvailabilityByScopeSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/scheduledActionsCheckNameAvailabilityByScopeSample.js +40 -0
- package/dist-esm/samples-dev/scheduledActionsCheckNameAvailabilityByScopeSample.js.map +1 -0
- package/dist-esm/samples-dev/scheduledActionsCheckNameAvailabilitySample.d.ts +2 -0
- package/dist-esm/samples-dev/scheduledActionsCheckNameAvailabilitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/scheduledActionsCheckNameAvailabilitySample.js +39 -0
- package/dist-esm/samples-dev/scheduledActionsCheckNameAvailabilitySample.js.map +1 -0
- package/dist-esm/samples-dev/scheduledActionsCreateOrUpdateByScopeSample.d.ts +2 -0
- package/dist-esm/samples-dev/scheduledActionsCreateOrUpdateByScopeSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/scheduledActionsCreateOrUpdateByScopeSample.js +96 -0
- package/dist-esm/samples-dev/scheduledActionsCreateOrUpdateByScopeSample.js.map +1 -0
- package/dist-esm/samples-dev/scheduledActionsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/scheduledActionsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/scheduledActionsCreateOrUpdateSample.js +56 -0
- package/dist-esm/samples-dev/scheduledActionsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/scheduledActionsDeleteByScopeSample.d.ts +2 -0
- package/dist-esm/samples-dev/scheduledActionsDeleteByScopeSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/scheduledActionsDeleteByScopeSample.js +37 -0
- package/dist-esm/samples-dev/scheduledActionsDeleteByScopeSample.js.map +1 -0
- package/dist-esm/samples-dev/scheduledActionsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/scheduledActionsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/scheduledActionsDeleteSample.js +36 -0
- package/dist-esm/samples-dev/scheduledActionsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/scheduledActionsGetByScopeSample.d.ts +2 -0
- package/dist-esm/samples-dev/scheduledActionsGetByScopeSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/scheduledActionsGetByScopeSample.js +37 -0
- package/dist-esm/samples-dev/scheduledActionsGetByScopeSample.js.map +1 -0
- package/dist-esm/samples-dev/scheduledActionsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/scheduledActionsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/scheduledActionsGetSample.js +36 -0
- package/dist-esm/samples-dev/scheduledActionsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/scheduledActionsListByScopeSample.d.ts +2 -0
- package/dist-esm/samples-dev/scheduledActionsListByScopeSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/scheduledActionsListByScopeSample.js +96 -0
- package/dist-esm/samples-dev/scheduledActionsListByScopeSample.js.map +1 -0
- package/dist-esm/samples-dev/scheduledActionsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/scheduledActionsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/scheduledActionsListSample.js +94 -0
- package/dist-esm/samples-dev/scheduledActionsListSample.js.map +1 -0
- package/dist-esm/samples-dev/scheduledActionsRunByScopeSample.d.ts +2 -0
- package/dist-esm/samples-dev/scheduledActionsRunByScopeSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/scheduledActionsRunByScopeSample.js +37 -0
- package/dist-esm/samples-dev/scheduledActionsRunByScopeSample.js.map +1 -0
- package/dist-esm/samples-dev/scheduledActionsRunSample.d.ts +2 -0
- package/dist-esm/samples-dev/scheduledActionsRunSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/scheduledActionsRunSample.js +36 -0
- package/dist-esm/samples-dev/scheduledActionsRunSample.js.map +1 -0
- package/dist-esm/samples-dev/viewsCreateOrUpdateByScopeSample.d.ts +2 -0
- package/dist-esm/samples-dev/viewsCreateOrUpdateByScopeSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/viewsCreateOrUpdateByScopeSample.js +65 -0
- package/dist-esm/samples-dev/viewsCreateOrUpdateByScopeSample.js.map +1 -0
- package/dist-esm/samples-dev/viewsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/viewsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/viewsCreateOrUpdateSample.js +64 -0
- package/dist-esm/samples-dev/viewsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/viewsDeleteByScopeSample.d.ts +2 -0
- package/dist-esm/samples-dev/viewsDeleteByScopeSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/viewsDeleteByScopeSample.js +37 -0
- package/dist-esm/samples-dev/viewsDeleteByScopeSample.js.map +1 -0
- package/dist-esm/samples-dev/viewsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/viewsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/viewsDeleteSample.js +36 -0
- package/dist-esm/samples-dev/viewsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/viewsGetByScopeSample.d.ts +2 -0
- package/dist-esm/samples-dev/viewsGetByScopeSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/viewsGetByScopeSample.js +37 -0
- package/dist-esm/samples-dev/viewsGetByScopeSample.js.map +1 -0
- package/dist-esm/samples-dev/viewsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/viewsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/viewsGetSample.js +36 -0
- package/dist-esm/samples-dev/viewsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/viewsListByScopeSample.d.ts +2 -0
- package/dist-esm/samples-dev/viewsListByScopeSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/viewsListByScopeSample.js +57 -0
- package/dist-esm/samples-dev/viewsListByScopeSample.js.map +1 -0
- package/dist-esm/samples-dev/viewsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/viewsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/viewsListSample.js +56 -0
- package/dist-esm/samples-dev/viewsListSample.js.map +1 -0
- package/dist-esm/src/costManagementClient.d.ts +33 -0
- package/dist-esm/src/costManagementClient.d.ts.map +1 -0
- package/dist-esm/src/costManagementClient.js +109 -0
- package/dist-esm/src/costManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +11 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +21 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +2991 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +606 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +118 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +3702 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +43 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +378 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/alerts.d.ts +86 -0
- package/dist-esm/src/operations/alerts.d.ts.map +1 -0
- package/dist-esm/src/operations/alerts.js +174 -0
- package/dist-esm/src/operations/alerts.js.map +1 -0
- package/dist-esm/src/operations/benefitRecommendations.d.ts +50 -0
- package/dist-esm/src/operations/benefitRecommendations.d.ts.map +1 -0
- package/dist-esm/src/operations/benefitRecommendations.js +165 -0
- package/dist-esm/src/operations/benefitRecommendations.js.map +1 -0
- package/dist-esm/src/operations/benefitUtilizationSummaries.d.ts +108 -0
- package/dist-esm/src/operations/benefitUtilizationSummaries.d.ts.map +1 -0
- package/dist-esm/src/operations/benefitUtilizationSummaries.js +538 -0
- package/dist-esm/src/operations/benefitUtilizationSummaries.js.map +1 -0
- package/dist-esm/src/operations/dimensions.d.ts +78 -0
- package/dist-esm/src/operations/dimensions.d.ts.map +1 -0
- package/dist-esm/src/operations/dimensions.js +234 -0
- package/dist-esm/src/operations/dimensions.js.map +1 -0
- package/dist-esm/src/operations/exports.d.ts +141 -0
- package/dist-esm/src/operations/exports.d.ts.map +1 -0
- package/dist-esm/src/operations/exports.js +260 -0
- package/dist-esm/src/operations/exports.js.map +1 -0
- package/dist-esm/src/operations/forecast.d.ts +45 -0
- package/dist-esm/src/operations/forecast.d.ts.map +1 -0
- package/dist-esm/src/operations/forecast.js +105 -0
- package/dist-esm/src/operations/forecast.js.map +1 -0
- package/dist-esm/src/operations/generateCostDetailsReport.d.ts +70 -0
- package/dist-esm/src/operations/generateCostDetailsReport.d.ts.map +1 -0
- package/dist-esm/src/operations/generateCostDetailsReport.js +218 -0
- package/dist-esm/src/operations/generateCostDetailsReport.js.map +1 -0
- package/dist-esm/src/operations/generateDetailedCostReport.d.ts +38 -0
- package/dist-esm/src/operations/generateDetailedCostReport.d.ts.map +1 -0
- package/dist-esm/src/operations/generateDetailedCostReport.js +119 -0
- package/dist-esm/src/operations/generateDetailedCostReport.js.map +1 -0
- package/dist-esm/src/operations/generateDetailedCostReportOperationResults.d.ts +32 -0
- package/dist-esm/src/operations/generateDetailedCostReportOperationResults.d.ts.map +1 -0
- package/dist-esm/src/operations/generateDetailedCostReportOperationResults.js +110 -0
- package/dist-esm/src/operations/generateDetailedCostReportOperationResults.js.map +1 -0
- package/dist-esm/src/operations/generateDetailedCostReportOperationStatus.d.ts +22 -0
- package/dist-esm/src/operations/generateDetailedCostReportOperationStatus.d.ts.map +1 -0
- package/dist-esm/src/operations/generateDetailedCostReportOperationStatus.js +50 -0
- package/dist-esm/src/operations/generateDetailedCostReportOperationStatus.js.map +1 -0
- package/dist-esm/src/operations/generateReservationDetailsReport.d.ts +60 -0
- package/dist-esm/src/operations/generateReservationDetailsReport.d.ts.map +1 -0
- package/dist-esm/src/operations/generateReservationDetailsReport.js +218 -0
- package/dist-esm/src/operations/generateReservationDetailsReport.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +17 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +24 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +138 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/priceSheet.d.ts +54 -0
- package/dist-esm/src/operations/priceSheet.d.ts.map +1 -0
- package/dist-esm/src/operations/priceSheet.js +209 -0
- package/dist-esm/src/operations/priceSheet.js.map +1 -0
- package/dist-esm/src/operations/query.d.ts +45 -0
- package/dist-esm/src/operations/query.d.ts.map +1 -0
- package/dist-esm/src/operations/query.js +105 -0
- package/dist-esm/src/operations/query.js.map +1 -0
- package/dist-esm/src/operations/scheduledActions.d.ts +240 -0
- package/dist-esm/src/operations/scheduledActions.d.ts.map +1 -0
- package/dist-esm/src/operations/scheduledActions.js +636 -0
- package/dist-esm/src/operations/scheduledActions.js.map +1 -0
- package/dist-esm/src/operations/views.d.ts +194 -0
- package/dist-esm/src/operations/views.d.ts.map +1 -0
- package/dist-esm/src/operations/views.js +510 -0
- package/dist-esm/src/operations/views.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/alerts.d.ts +78 -0
- package/dist-esm/src/operationsInterfaces/alerts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/alerts.js +9 -0
- package/dist-esm/src/operationsInterfaces/alerts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/benefitRecommendations.d.ts +17 -0
- package/dist-esm/src/operationsInterfaces/benefitRecommendations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/benefitRecommendations.js +9 -0
- package/dist-esm/src/operationsInterfaces/benefitRecommendations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/benefitUtilizationSummaries.d.ts +34 -0
- package/dist-esm/src/operationsInterfaces/benefitUtilizationSummaries.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/benefitUtilizationSummaries.js +9 -0
- package/dist-esm/src/operationsInterfaces/benefitUtilizationSummaries.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dimensions.d.ts +36 -0
- package/dist-esm/src/operationsInterfaces/dimensions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/dimensions.js +9 -0
- package/dist-esm/src/operationsInterfaces/dimensions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/exports.d.ts +133 -0
- package/dist-esm/src/operationsInterfaces/exports.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/exports.js +9 -0
- package/dist-esm/src/operationsInterfaces/exports.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/forecast.d.ts +37 -0
- package/dist-esm/src/operationsInterfaces/forecast.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/forecast.js +9 -0
- package/dist-esm/src/operationsInterfaces/forecast.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/generateCostDetailsReport.d.ts +62 -0
- package/dist-esm/src/operationsInterfaces/generateCostDetailsReport.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/generateCostDetailsReport.js +9 -0
- package/dist-esm/src/operationsInterfaces/generateCostDetailsReport.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/generateDetailedCostReport.d.ts +30 -0
- package/dist-esm/src/operationsInterfaces/generateDetailedCostReport.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/generateDetailedCostReport.js +9 -0
- package/dist-esm/src/operationsInterfaces/generateDetailedCostReport.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/generateDetailedCostReportOperationResults.d.ts +24 -0
- package/dist-esm/src/operationsInterfaces/generateDetailedCostReportOperationResults.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/generateDetailedCostReportOperationResults.js +9 -0
- package/dist-esm/src/operationsInterfaces/generateDetailedCostReportOperationResults.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/generateDetailedCostReportOperationStatus.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/generateDetailedCostReportOperationStatus.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/generateDetailedCostReportOperationStatus.js +9 -0
- package/dist-esm/src/operationsInterfaces/generateDetailedCostReportOperationStatus.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/generateReservationDetailsReport.d.ts +52 -0
- package/dist-esm/src/operationsInterfaces/generateReservationDetailsReport.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/generateReservationDetailsReport.js +9 -0
- package/dist-esm/src/operationsInterfaces/generateReservationDetailsReport.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +17 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +24 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/priceSheet.d.ts +46 -0
- package/dist-esm/src/operationsInterfaces/priceSheet.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/priceSheet.js +9 -0
- package/dist-esm/src/operationsInterfaces/priceSheet.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/query.d.ts +37 -0
- package/dist-esm/src/operationsInterfaces/query.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/query.js +9 -0
- package/dist-esm/src/operationsInterfaces/query.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/scheduledActions.d.ts +174 -0
- package/dist-esm/src/operationsInterfaces/scheduledActions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/scheduledActions.js +9 -0
- package/dist-esm/src/operationsInterfaces/scheduledActions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/views.d.ts +126 -0
- package/dist-esm/src/operationsInterfaces/views.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/views.js +9 -0
- package/dist-esm/src/operationsInterfaces/views.js.map +1 -0
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/costmanagement_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/costmanagement_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/costmanagement_operations_test.spec.js +78 -0
- package/dist-esm/test/costmanagement_operations_test.spec.js.map +1 -0
- package/package.json +123 -0
- package/review/arm-costmanagement.api.md +2064 -0
- package/rollup.config.js +122 -0
- package/src/costManagementClient.ts +204 -0
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +42 -0
- package/src/models/index.ts +3354 -0
- package/src/models/mappers.ts +3957 -0
- package/src/models/parameters.ts +436 -0
- package/src/operations/alerts.ts +225 -0
- package/src/operations/benefitRecommendations.ts +185 -0
- package/src/operations/benefitUtilizationSummaries.ts +674 -0
- package/src/operations/dimensions.ts +266 -0
- package/src/operations/exports.ts +328 -0
- package/src/operations/forecast.ts +137 -0
- package/src/operations/generateCostDetailsReport.ts +302 -0
- package/src/operations/generateDetailedCostReport.ts +166 -0
- package/src/operations/generateDetailedCostReportOperationResults.ts +156 -0
- package/src/operations/generateDetailedCostReportOperationStatus.ts +70 -0
- package/src/operations/generateReservationDetailsReport.ts +319 -0
- package/src/operations/index.ts +24 -0
- package/src/operations/operations.ts +149 -0
- package/src/operations/priceSheet.ts +299 -0
- package/src/operations/query.ts +137 -0
- package/src/operations/scheduledActions.ts +752 -0
- package/src/operations/views.ts +583 -0
- package/src/operationsInterfaces/alerts.ts +113 -0
- package/src/operationsInterfaces/benefitRecommendations.ts +32 -0
- package/src/operationsInterfaces/benefitUtilizationSummaries.ts +63 -0
- package/src/operationsInterfaces/dimensions.ts +57 -0
- package/src/operationsInterfaces/exports.ts +177 -0
- package/src/operationsInterfaces/forecast.ts +61 -0
- package/src/operationsInterfaces/generateCostDetailsReport.ts +102 -0
- package/src/operationsInterfaces/generateDetailedCostReport.ts +55 -0
- package/src/operationsInterfaces/generateDetailedCostReportOperationResults.ts +48 -0
- package/src/operationsInterfaces/generateDetailedCostReportOperationStatus.ts +29 -0
- package/src/operationsInterfaces/generateReservationDetailsReport.ts +101 -0
- package/src/operationsInterfaces/index.ts +24 -0
- package/src/operationsInterfaces/operations.ts +25 -0
- package/src/operationsInterfaces/priceSheet.ts +87 -0
- package/src/operationsInterfaces/query.ts +61 -0
- package/src/operationsInterfaces/scheduledActions.ts +243 -0
- package/src/operationsInterfaces/views.ts +172 -0
- package/src/pagingHelper.ts +39 -0
- package/tsconfig.json +33 -0
- package/types/arm-costmanagement.d.ts +4255 -0
- package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,538 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
3
|
+
* Licensed under the MIT License.
|
4
|
+
*
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
|
+
*/
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
9
|
+
import { setContinuationToken } from "../pagingHelper";
|
10
|
+
import * as coreClient from "@azure/core-client";
|
11
|
+
import * as Mappers from "../models/mappers";
|
12
|
+
import * as Parameters from "../models/parameters";
|
13
|
+
/// <reference lib="esnext.asynciterable" />
|
14
|
+
/** Class containing BenefitUtilizationSummaries operations. */
|
15
|
+
export class BenefitUtilizationSummariesImpl {
|
16
|
+
/**
|
17
|
+
* Initialize a new instance of the class BenefitUtilizationSummaries class.
|
18
|
+
* @param client Reference to the service client
|
19
|
+
*/
|
20
|
+
constructor(client) {
|
21
|
+
this.client = client;
|
22
|
+
}
|
23
|
+
/**
|
24
|
+
* Lists savings plan utilization summaries for the enterprise agreement scope. Supported at grain
|
25
|
+
* values: 'Daily' and 'Monthly'.
|
26
|
+
* @param billingAccountId Billing account ID
|
27
|
+
* @param options The options parameters.
|
28
|
+
*/
|
29
|
+
listByBillingAccountId(billingAccountId, options) {
|
30
|
+
const iter = this.listByBillingAccountIdPagingAll(billingAccountId, options);
|
31
|
+
return {
|
32
|
+
next() {
|
33
|
+
return iter.next();
|
34
|
+
},
|
35
|
+
[Symbol.asyncIterator]() {
|
36
|
+
return this;
|
37
|
+
},
|
38
|
+
byPage: (settings) => {
|
39
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
40
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
41
|
+
}
|
42
|
+
return this.listByBillingAccountIdPagingPage(billingAccountId, options, settings);
|
43
|
+
}
|
44
|
+
};
|
45
|
+
}
|
46
|
+
listByBillingAccountIdPagingPage(billingAccountId, options, settings) {
|
47
|
+
return __asyncGenerator(this, arguments, function* listByBillingAccountIdPagingPage_1() {
|
48
|
+
let result;
|
49
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
50
|
+
if (!continuationToken) {
|
51
|
+
result = yield __await(this._listByBillingAccountId(billingAccountId, options));
|
52
|
+
let page = result.value || [];
|
53
|
+
continuationToken = result.nextLink;
|
54
|
+
setContinuationToken(page, continuationToken);
|
55
|
+
yield yield __await(page);
|
56
|
+
}
|
57
|
+
while (continuationToken) {
|
58
|
+
result = yield __await(this._listByBillingAccountIdNext(billingAccountId, continuationToken, options));
|
59
|
+
continuationToken = result.nextLink;
|
60
|
+
let page = result.value || [];
|
61
|
+
setContinuationToken(page, continuationToken);
|
62
|
+
yield yield __await(page);
|
63
|
+
}
|
64
|
+
});
|
65
|
+
}
|
66
|
+
listByBillingAccountIdPagingAll(billingAccountId, options) {
|
67
|
+
return __asyncGenerator(this, arguments, function* listByBillingAccountIdPagingAll_1() {
|
68
|
+
var _a, e_1, _b, _c;
|
69
|
+
try {
|
70
|
+
for (var _d = true, _e = __asyncValues(this.listByBillingAccountIdPagingPage(billingAccountId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
71
|
+
_c = _f.value;
|
72
|
+
_d = false;
|
73
|
+
try {
|
74
|
+
const page = _c;
|
75
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
76
|
+
}
|
77
|
+
finally {
|
78
|
+
_d = true;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
83
|
+
finally {
|
84
|
+
try {
|
85
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
86
|
+
}
|
87
|
+
finally { if (e_1) throw e_1.error; }
|
88
|
+
}
|
89
|
+
});
|
90
|
+
}
|
91
|
+
/**
|
92
|
+
* Lists savings plan utilization summaries for billing profile. Supported at grain values: 'Daily' and
|
93
|
+
* 'Monthly'.
|
94
|
+
* @param billingAccountId Billing account ID
|
95
|
+
* @param billingProfileId Billing profile ID.
|
96
|
+
* @param options The options parameters.
|
97
|
+
*/
|
98
|
+
listByBillingProfileId(billingAccountId, billingProfileId, options) {
|
99
|
+
const iter = this.listByBillingProfileIdPagingAll(billingAccountId, billingProfileId, options);
|
100
|
+
return {
|
101
|
+
next() {
|
102
|
+
return iter.next();
|
103
|
+
},
|
104
|
+
[Symbol.asyncIterator]() {
|
105
|
+
return this;
|
106
|
+
},
|
107
|
+
byPage: (settings) => {
|
108
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
109
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
110
|
+
}
|
111
|
+
return this.listByBillingProfileIdPagingPage(billingAccountId, billingProfileId, options, settings);
|
112
|
+
}
|
113
|
+
};
|
114
|
+
}
|
115
|
+
listByBillingProfileIdPagingPage(billingAccountId, billingProfileId, options, settings) {
|
116
|
+
return __asyncGenerator(this, arguments, function* listByBillingProfileIdPagingPage_1() {
|
117
|
+
let result;
|
118
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
119
|
+
if (!continuationToken) {
|
120
|
+
result = yield __await(this._listByBillingProfileId(billingAccountId, billingProfileId, options));
|
121
|
+
let page = result.value || [];
|
122
|
+
continuationToken = result.nextLink;
|
123
|
+
setContinuationToken(page, continuationToken);
|
124
|
+
yield yield __await(page);
|
125
|
+
}
|
126
|
+
while (continuationToken) {
|
127
|
+
result = yield __await(this._listByBillingProfileIdNext(billingAccountId, billingProfileId, continuationToken, options));
|
128
|
+
continuationToken = result.nextLink;
|
129
|
+
let page = result.value || [];
|
130
|
+
setContinuationToken(page, continuationToken);
|
131
|
+
yield yield __await(page);
|
132
|
+
}
|
133
|
+
});
|
134
|
+
}
|
135
|
+
listByBillingProfileIdPagingAll(billingAccountId, billingProfileId, options) {
|
136
|
+
return __asyncGenerator(this, arguments, function* listByBillingProfileIdPagingAll_1() {
|
137
|
+
var _a, e_2, _b, _c;
|
138
|
+
try {
|
139
|
+
for (var _d = true, _e = __asyncValues(this.listByBillingProfileIdPagingPage(billingAccountId, billingProfileId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
140
|
+
_c = _f.value;
|
141
|
+
_d = false;
|
142
|
+
try {
|
143
|
+
const page = _c;
|
144
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
145
|
+
}
|
146
|
+
finally {
|
147
|
+
_d = true;
|
148
|
+
}
|
149
|
+
}
|
150
|
+
}
|
151
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
152
|
+
finally {
|
153
|
+
try {
|
154
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
155
|
+
}
|
156
|
+
finally { if (e_2) throw e_2.error; }
|
157
|
+
}
|
158
|
+
});
|
159
|
+
}
|
160
|
+
/**
|
161
|
+
* Lists the savings plan utilization summaries for daily or monthly grain.
|
162
|
+
* @param savingsPlanOrderId Savings plan order ID.
|
163
|
+
* @param options The options parameters.
|
164
|
+
*/
|
165
|
+
listBySavingsPlanOrder(savingsPlanOrderId, options) {
|
166
|
+
const iter = this.listBySavingsPlanOrderPagingAll(savingsPlanOrderId, options);
|
167
|
+
return {
|
168
|
+
next() {
|
169
|
+
return iter.next();
|
170
|
+
},
|
171
|
+
[Symbol.asyncIterator]() {
|
172
|
+
return this;
|
173
|
+
},
|
174
|
+
byPage: (settings) => {
|
175
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
176
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
177
|
+
}
|
178
|
+
return this.listBySavingsPlanOrderPagingPage(savingsPlanOrderId, options, settings);
|
179
|
+
}
|
180
|
+
};
|
181
|
+
}
|
182
|
+
listBySavingsPlanOrderPagingPage(savingsPlanOrderId, options, settings) {
|
183
|
+
return __asyncGenerator(this, arguments, function* listBySavingsPlanOrderPagingPage_1() {
|
184
|
+
let result;
|
185
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
186
|
+
if (!continuationToken) {
|
187
|
+
result = yield __await(this._listBySavingsPlanOrder(savingsPlanOrderId, options));
|
188
|
+
let page = result.value || [];
|
189
|
+
continuationToken = result.nextLink;
|
190
|
+
setContinuationToken(page, continuationToken);
|
191
|
+
yield yield __await(page);
|
192
|
+
}
|
193
|
+
while (continuationToken) {
|
194
|
+
result = yield __await(this._listBySavingsPlanOrderNext(savingsPlanOrderId, continuationToken, options));
|
195
|
+
continuationToken = result.nextLink;
|
196
|
+
let page = result.value || [];
|
197
|
+
setContinuationToken(page, continuationToken);
|
198
|
+
yield yield __await(page);
|
199
|
+
}
|
200
|
+
});
|
201
|
+
}
|
202
|
+
listBySavingsPlanOrderPagingAll(savingsPlanOrderId, options) {
|
203
|
+
return __asyncGenerator(this, arguments, function* listBySavingsPlanOrderPagingAll_1() {
|
204
|
+
var _a, e_3, _b, _c;
|
205
|
+
try {
|
206
|
+
for (var _d = true, _e = __asyncValues(this.listBySavingsPlanOrderPagingPage(savingsPlanOrderId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
207
|
+
_c = _f.value;
|
208
|
+
_d = false;
|
209
|
+
try {
|
210
|
+
const page = _c;
|
211
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
212
|
+
}
|
213
|
+
finally {
|
214
|
+
_d = true;
|
215
|
+
}
|
216
|
+
}
|
217
|
+
}
|
218
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
219
|
+
finally {
|
220
|
+
try {
|
221
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
222
|
+
}
|
223
|
+
finally { if (e_3) throw e_3.error; }
|
224
|
+
}
|
225
|
+
});
|
226
|
+
}
|
227
|
+
/**
|
228
|
+
* Lists the savings plan utilization summaries for daily or monthly grain.
|
229
|
+
* @param savingsPlanOrderId Savings plan order ID.
|
230
|
+
* @param savingsPlanId Savings plan ID.
|
231
|
+
* @param options The options parameters.
|
232
|
+
*/
|
233
|
+
listBySavingsPlanId(savingsPlanOrderId, savingsPlanId, options) {
|
234
|
+
const iter = this.listBySavingsPlanIdPagingAll(savingsPlanOrderId, savingsPlanId, options);
|
235
|
+
return {
|
236
|
+
next() {
|
237
|
+
return iter.next();
|
238
|
+
},
|
239
|
+
[Symbol.asyncIterator]() {
|
240
|
+
return this;
|
241
|
+
},
|
242
|
+
byPage: (settings) => {
|
243
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
244
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
245
|
+
}
|
246
|
+
return this.listBySavingsPlanIdPagingPage(savingsPlanOrderId, savingsPlanId, options, settings);
|
247
|
+
}
|
248
|
+
};
|
249
|
+
}
|
250
|
+
listBySavingsPlanIdPagingPage(savingsPlanOrderId, savingsPlanId, options, settings) {
|
251
|
+
return __asyncGenerator(this, arguments, function* listBySavingsPlanIdPagingPage_1() {
|
252
|
+
let result;
|
253
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
254
|
+
if (!continuationToken) {
|
255
|
+
result = yield __await(this._listBySavingsPlanId(savingsPlanOrderId, savingsPlanId, options));
|
256
|
+
let page = result.value || [];
|
257
|
+
continuationToken = result.nextLink;
|
258
|
+
setContinuationToken(page, continuationToken);
|
259
|
+
yield yield __await(page);
|
260
|
+
}
|
261
|
+
while (continuationToken) {
|
262
|
+
result = yield __await(this._listBySavingsPlanIdNext(savingsPlanOrderId, savingsPlanId, continuationToken, options));
|
263
|
+
continuationToken = result.nextLink;
|
264
|
+
let page = result.value || [];
|
265
|
+
setContinuationToken(page, continuationToken);
|
266
|
+
yield yield __await(page);
|
267
|
+
}
|
268
|
+
});
|
269
|
+
}
|
270
|
+
listBySavingsPlanIdPagingAll(savingsPlanOrderId, savingsPlanId, options) {
|
271
|
+
return __asyncGenerator(this, arguments, function* listBySavingsPlanIdPagingAll_1() {
|
272
|
+
var _a, e_4, _b, _c;
|
273
|
+
try {
|
274
|
+
for (var _d = true, _e = __asyncValues(this.listBySavingsPlanIdPagingPage(savingsPlanOrderId, savingsPlanId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
275
|
+
_c = _f.value;
|
276
|
+
_d = false;
|
277
|
+
try {
|
278
|
+
const page = _c;
|
279
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
280
|
+
}
|
281
|
+
finally {
|
282
|
+
_d = true;
|
283
|
+
}
|
284
|
+
}
|
285
|
+
}
|
286
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
287
|
+
finally {
|
288
|
+
try {
|
289
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
290
|
+
}
|
291
|
+
finally { if (e_4) throw e_4.error; }
|
292
|
+
}
|
293
|
+
});
|
294
|
+
}
|
295
|
+
/**
|
296
|
+
* Lists savings plan utilization summaries for the enterprise agreement scope. Supported at grain
|
297
|
+
* values: 'Daily' and 'Monthly'.
|
298
|
+
* @param billingAccountId Billing account ID
|
299
|
+
* @param options The options parameters.
|
300
|
+
*/
|
301
|
+
_listByBillingAccountId(billingAccountId, options) {
|
302
|
+
return this.client.sendOperationRequest({ billingAccountId, options }, listByBillingAccountIdOperationSpec);
|
303
|
+
}
|
304
|
+
/**
|
305
|
+
* Lists savings plan utilization summaries for billing profile. Supported at grain values: 'Daily' and
|
306
|
+
* 'Monthly'.
|
307
|
+
* @param billingAccountId Billing account ID
|
308
|
+
* @param billingProfileId Billing profile ID.
|
309
|
+
* @param options The options parameters.
|
310
|
+
*/
|
311
|
+
_listByBillingProfileId(billingAccountId, billingProfileId, options) {
|
312
|
+
return this.client.sendOperationRequest({ billingAccountId, billingProfileId, options }, listByBillingProfileIdOperationSpec);
|
313
|
+
}
|
314
|
+
/**
|
315
|
+
* Lists the savings plan utilization summaries for daily or monthly grain.
|
316
|
+
* @param savingsPlanOrderId Savings plan order ID.
|
317
|
+
* @param options The options parameters.
|
318
|
+
*/
|
319
|
+
_listBySavingsPlanOrder(savingsPlanOrderId, options) {
|
320
|
+
return this.client.sendOperationRequest({ savingsPlanOrderId, options }, listBySavingsPlanOrderOperationSpec);
|
321
|
+
}
|
322
|
+
/**
|
323
|
+
* Lists the savings plan utilization summaries for daily or monthly grain.
|
324
|
+
* @param savingsPlanOrderId Savings plan order ID.
|
325
|
+
* @param savingsPlanId Savings plan ID.
|
326
|
+
* @param options The options parameters.
|
327
|
+
*/
|
328
|
+
_listBySavingsPlanId(savingsPlanOrderId, savingsPlanId, options) {
|
329
|
+
return this.client.sendOperationRequest({ savingsPlanOrderId, savingsPlanId, options }, listBySavingsPlanIdOperationSpec);
|
330
|
+
}
|
331
|
+
/**
|
332
|
+
* ListByBillingAccountIdNext
|
333
|
+
* @param billingAccountId Billing account ID
|
334
|
+
* @param nextLink The nextLink from the previous successful call to the ListByBillingAccountId method.
|
335
|
+
* @param options The options parameters.
|
336
|
+
*/
|
337
|
+
_listByBillingAccountIdNext(billingAccountId, nextLink, options) {
|
338
|
+
return this.client.sendOperationRequest({ billingAccountId, nextLink, options }, listByBillingAccountIdNextOperationSpec);
|
339
|
+
}
|
340
|
+
/**
|
341
|
+
* ListByBillingProfileIdNext
|
342
|
+
* @param billingAccountId Billing account ID
|
343
|
+
* @param billingProfileId Billing profile ID.
|
344
|
+
* @param nextLink The nextLink from the previous successful call to the ListByBillingProfileId method.
|
345
|
+
* @param options The options parameters.
|
346
|
+
*/
|
347
|
+
_listByBillingProfileIdNext(billingAccountId, billingProfileId, nextLink, options) {
|
348
|
+
return this.client.sendOperationRequest({ billingAccountId, billingProfileId, nextLink, options }, listByBillingProfileIdNextOperationSpec);
|
349
|
+
}
|
350
|
+
/**
|
351
|
+
* ListBySavingsPlanOrderNext
|
352
|
+
* @param savingsPlanOrderId Savings plan order ID.
|
353
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySavingsPlanOrder method.
|
354
|
+
* @param options The options parameters.
|
355
|
+
*/
|
356
|
+
_listBySavingsPlanOrderNext(savingsPlanOrderId, nextLink, options) {
|
357
|
+
return this.client.sendOperationRequest({ savingsPlanOrderId, nextLink, options }, listBySavingsPlanOrderNextOperationSpec);
|
358
|
+
}
|
359
|
+
/**
|
360
|
+
* ListBySavingsPlanIdNext
|
361
|
+
* @param savingsPlanOrderId Savings plan order ID.
|
362
|
+
* @param savingsPlanId Savings plan ID.
|
363
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySavingsPlanId method.
|
364
|
+
* @param options The options parameters.
|
365
|
+
*/
|
366
|
+
_listBySavingsPlanIdNext(savingsPlanOrderId, savingsPlanId, nextLink, options) {
|
367
|
+
return this.client.sendOperationRequest({ savingsPlanOrderId, savingsPlanId, nextLink, options }, listBySavingsPlanIdNextOperationSpec);
|
368
|
+
}
|
369
|
+
}
|
370
|
+
// Operation Specifications
|
371
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
372
|
+
const listByBillingAccountIdOperationSpec = {
|
373
|
+
path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries",
|
374
|
+
httpMethod: "GET",
|
375
|
+
responses: {
|
376
|
+
200: {
|
377
|
+
bodyMapper: Mappers.BenefitUtilizationSummariesListResult
|
378
|
+
},
|
379
|
+
default: {
|
380
|
+
bodyMapper: Mappers.ErrorResponse
|
381
|
+
}
|
382
|
+
},
|
383
|
+
queryParameters: [
|
384
|
+
Parameters.apiVersion,
|
385
|
+
Parameters.grainParameter,
|
386
|
+
Parameters.filter1
|
387
|
+
],
|
388
|
+
urlParameters: [Parameters.$host, Parameters.billingAccountId],
|
389
|
+
headerParameters: [Parameters.accept],
|
390
|
+
serializer
|
391
|
+
};
|
392
|
+
const listByBillingProfileIdOperationSpec = {
|
393
|
+
path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries",
|
394
|
+
httpMethod: "GET",
|
395
|
+
responses: {
|
396
|
+
200: {
|
397
|
+
bodyMapper: Mappers.BenefitUtilizationSummariesListResult
|
398
|
+
},
|
399
|
+
default: {
|
400
|
+
bodyMapper: Mappers.ErrorResponse
|
401
|
+
}
|
402
|
+
},
|
403
|
+
queryParameters: [
|
404
|
+
Parameters.apiVersion,
|
405
|
+
Parameters.grainParameter,
|
406
|
+
Parameters.filter1
|
407
|
+
],
|
408
|
+
urlParameters: [
|
409
|
+
Parameters.$host,
|
410
|
+
Parameters.billingAccountId,
|
411
|
+
Parameters.billingProfileId
|
412
|
+
],
|
413
|
+
headerParameters: [Parameters.accept],
|
414
|
+
serializer
|
415
|
+
};
|
416
|
+
const listBySavingsPlanOrderOperationSpec = {
|
417
|
+
path: "/providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries",
|
418
|
+
httpMethod: "GET",
|
419
|
+
responses: {
|
420
|
+
200: {
|
421
|
+
bodyMapper: Mappers.BenefitUtilizationSummariesListResult
|
422
|
+
},
|
423
|
+
default: {
|
424
|
+
bodyMapper: Mappers.ErrorResponse
|
425
|
+
}
|
426
|
+
},
|
427
|
+
queryParameters: [
|
428
|
+
Parameters.apiVersion,
|
429
|
+
Parameters.filter,
|
430
|
+
Parameters.grainParameter
|
431
|
+
],
|
432
|
+
urlParameters: [Parameters.$host, Parameters.savingsPlanOrderId],
|
433
|
+
headerParameters: [Parameters.accept],
|
434
|
+
serializer
|
435
|
+
};
|
436
|
+
const listBySavingsPlanIdOperationSpec = {
|
437
|
+
path: "/providers/Microsoft.BillingBenefits/savingsPlanOrders/{savingsPlanOrderId}/savingsPlans/{savingsPlanId}/providers/Microsoft.CostManagement/benefitUtilizationSummaries",
|
438
|
+
httpMethod: "GET",
|
439
|
+
responses: {
|
440
|
+
200: {
|
441
|
+
bodyMapper: Mappers.BenefitUtilizationSummariesListResult
|
442
|
+
},
|
443
|
+
default: {
|
444
|
+
bodyMapper: Mappers.ErrorResponse
|
445
|
+
}
|
446
|
+
},
|
447
|
+
queryParameters: [
|
448
|
+
Parameters.apiVersion,
|
449
|
+
Parameters.filter,
|
450
|
+
Parameters.grainParameter
|
451
|
+
],
|
452
|
+
urlParameters: [
|
453
|
+
Parameters.$host,
|
454
|
+
Parameters.savingsPlanOrderId,
|
455
|
+
Parameters.savingsPlanId
|
456
|
+
],
|
457
|
+
headerParameters: [Parameters.accept],
|
458
|
+
serializer
|
459
|
+
};
|
460
|
+
const listByBillingAccountIdNextOperationSpec = {
|
461
|
+
path: "{nextLink}",
|
462
|
+
httpMethod: "GET",
|
463
|
+
responses: {
|
464
|
+
200: {
|
465
|
+
bodyMapper: Mappers.BenefitUtilizationSummariesListResult
|
466
|
+
},
|
467
|
+
default: {
|
468
|
+
bodyMapper: Mappers.ErrorResponse
|
469
|
+
}
|
470
|
+
},
|
471
|
+
urlParameters: [
|
472
|
+
Parameters.$host,
|
473
|
+
Parameters.nextLink,
|
474
|
+
Parameters.billingAccountId
|
475
|
+
],
|
476
|
+
headerParameters: [Parameters.accept],
|
477
|
+
serializer
|
478
|
+
};
|
479
|
+
const listByBillingProfileIdNextOperationSpec = {
|
480
|
+
path: "{nextLink}",
|
481
|
+
httpMethod: "GET",
|
482
|
+
responses: {
|
483
|
+
200: {
|
484
|
+
bodyMapper: Mappers.BenefitUtilizationSummariesListResult
|
485
|
+
},
|
486
|
+
default: {
|
487
|
+
bodyMapper: Mappers.ErrorResponse
|
488
|
+
}
|
489
|
+
},
|
490
|
+
urlParameters: [
|
491
|
+
Parameters.$host,
|
492
|
+
Parameters.nextLink,
|
493
|
+
Parameters.billingAccountId,
|
494
|
+
Parameters.billingProfileId
|
495
|
+
],
|
496
|
+
headerParameters: [Parameters.accept],
|
497
|
+
serializer
|
498
|
+
};
|
499
|
+
const listBySavingsPlanOrderNextOperationSpec = {
|
500
|
+
path: "{nextLink}",
|
501
|
+
httpMethod: "GET",
|
502
|
+
responses: {
|
503
|
+
200: {
|
504
|
+
bodyMapper: Mappers.BenefitUtilizationSummariesListResult
|
505
|
+
},
|
506
|
+
default: {
|
507
|
+
bodyMapper: Mappers.ErrorResponse
|
508
|
+
}
|
509
|
+
},
|
510
|
+
urlParameters: [
|
511
|
+
Parameters.$host,
|
512
|
+
Parameters.nextLink,
|
513
|
+
Parameters.savingsPlanOrderId
|
514
|
+
],
|
515
|
+
headerParameters: [Parameters.accept],
|
516
|
+
serializer
|
517
|
+
};
|
518
|
+
const listBySavingsPlanIdNextOperationSpec = {
|
519
|
+
path: "{nextLink}",
|
520
|
+
httpMethod: "GET",
|
521
|
+
responses: {
|
522
|
+
200: {
|
523
|
+
bodyMapper: Mappers.BenefitUtilizationSummariesListResult
|
524
|
+
},
|
525
|
+
default: {
|
526
|
+
bodyMapper: Mappers.ErrorResponse
|
527
|
+
}
|
528
|
+
},
|
529
|
+
urlParameters: [
|
530
|
+
Parameters.$host,
|
531
|
+
Parameters.nextLink,
|
532
|
+
Parameters.savingsPlanOrderId,
|
533
|
+
Parameters.savingsPlanId
|
534
|
+
],
|
535
|
+
headerParameters: [Parameters.accept],
|
536
|
+
serializer
|
537
|
+
};
|
538
|
+
//# sourceMappingURL=benefitUtilizationSummaries.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"benefitUtilizationSummaries.js","sourceRoot":"","sources":["../../../src/operations/benefitUtilizationSummaries.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAsBnD,4CAA4C;AAC5C,+DAA+D;AAC/D,MAAM,OAAO,+BAA+B;IAI1C;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,sBAAsB,CAC3B,gBAAwB,EACxB,OAAyE;QAEzE,MAAM,IAAI,GAAG,IAAI,CAAC,+BAA+B,CAC/C,gBAAgB,EAChB,OAAO,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;oBACzB,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;iBACpE;gBACD,OAAO,IAAI,CAAC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EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,uCAAuC,GAA6B;IACxE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qCAAqC;SAC1D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qCAAqC;SAC1D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
@@ -0,0 +1,78 @@
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
2
|
+
import { Dimensions } from "../operationsInterfaces";
|
3
|
+
import { CostManagementClient } from "../costManagementClient";
|
4
|
+
import { Dimension, DimensionsListOptionalParams, ExternalCloudProviderType, DimensionsByExternalCloudProviderTypeOptionalParams } from "../models";
|
5
|
+
/** Class containing Dimensions operations. */
|
6
|
+
export declare class DimensionsImpl implements Dimensions {
|
7
|
+
private readonly client;
|
8
|
+
/**
|
9
|
+
* Initialize a new instance of the class Dimensions class.
|
10
|
+
* @param client Reference to the service client
|
11
|
+
*/
|
12
|
+
constructor(client: CostManagementClient);
|
13
|
+
/**
|
14
|
+
* Lists the dimensions by the defined scope.
|
15
|
+
* @param scope The scope associated with dimension operations. This includes
|
16
|
+
* '/subscriptions/{subscriptionId}/' for subscription scope,
|
17
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
|
18
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,
|
19
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for
|
20
|
+
* Department scope,
|
21
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
22
|
+
* for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}'
|
23
|
+
* for Management Group scope,
|
24
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
25
|
+
* for billingProfile scope,
|
26
|
+
* 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
|
27
|
+
* for invoiceSection scope, and
|
28
|
+
* 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for
|
29
|
+
* partners.
|
30
|
+
* @param options The options parameters.
|
31
|
+
*/
|
32
|
+
list(scope: string, options?: DimensionsListOptionalParams): PagedAsyncIterableIterator<Dimension>;
|
33
|
+
private listPagingPage;
|
34
|
+
private listPagingAll;
|
35
|
+
/**
|
36
|
+
* Lists the dimensions by the external cloud provider type.
|
37
|
+
* @param externalCloudProviderType The external cloud provider type associated with dimension/query
|
38
|
+
* operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts'
|
39
|
+
* for consolidated account.
|
40
|
+
* @param externalCloudProviderId This can be '{externalSubscriptionId}' for linked account or
|
41
|
+
* '{externalBillingAccountId}' for consolidated account used with dimension/query operations.
|
42
|
+
* @param options The options parameters.
|
43
|
+
*/
|
44
|
+
listByExternalCloudProviderType(externalCloudProviderType: ExternalCloudProviderType, externalCloudProviderId: string, options?: DimensionsByExternalCloudProviderTypeOptionalParams): PagedAsyncIterableIterator<Dimension>;
|
45
|
+
private byExternalCloudProviderTypePagingPage;
|
46
|
+
private byExternalCloudProviderTypePagingAll;
|
47
|
+
/**
|
48
|
+
* Lists the dimensions by the defined scope.
|
49
|
+
* @param scope The scope associated with dimension operations. This includes
|
50
|
+
* '/subscriptions/{subscriptionId}/' for subscription scope,
|
51
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
|
52
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,
|
53
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for
|
54
|
+
* Department scope,
|
55
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
56
|
+
* for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}'
|
57
|
+
* for Management Group scope,
|
58
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
59
|
+
* for billingProfile scope,
|
60
|
+
* 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
|
61
|
+
* for invoiceSection scope, and
|
62
|
+
* 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for
|
63
|
+
* partners.
|
64
|
+
* @param options The options parameters.
|
65
|
+
*/
|
66
|
+
private _list;
|
67
|
+
/**
|
68
|
+
* Lists the dimensions by the external cloud provider type.
|
69
|
+
* @param externalCloudProviderType The external cloud provider type associated with dimension/query
|
70
|
+
* operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts'
|
71
|
+
* for consolidated account.
|
72
|
+
* @param externalCloudProviderId This can be '{externalSubscriptionId}' for linked account or
|
73
|
+
* '{externalBillingAccountId}' for consolidated account used with dimension/query operations.
|
74
|
+
* @param options The options parameters.
|
75
|
+
*/
|
76
|
+
private _byExternalCloudProviderType;
|
77
|
+
}
|
78
|
+
//# sourceMappingURL=dimensions.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dimensions.d.ts","sourceRoot":"","sources":["../../../src/operations/dimensions.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACL,SAAS,EACT,4BAA4B,EAE5B,yBAAyB,EACzB,mDAAmD,EAEpD,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuB;IAE9C;;;OAGG;gBACS,MAAM,EAAE,oBAAoB;IAIxC;;;;;;;;;;;;;;;;;;OAkBG;IACI,IAAI,CACT,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAkBzB,cAAc;YAUd,aAAa;IAS5B;;;;;;;;OAQG;IACI,+BAA+B,CACpC,yBAAyB,EAAE,yBAAyB,EACpD,uBAAuB,EAAE,MAAM,EAC/B,OAAO,CAAC,EAAE,mDAAmD,GAC5D,0BAA0B,CAAC,SAAS,CAAC;YA2BzB,qCAAqC;YAerC,oCAAoC;IAcnD;;;;;;;;;;;;;;;;;;OAkBG;IACH,OAAO,CAAC,KAAK;IAUb;;;;;;;;OAQG;IACH,OAAO,CAAC,4BAA4B;CAUrC"}
|