@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,138 @@
|
|
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 Operations operations. */
|
15
|
+
export class OperationsImpl {
|
16
|
+
/**
|
17
|
+
* Initialize a new instance of the class Operations class.
|
18
|
+
* @param client Reference to the service client
|
19
|
+
*/
|
20
|
+
constructor(client) {
|
21
|
+
this.client = client;
|
22
|
+
}
|
23
|
+
/**
|
24
|
+
* Lists all of the available cost management REST API operations.
|
25
|
+
* @param options The options parameters.
|
26
|
+
*/
|
27
|
+
list(options) {
|
28
|
+
const iter = this.listPagingAll(options);
|
29
|
+
return {
|
30
|
+
next() {
|
31
|
+
return iter.next();
|
32
|
+
},
|
33
|
+
[Symbol.asyncIterator]() {
|
34
|
+
return this;
|
35
|
+
},
|
36
|
+
byPage: (settings) => {
|
37
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
38
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
39
|
+
}
|
40
|
+
return this.listPagingPage(options, settings);
|
41
|
+
}
|
42
|
+
};
|
43
|
+
}
|
44
|
+
listPagingPage(options, settings) {
|
45
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
46
|
+
let result;
|
47
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
48
|
+
if (!continuationToken) {
|
49
|
+
result = yield __await(this._list(options));
|
50
|
+
let page = result.value || [];
|
51
|
+
continuationToken = result.nextLink;
|
52
|
+
setContinuationToken(page, continuationToken);
|
53
|
+
yield yield __await(page);
|
54
|
+
}
|
55
|
+
while (continuationToken) {
|
56
|
+
result = yield __await(this._listNext(continuationToken, options));
|
57
|
+
continuationToken = result.nextLink;
|
58
|
+
let page = result.value || [];
|
59
|
+
setContinuationToken(page, continuationToken);
|
60
|
+
yield yield __await(page);
|
61
|
+
}
|
62
|
+
});
|
63
|
+
}
|
64
|
+
listPagingAll(options) {
|
65
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
66
|
+
var _a, e_1, _b, _c;
|
67
|
+
try {
|
68
|
+
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
69
|
+
_c = _f.value;
|
70
|
+
_d = false;
|
71
|
+
try {
|
72
|
+
const page = _c;
|
73
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
74
|
+
}
|
75
|
+
finally {
|
76
|
+
_d = true;
|
77
|
+
}
|
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 __await(_b.call(_e));
|
84
|
+
}
|
85
|
+
finally { if (e_1) throw e_1.error; }
|
86
|
+
}
|
87
|
+
});
|
88
|
+
}
|
89
|
+
/**
|
90
|
+
* Lists all of the available cost management REST API operations.
|
91
|
+
* @param options The options parameters.
|
92
|
+
*/
|
93
|
+
_list(options) {
|
94
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
95
|
+
}
|
96
|
+
/**
|
97
|
+
* ListNext
|
98
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
99
|
+
* @param options The options parameters.
|
100
|
+
*/
|
101
|
+
_listNext(nextLink, options) {
|
102
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
103
|
+
}
|
104
|
+
}
|
105
|
+
// Operation Specifications
|
106
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
107
|
+
const listOperationSpec = {
|
108
|
+
path: "/providers/Microsoft.CostManagement/operations",
|
109
|
+
httpMethod: "GET",
|
110
|
+
responses: {
|
111
|
+
200: {
|
112
|
+
bodyMapper: Mappers.OperationListResult
|
113
|
+
},
|
114
|
+
default: {
|
115
|
+
bodyMapper: Mappers.ErrorResponse
|
116
|
+
}
|
117
|
+
},
|
118
|
+
queryParameters: [Parameters.apiVersion],
|
119
|
+
urlParameters: [Parameters.$host],
|
120
|
+
headerParameters: [Parameters.accept],
|
121
|
+
serializer
|
122
|
+
};
|
123
|
+
const listNextOperationSpec = {
|
124
|
+
path: "{nextLink}",
|
125
|
+
httpMethod: "GET",
|
126
|
+
responses: {
|
127
|
+
200: {
|
128
|
+
bodyMapper: Mappers.OperationListResult
|
129
|
+
},
|
130
|
+
default: {
|
131
|
+
bodyMapper: Mappers.ErrorResponse
|
132
|
+
}
|
133
|
+
},
|
134
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
135
|
+
headerParameters: [Parameters.accept],
|
136
|
+
serializer
|
137
|
+
};
|
138
|
+
//# sourceMappingURL=operations.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.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;AAUnD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,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,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC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AAiB,CAAC,CAAC;IAC1E,CAAC;IAED;;;;OAIG;IACK,SAAS,CACf,QAAgB,EAChB,OAA0C;QAE1C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,OAAO,EAAE,EACrB,qBAAqB,CACtB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,gDAAgD;IACtD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,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,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
import { PriceSheet } from "../operationsInterfaces";
|
2
|
+
import { CostManagementClient } from "../costManagementClient";
|
3
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
4
|
+
import { PriceSheetDownloadOptionalParams, PriceSheetDownloadResponse, PriceSheetDownloadByBillingProfileOptionalParams, PriceSheetDownloadByBillingProfileResponse } from "../models";
|
5
|
+
/** Class containing PriceSheet operations. */
|
6
|
+
export declare class PriceSheetImpl implements PriceSheet {
|
7
|
+
private readonly client;
|
8
|
+
/**
|
9
|
+
* Initialize a new instance of the class PriceSheet class.
|
10
|
+
* @param client Reference to the service client
|
11
|
+
*/
|
12
|
+
constructor(client: CostManagementClient);
|
13
|
+
/**
|
14
|
+
* Gets a URL to download the pricesheet for an invoice. The operation is supported for billing
|
15
|
+
* accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
|
16
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
17
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
18
|
+
* @param invoiceName The ID that uniquely identifies an invoice.
|
19
|
+
* @param options The options parameters.
|
20
|
+
*/
|
21
|
+
beginDownload(billingAccountName: string, billingProfileName: string, invoiceName: string, options?: PriceSheetDownloadOptionalParams): Promise<SimplePollerLike<OperationState<PriceSheetDownloadResponse>, PriceSheetDownloadResponse>>;
|
22
|
+
/**
|
23
|
+
* Gets a URL to download the pricesheet for an invoice. The operation is supported for billing
|
24
|
+
* accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
|
25
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
26
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
27
|
+
* @param invoiceName The ID that uniquely identifies an invoice.
|
28
|
+
* @param options The options parameters.
|
29
|
+
*/
|
30
|
+
beginDownloadAndWait(billingAccountName: string, billingProfileName: string, invoiceName: string, options?: PriceSheetDownloadOptionalParams): Promise<PriceSheetDownloadResponse>;
|
31
|
+
/**
|
32
|
+
* Gets a URL to download the current month's pricesheet for a billing profile. The operation is
|
33
|
+
* supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer
|
34
|
+
* Agreement.Due to Azure product growth, the Azure price sheet download experience in this preview
|
35
|
+
* version will be updated from a single csv file to a Zip file containing multiple csv files, each
|
36
|
+
* with max 200k records.
|
37
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
38
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
39
|
+
* @param options The options parameters.
|
40
|
+
*/
|
41
|
+
beginDownloadByBillingProfile(billingAccountName: string, billingProfileName: string, options?: PriceSheetDownloadByBillingProfileOptionalParams): Promise<SimplePollerLike<OperationState<PriceSheetDownloadByBillingProfileResponse>, PriceSheetDownloadByBillingProfileResponse>>;
|
42
|
+
/**
|
43
|
+
* Gets a URL to download the current month's pricesheet for a billing profile. The operation is
|
44
|
+
* supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer
|
45
|
+
* Agreement.Due to Azure product growth, the Azure price sheet download experience in this preview
|
46
|
+
* version will be updated from a single csv file to a Zip file containing multiple csv files, each
|
47
|
+
* with max 200k records.
|
48
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
49
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
50
|
+
* @param options The options parameters.
|
51
|
+
*/
|
52
|
+
beginDownloadByBillingProfileAndWait(billingAccountName: string, billingProfileName: string, options?: PriceSheetDownloadByBillingProfileOptionalParams): Promise<PriceSheetDownloadByBillingProfileResponse>;
|
53
|
+
}
|
54
|
+
//# sourceMappingURL=priceSheet.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"priceSheet.d.ts","sourceRoot":"","sources":["../../../src/operations/priceSheet.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,gCAAgC,EAChC,0BAA0B,EAC1B,gDAAgD,EAChD,0CAA0C,EAC3C,MAAM,WAAW,CAAC;AAEnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuB;IAE9C;;;OAGG;gBACS,MAAM,EAAE,oBAAoB;IAIxC;;;;;;;OAOG;IACG,aAAa,CACjB,kBAAkB,EAAE,MAAM,EAC1B,kBAAkB,EAAE,MAAM,EAC1B,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,0BAA0B,CAAC,EAC1C,0BAA0B,CAC3B,CACF;IAyDD;;;;;;;OAOG;IACG,oBAAoB,CACxB,kBAAkB,EAAE,MAAM,EAC1B,kBAAkB,EAAE,MAAM,EAC1B,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC;IAUtC;;;;;;;;;OASG;IACG,6BAA6B,CACjC,kBAAkB,EAAE,MAAM,EAC1B,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,gDAAgD,GACzD,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,0CAA0C,CAAC,EAC1D,0CAA0C,CAC3C,CACF;IAyDD;;;;;;;;;OASG;IACG,oCAAoC,CACxC,kBAAkB,EAAE,MAAM,EAC1B,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,gDAAgD,GACzD,OAAO,CAAC,0CAA0C,CAAC;CAQvD"}
|
@@ -0,0 +1,209 @@
|
|
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 { __awaiter } from "tslib";
|
9
|
+
import * as coreClient from "@azure/core-client";
|
10
|
+
import * as Mappers from "../models/mappers";
|
11
|
+
import * as Parameters from "../models/parameters";
|
12
|
+
import { createHttpPoller } from "@azure/core-lro";
|
13
|
+
import { createLroSpec } from "../lroImpl";
|
14
|
+
/** Class containing PriceSheet operations. */
|
15
|
+
export class PriceSheetImpl {
|
16
|
+
/**
|
17
|
+
* Initialize a new instance of the class PriceSheet class.
|
18
|
+
* @param client Reference to the service client
|
19
|
+
*/
|
20
|
+
constructor(client) {
|
21
|
+
this.client = client;
|
22
|
+
}
|
23
|
+
/**
|
24
|
+
* Gets a URL to download the pricesheet for an invoice. The operation is supported for billing
|
25
|
+
* accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
|
26
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
27
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
28
|
+
* @param invoiceName The ID that uniquely identifies an invoice.
|
29
|
+
* @param options The options parameters.
|
30
|
+
*/
|
31
|
+
beginDownload(billingAccountName, billingProfileName, invoiceName, options) {
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
33
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
34
|
+
return this.client.sendOperationRequest(args, spec);
|
35
|
+
});
|
36
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
37
|
+
var _a;
|
38
|
+
let currentRawResponse = undefined;
|
39
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
40
|
+
const callback = (rawResponse, flatResponse) => {
|
41
|
+
currentRawResponse = rawResponse;
|
42
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
43
|
+
};
|
44
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
45
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
46
|
+
return {
|
47
|
+
flatResponse,
|
48
|
+
rawResponse: {
|
49
|
+
statusCode: currentRawResponse.status,
|
50
|
+
body: currentRawResponse.parsedBody,
|
51
|
+
headers: currentRawResponse.headers.toJSON()
|
52
|
+
}
|
53
|
+
};
|
54
|
+
});
|
55
|
+
const lro = createLroSpec({
|
56
|
+
sendOperationFn,
|
57
|
+
args: { billingAccountName, billingProfileName, invoiceName, options },
|
58
|
+
spec: downloadOperationSpec
|
59
|
+
});
|
60
|
+
const poller = yield createHttpPoller(lro, {
|
61
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
62
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
63
|
+
resourceLocationConfig: "location"
|
64
|
+
});
|
65
|
+
yield poller.poll();
|
66
|
+
return poller;
|
67
|
+
});
|
68
|
+
}
|
69
|
+
/**
|
70
|
+
* Gets a URL to download the pricesheet for an invoice. The operation is supported for billing
|
71
|
+
* accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
|
72
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
73
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
74
|
+
* @param invoiceName The ID that uniquely identifies an invoice.
|
75
|
+
* @param options The options parameters.
|
76
|
+
*/
|
77
|
+
beginDownloadAndWait(billingAccountName, billingProfileName, invoiceName, options) {
|
78
|
+
return __awaiter(this, void 0, void 0, function* () {
|
79
|
+
const poller = yield this.beginDownload(billingAccountName, billingProfileName, invoiceName, options);
|
80
|
+
return poller.pollUntilDone();
|
81
|
+
});
|
82
|
+
}
|
83
|
+
/**
|
84
|
+
* Gets a URL to download the current month's pricesheet for a billing profile. The operation is
|
85
|
+
* supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer
|
86
|
+
* Agreement.Due to Azure product growth, the Azure price sheet download experience in this preview
|
87
|
+
* version will be updated from a single csv file to a Zip file containing multiple csv files, each
|
88
|
+
* with max 200k records.
|
89
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
90
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
91
|
+
* @param options The options parameters.
|
92
|
+
*/
|
93
|
+
beginDownloadByBillingProfile(billingAccountName, billingProfileName, options) {
|
94
|
+
return __awaiter(this, void 0, void 0, function* () {
|
95
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
96
|
+
return this.client.sendOperationRequest(args, spec);
|
97
|
+
});
|
98
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
99
|
+
var _a;
|
100
|
+
let currentRawResponse = undefined;
|
101
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
102
|
+
const callback = (rawResponse, flatResponse) => {
|
103
|
+
currentRawResponse = rawResponse;
|
104
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
105
|
+
};
|
106
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
107
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
108
|
+
return {
|
109
|
+
flatResponse,
|
110
|
+
rawResponse: {
|
111
|
+
statusCode: currentRawResponse.status,
|
112
|
+
body: currentRawResponse.parsedBody,
|
113
|
+
headers: currentRawResponse.headers.toJSON()
|
114
|
+
}
|
115
|
+
};
|
116
|
+
});
|
117
|
+
const lro = createLroSpec({
|
118
|
+
sendOperationFn,
|
119
|
+
args: { billingAccountName, billingProfileName, options },
|
120
|
+
spec: downloadByBillingProfileOperationSpec
|
121
|
+
});
|
122
|
+
const poller = yield createHttpPoller(lro, {
|
123
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
124
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
125
|
+
resourceLocationConfig: "location"
|
126
|
+
});
|
127
|
+
yield poller.poll();
|
128
|
+
return poller;
|
129
|
+
});
|
130
|
+
}
|
131
|
+
/**
|
132
|
+
* Gets a URL to download the current month's pricesheet for a billing profile. The operation is
|
133
|
+
* supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer
|
134
|
+
* Agreement.Due to Azure product growth, the Azure price sheet download experience in this preview
|
135
|
+
* version will be updated from a single csv file to a Zip file containing multiple csv files, each
|
136
|
+
* with max 200k records.
|
137
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
138
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
139
|
+
* @param options The options parameters.
|
140
|
+
*/
|
141
|
+
beginDownloadByBillingProfileAndWait(billingAccountName, billingProfileName, options) {
|
142
|
+
return __awaiter(this, void 0, void 0, function* () {
|
143
|
+
const poller = yield this.beginDownloadByBillingProfile(billingAccountName, billingProfileName, options);
|
144
|
+
return poller.pollUntilDone();
|
145
|
+
});
|
146
|
+
}
|
147
|
+
}
|
148
|
+
// Operation Specifications
|
149
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
150
|
+
const downloadOperationSpec = {
|
151
|
+
path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices/{invoiceName}/providers/Microsoft.CostManagement/pricesheets/default/download",
|
152
|
+
httpMethod: "POST",
|
153
|
+
responses: {
|
154
|
+
200: {
|
155
|
+
bodyMapper: Mappers.DownloadURL
|
156
|
+
},
|
157
|
+
201: {
|
158
|
+
bodyMapper: Mappers.DownloadURL
|
159
|
+
},
|
160
|
+
202: {
|
161
|
+
bodyMapper: Mappers.DownloadURL
|
162
|
+
},
|
163
|
+
204: {
|
164
|
+
bodyMapper: Mappers.DownloadURL
|
165
|
+
},
|
166
|
+
default: {
|
167
|
+
bodyMapper: Mappers.ErrorResponse
|
168
|
+
}
|
169
|
+
},
|
170
|
+
queryParameters: [Parameters.apiVersion],
|
171
|
+
urlParameters: [
|
172
|
+
Parameters.$host,
|
173
|
+
Parameters.billingAccountName,
|
174
|
+
Parameters.billingProfileName,
|
175
|
+
Parameters.invoiceName
|
176
|
+
],
|
177
|
+
headerParameters: [Parameters.accept],
|
178
|
+
serializer
|
179
|
+
};
|
180
|
+
const downloadByBillingProfileOperationSpec = {
|
181
|
+
path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.CostManagement/pricesheets/default/download",
|
182
|
+
httpMethod: "POST",
|
183
|
+
responses: {
|
184
|
+
200: {
|
185
|
+
bodyMapper: Mappers.DownloadURL
|
186
|
+
},
|
187
|
+
201: {
|
188
|
+
bodyMapper: Mappers.DownloadURL
|
189
|
+
},
|
190
|
+
202: {
|
191
|
+
bodyMapper: Mappers.DownloadURL
|
192
|
+
},
|
193
|
+
204: {
|
194
|
+
bodyMapper: Mappers.DownloadURL
|
195
|
+
},
|
196
|
+
default: {
|
197
|
+
bodyMapper: Mappers.ErrorResponse
|
198
|
+
}
|
199
|
+
},
|
200
|
+
queryParameters: [Parameters.apiVersion],
|
201
|
+
urlParameters: [
|
202
|
+
Parameters.$host,
|
203
|
+
Parameters.billingAccountName,
|
204
|
+
Parameters.billingProfileName
|
205
|
+
],
|
206
|
+
headerParameters: [Parameters.accept],
|
207
|
+
serializer
|
208
|
+
};
|
209
|
+
//# sourceMappingURL=priceSheet.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"priceSheet.js","sourceRoot":"","sources":["../../../src/operations/priceSheet.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAGL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAQ3C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACG,aAAa,CACjB,kBAA0B,EAC1B,kBAA0B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EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qCAAqC,GAA6B;IACtE,IAAI,EACF,wKAAwK;IAC1K,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import { Query } from "../operationsInterfaces";
|
2
|
+
import { CostManagementClient } from "../costManagementClient";
|
3
|
+
import { QueryDefinition, QueryUsageOptionalParams, QueryUsageResponse, ExternalCloudProviderType, QueryUsageByExternalCloudProviderTypeOptionalParams, QueryUsageByExternalCloudProviderTypeResponse } from "../models";
|
4
|
+
/** Class containing Query operations. */
|
5
|
+
export declare class QueryImpl implements Query {
|
6
|
+
private readonly client;
|
7
|
+
/**
|
8
|
+
* Initialize a new instance of the class Query class.
|
9
|
+
* @param client Reference to the service client
|
10
|
+
*/
|
11
|
+
constructor(client: CostManagementClient);
|
12
|
+
/**
|
13
|
+
* Query the usage data for scope defined.
|
14
|
+
* @param scope The scope associated with query and export operations. This includes
|
15
|
+
* '/subscriptions/{subscriptionId}/' for subscription scope,
|
16
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
|
17
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and
|
18
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for
|
19
|
+
* Department scope,
|
20
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
21
|
+
* for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}
|
22
|
+
* for Management Group scope,
|
23
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
24
|
+
* for billingProfile scope,
|
25
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
|
26
|
+
* for invoiceSection scope, and
|
27
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific
|
28
|
+
* for partners.
|
29
|
+
* @param parameters Parameters supplied to the CreateOrUpdate Query Config operation.
|
30
|
+
* @param options The options parameters.
|
31
|
+
*/
|
32
|
+
usage(scope: string, parameters: QueryDefinition, options?: QueryUsageOptionalParams): Promise<QueryUsageResponse>;
|
33
|
+
/**
|
34
|
+
* Query the usage data for external cloud provider type defined.
|
35
|
+
* @param externalCloudProviderType The external cloud provider type associated with dimension/query
|
36
|
+
* operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts'
|
37
|
+
* for consolidated account.
|
38
|
+
* @param externalCloudProviderId This can be '{externalSubscriptionId}' for linked account or
|
39
|
+
* '{externalBillingAccountId}' for consolidated account used with dimension/query operations.
|
40
|
+
* @param parameters Parameters supplied to the CreateOrUpdate Query Config operation.
|
41
|
+
* @param options The options parameters.
|
42
|
+
*/
|
43
|
+
usageByExternalCloudProviderType(externalCloudProviderType: ExternalCloudProviderType, externalCloudProviderId: string, parameters: QueryDefinition, options?: QueryUsageByExternalCloudProviderTypeOptionalParams): Promise<QueryUsageByExternalCloudProviderTypeResponse>;
|
44
|
+
}
|
45
|
+
//# sourceMappingURL=query.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/operations/query.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAIhD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,kBAAkB,EAClB,yBAAyB,EACzB,mDAAmD,EACnD,6CAA6C,EAC9C,MAAM,WAAW,CAAC;AAEnB,yCAAyC;AACzC,qBAAa,SAAU,YAAW,KAAK;IACrC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuB;IAE9C;;;OAGG;gBACS,MAAM,EAAE,oBAAoB;IAIxC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CACH,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,eAAe,EAC3B,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,kBAAkB,CAAC;IAO9B;;;;;;;;;OASG;IACH,gCAAgC,CAC9B,yBAAyB,EAAE,yBAAyB,EACpD,uBAAuB,EAAE,MAAM,EAC/B,UAAU,EAAE,eAAe,EAC3B,OAAO,CAAC,EAAE,mDAAmD,GAC5D,OAAO,CAAC,6CAA6C,CAAC;CAW1D"}
|
@@ -0,0 +1,105 @@
|
|
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 * as coreClient from "@azure/core-client";
|
9
|
+
import * as Mappers from "../models/mappers";
|
10
|
+
import * as Parameters from "../models/parameters";
|
11
|
+
/** Class containing Query operations. */
|
12
|
+
export class QueryImpl {
|
13
|
+
/**
|
14
|
+
* Initialize a new instance of the class Query class.
|
15
|
+
* @param client Reference to the service client
|
16
|
+
*/
|
17
|
+
constructor(client) {
|
18
|
+
this.client = client;
|
19
|
+
}
|
20
|
+
/**
|
21
|
+
* Query the usage data for scope defined.
|
22
|
+
* @param scope The scope associated with query and export operations. This includes
|
23
|
+
* '/subscriptions/{subscriptionId}/' for subscription scope,
|
24
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
|
25
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and
|
26
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for
|
27
|
+
* Department scope,
|
28
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
29
|
+
* for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}
|
30
|
+
* for Management Group scope,
|
31
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
32
|
+
* for billingProfile scope,
|
33
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
|
34
|
+
* for invoiceSection scope, and
|
35
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific
|
36
|
+
* for partners.
|
37
|
+
* @param parameters Parameters supplied to the CreateOrUpdate Query Config operation.
|
38
|
+
* @param options The options parameters.
|
39
|
+
*/
|
40
|
+
usage(scope, parameters, options) {
|
41
|
+
return this.client.sendOperationRequest({ scope, parameters, options }, usageOperationSpec);
|
42
|
+
}
|
43
|
+
/**
|
44
|
+
* Query the usage data for external cloud provider type defined.
|
45
|
+
* @param externalCloudProviderType The external cloud provider type associated with dimension/query
|
46
|
+
* operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts'
|
47
|
+
* for consolidated account.
|
48
|
+
* @param externalCloudProviderId This can be '{externalSubscriptionId}' for linked account or
|
49
|
+
* '{externalBillingAccountId}' for consolidated account used with dimension/query operations.
|
50
|
+
* @param parameters Parameters supplied to the CreateOrUpdate Query Config operation.
|
51
|
+
* @param options The options parameters.
|
52
|
+
*/
|
53
|
+
usageByExternalCloudProviderType(externalCloudProviderType, externalCloudProviderId, parameters, options) {
|
54
|
+
return this.client.sendOperationRequest({
|
55
|
+
externalCloudProviderType,
|
56
|
+
externalCloudProviderId,
|
57
|
+
parameters,
|
58
|
+
options
|
59
|
+
}, usageByExternalCloudProviderTypeOperationSpec);
|
60
|
+
}
|
61
|
+
}
|
62
|
+
// Operation Specifications
|
63
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
64
|
+
const usageOperationSpec = {
|
65
|
+
path: "/{scope}/providers/Microsoft.CostManagement/query",
|
66
|
+
httpMethod: "POST",
|
67
|
+
responses: {
|
68
|
+
200: {
|
69
|
+
bodyMapper: Mappers.QueryResult
|
70
|
+
},
|
71
|
+
204: {},
|
72
|
+
default: {
|
73
|
+
bodyMapper: Mappers.ErrorResponse
|
74
|
+
}
|
75
|
+
},
|
76
|
+
requestBody: Parameters.parameters3,
|
77
|
+
queryParameters: [Parameters.apiVersion],
|
78
|
+
urlParameters: [Parameters.$host, Parameters.scope1],
|
79
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
80
|
+
mediaType: "json",
|
81
|
+
serializer
|
82
|
+
};
|
83
|
+
const usageByExternalCloudProviderTypeOperationSpec = {
|
84
|
+
path: "/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/query",
|
85
|
+
httpMethod: "POST",
|
86
|
+
responses: {
|
87
|
+
200: {
|
88
|
+
bodyMapper: Mappers.QueryResult
|
89
|
+
},
|
90
|
+
default: {
|
91
|
+
bodyMapper: Mappers.ErrorResponse
|
92
|
+
}
|
93
|
+
},
|
94
|
+
requestBody: Parameters.parameters3,
|
95
|
+
queryParameters: [Parameters.apiVersion],
|
96
|
+
urlParameters: [
|
97
|
+
Parameters.$host,
|
98
|
+
Parameters.externalCloudProviderType,
|
99
|
+
Parameters.externalCloudProviderId
|
100
|
+
],
|
101
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
102
|
+
mediaType: "json",
|
103
|
+
serializer
|
104
|
+
};
|
105
|
+
//# sourceMappingURL=query.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/operations/query.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAWnD,yCAAyC;AACzC,MAAM,OAAO,SAAS;IAGpB;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CACH,KAAa,EACb,UAA2B,EAC3B,OAAkC;QAElC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,KAAK,EAAE,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