@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,1044 @@
|
|
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 { __asyncValues, __awaiter } from "tslib";
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
10
|
+
// Licensed under the MIT License.
|
11
|
+
import { CostManagementClient } from "@azure/arm-costmanagement";
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
13
|
+
import * as dotenv from "dotenv";
|
14
|
+
dotenv.config();
|
15
|
+
/**
|
16
|
+
* This sample demonstrates how to Lists the dimensions by the defined scope.
|
17
|
+
*
|
18
|
+
* @summary Lists the dimensions by the defined scope.
|
19
|
+
* x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/BillingAccountDimensionsList.json
|
20
|
+
*/
|
21
|
+
function billingAccountDimensionsListLegacy() {
|
22
|
+
var _a, e_1, _b, _c;
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
24
|
+
const scope = "providers/Microsoft.Billing/billingAccounts/100";
|
25
|
+
const credential = new DefaultAzureCredential();
|
26
|
+
const client = new CostManagementClient(credential);
|
27
|
+
const resArray = new Array();
|
28
|
+
try {
|
29
|
+
for (var _d = true, _e = __asyncValues(client.dimensions.list(scope)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
30
|
+
_c = _f.value;
|
31
|
+
_d = false;
|
32
|
+
try {
|
33
|
+
let item = _c;
|
34
|
+
resArray.push(item);
|
35
|
+
}
|
36
|
+
finally {
|
37
|
+
_d = true;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
42
|
+
finally {
|
43
|
+
try {
|
44
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
45
|
+
}
|
46
|
+
finally { if (e_1) throw e_1.error; }
|
47
|
+
}
|
48
|
+
console.log(resArray);
|
49
|
+
});
|
50
|
+
}
|
51
|
+
/**
|
52
|
+
* This sample demonstrates how to Lists the dimensions by the defined scope.
|
53
|
+
*
|
54
|
+
* @summary Lists the dimensions by the defined scope.
|
55
|
+
* x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/MCABillingAccountDimensionsList.json
|
56
|
+
*/
|
57
|
+
function billingAccountDimensionsListMca() {
|
58
|
+
var _a, e_2, _b, _c;
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
60
|
+
const scope = "providers/Microsoft.Billing/billingAccounts/12345:6789";
|
61
|
+
const credential = new DefaultAzureCredential();
|
62
|
+
const client = new CostManagementClient(credential);
|
63
|
+
const resArray = new Array();
|
64
|
+
try {
|
65
|
+
for (var _d = true, _e = __asyncValues(client.dimensions.list(scope)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
66
|
+
_c = _f.value;
|
67
|
+
_d = false;
|
68
|
+
try {
|
69
|
+
let item = _c;
|
70
|
+
resArray.push(item);
|
71
|
+
}
|
72
|
+
finally {
|
73
|
+
_d = true;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
78
|
+
finally {
|
79
|
+
try {
|
80
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
81
|
+
}
|
82
|
+
finally { if (e_2) throw e_2.error; }
|
83
|
+
}
|
84
|
+
console.log(resArray);
|
85
|
+
});
|
86
|
+
}
|
87
|
+
/**
|
88
|
+
* This sample demonstrates how to Lists the dimensions by the defined scope.
|
89
|
+
*
|
90
|
+
* @summary Lists the dimensions by the defined scope.
|
91
|
+
* x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/BillingAccountDimensionsListExpandAndTop.json
|
92
|
+
*/
|
93
|
+
function billingAccountDimensionsListExpandAndTopLegacy() {
|
94
|
+
var _a, e_3, _b, _c;
|
95
|
+
return __awaiter(this, void 0, void 0, function* () {
|
96
|
+
const scope = "providers/Microsoft.Billing/billingAccounts/100";
|
97
|
+
const expand = "properties/data";
|
98
|
+
const top = 5;
|
99
|
+
const options = { expand, top };
|
100
|
+
const credential = new DefaultAzureCredential();
|
101
|
+
const client = new CostManagementClient(credential);
|
102
|
+
const resArray = new Array();
|
103
|
+
try {
|
104
|
+
for (var _d = true, _e = __asyncValues(client.dimensions.list(scope, options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
105
|
+
_c = _f.value;
|
106
|
+
_d = false;
|
107
|
+
try {
|
108
|
+
let item = _c;
|
109
|
+
resArray.push(item);
|
110
|
+
}
|
111
|
+
finally {
|
112
|
+
_d = true;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
117
|
+
finally {
|
118
|
+
try {
|
119
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
120
|
+
}
|
121
|
+
finally { if (e_3) throw e_3.error; }
|
122
|
+
}
|
123
|
+
console.log(resArray);
|
124
|
+
});
|
125
|
+
}
|
126
|
+
/**
|
127
|
+
* This sample demonstrates how to Lists the dimensions by the defined scope.
|
128
|
+
*
|
129
|
+
* @summary Lists the dimensions by the defined scope.
|
130
|
+
* x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/MCABillingAccountDimensionsListExpandAndTop.json
|
131
|
+
*/
|
132
|
+
function billingAccountDimensionsListExpandAndTopMca() {
|
133
|
+
var _a, e_4, _b, _c;
|
134
|
+
return __awaiter(this, void 0, void 0, function* () {
|
135
|
+
const scope = "providers/Microsoft.Billing/billingAccounts/12345:6789";
|
136
|
+
const expand = "properties/data";
|
137
|
+
const top = 5;
|
138
|
+
const options = { expand, top };
|
139
|
+
const credential = new DefaultAzureCredential();
|
140
|
+
const client = new CostManagementClient(credential);
|
141
|
+
const resArray = new Array();
|
142
|
+
try {
|
143
|
+
for (var _d = true, _e = __asyncValues(client.dimensions.list(scope, options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
144
|
+
_c = _f.value;
|
145
|
+
_d = false;
|
146
|
+
try {
|
147
|
+
let item = _c;
|
148
|
+
resArray.push(item);
|
149
|
+
}
|
150
|
+
finally {
|
151
|
+
_d = true;
|
152
|
+
}
|
153
|
+
}
|
154
|
+
}
|
155
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
156
|
+
finally {
|
157
|
+
try {
|
158
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
159
|
+
}
|
160
|
+
finally { if (e_4) throw e_4.error; }
|
161
|
+
}
|
162
|
+
console.log(resArray);
|
163
|
+
});
|
164
|
+
}
|
165
|
+
/**
|
166
|
+
* This sample demonstrates how to Lists the dimensions by the defined scope.
|
167
|
+
*
|
168
|
+
* @summary Lists the dimensions by the defined scope.
|
169
|
+
* x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/BillingAccountDimensionsListWithFilter.json
|
170
|
+
*/
|
171
|
+
function billingAccountDimensionsListWithFilterLegacy() {
|
172
|
+
var _a, e_5, _b, _c;
|
173
|
+
return __awaiter(this, void 0, void 0, function* () {
|
174
|
+
const scope = "providers/Microsoft.Billing/billingAccounts/100";
|
175
|
+
const filter = "properties/category eq 'resourceId'";
|
176
|
+
const expand = "properties/data";
|
177
|
+
const top = 5;
|
178
|
+
const options = { filter, expand, top };
|
179
|
+
const credential = new DefaultAzureCredential();
|
180
|
+
const client = new CostManagementClient(credential);
|
181
|
+
const resArray = new Array();
|
182
|
+
try {
|
183
|
+
for (var _d = true, _e = __asyncValues(client.dimensions.list(scope, options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
184
|
+
_c = _f.value;
|
185
|
+
_d = false;
|
186
|
+
try {
|
187
|
+
let item = _c;
|
188
|
+
resArray.push(item);
|
189
|
+
}
|
190
|
+
finally {
|
191
|
+
_d = true;
|
192
|
+
}
|
193
|
+
}
|
194
|
+
}
|
195
|
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
196
|
+
finally {
|
197
|
+
try {
|
198
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
199
|
+
}
|
200
|
+
finally { if (e_5) throw e_5.error; }
|
201
|
+
}
|
202
|
+
console.log(resArray);
|
203
|
+
});
|
204
|
+
}
|
205
|
+
/**
|
206
|
+
* This sample demonstrates how to Lists the dimensions by the defined scope.
|
207
|
+
*
|
208
|
+
* @summary Lists the dimensions by the defined scope.
|
209
|
+
* x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/MCABillingAccountDimensionsListWithFilter.json
|
210
|
+
*/
|
211
|
+
function billingAccountDimensionsListWithFilterMca() {
|
212
|
+
var _a, e_6, _b, _c;
|
213
|
+
return __awaiter(this, void 0, void 0, function* () {
|
214
|
+
const scope = "providers/Microsoft.Billing/billingAccounts/12345:6789";
|
215
|
+
const filter = "properties/category eq 'resourceId'";
|
216
|
+
const expand = "properties/data";
|
217
|
+
const top = 5;
|
218
|
+
const options = { filter, expand, top };
|
219
|
+
const credential = new DefaultAzureCredential();
|
220
|
+
const client = new CostManagementClient(credential);
|
221
|
+
const resArray = new Array();
|
222
|
+
try {
|
223
|
+
for (var _d = true, _e = __asyncValues(client.dimensions.list(scope, options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
224
|
+
_c = _f.value;
|
225
|
+
_d = false;
|
226
|
+
try {
|
227
|
+
let item = _c;
|
228
|
+
resArray.push(item);
|
229
|
+
}
|
230
|
+
finally {
|
231
|
+
_d = true;
|
232
|
+
}
|
233
|
+
}
|
234
|
+
}
|
235
|
+
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
236
|
+
finally {
|
237
|
+
try {
|
238
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
239
|
+
}
|
240
|
+
finally { if (e_6) throw e_6.error; }
|
241
|
+
}
|
242
|
+
console.log(resArray);
|
243
|
+
});
|
244
|
+
}
|
245
|
+
/**
|
246
|
+
* This sample demonstrates how to Lists the dimensions by the defined scope.
|
247
|
+
*
|
248
|
+
* @summary Lists the dimensions by the defined scope.
|
249
|
+
* x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/MCABillingProfileDimensionsList.json
|
250
|
+
*/
|
251
|
+
function billingProfileDimensionsListMca() {
|
252
|
+
var _a, e_7, _b, _c;
|
253
|
+
return __awaiter(this, void 0, void 0, function* () {
|
254
|
+
const scope = "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579";
|
255
|
+
const credential = new DefaultAzureCredential();
|
256
|
+
const client = new CostManagementClient(credential);
|
257
|
+
const resArray = new Array();
|
258
|
+
try {
|
259
|
+
for (var _d = true, _e = __asyncValues(client.dimensions.list(scope)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
260
|
+
_c = _f.value;
|
261
|
+
_d = false;
|
262
|
+
try {
|
263
|
+
let item = _c;
|
264
|
+
resArray.push(item);
|
265
|
+
}
|
266
|
+
finally {
|
267
|
+
_d = true;
|
268
|
+
}
|
269
|
+
}
|
270
|
+
}
|
271
|
+
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
272
|
+
finally {
|
273
|
+
try {
|
274
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
275
|
+
}
|
276
|
+
finally { if (e_7) throw e_7.error; }
|
277
|
+
}
|
278
|
+
console.log(resArray);
|
279
|
+
});
|
280
|
+
}
|
281
|
+
/**
|
282
|
+
* This sample demonstrates how to Lists the dimensions by the defined scope.
|
283
|
+
*
|
284
|
+
* @summary Lists the dimensions by the defined scope.
|
285
|
+
* x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/MCABillingProfileDimensionsListExpandAndTop.json
|
286
|
+
*/
|
287
|
+
function billingProfileDimensionsListExpandAndTopMca() {
|
288
|
+
var _a, e_8, _b, _c;
|
289
|
+
return __awaiter(this, void 0, void 0, function* () {
|
290
|
+
const scope = "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579";
|
291
|
+
const expand = "properties/data";
|
292
|
+
const top = 5;
|
293
|
+
const options = { expand, top };
|
294
|
+
const credential = new DefaultAzureCredential();
|
295
|
+
const client = new CostManagementClient(credential);
|
296
|
+
const resArray = new Array();
|
297
|
+
try {
|
298
|
+
for (var _d = true, _e = __asyncValues(client.dimensions.list(scope, options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
299
|
+
_c = _f.value;
|
300
|
+
_d = false;
|
301
|
+
try {
|
302
|
+
let item = _c;
|
303
|
+
resArray.push(item);
|
304
|
+
}
|
305
|
+
finally {
|
306
|
+
_d = true;
|
307
|
+
}
|
308
|
+
}
|
309
|
+
}
|
310
|
+
catch (e_8_1) { e_8 = { error: e_8_1 }; }
|
311
|
+
finally {
|
312
|
+
try {
|
313
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
314
|
+
}
|
315
|
+
finally { if (e_8) throw e_8.error; }
|
316
|
+
}
|
317
|
+
console.log(resArray);
|
318
|
+
});
|
319
|
+
}
|
320
|
+
/**
|
321
|
+
* This sample demonstrates how to Lists the dimensions by the defined scope.
|
322
|
+
*
|
323
|
+
* @summary Lists the dimensions by the defined scope.
|
324
|
+
* x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/MCABillingProfileDimensionsListWithFilter.json
|
325
|
+
*/
|
326
|
+
function billingProfileDimensionsListWithFilterMca() {
|
327
|
+
var _a, e_9, _b, _c;
|
328
|
+
return __awaiter(this, void 0, void 0, function* () {
|
329
|
+
const scope = "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579";
|
330
|
+
const filter = "properties/category eq 'resourceId'";
|
331
|
+
const expand = "properties/data";
|
332
|
+
const top = 5;
|
333
|
+
const options = { filter, expand, top };
|
334
|
+
const credential = new DefaultAzureCredential();
|
335
|
+
const client = new CostManagementClient(credential);
|
336
|
+
const resArray = new Array();
|
337
|
+
try {
|
338
|
+
for (var _d = true, _e = __asyncValues(client.dimensions.list(scope, options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
339
|
+
_c = _f.value;
|
340
|
+
_d = false;
|
341
|
+
try {
|
342
|
+
let item = _c;
|
343
|
+
resArray.push(item);
|
344
|
+
}
|
345
|
+
finally {
|
346
|
+
_d = true;
|
347
|
+
}
|
348
|
+
}
|
349
|
+
}
|
350
|
+
catch (e_9_1) { e_9 = { error: e_9_1 }; }
|
351
|
+
finally {
|
352
|
+
try {
|
353
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
354
|
+
}
|
355
|
+
finally { if (e_9) throw e_9.error; }
|
356
|
+
}
|
357
|
+
console.log(resArray);
|
358
|
+
});
|
359
|
+
}
|
360
|
+
/**
|
361
|
+
* This sample demonstrates how to Lists the dimensions by the defined scope.
|
362
|
+
*
|
363
|
+
* @summary Lists the dimensions by the defined scope.
|
364
|
+
* x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/MCACustomerDimensionsList.json
|
365
|
+
*/
|
366
|
+
function customerDimensionsListMca() {
|
367
|
+
var _a, e_10, _b, _c;
|
368
|
+
return __awaiter(this, void 0, void 0, function* () {
|
369
|
+
const scope = "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678";
|
370
|
+
const credential = new DefaultAzureCredential();
|
371
|
+
const client = new CostManagementClient(credential);
|
372
|
+
const resArray = new Array();
|
373
|
+
try {
|
374
|
+
for (var _d = true, _e = __asyncValues(client.dimensions.list(scope)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
375
|
+
_c = _f.value;
|
376
|
+
_d = false;
|
377
|
+
try {
|
378
|
+
let item = _c;
|
379
|
+
resArray.push(item);
|
380
|
+
}
|
381
|
+
finally {
|
382
|
+
_d = true;
|
383
|
+
}
|
384
|
+
}
|
385
|
+
}
|
386
|
+
catch (e_10_1) { e_10 = { error: e_10_1 }; }
|
387
|
+
finally {
|
388
|
+
try {
|
389
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
390
|
+
}
|
391
|
+
finally { if (e_10) throw e_10.error; }
|
392
|
+
}
|
393
|
+
console.log(resArray);
|
394
|
+
});
|
395
|
+
}
|
396
|
+
/**
|
397
|
+
* This sample demonstrates how to Lists the dimensions by the defined scope.
|
398
|
+
*
|
399
|
+
* @summary Lists the dimensions by the defined scope.
|
400
|
+
* x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/MCACustomerDimensionsListExpandAndTop.json
|
401
|
+
*/
|
402
|
+
function customerDimensionsListExpandAndTopMca() {
|
403
|
+
var _a, e_11, _b, _c;
|
404
|
+
return __awaiter(this, void 0, void 0, function* () {
|
405
|
+
const scope = "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678";
|
406
|
+
const expand = "properties/data";
|
407
|
+
const top = 5;
|
408
|
+
const options = { expand, top };
|
409
|
+
const credential = new DefaultAzureCredential();
|
410
|
+
const client = new CostManagementClient(credential);
|
411
|
+
const resArray = new Array();
|
412
|
+
try {
|
413
|
+
for (var _d = true, _e = __asyncValues(client.dimensions.list(scope, options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
414
|
+
_c = _f.value;
|
415
|
+
_d = false;
|
416
|
+
try {
|
417
|
+
let item = _c;
|
418
|
+
resArray.push(item);
|
419
|
+
}
|
420
|
+
finally {
|
421
|
+
_d = true;
|
422
|
+
}
|
423
|
+
}
|
424
|
+
}
|
425
|
+
catch (e_11_1) { e_11 = { error: e_11_1 }; }
|
426
|
+
finally {
|
427
|
+
try {
|
428
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
429
|
+
}
|
430
|
+
finally { if (e_11) throw e_11.error; }
|
431
|
+
}
|
432
|
+
console.log(resArray);
|
433
|
+
});
|
434
|
+
}
|
435
|
+
/**
|
436
|
+
* This sample demonstrates how to Lists the dimensions by the defined scope.
|
437
|
+
*
|
438
|
+
* @summary Lists the dimensions by the defined scope.
|
439
|
+
* x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/MCACustomerDimensionsListWithFilter.json
|
440
|
+
*/
|
441
|
+
function customerDimensionsListWithFilterMca() {
|
442
|
+
var _a, e_12, _b, _c;
|
443
|
+
return __awaiter(this, void 0, void 0, function* () {
|
444
|
+
const scope = "providers/Microsoft.Billing/billingAccounts/12345:6789/customers/5678";
|
445
|
+
const filter = "properties/category eq 'resourceId'";
|
446
|
+
const expand = "properties/data";
|
447
|
+
const top = 5;
|
448
|
+
const options = { filter, expand, top };
|
449
|
+
const credential = new DefaultAzureCredential();
|
450
|
+
const client = new CostManagementClient(credential);
|
451
|
+
const resArray = new Array();
|
452
|
+
try {
|
453
|
+
for (var _d = true, _e = __asyncValues(client.dimensions.list(scope, options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
454
|
+
_c = _f.value;
|
455
|
+
_d = false;
|
456
|
+
try {
|
457
|
+
let item = _c;
|
458
|
+
resArray.push(item);
|
459
|
+
}
|
460
|
+
finally {
|
461
|
+
_d = true;
|
462
|
+
}
|
463
|
+
}
|
464
|
+
}
|
465
|
+
catch (e_12_1) { e_12 = { error: e_12_1 }; }
|
466
|
+
finally {
|
467
|
+
try {
|
468
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
469
|
+
}
|
470
|
+
finally { if (e_12) throw e_12.error; }
|
471
|
+
}
|
472
|
+
console.log(resArray);
|
473
|
+
});
|
474
|
+
}
|
475
|
+
/**
|
476
|
+
* This sample demonstrates how to Lists the dimensions by the defined scope.
|
477
|
+
*
|
478
|
+
* @summary Lists the dimensions by the defined scope.
|
479
|
+
* x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/DepartmentDimensionsList.json
|
480
|
+
*/
|
481
|
+
function departmentDimensionsListLegacy() {
|
482
|
+
var _a, e_13, _b, _c;
|
483
|
+
return __awaiter(this, void 0, void 0, function* () {
|
484
|
+
const scope = "providers/Microsoft.Billing/billingAccounts/100/departments/123";
|
485
|
+
const credential = new DefaultAzureCredential();
|
486
|
+
const client = new CostManagementClient(credential);
|
487
|
+
const resArray = new Array();
|
488
|
+
try {
|
489
|
+
for (var _d = true, _e = __asyncValues(client.dimensions.list(scope)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
490
|
+
_c = _f.value;
|
491
|
+
_d = false;
|
492
|
+
try {
|
493
|
+
let item = _c;
|
494
|
+
resArray.push(item);
|
495
|
+
}
|
496
|
+
finally {
|
497
|
+
_d = true;
|
498
|
+
}
|
499
|
+
}
|
500
|
+
}
|
501
|
+
catch (e_13_1) { e_13 = { error: e_13_1 }; }
|
502
|
+
finally {
|
503
|
+
try {
|
504
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
505
|
+
}
|
506
|
+
finally { if (e_13) throw e_13.error; }
|
507
|
+
}
|
508
|
+
console.log(resArray);
|
509
|
+
});
|
510
|
+
}
|
511
|
+
/**
|
512
|
+
* This sample demonstrates how to Lists the dimensions by the defined scope.
|
513
|
+
*
|
514
|
+
* @summary Lists the dimensions by the defined scope.
|
515
|
+
* x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/DepartmentDimensionsListExpandAndTop.json
|
516
|
+
*/
|
517
|
+
function departmentDimensionsListExpandAndTopLegacy() {
|
518
|
+
var _a, e_14, _b, _c;
|
519
|
+
return __awaiter(this, void 0, void 0, function* () {
|
520
|
+
const scope = "providers/Microsoft.Billing/billingAccounts/100/departments/123";
|
521
|
+
const expand = "properties/data";
|
522
|
+
const top = 5;
|
523
|
+
const options = { expand, top };
|
524
|
+
const credential = new DefaultAzureCredential();
|
525
|
+
const client = new CostManagementClient(credential);
|
526
|
+
const resArray = new Array();
|
527
|
+
try {
|
528
|
+
for (var _d = true, _e = __asyncValues(client.dimensions.list(scope, options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
529
|
+
_c = _f.value;
|
530
|
+
_d = false;
|
531
|
+
try {
|
532
|
+
let item = _c;
|
533
|
+
resArray.push(item);
|
534
|
+
}
|
535
|
+
finally {
|
536
|
+
_d = true;
|
537
|
+
}
|
538
|
+
}
|
539
|
+
}
|
540
|
+
catch (e_14_1) { e_14 = { error: e_14_1 }; }
|
541
|
+
finally {
|
542
|
+
try {
|
543
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
544
|
+
}
|
545
|
+
finally { if (e_14) throw e_14.error; }
|
546
|
+
}
|
547
|
+
console.log(resArray);
|
548
|
+
});
|
549
|
+
}
|
550
|
+
/**
|
551
|
+
* This sample demonstrates how to Lists the dimensions by the defined scope.
|
552
|
+
*
|
553
|
+
* @summary Lists the dimensions by the defined scope.
|
554
|
+
* x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/DepartmentDimensionsListWithFilter.json
|
555
|
+
*/
|
556
|
+
function departmentDimensionsListWithFilterLegacy() {
|
557
|
+
var _a, e_15, _b, _c;
|
558
|
+
return __awaiter(this, void 0, void 0, function* () {
|
559
|
+
const scope = "providers/Microsoft.Billing/billingAccounts/100/departments/123";
|
560
|
+
const filter = "properties/category eq 'resourceId'";
|
561
|
+
const expand = "properties/data";
|
562
|
+
const top = 5;
|
563
|
+
const options = { filter, expand, top };
|
564
|
+
const credential = new DefaultAzureCredential();
|
565
|
+
const client = new CostManagementClient(credential);
|
566
|
+
const resArray = new Array();
|
567
|
+
try {
|
568
|
+
for (var _d = true, _e = __asyncValues(client.dimensions.list(scope, options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
569
|
+
_c = _f.value;
|
570
|
+
_d = false;
|
571
|
+
try {
|
572
|
+
let item = _c;
|
573
|
+
resArray.push(item);
|
574
|
+
}
|
575
|
+
finally {
|
576
|
+
_d = true;
|
577
|
+
}
|
578
|
+
}
|
579
|
+
}
|
580
|
+
catch (e_15_1) { e_15 = { error: e_15_1 }; }
|
581
|
+
finally {
|
582
|
+
try {
|
583
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
584
|
+
}
|
585
|
+
finally { if (e_15) throw e_15.error; }
|
586
|
+
}
|
587
|
+
console.log(resArray);
|
588
|
+
});
|
589
|
+
}
|
590
|
+
/**
|
591
|
+
* This sample demonstrates how to Lists the dimensions by the defined scope.
|
592
|
+
*
|
593
|
+
* @summary Lists the dimensions by the defined scope.
|
594
|
+
* x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/EnrollmentAccountDimensionsList.json
|
595
|
+
*/
|
596
|
+
function enrollmentAccountDimensionsListLegacy() {
|
597
|
+
var _a, e_16, _b, _c;
|
598
|
+
return __awaiter(this, void 0, void 0, function* () {
|
599
|
+
const scope = "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456";
|
600
|
+
const credential = new DefaultAzureCredential();
|
601
|
+
const client = new CostManagementClient(credential);
|
602
|
+
const resArray = new Array();
|
603
|
+
try {
|
604
|
+
for (var _d = true, _e = __asyncValues(client.dimensions.list(scope)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
605
|
+
_c = _f.value;
|
606
|
+
_d = false;
|
607
|
+
try {
|
608
|
+
let item = _c;
|
609
|
+
resArray.push(item);
|
610
|
+
}
|
611
|
+
finally {
|
612
|
+
_d = true;
|
613
|
+
}
|
614
|
+
}
|
615
|
+
}
|
616
|
+
catch (e_16_1) { e_16 = { error: e_16_1 }; }
|
617
|
+
finally {
|
618
|
+
try {
|
619
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
620
|
+
}
|
621
|
+
finally { if (e_16) throw e_16.error; }
|
622
|
+
}
|
623
|
+
console.log(resArray);
|
624
|
+
});
|
625
|
+
}
|
626
|
+
/**
|
627
|
+
* This sample demonstrates how to Lists the dimensions by the defined scope.
|
628
|
+
*
|
629
|
+
* @summary Lists the dimensions by the defined scope.
|
630
|
+
* x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/EnrollmentAccountDimensionsListExpandAndTop.json
|
631
|
+
*/
|
632
|
+
function enrollmentAccountDimensionsListExpandAndTopLegacy() {
|
633
|
+
var _a, e_17, _b, _c;
|
634
|
+
return __awaiter(this, void 0, void 0, function* () {
|
635
|
+
const scope = "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456";
|
636
|
+
const expand = "properties/data";
|
637
|
+
const top = 5;
|
638
|
+
const options = { expand, top };
|
639
|
+
const credential = new DefaultAzureCredential();
|
640
|
+
const client = new CostManagementClient(credential);
|
641
|
+
const resArray = new Array();
|
642
|
+
try {
|
643
|
+
for (var _d = true, _e = __asyncValues(client.dimensions.list(scope, options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
644
|
+
_c = _f.value;
|
645
|
+
_d = false;
|
646
|
+
try {
|
647
|
+
let item = _c;
|
648
|
+
resArray.push(item);
|
649
|
+
}
|
650
|
+
finally {
|
651
|
+
_d = true;
|
652
|
+
}
|
653
|
+
}
|
654
|
+
}
|
655
|
+
catch (e_17_1) { e_17 = { error: e_17_1 }; }
|
656
|
+
finally {
|
657
|
+
try {
|
658
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
659
|
+
}
|
660
|
+
finally { if (e_17) throw e_17.error; }
|
661
|
+
}
|
662
|
+
console.log(resArray);
|
663
|
+
});
|
664
|
+
}
|
665
|
+
/**
|
666
|
+
* This sample demonstrates how to Lists the dimensions by the defined scope.
|
667
|
+
*
|
668
|
+
* @summary Lists the dimensions by the defined scope.
|
669
|
+
* x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/EnrollmentAccountDimensionsListWithFilter.json
|
670
|
+
*/
|
671
|
+
function enrollmentAccountDimensionsListWithFilterLegacy() {
|
672
|
+
var _a, e_18, _b, _c;
|
673
|
+
return __awaiter(this, void 0, void 0, function* () {
|
674
|
+
const scope = "providers/Microsoft.Billing/billingAccounts/100/enrollmentAccounts/456";
|
675
|
+
const filter = "properties/category eq 'resourceId'";
|
676
|
+
const expand = "properties/data";
|
677
|
+
const top = 5;
|
678
|
+
const options = { filter, expand, top };
|
679
|
+
const credential = new DefaultAzureCredential();
|
680
|
+
const client = new CostManagementClient(credential);
|
681
|
+
const resArray = new Array();
|
682
|
+
try {
|
683
|
+
for (var _d = true, _e = __asyncValues(client.dimensions.list(scope, options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
684
|
+
_c = _f.value;
|
685
|
+
_d = false;
|
686
|
+
try {
|
687
|
+
let item = _c;
|
688
|
+
resArray.push(item);
|
689
|
+
}
|
690
|
+
finally {
|
691
|
+
_d = true;
|
692
|
+
}
|
693
|
+
}
|
694
|
+
}
|
695
|
+
catch (e_18_1) { e_18 = { error: e_18_1 }; }
|
696
|
+
finally {
|
697
|
+
try {
|
698
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
699
|
+
}
|
700
|
+
finally { if (e_18) throw e_18.error; }
|
701
|
+
}
|
702
|
+
console.log(resArray);
|
703
|
+
});
|
704
|
+
}
|
705
|
+
/**
|
706
|
+
* This sample demonstrates how to Lists the dimensions by the defined scope.
|
707
|
+
*
|
708
|
+
* @summary Lists the dimensions by the defined scope.
|
709
|
+
* x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/MCAInvoiceSectionDimensionsList.json
|
710
|
+
*/
|
711
|
+
function invoiceSectionDimensionsListMca() {
|
712
|
+
var _a, e_19, _b, _c;
|
713
|
+
return __awaiter(this, void 0, void 0, function* () {
|
714
|
+
const scope = "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876";
|
715
|
+
const credential = new DefaultAzureCredential();
|
716
|
+
const client = new CostManagementClient(credential);
|
717
|
+
const resArray = new Array();
|
718
|
+
try {
|
719
|
+
for (var _d = true, _e = __asyncValues(client.dimensions.list(scope)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
720
|
+
_c = _f.value;
|
721
|
+
_d = false;
|
722
|
+
try {
|
723
|
+
let item = _c;
|
724
|
+
resArray.push(item);
|
725
|
+
}
|
726
|
+
finally {
|
727
|
+
_d = true;
|
728
|
+
}
|
729
|
+
}
|
730
|
+
}
|
731
|
+
catch (e_19_1) { e_19 = { error: e_19_1 }; }
|
732
|
+
finally {
|
733
|
+
try {
|
734
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
735
|
+
}
|
736
|
+
finally { if (e_19) throw e_19.error; }
|
737
|
+
}
|
738
|
+
console.log(resArray);
|
739
|
+
});
|
740
|
+
}
|
741
|
+
/**
|
742
|
+
* This sample demonstrates how to Lists the dimensions by the defined scope.
|
743
|
+
*
|
744
|
+
* @summary Lists the dimensions by the defined scope.
|
745
|
+
* x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/MCAInvoiceSectionDimensionsListExpandAndTop.json
|
746
|
+
*/
|
747
|
+
function invoiceSectionDimensionsListExpandAndTopMca() {
|
748
|
+
var _a, e_20, _b, _c;
|
749
|
+
return __awaiter(this, void 0, void 0, function* () {
|
750
|
+
const scope = "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876";
|
751
|
+
const expand = "properties/data";
|
752
|
+
const top = 5;
|
753
|
+
const options = { expand, top };
|
754
|
+
const credential = new DefaultAzureCredential();
|
755
|
+
const client = new CostManagementClient(credential);
|
756
|
+
const resArray = new Array();
|
757
|
+
try {
|
758
|
+
for (var _d = true, _e = __asyncValues(client.dimensions.list(scope, options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
759
|
+
_c = _f.value;
|
760
|
+
_d = false;
|
761
|
+
try {
|
762
|
+
let item = _c;
|
763
|
+
resArray.push(item);
|
764
|
+
}
|
765
|
+
finally {
|
766
|
+
_d = true;
|
767
|
+
}
|
768
|
+
}
|
769
|
+
}
|
770
|
+
catch (e_20_1) { e_20 = { error: e_20_1 }; }
|
771
|
+
finally {
|
772
|
+
try {
|
773
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
774
|
+
}
|
775
|
+
finally { if (e_20) throw e_20.error; }
|
776
|
+
}
|
777
|
+
console.log(resArray);
|
778
|
+
});
|
779
|
+
}
|
780
|
+
/**
|
781
|
+
* This sample demonstrates how to Lists the dimensions by the defined scope.
|
782
|
+
*
|
783
|
+
* @summary Lists the dimensions by the defined scope.
|
784
|
+
* x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/MCAInvoiceSectionDimensionsListWithFilter.json
|
785
|
+
*/
|
786
|
+
function invoiceSectionDimensionsListWithFilterMca() {
|
787
|
+
var _a, e_21, _b, _c;
|
788
|
+
return __awaiter(this, void 0, void 0, function* () {
|
789
|
+
const scope = "providers/Microsoft.Billing/billingAccounts/12345:6789/billingProfiles/13579/invoiceSections/9876";
|
790
|
+
const filter = "properties/category eq 'resourceId'";
|
791
|
+
const expand = "properties/data";
|
792
|
+
const top = 5;
|
793
|
+
const options = { filter, expand, top };
|
794
|
+
const credential = new DefaultAzureCredential();
|
795
|
+
const client = new CostManagementClient(credential);
|
796
|
+
const resArray = new Array();
|
797
|
+
try {
|
798
|
+
for (var _d = true, _e = __asyncValues(client.dimensions.list(scope, options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
799
|
+
_c = _f.value;
|
800
|
+
_d = false;
|
801
|
+
try {
|
802
|
+
let item = _c;
|
803
|
+
resArray.push(item);
|
804
|
+
}
|
805
|
+
finally {
|
806
|
+
_d = true;
|
807
|
+
}
|
808
|
+
}
|
809
|
+
}
|
810
|
+
catch (e_21_1) { e_21 = { error: e_21_1 }; }
|
811
|
+
finally {
|
812
|
+
try {
|
813
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
814
|
+
}
|
815
|
+
finally { if (e_21) throw e_21.error; }
|
816
|
+
}
|
817
|
+
console.log(resArray);
|
818
|
+
});
|
819
|
+
}
|
820
|
+
/**
|
821
|
+
* This sample demonstrates how to Lists the dimensions by the defined scope.
|
822
|
+
*
|
823
|
+
* @summary Lists the dimensions by the defined scope.
|
824
|
+
* x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/ManagementGroupDimensionsList.json
|
825
|
+
*/
|
826
|
+
function managementGroupDimensionsListLegacy() {
|
827
|
+
var _a, e_22, _b, _c;
|
828
|
+
return __awaiter(this, void 0, void 0, function* () {
|
829
|
+
const scope = "providers/Microsoft.Management/managementGroups/MyMgId";
|
830
|
+
const credential = new DefaultAzureCredential();
|
831
|
+
const client = new CostManagementClient(credential);
|
832
|
+
const resArray = new Array();
|
833
|
+
try {
|
834
|
+
for (var _d = true, _e = __asyncValues(client.dimensions.list(scope)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
835
|
+
_c = _f.value;
|
836
|
+
_d = false;
|
837
|
+
try {
|
838
|
+
let item = _c;
|
839
|
+
resArray.push(item);
|
840
|
+
}
|
841
|
+
finally {
|
842
|
+
_d = true;
|
843
|
+
}
|
844
|
+
}
|
845
|
+
}
|
846
|
+
catch (e_22_1) { e_22 = { error: e_22_1 }; }
|
847
|
+
finally {
|
848
|
+
try {
|
849
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
850
|
+
}
|
851
|
+
finally { if (e_22) throw e_22.error; }
|
852
|
+
}
|
853
|
+
console.log(resArray);
|
854
|
+
});
|
855
|
+
}
|
856
|
+
/**
|
857
|
+
* This sample demonstrates how to Lists the dimensions by the defined scope.
|
858
|
+
*
|
859
|
+
* @summary Lists the dimensions by the defined scope.
|
860
|
+
* x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/ManagementGroupDimensionsListExpandAndTop.json
|
861
|
+
*/
|
862
|
+
function managementGroupDimensionsListExpandAndTopLegacy() {
|
863
|
+
var _a, e_23, _b, _c;
|
864
|
+
return __awaiter(this, void 0, void 0, function* () {
|
865
|
+
const scope = "providers/Microsoft.Management/managementGroups/MyMgId";
|
866
|
+
const expand = "properties/data";
|
867
|
+
const top = 5;
|
868
|
+
const options = { expand, top };
|
869
|
+
const credential = new DefaultAzureCredential();
|
870
|
+
const client = new CostManagementClient(credential);
|
871
|
+
const resArray = new Array();
|
872
|
+
try {
|
873
|
+
for (var _d = true, _e = __asyncValues(client.dimensions.list(scope, options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
874
|
+
_c = _f.value;
|
875
|
+
_d = false;
|
876
|
+
try {
|
877
|
+
let item = _c;
|
878
|
+
resArray.push(item);
|
879
|
+
}
|
880
|
+
finally {
|
881
|
+
_d = true;
|
882
|
+
}
|
883
|
+
}
|
884
|
+
}
|
885
|
+
catch (e_23_1) { e_23 = { error: e_23_1 }; }
|
886
|
+
finally {
|
887
|
+
try {
|
888
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
889
|
+
}
|
890
|
+
finally { if (e_23) throw e_23.error; }
|
891
|
+
}
|
892
|
+
console.log(resArray);
|
893
|
+
});
|
894
|
+
}
|
895
|
+
/**
|
896
|
+
* This sample demonstrates how to Lists the dimensions by the defined scope.
|
897
|
+
*
|
898
|
+
* @summary Lists the dimensions by the defined scope.
|
899
|
+
* x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/ManagementGroupDimensionsListWithFilter.json
|
900
|
+
*/
|
901
|
+
function managementGroupDimensionsListWithFilterLegacy() {
|
902
|
+
var _a, e_24, _b, _c;
|
903
|
+
return __awaiter(this, void 0, void 0, function* () {
|
904
|
+
const scope = "providers/Microsoft.Management/managementGroups/MyMgId";
|
905
|
+
const filter = "properties/category eq 'resourceId'";
|
906
|
+
const expand = "properties/data";
|
907
|
+
const top = 5;
|
908
|
+
const options = { filter, expand, top };
|
909
|
+
const credential = new DefaultAzureCredential();
|
910
|
+
const client = new CostManagementClient(credential);
|
911
|
+
const resArray = new Array();
|
912
|
+
try {
|
913
|
+
for (var _d = true, _e = __asyncValues(client.dimensions.list(scope, options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
914
|
+
_c = _f.value;
|
915
|
+
_d = false;
|
916
|
+
try {
|
917
|
+
let item = _c;
|
918
|
+
resArray.push(item);
|
919
|
+
}
|
920
|
+
finally {
|
921
|
+
_d = true;
|
922
|
+
}
|
923
|
+
}
|
924
|
+
}
|
925
|
+
catch (e_24_1) { e_24 = { error: e_24_1 }; }
|
926
|
+
finally {
|
927
|
+
try {
|
928
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
929
|
+
}
|
930
|
+
finally { if (e_24) throw e_24.error; }
|
931
|
+
}
|
932
|
+
console.log(resArray);
|
933
|
+
});
|
934
|
+
}
|
935
|
+
/**
|
936
|
+
* This sample demonstrates how to Lists the dimensions by the defined scope.
|
937
|
+
*
|
938
|
+
* @summary Lists the dimensions by the defined scope.
|
939
|
+
* x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/ResourceGroupDimensionsList.json
|
940
|
+
*/
|
941
|
+
function resourceGroupDimensionsListLegacy() {
|
942
|
+
var _a, e_25, _b, _c;
|
943
|
+
return __awaiter(this, void 0, void 0, function* () {
|
944
|
+
const scope = "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/system.orlando";
|
945
|
+
const expand = "properties/data";
|
946
|
+
const top = 5;
|
947
|
+
const options = { expand, top };
|
948
|
+
const credential = new DefaultAzureCredential();
|
949
|
+
const client = new CostManagementClient(credential);
|
950
|
+
const resArray = new Array();
|
951
|
+
try {
|
952
|
+
for (var _d = true, _e = __asyncValues(client.dimensions.list(scope, options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
953
|
+
_c = _f.value;
|
954
|
+
_d = false;
|
955
|
+
try {
|
956
|
+
let item = _c;
|
957
|
+
resArray.push(item);
|
958
|
+
}
|
959
|
+
finally {
|
960
|
+
_d = true;
|
961
|
+
}
|
962
|
+
}
|
963
|
+
}
|
964
|
+
catch (e_25_1) { e_25 = { error: e_25_1 }; }
|
965
|
+
finally {
|
966
|
+
try {
|
967
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
968
|
+
}
|
969
|
+
finally { if (e_25) throw e_25.error; }
|
970
|
+
}
|
971
|
+
console.log(resArray);
|
972
|
+
});
|
973
|
+
}
|
974
|
+
/**
|
975
|
+
* This sample demonstrates how to Lists the dimensions by the defined scope.
|
976
|
+
*
|
977
|
+
* @summary Lists the dimensions by the defined scope.
|
978
|
+
* x-ms-original-file: specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2022-10-01/examples/SubscriptionDimensionsList.json
|
979
|
+
*/
|
980
|
+
function subscriptionDimensionsListLegacy() {
|
981
|
+
var _a, e_26, _b, _c;
|
982
|
+
return __awaiter(this, void 0, void 0, function* () {
|
983
|
+
const scope = "subscriptions/00000000-0000-0000-0000-000000000000";
|
984
|
+
const expand = "properties/data";
|
985
|
+
const top = 5;
|
986
|
+
const options = { expand, top };
|
987
|
+
const credential = new DefaultAzureCredential();
|
988
|
+
const client = new CostManagementClient(credential);
|
989
|
+
const resArray = new Array();
|
990
|
+
try {
|
991
|
+
for (var _d = true, _e = __asyncValues(client.dimensions.list(scope, options)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
992
|
+
_c = _f.value;
|
993
|
+
_d = false;
|
994
|
+
try {
|
995
|
+
let item = _c;
|
996
|
+
resArray.push(item);
|
997
|
+
}
|
998
|
+
finally {
|
999
|
+
_d = true;
|
1000
|
+
}
|
1001
|
+
}
|
1002
|
+
}
|
1003
|
+
catch (e_26_1) { e_26 = { error: e_26_1 }; }
|
1004
|
+
finally {
|
1005
|
+
try {
|
1006
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
1007
|
+
}
|
1008
|
+
finally { if (e_26) throw e_26.error; }
|
1009
|
+
}
|
1010
|
+
console.log(resArray);
|
1011
|
+
});
|
1012
|
+
}
|
1013
|
+
function main() {
|
1014
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1015
|
+
billingAccountDimensionsListLegacy();
|
1016
|
+
billingAccountDimensionsListMca();
|
1017
|
+
billingAccountDimensionsListExpandAndTopLegacy();
|
1018
|
+
billingAccountDimensionsListExpandAndTopMca();
|
1019
|
+
billingAccountDimensionsListWithFilterLegacy();
|
1020
|
+
billingAccountDimensionsListWithFilterMca();
|
1021
|
+
billingProfileDimensionsListMca();
|
1022
|
+
billingProfileDimensionsListExpandAndTopMca();
|
1023
|
+
billingProfileDimensionsListWithFilterMca();
|
1024
|
+
customerDimensionsListMca();
|
1025
|
+
customerDimensionsListExpandAndTopMca();
|
1026
|
+
customerDimensionsListWithFilterMca();
|
1027
|
+
departmentDimensionsListLegacy();
|
1028
|
+
departmentDimensionsListExpandAndTopLegacy();
|
1029
|
+
departmentDimensionsListWithFilterLegacy();
|
1030
|
+
enrollmentAccountDimensionsListLegacy();
|
1031
|
+
enrollmentAccountDimensionsListExpandAndTopLegacy();
|
1032
|
+
enrollmentAccountDimensionsListWithFilterLegacy();
|
1033
|
+
invoiceSectionDimensionsListMca();
|
1034
|
+
invoiceSectionDimensionsListExpandAndTopMca();
|
1035
|
+
invoiceSectionDimensionsListWithFilterMca();
|
1036
|
+
managementGroupDimensionsListLegacy();
|
1037
|
+
managementGroupDimensionsListExpandAndTopLegacy();
|
1038
|
+
managementGroupDimensionsListWithFilterLegacy();
|
1039
|
+
resourceGroupDimensionsListLegacy();
|
1040
|
+
subscriptionDimensionsListLegacy();
|
1041
|
+
});
|
1042
|
+
}
|
1043
|
+
main().catch(console.error);
|
1044
|
+
//# sourceMappingURL=dimensionsListSample.js.map
|