@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,234 @@
|
|
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 * as coreClient from "@azure/core-client";
|
10
|
+
import * as Mappers from "../models/mappers";
|
11
|
+
import * as Parameters from "../models/parameters";
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
13
|
+
/** Class containing Dimensions operations. */
|
14
|
+
export class DimensionsImpl {
|
15
|
+
/**
|
16
|
+
* Initialize a new instance of the class Dimensions class.
|
17
|
+
* @param client Reference to the service client
|
18
|
+
*/
|
19
|
+
constructor(client) {
|
20
|
+
this.client = client;
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* Lists the dimensions by the defined scope.
|
24
|
+
* @param scope The scope associated with dimension operations. This includes
|
25
|
+
* '/subscriptions/{subscriptionId}/' for subscription scope,
|
26
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
|
27
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,
|
28
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for
|
29
|
+
* Department scope,
|
30
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
31
|
+
* for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}'
|
32
|
+
* for Management Group scope,
|
33
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
34
|
+
* for billingProfile scope,
|
35
|
+
* 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
|
36
|
+
* for invoiceSection scope, and
|
37
|
+
* 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for
|
38
|
+
* partners.
|
39
|
+
* @param options The options parameters.
|
40
|
+
*/
|
41
|
+
list(scope, options) {
|
42
|
+
const iter = this.listPagingAll(scope, options);
|
43
|
+
return {
|
44
|
+
next() {
|
45
|
+
return iter.next();
|
46
|
+
},
|
47
|
+
[Symbol.asyncIterator]() {
|
48
|
+
return this;
|
49
|
+
},
|
50
|
+
byPage: (settings) => {
|
51
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
52
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
53
|
+
}
|
54
|
+
return this.listPagingPage(scope, options, settings);
|
55
|
+
}
|
56
|
+
};
|
57
|
+
}
|
58
|
+
listPagingPage(scope, options, _settings) {
|
59
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
60
|
+
let result;
|
61
|
+
result = yield __await(this._list(scope, options));
|
62
|
+
yield yield __await(result.value || []);
|
63
|
+
});
|
64
|
+
}
|
65
|
+
listPagingAll(scope, options) {
|
66
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
67
|
+
var _a, e_1, _b, _c;
|
68
|
+
try {
|
69
|
+
for (var _d = true, _e = __asyncValues(this.listPagingPage(scope, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
70
|
+
_c = _f.value;
|
71
|
+
_d = false;
|
72
|
+
try {
|
73
|
+
const page = _c;
|
74
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
75
|
+
}
|
76
|
+
finally {
|
77
|
+
_d = true;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
82
|
+
finally {
|
83
|
+
try {
|
84
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
85
|
+
}
|
86
|
+
finally { if (e_1) throw e_1.error; }
|
87
|
+
}
|
88
|
+
});
|
89
|
+
}
|
90
|
+
/**
|
91
|
+
* Lists the dimensions by the external cloud provider type.
|
92
|
+
* @param externalCloudProviderType The external cloud provider type associated with dimension/query
|
93
|
+
* operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts'
|
94
|
+
* for consolidated account.
|
95
|
+
* @param externalCloudProviderId This can be '{externalSubscriptionId}' for linked account or
|
96
|
+
* '{externalBillingAccountId}' for consolidated account used with dimension/query operations.
|
97
|
+
* @param options The options parameters.
|
98
|
+
*/
|
99
|
+
listByExternalCloudProviderType(externalCloudProviderType, externalCloudProviderId, options) {
|
100
|
+
const iter = this.byExternalCloudProviderTypePagingAll(externalCloudProviderType, externalCloudProviderId, options);
|
101
|
+
return {
|
102
|
+
next() {
|
103
|
+
return iter.next();
|
104
|
+
},
|
105
|
+
[Symbol.asyncIterator]() {
|
106
|
+
return this;
|
107
|
+
},
|
108
|
+
byPage: (settings) => {
|
109
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
110
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
111
|
+
}
|
112
|
+
return this.byExternalCloudProviderTypePagingPage(externalCloudProviderType, externalCloudProviderId, options, settings);
|
113
|
+
}
|
114
|
+
};
|
115
|
+
}
|
116
|
+
byExternalCloudProviderTypePagingPage(externalCloudProviderType, externalCloudProviderId, options, _settings) {
|
117
|
+
return __asyncGenerator(this, arguments, function* byExternalCloudProviderTypePagingPage_1() {
|
118
|
+
let result;
|
119
|
+
result = yield __await(this._byExternalCloudProviderType(externalCloudProviderType, externalCloudProviderId, options));
|
120
|
+
yield yield __await(result.value || []);
|
121
|
+
});
|
122
|
+
}
|
123
|
+
byExternalCloudProviderTypePagingAll(externalCloudProviderType, externalCloudProviderId, options) {
|
124
|
+
return __asyncGenerator(this, arguments, function* byExternalCloudProviderTypePagingAll_1() {
|
125
|
+
var _a, e_2, _b, _c;
|
126
|
+
try {
|
127
|
+
for (var _d = true, _e = __asyncValues(this.byExternalCloudProviderTypePagingPage(externalCloudProviderType, externalCloudProviderId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
|
128
|
+
_c = _f.value;
|
129
|
+
_d = false;
|
130
|
+
try {
|
131
|
+
const page = _c;
|
132
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
133
|
+
}
|
134
|
+
finally {
|
135
|
+
_d = true;
|
136
|
+
}
|
137
|
+
}
|
138
|
+
}
|
139
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
140
|
+
finally {
|
141
|
+
try {
|
142
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
143
|
+
}
|
144
|
+
finally { if (e_2) throw e_2.error; }
|
145
|
+
}
|
146
|
+
});
|
147
|
+
}
|
148
|
+
/**
|
149
|
+
* Lists the dimensions by the defined scope.
|
150
|
+
* @param scope The scope associated with dimension operations. This includes
|
151
|
+
* '/subscriptions/{subscriptionId}/' for subscription scope,
|
152
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
|
153
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,
|
154
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for
|
155
|
+
* Department scope,
|
156
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
157
|
+
* for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}'
|
158
|
+
* for Management Group scope,
|
159
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
160
|
+
* for billingProfile scope,
|
161
|
+
* 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
|
162
|
+
* for invoiceSection scope, and
|
163
|
+
* 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for
|
164
|
+
* partners.
|
165
|
+
* @param options The options parameters.
|
166
|
+
*/
|
167
|
+
_list(scope, options) {
|
168
|
+
return this.client.sendOperationRequest({ scope, options }, listOperationSpec);
|
169
|
+
}
|
170
|
+
/**
|
171
|
+
* Lists the dimensions by the external cloud provider type.
|
172
|
+
* @param externalCloudProviderType The external cloud provider type associated with dimension/query
|
173
|
+
* operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts'
|
174
|
+
* for consolidated account.
|
175
|
+
* @param externalCloudProviderId This can be '{externalSubscriptionId}' for linked account or
|
176
|
+
* '{externalBillingAccountId}' for consolidated account used with dimension/query operations.
|
177
|
+
* @param options The options parameters.
|
178
|
+
*/
|
179
|
+
_byExternalCloudProviderType(externalCloudProviderType, externalCloudProviderId, options) {
|
180
|
+
return this.client.sendOperationRequest({ externalCloudProviderType, externalCloudProviderId, options }, byExternalCloudProviderTypeOperationSpec);
|
181
|
+
}
|
182
|
+
}
|
183
|
+
// Operation Specifications
|
184
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
185
|
+
const listOperationSpec = {
|
186
|
+
path: "/{scope}/providers/Microsoft.CostManagement/dimensions",
|
187
|
+
httpMethod: "GET",
|
188
|
+
responses: {
|
189
|
+
200: {
|
190
|
+
bodyMapper: Mappers.DimensionsListResult
|
191
|
+
},
|
192
|
+
204: {},
|
193
|
+
default: {
|
194
|
+
bodyMapper: Mappers.ErrorResponse
|
195
|
+
}
|
196
|
+
},
|
197
|
+
queryParameters: [
|
198
|
+
Parameters.apiVersion,
|
199
|
+
Parameters.filter,
|
200
|
+
Parameters.expand,
|
201
|
+
Parameters.skiptoken,
|
202
|
+
Parameters.top
|
203
|
+
],
|
204
|
+
urlParameters: [Parameters.$host, Parameters.scope1],
|
205
|
+
headerParameters: [Parameters.accept],
|
206
|
+
serializer
|
207
|
+
};
|
208
|
+
const byExternalCloudProviderTypeOperationSpec = {
|
209
|
+
path: "/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/dimensions",
|
210
|
+
httpMethod: "GET",
|
211
|
+
responses: {
|
212
|
+
200: {
|
213
|
+
bodyMapper: Mappers.DimensionsListResult
|
214
|
+
},
|
215
|
+
default: {
|
216
|
+
bodyMapper: Mappers.ErrorResponse
|
217
|
+
}
|
218
|
+
},
|
219
|
+
queryParameters: [
|
220
|
+
Parameters.apiVersion,
|
221
|
+
Parameters.filter,
|
222
|
+
Parameters.expand,
|
223
|
+
Parameters.skiptoken,
|
224
|
+
Parameters.top
|
225
|
+
],
|
226
|
+
urlParameters: [
|
227
|
+
Parameters.$host,
|
228
|
+
Parameters.externalCloudProviderType,
|
229
|
+
Parameters.externalCloudProviderId
|
230
|
+
],
|
231
|
+
headerParameters: [Parameters.accept],
|
232
|
+
serializer
|
233
|
+
};
|
234
|
+
//# sourceMappingURL=dimensions.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dimensions.js","sourceRoot":"","sources":["../../../src/operations/dimensions.ts"],"names":[],"mappings":"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"}
|
@@ -0,0 +1,141 @@
|
|
1
|
+
import { Exports } from "../operationsInterfaces";
|
2
|
+
import { CostManagementClient } from "../costManagementClient";
|
3
|
+
import { ExportsListOptionalParams, ExportsListResponse, ExportsGetOptionalParams, ExportsGetResponse, Export, ExportsCreateOrUpdateOptionalParams, ExportsCreateOrUpdateResponse, ExportsDeleteOptionalParams, ExportsExecuteOptionalParams, ExportsGetExecutionHistoryOptionalParams, ExportsGetExecutionHistoryResponse } from "../models";
|
4
|
+
/** Class containing Exports operations. */
|
5
|
+
export declare class ExportsImpl implements Exports {
|
6
|
+
private readonly client;
|
7
|
+
/**
|
8
|
+
* Initialize a new instance of the class Exports class.
|
9
|
+
* @param client Reference to the service client
|
10
|
+
*/
|
11
|
+
constructor(client: CostManagementClient);
|
12
|
+
/**
|
13
|
+
* The operation to list all exports at the given scope.
|
14
|
+
* @param scope The scope associated with 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 options The options parameters.
|
30
|
+
*/
|
31
|
+
list(scope: string, options?: ExportsListOptionalParams): Promise<ExportsListResponse>;
|
32
|
+
/**
|
33
|
+
* The operation to get the export for the defined scope by export name.
|
34
|
+
* @param scope The scope associated with export operations. This includes
|
35
|
+
* '/subscriptions/{subscriptionId}/' for subscription scope,
|
36
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
|
37
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and
|
38
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for
|
39
|
+
* Department scope,
|
40
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
41
|
+
* for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}
|
42
|
+
* for Management Group scope,
|
43
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
44
|
+
* for billingProfile scope,
|
45
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
|
46
|
+
* for invoiceSection scope, and
|
47
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific
|
48
|
+
* for partners.
|
49
|
+
* @param exportName Export Name.
|
50
|
+
* @param options The options parameters.
|
51
|
+
*/
|
52
|
+
get(scope: string, exportName: string, options?: ExportsGetOptionalParams): Promise<ExportsGetResponse>;
|
53
|
+
/**
|
54
|
+
* The operation to create or update a export. Update operation requires latest eTag to be set in the
|
55
|
+
* request. You may obtain the latest eTag by performing a get operation. Create operation does not
|
56
|
+
* require eTag.
|
57
|
+
* @param scope The scope associated with export operations. This includes
|
58
|
+
* '/subscriptions/{subscriptionId}/' for subscription scope,
|
59
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
|
60
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and
|
61
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for
|
62
|
+
* Department scope,
|
63
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
64
|
+
* for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}
|
65
|
+
* for Management Group scope,
|
66
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
67
|
+
* for billingProfile scope,
|
68
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
|
69
|
+
* for invoiceSection scope, and
|
70
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific
|
71
|
+
* for partners.
|
72
|
+
* @param exportName Export Name.
|
73
|
+
* @param parameters Parameters supplied to the CreateOrUpdate Export operation.
|
74
|
+
* @param options The options parameters.
|
75
|
+
*/
|
76
|
+
createOrUpdate(scope: string, exportName: string, parameters: Export, options?: ExportsCreateOrUpdateOptionalParams): Promise<ExportsCreateOrUpdateResponse>;
|
77
|
+
/**
|
78
|
+
* The operation to delete a export.
|
79
|
+
* @param scope The scope associated with export operations. This includes
|
80
|
+
* '/subscriptions/{subscriptionId}/' for subscription scope,
|
81
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
|
82
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and
|
83
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for
|
84
|
+
* Department scope,
|
85
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
86
|
+
* for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}
|
87
|
+
* for Management Group scope,
|
88
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
89
|
+
* for billingProfile scope,
|
90
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
|
91
|
+
* for invoiceSection scope, and
|
92
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific
|
93
|
+
* for partners.
|
94
|
+
* @param exportName Export Name.
|
95
|
+
* @param options The options parameters.
|
96
|
+
*/
|
97
|
+
delete(scope: string, exportName: string, options?: ExportsDeleteOptionalParams): Promise<void>;
|
98
|
+
/**
|
99
|
+
* The operation to run an export.
|
100
|
+
* @param scope The scope associated with export operations. This includes
|
101
|
+
* '/subscriptions/{subscriptionId}/' for subscription scope,
|
102
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
|
103
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and
|
104
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for
|
105
|
+
* Department scope,
|
106
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
107
|
+
* for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}
|
108
|
+
* for Management Group scope,
|
109
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
110
|
+
* for billingProfile scope,
|
111
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
|
112
|
+
* for invoiceSection scope, and
|
113
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific
|
114
|
+
* for partners.
|
115
|
+
* @param exportName Export Name.
|
116
|
+
* @param options The options parameters.
|
117
|
+
*/
|
118
|
+
execute(scope: string, exportName: string, options?: ExportsExecuteOptionalParams): Promise<void>;
|
119
|
+
/**
|
120
|
+
* The operation to get the run history of an export for the defined scope and export name.
|
121
|
+
* @param scope The scope associated with export operations. This includes
|
122
|
+
* '/subscriptions/{subscriptionId}/' for subscription scope,
|
123
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
|
124
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and
|
125
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for
|
126
|
+
* Department scope,
|
127
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
128
|
+
* for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}
|
129
|
+
* for Management Group scope,
|
130
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
131
|
+
* for billingProfile scope,
|
132
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
|
133
|
+
* for invoiceSection scope, and
|
134
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific
|
135
|
+
* for partners.
|
136
|
+
* @param exportName Export Name.
|
137
|
+
* @param options The options parameters.
|
138
|
+
*/
|
139
|
+
getExecutionHistory(scope: string, exportName: string, options?: ExportsGetExecutionHistoryOptionalParams): Promise<ExportsGetExecutionHistoryResponse>;
|
140
|
+
}
|
141
|
+
//# sourceMappingURL=exports.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../src/operations/exports.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIlD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EACL,yBAAyB,EACzB,mBAAmB,EACnB,wBAAwB,EACxB,kBAAkB,EAClB,MAAM,EACN,mCAAmC,EACnC,6BAA6B,EAC7B,2BAA2B,EAC3B,4BAA4B,EAC5B,wCAAwC,EACxC,kCAAkC,EACnC,MAAM,WAAW,CAAC;AAEnB,2CAA2C;AAC3C,qBAAa,WAAY,YAAW,OAAO;IACzC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuB;IAE9C;;;OAGG;gBACS,MAAM,EAAE,oBAAoB;IAIxC;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CACF,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC;IAO/B;;;;;;;;;;;;;;;;;;;OAmBG;IACH,GAAG,CACD,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,kBAAkB,CAAC;IAO9B;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,cAAc,CACZ,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,6BAA6B,CAAC;IAOzC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CACJ,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,2BAA2B,GACpC,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,OAAO,CACL,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,IAAI,CAAC;IAOhB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,mBAAmB,CACjB,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,wCAAwC,GACjD,OAAO,CAAC,kCAAkC,CAAC;CAM/C"}
|
@@ -0,0 +1,260 @@
|
|
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 Exports operations. */
|
12
|
+
export class ExportsImpl {
|
13
|
+
/**
|
14
|
+
* Initialize a new instance of the class Exports class.
|
15
|
+
* @param client Reference to the service client
|
16
|
+
*/
|
17
|
+
constructor(client) {
|
18
|
+
this.client = client;
|
19
|
+
}
|
20
|
+
/**
|
21
|
+
* The operation to list all exports at the given scope.
|
22
|
+
* @param scope The scope associated with 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 options The options parameters.
|
38
|
+
*/
|
39
|
+
list(scope, options) {
|
40
|
+
return this.client.sendOperationRequest({ scope, options }, listOperationSpec);
|
41
|
+
}
|
42
|
+
/**
|
43
|
+
* The operation to get the export for the defined scope by export name.
|
44
|
+
* @param scope The scope associated with export operations. This includes
|
45
|
+
* '/subscriptions/{subscriptionId}/' for subscription scope,
|
46
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
|
47
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and
|
48
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for
|
49
|
+
* Department scope,
|
50
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
51
|
+
* for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}
|
52
|
+
* for Management Group scope,
|
53
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
54
|
+
* for billingProfile scope,
|
55
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
|
56
|
+
* for invoiceSection scope, and
|
57
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific
|
58
|
+
* for partners.
|
59
|
+
* @param exportName Export Name.
|
60
|
+
* @param options The options parameters.
|
61
|
+
*/
|
62
|
+
get(scope, exportName, options) {
|
63
|
+
return this.client.sendOperationRequest({ scope, exportName, options }, getOperationSpec);
|
64
|
+
}
|
65
|
+
/**
|
66
|
+
* The operation to create or update a export. Update operation requires latest eTag to be set in the
|
67
|
+
* request. You may obtain the latest eTag by performing a get operation. Create operation does not
|
68
|
+
* require eTag.
|
69
|
+
* @param scope The scope associated with export operations. This includes
|
70
|
+
* '/subscriptions/{subscriptionId}/' for subscription scope,
|
71
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
|
72
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and
|
73
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for
|
74
|
+
* Department scope,
|
75
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
76
|
+
* for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}
|
77
|
+
* for Management Group scope,
|
78
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
79
|
+
* for billingProfile scope,
|
80
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
|
81
|
+
* for invoiceSection scope, and
|
82
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific
|
83
|
+
* for partners.
|
84
|
+
* @param exportName Export Name.
|
85
|
+
* @param parameters Parameters supplied to the CreateOrUpdate Export operation.
|
86
|
+
* @param options The options parameters.
|
87
|
+
*/
|
88
|
+
createOrUpdate(scope, exportName, parameters, options) {
|
89
|
+
return this.client.sendOperationRequest({ scope, exportName, parameters, options }, createOrUpdateOperationSpec);
|
90
|
+
}
|
91
|
+
/**
|
92
|
+
* The operation to delete a export.
|
93
|
+
* @param scope The scope associated with export operations. This includes
|
94
|
+
* '/subscriptions/{subscriptionId}/' for subscription scope,
|
95
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
|
96
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and
|
97
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for
|
98
|
+
* Department scope,
|
99
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
100
|
+
* for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}
|
101
|
+
* for Management Group scope,
|
102
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
103
|
+
* for billingProfile scope,
|
104
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
|
105
|
+
* for invoiceSection scope, and
|
106
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific
|
107
|
+
* for partners.
|
108
|
+
* @param exportName Export Name.
|
109
|
+
* @param options The options parameters.
|
110
|
+
*/
|
111
|
+
delete(scope, exportName, options) {
|
112
|
+
return this.client.sendOperationRequest({ scope, exportName, options }, deleteOperationSpec);
|
113
|
+
}
|
114
|
+
/**
|
115
|
+
* The operation to run an export.
|
116
|
+
* @param scope The scope associated with export operations. This includes
|
117
|
+
* '/subscriptions/{subscriptionId}/' for subscription scope,
|
118
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
|
119
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and
|
120
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for
|
121
|
+
* Department scope,
|
122
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
123
|
+
* for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}
|
124
|
+
* for Management Group scope,
|
125
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
126
|
+
* for billingProfile scope,
|
127
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
|
128
|
+
* for invoiceSection scope, and
|
129
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific
|
130
|
+
* for partners.
|
131
|
+
* @param exportName Export Name.
|
132
|
+
* @param options The options parameters.
|
133
|
+
*/
|
134
|
+
execute(scope, exportName, options) {
|
135
|
+
return this.client.sendOperationRequest({ scope, exportName, options }, executeOperationSpec);
|
136
|
+
}
|
137
|
+
/**
|
138
|
+
* The operation to get the run history of an export for the defined scope and export name.
|
139
|
+
* @param scope The scope associated with export operations. This includes
|
140
|
+
* '/subscriptions/{subscriptionId}/' for subscription scope,
|
141
|
+
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,
|
142
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and
|
143
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for
|
144
|
+
* Department scope,
|
145
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'
|
146
|
+
* for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}
|
147
|
+
* for Management Group scope,
|
148
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'
|
149
|
+
* for billingProfile scope,
|
150
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'
|
151
|
+
* for invoiceSection scope, and
|
152
|
+
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific
|
153
|
+
* for partners.
|
154
|
+
* @param exportName Export Name.
|
155
|
+
* @param options The options parameters.
|
156
|
+
*/
|
157
|
+
getExecutionHistory(scope, exportName, options) {
|
158
|
+
return this.client.sendOperationRequest({ scope, exportName, options }, getExecutionHistoryOperationSpec);
|
159
|
+
}
|
160
|
+
}
|
161
|
+
// Operation Specifications
|
162
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
163
|
+
const listOperationSpec = {
|
164
|
+
path: "/{scope}/providers/Microsoft.CostManagement/exports",
|
165
|
+
httpMethod: "GET",
|
166
|
+
responses: {
|
167
|
+
200: {
|
168
|
+
bodyMapper: Mappers.ExportListResult
|
169
|
+
},
|
170
|
+
default: {
|
171
|
+
bodyMapper: Mappers.ErrorResponse
|
172
|
+
}
|
173
|
+
},
|
174
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
175
|
+
urlParameters: [Parameters.$host, Parameters.scope1],
|
176
|
+
headerParameters: [Parameters.accept],
|
177
|
+
serializer
|
178
|
+
};
|
179
|
+
const getOperationSpec = {
|
180
|
+
path: "/{scope}/providers/Microsoft.CostManagement/exports/{exportName}",
|
181
|
+
httpMethod: "GET",
|
182
|
+
responses: {
|
183
|
+
200: {
|
184
|
+
bodyMapper: Mappers.Export
|
185
|
+
},
|
186
|
+
default: {
|
187
|
+
bodyMapper: Mappers.ErrorResponse
|
188
|
+
}
|
189
|
+
},
|
190
|
+
queryParameters: [Parameters.apiVersion, Parameters.expand],
|
191
|
+
urlParameters: [Parameters.$host, Parameters.scope1, Parameters.exportName],
|
192
|
+
headerParameters: [Parameters.accept],
|
193
|
+
serializer
|
194
|
+
};
|
195
|
+
const createOrUpdateOperationSpec = {
|
196
|
+
path: "/{scope}/providers/Microsoft.CostManagement/exports/{exportName}",
|
197
|
+
httpMethod: "PUT",
|
198
|
+
responses: {
|
199
|
+
200: {
|
200
|
+
bodyMapper: Mappers.Export
|
201
|
+
},
|
202
|
+
201: {
|
203
|
+
bodyMapper: Mappers.Export
|
204
|
+
},
|
205
|
+
default: {
|
206
|
+
bodyMapper: Mappers.ErrorResponse
|
207
|
+
}
|
208
|
+
},
|
209
|
+
requestBody: Parameters.parameters4,
|
210
|
+
queryParameters: [Parameters.apiVersion],
|
211
|
+
urlParameters: [Parameters.$host, Parameters.scope1, Parameters.exportName],
|
212
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
213
|
+
mediaType: "json",
|
214
|
+
serializer
|
215
|
+
};
|
216
|
+
const deleteOperationSpec = {
|
217
|
+
path: "/{scope}/providers/Microsoft.CostManagement/exports/{exportName}",
|
218
|
+
httpMethod: "DELETE",
|
219
|
+
responses: {
|
220
|
+
200: {},
|
221
|
+
default: {
|
222
|
+
bodyMapper: Mappers.ErrorResponse
|
223
|
+
}
|
224
|
+
},
|
225
|
+
queryParameters: [Parameters.apiVersion],
|
226
|
+
urlParameters: [Parameters.$host, Parameters.scope1, Parameters.exportName],
|
227
|
+
headerParameters: [Parameters.accept],
|
228
|
+
serializer
|
229
|
+
};
|
230
|
+
const executeOperationSpec = {
|
231
|
+
path: "/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/run",
|
232
|
+
httpMethod: "POST",
|
233
|
+
responses: {
|
234
|
+
200: {},
|
235
|
+
default: {
|
236
|
+
bodyMapper: Mappers.ErrorResponse
|
237
|
+
}
|
238
|
+
},
|
239
|
+
queryParameters: [Parameters.apiVersion],
|
240
|
+
urlParameters: [Parameters.$host, Parameters.scope1, Parameters.exportName],
|
241
|
+
headerParameters: [Parameters.accept],
|
242
|
+
serializer
|
243
|
+
};
|
244
|
+
const getExecutionHistoryOperationSpec = {
|
245
|
+
path: "/{scope}/providers/Microsoft.CostManagement/exports/{exportName}/runHistory",
|
246
|
+
httpMethod: "GET",
|
247
|
+
responses: {
|
248
|
+
200: {
|
249
|
+
bodyMapper: Mappers.ExportExecutionListResult
|
250
|
+
},
|
251
|
+
default: {
|
252
|
+
bodyMapper: Mappers.ErrorResponse
|
253
|
+
}
|
254
|
+
},
|
255
|
+
queryParameters: [Parameters.apiVersion],
|
256
|
+
urlParameters: [Parameters.$host, Parameters.scope1, Parameters.exportName],
|
257
|
+
headerParameters: [Parameters.accept],
|
258
|
+
serializer
|
259
|
+
};
|
260
|
+
//# sourceMappingURL=exports.js.map
|