@azure/arm-costmanagement 1.0.0-alpha.20250718.1 → 1.0.0-alpha.20250730.1
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/dist/browser/costManagementClient.js +28 -5
- package/dist/browser/costManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +256 -117
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/alerts.js +1 -0
- package/dist/browser/operations/alerts.js.map +1 -1
- package/dist/browser/operations/benefitRecommendations.js +23 -40
- package/dist/browser/operations/benefitRecommendations.js.map +1 -1
- package/dist/browser/operations/benefitUtilizationSummaries.js +89 -157
- package/dist/browser/operations/benefitUtilizationSummaries.js.map +1 -1
- package/dist/browser/operations/dimensions.js +19 -53
- package/dist/browser/operations/dimensions.js.map +1 -1
- package/dist/browser/operations/exports.js +1 -0
- package/dist/browser/operations/exports.js.map +1 -1
- package/dist/browser/operations/forecast.js +1 -0
- package/dist/browser/operations/forecast.js.map +1 -1
- package/dist/browser/operations/generateCostDetailsReport.js +23 -12
- package/dist/browser/operations/generateCostDetailsReport.js.map +1 -1
- package/dist/browser/operations/generateDetailedCostReport.js +12 -6
- package/dist/browser/operations/generateDetailedCostReport.js.map +1 -1
- package/dist/browser/operations/generateDetailedCostReportOperationResults.js +12 -6
- package/dist/browser/operations/generateDetailedCostReportOperationResults.js.map +1 -1
- package/dist/browser/operations/generateDetailedCostReportOperationStatus.js +1 -0
- package/dist/browser/operations/generateDetailedCostReportOperationStatus.js.map +1 -1
- package/dist/browser/operations/generateReservationDetailsReport.js +23 -12
- package/dist/browser/operations/generateReservationDetailsReport.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/priceSheet.js +23 -12
- package/dist/browser/operations/priceSheet.js.map +1 -1
- package/dist/browser/operations/query.js +1 -0
- package/dist/browser/operations/query.js.map +1 -1
- package/dist/browser/operations/scheduledActions.js +45 -79
- package/dist/browser/operations/scheduledActions.js.map +1 -1
- package/dist/browser/operations/views.js +45 -79
- package/dist/browser/operations/views.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/costManagementClient.js +28 -5
- package/dist/commonjs/costManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +256 -117
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/alerts.js +1 -0
- package/dist/commonjs/operations/alerts.js.map +1 -1
- package/dist/commonjs/operations/benefitRecommendations.js +23 -39
- package/dist/commonjs/operations/benefitRecommendations.js.map +1 -1
- package/dist/commonjs/operations/benefitUtilizationSummaries.js +89 -156
- package/dist/commonjs/operations/benefitUtilizationSummaries.js.map +1 -1
- package/dist/commonjs/operations/dimensions.js +19 -52
- package/dist/commonjs/operations/dimensions.js.map +1 -1
- package/dist/commonjs/operations/exports.js +1 -0
- package/dist/commonjs/operations/exports.js.map +1 -1
- package/dist/commonjs/operations/forecast.js +1 -0
- package/dist/commonjs/operations/forecast.js.map +1 -1
- package/dist/commonjs/operations/generateCostDetailsReport.js +23 -12
- package/dist/commonjs/operations/generateCostDetailsReport.js.map +1 -1
- package/dist/commonjs/operations/generateDetailedCostReport.js +12 -6
- package/dist/commonjs/operations/generateDetailedCostReport.js.map +1 -1
- package/dist/commonjs/operations/generateDetailedCostReportOperationResults.js +12 -6
- package/dist/commonjs/operations/generateDetailedCostReportOperationResults.js.map +1 -1
- package/dist/commonjs/operations/generateDetailedCostReportOperationStatus.js +1 -0
- package/dist/commonjs/operations/generateDetailedCostReportOperationStatus.js.map +1 -1
- package/dist/commonjs/operations/generateReservationDetailsReport.js +23 -12
- package/dist/commonjs/operations/generateReservationDetailsReport.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/priceSheet.js +23 -12
- package/dist/commonjs/operations/priceSheet.js.map +1 -1
- package/dist/commonjs/operations/query.js +1 -0
- package/dist/commonjs/operations/query.js.map +1 -1
- package/dist/commonjs/operations/scheduledActions.js +45 -78
- package/dist/commonjs/operations/scheduledActions.js.map +1 -1
- package/dist/commonjs/operations/views.js +45 -78
- package/dist/commonjs/operations/views.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/costManagementClient.js +28 -5
- package/dist/esm/costManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +256 -117
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/alerts.js +1 -0
- package/dist/esm/operations/alerts.js.map +1 -1
- package/dist/esm/operations/benefitRecommendations.js +23 -40
- package/dist/esm/operations/benefitRecommendations.js.map +1 -1
- package/dist/esm/operations/benefitUtilizationSummaries.js +89 -157
- package/dist/esm/operations/benefitUtilizationSummaries.js.map +1 -1
- package/dist/esm/operations/dimensions.js +19 -53
- package/dist/esm/operations/dimensions.js.map +1 -1
- package/dist/esm/operations/exports.js +1 -0
- package/dist/esm/operations/exports.js.map +1 -1
- package/dist/esm/operations/forecast.js +1 -0
- package/dist/esm/operations/forecast.js.map +1 -1
- package/dist/esm/operations/generateCostDetailsReport.js +23 -12
- package/dist/esm/operations/generateCostDetailsReport.js.map +1 -1
- package/dist/esm/operations/generateDetailedCostReport.js +12 -6
- package/dist/esm/operations/generateDetailedCostReport.js.map +1 -1
- package/dist/esm/operations/generateDetailedCostReportOperationResults.js +12 -6
- package/dist/esm/operations/generateDetailedCostReportOperationResults.js.map +1 -1
- package/dist/esm/operations/generateDetailedCostReportOperationStatus.js +1 -0
- package/dist/esm/operations/generateDetailedCostReportOperationStatus.js.map +1 -1
- package/dist/esm/operations/generateReservationDetailsReport.js +23 -12
- package/dist/esm/operations/generateReservationDetailsReport.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/priceSheet.js +23 -12
- package/dist/esm/operations/priceSheet.js.map +1 -1
- package/dist/esm/operations/query.js +1 -0
- package/dist/esm/operations/query.js.map +1 -1
- package/dist/esm/operations/scheduledActions.js +45 -79
- package/dist/esm/operations/scheduledActions.js.map +1 -1
- package/dist/esm/operations/views.js +45 -79
- package/dist/esm/operations/views.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/costManagementClient.js +28 -5
- package/dist/react-native/costManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +256 -117
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/alerts.js +1 -0
- package/dist/react-native/operations/alerts.js.map +1 -1
- package/dist/react-native/operations/benefitRecommendations.js +23 -40
- package/dist/react-native/operations/benefitRecommendations.js.map +1 -1
- package/dist/react-native/operations/benefitUtilizationSummaries.js +89 -157
- package/dist/react-native/operations/benefitUtilizationSummaries.js.map +1 -1
- package/dist/react-native/operations/dimensions.js +19 -53
- package/dist/react-native/operations/dimensions.js.map +1 -1
- package/dist/react-native/operations/exports.js +1 -0
- package/dist/react-native/operations/exports.js.map +1 -1
- package/dist/react-native/operations/forecast.js +1 -0
- package/dist/react-native/operations/forecast.js.map +1 -1
- package/dist/react-native/operations/generateCostDetailsReport.js +23 -12
- package/dist/react-native/operations/generateCostDetailsReport.js.map +1 -1
- package/dist/react-native/operations/generateDetailedCostReport.js +12 -6
- package/dist/react-native/operations/generateDetailedCostReport.js.map +1 -1
- package/dist/react-native/operations/generateDetailedCostReportOperationResults.js +12 -6
- package/dist/react-native/operations/generateDetailedCostReportOperationResults.js.map +1 -1
- package/dist/react-native/operations/generateDetailedCostReportOperationStatus.js +1 -0
- package/dist/react-native/operations/generateDetailedCostReportOperationStatus.js.map +1 -1
- package/dist/react-native/operations/generateReservationDetailsReport.js +23 -12
- package/dist/react-native/operations/generateReservationDetailsReport.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/priceSheet.js +23 -12
- package/dist/react-native/operations/priceSheet.js.map +1 -1
- package/dist/react-native/operations/query.js +1 -0
- package/dist/react-native/operations/query.js.map +1 -1
- package/dist/react-native/operations/scheduledActions.js +45 -79
- package/dist/react-native/operations/scheduledActions.js.map +1 -1
- package/dist/react-native/operations/views.js +45 -79
- package/dist/react-native/operations/views.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-costmanagement-node.api.md +2064 -2064
|
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
|
14
14
|
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
15
|
/** Class containing Alerts operations. */
|
|
16
16
|
class AlertsImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class Alerts class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alerts.js","sourceRoot":"","sources":["../../../src/operations/alerts.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,0CAA0C;AAC1C,MAAa,UAAU;IAGrB;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CACF,KAAa,EACb,OAAkC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CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,yBAAyB;QACpC,UAAU,CAAC,uBAAuB;KACnC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Alerts } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CostManagementClient } from \"../costManagementClient.js\";\nimport {\n AlertsListOptionalParams,\n AlertsListResponse,\n AlertsGetOptionalParams,\n AlertsGetResponse,\n DismissAlertPayload,\n AlertsDismissOptionalParams,\n AlertsDismissResponse,\n ExternalCloudProviderType,\n AlertsListExternalOptionalParams,\n AlertsListExternalResponse\n} from \"../models/index.js\";\n\n/** Class containing Alerts operations. */\nexport class AlertsImpl implements Alerts {\n private readonly client: CostManagementClient;\n\n /**\n * Initialize a new instance of the class Alerts class.\n * @param client Reference to the service client\n */\n constructor(client: CostManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the alerts for scope defined.\n * @param scope The scope associated with alerts operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}\n * for Management Group scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billingProfile scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'\n * for invoiceSection scope, and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific\n * for partners.\n * @param options The options parameters.\n */\n list(\n scope: string,\n options?: AlertsListOptionalParams\n ): Promise<AlertsListResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listOperationSpec\n );\n }\n\n /**\n * Gets the alert for the scope by alert ID.\n * @param scope The scope associated with alerts operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}\n * for Management Group scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billingProfile scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'\n * for invoiceSection scope, and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific\n * for partners.\n * @param alertId Alert ID\n * @param options The options parameters.\n */\n get(\n scope: string,\n alertId: string,\n options?: AlertsGetOptionalParams\n ): Promise<AlertsGetResponse> {\n return this.client.sendOperationRequest(\n { scope, alertId, options },\n getOperationSpec\n );\n }\n\n /**\n * Dismisses the specified alert\n * @param scope The scope associated with alerts operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}\n * for Management Group scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billingProfile scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'\n * for invoiceSection scope, and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific\n * for partners.\n * @param alertId Alert ID\n * @param parameters Parameters supplied to the Dismiss Alert operation.\n * @param options The options parameters.\n */\n dismiss(\n scope: string,\n alertId: string,\n parameters: DismissAlertPayload,\n options?: AlertsDismissOptionalParams\n ): Promise<AlertsDismissResponse> {\n return this.client.sendOperationRequest(\n { scope, alertId, parameters, options },\n dismissOperationSpec\n );\n }\n\n /**\n * Lists the Alerts for external cloud provider type defined.\n * @param externalCloudProviderType The external cloud provider type associated with dimension/query\n * operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts'\n * for consolidated account.\n * @param externalCloudProviderId This can be '{externalSubscriptionId}' for linked account or\n * '{externalBillingAccountId}' for consolidated account used with dimension/query operations.\n * @param options The options parameters.\n */\n listExternal(\n externalCloudProviderType: ExternalCloudProviderType,\n externalCloudProviderId: string,\n options?: AlertsListExternalOptionalParams\n ): Promise<AlertsListExternalResponse> {\n return this.client.sendOperationRequest(\n { externalCloudProviderType, externalCloudProviderId, options },\n listExternalOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/alerts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertsResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope1],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/alerts/{alertId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Alert\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope1, Parameters.alertId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst dismissOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/alerts/{alertId}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Alert\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope1, Parameters.alertId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listExternalOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/alerts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertsResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.externalCloudProviderType,\n Parameters.externalCloudProviderId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"alerts.js","sourceRoot":"","sources":["../../../src/operations/alerts.ts"],"names":[],"mappings":";AAAA;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UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,yBAAyB,GAA6B;IAC1D,IAAI,EACF,kGAAkG;IACpG,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,YAAY;SACjC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,yBAAyB;QACpC,UAAU,CAAC,uBAAuB;KACnC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Alerts } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CostManagementClient } from \"../costManagementClient.js\";\nimport {\n AlertsListOptionalParams,\n AlertsListResponse,\n AlertsGetOptionalParams,\n AlertsGetResponse,\n DismissAlertPayload,\n AlertsDismissOptionalParams,\n AlertsDismissResponse,\n ExternalCloudProviderType,\n AlertsListExternalOptionalParams,\n AlertsListExternalResponse\n} from \"../models/index.js\";\n\n/** Class containing Alerts operations. */\nexport class AlertsImpl implements Alerts {\n private readonly client: CostManagementClient;\n\n /**\n * Initialize a new instance of the class Alerts class.\n * @param client Reference to the service client\n */\n constructor(client: CostManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the alerts for scope defined.\n * @param scope The scope associated with alerts operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}\n * for Management Group scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billingProfile scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'\n * for invoiceSection scope, and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific\n * for partners.\n * @param options The options parameters.\n */\n list(\n scope: string,\n options?: AlertsListOptionalParams\n ): Promise<AlertsListResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listOperationSpec\n );\n }\n\n /**\n * Gets the alert for the scope by alert ID.\n * @param scope The scope associated with alerts operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}\n * for Management Group scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billingProfile scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'\n * for invoiceSection scope, and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific\n * for partners.\n * @param alertId Alert ID\n * @param options The options parameters.\n */\n get(\n scope: string,\n alertId: string,\n options?: AlertsGetOptionalParams\n ): Promise<AlertsGetResponse> {\n return this.client.sendOperationRequest(\n { scope, alertId, options },\n getOperationSpec\n );\n }\n\n /**\n * Dismisses the specified alert\n * @param scope The scope associated with alerts operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}\n * for Management Group scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billingProfile scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'\n * for invoiceSection scope, and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific\n * for partners.\n * @param alertId Alert ID\n * @param parameters Parameters supplied to the Dismiss Alert operation.\n * @param options The options parameters.\n */\n dismiss(\n scope: string,\n alertId: string,\n parameters: DismissAlertPayload,\n options?: AlertsDismissOptionalParams\n ): Promise<AlertsDismissResponse> {\n return this.client.sendOperationRequest(\n { scope, alertId, parameters, options },\n dismissOperationSpec\n );\n }\n\n /**\n * Lists the Alerts for external cloud provider type defined.\n * @param externalCloudProviderType The external cloud provider type associated with dimension/query\n * operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts'\n * for consolidated account.\n * @param externalCloudProviderId This can be '{externalSubscriptionId}' for linked account or\n * '{externalBillingAccountId}' for consolidated account used with dimension/query operations.\n * @param options The options parameters.\n */\n listExternal(\n externalCloudProviderType: ExternalCloudProviderType,\n externalCloudProviderId: string,\n options?: AlertsListExternalOptionalParams\n ): Promise<AlertsListExternalResponse> {\n return this.client.sendOperationRequest(\n { externalCloudProviderType, externalCloudProviderId, options },\n listExternalOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/alerts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertsResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope1],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/alerts/{alertId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Alert\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope1, Parameters.alertId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst dismissOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/alerts/{alertId}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Alert\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope1, Parameters.alertId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listExternalOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/alerts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AlertsResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.externalCloudProviderType,\n Parameters.externalCloudProviderId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing BenefitRecommendations operations. */
|
|
18
18
|
class BenefitRecommendationsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class BenefitRecommendations class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -43,52 +44,35 @@ class BenefitRecommendationsImpl {
|
|
|
43
44
|
return this;
|
|
44
45
|
},
|
|
45
46
|
byPage: (settings) => {
|
|
46
|
-
if (settings
|
|
47
|
+
if (settings?.maxPageSize) {
|
|
47
48
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
48
49
|
}
|
|
49
50
|
return this.listPagingPage(billingScope, options, settings);
|
|
50
51
|
}
|
|
51
52
|
};
|
|
52
53
|
}
|
|
53
|
-
listPagingPage(billingScope, options, settings) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
});
|
|
54
|
+
async *listPagingPage(billingScope, options, settings) {
|
|
55
|
+
let result;
|
|
56
|
+
let continuationToken = settings?.continuationToken;
|
|
57
|
+
if (!continuationToken) {
|
|
58
|
+
result = await this._list(billingScope, options);
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
62
|
+
yield page;
|
|
63
|
+
}
|
|
64
|
+
while (continuationToken) {
|
|
65
|
+
result = await this._listNext(billingScope, continuationToken, options);
|
|
66
|
+
continuationToken = result.nextLink;
|
|
67
|
+
let page = result.value || [];
|
|
68
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
69
|
+
yield page;
|
|
70
|
+
}
|
|
72
71
|
}
|
|
73
|
-
listPagingAll(billingScope, options) {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(billingScope, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
78
|
-
_c = _f.value;
|
|
79
|
-
_d = false;
|
|
80
|
-
const page = _c;
|
|
81
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
85
|
-
finally {
|
|
86
|
-
try {
|
|
87
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
88
|
-
}
|
|
89
|
-
finally { if (e_1) throw e_1.error; }
|
|
90
|
-
}
|
|
91
|
-
});
|
|
72
|
+
async *listPagingAll(billingScope, options) {
|
|
73
|
+
for await (const page of this.listPagingPage(billingScope, options)) {
|
|
74
|
+
yield* page;
|
|
75
|
+
}
|
|
92
76
|
}
|
|
93
77
|
/**
|
|
94
78
|
* List of recommendations for purchasing savings plan.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benefitRecommendations.js","sourceRoot":"","sources":["../../../src/operations/benefitRecommendations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,0DAA0D;AAC1D,MAAa,0BAA0B;IAGrC;;;O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,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gCAAgC;SACrD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,OAAO;KACnB;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,YAAY,CAAC;IAC1D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gCAAgC;SACrD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { BenefitRecommendations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CostManagementClient } from \"../costManagementClient.js\";\nimport {\n BenefitRecommendationModel,\n BenefitRecommendationsListNextOptionalParams,\n BenefitRecommendationsListOptionalParams,\n BenefitRecommendationsListResponse,\n BenefitRecommendationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BenefitRecommendations operations. */\nexport class BenefitRecommendationsImpl implements BenefitRecommendations {\n private readonly client: CostManagementClient;\n\n /**\n * Initialize a new instance of the class BenefitRecommendations class.\n * @param client Reference to the service client\n */\n constructor(client: CostManagementClient) {\n this.client = client;\n }\n\n /**\n * List of recommendations for purchasing savings plan.\n * @param billingScope The scope associated with benefit recommendation operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resource group scope,\n * /providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for enterprise agreement scope, and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billing profile scope\n * @param options The options parameters.\n */\n public list(\n billingScope: string,\n options?: BenefitRecommendationsListOptionalParams\n ): PagedAsyncIterableIterator<BenefitRecommendationModel> {\n const iter = this.listPagingAll(billingScope, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(billingScope, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n billingScope: string,\n options?: BenefitRecommendationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<BenefitRecommendationModel[]> {\n let result: BenefitRecommendationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(billingScope, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(billingScope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n billingScope: string,\n options?: BenefitRecommendationsListOptionalParams\n ): AsyncIterableIterator<BenefitRecommendationModel> {\n for await (const page of this.listPagingPage(billingScope, options)) {\n yield* page;\n }\n }\n\n /**\n * List of recommendations for purchasing savings plan.\n * @param billingScope The scope associated with benefit recommendation operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resource group scope,\n * /providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for enterprise agreement scope, and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billing profile scope\n * @param options The options parameters.\n */\n private _list(\n billingScope: string,\n options?: BenefitRecommendationsListOptionalParams\n ): Promise<BenefitRecommendationsListResponse> {\n return this.client.sendOperationRequest(\n { billingScope, options },\n listOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param billingScope The scope associated with benefit recommendation operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resource group scope,\n * /providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for enterprise agreement scope, and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billing profile scope\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n billingScope: string,\n nextLink: string,\n options?: BenefitRecommendationsListNextOptionalParams\n ): Promise<BenefitRecommendationsListNextResponse> {\n return this.client.sendOperationRequest(\n { billingScope, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{billingScope}/providers/Microsoft.CostManagement/benefitRecommendations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BenefitRecommendationsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.expand,\n Parameters.orderby\n ],\n urlParameters: [Parameters.$host, Parameters.billingScope],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BenefitRecommendationsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.billingScope\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"benefitRecommendations.js","sourceRoot":"","sources":["../../../src/operations/benefitRecommendations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,0DAA0D;AAC1D,MAAa,0BAA0B;IACpB,MAAM,CAAuB;IAE9C;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;OASG;IACI,IAAI,CACT,YAAoB,EACpB,OAAkD;QAElD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;QACvD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,YAAY,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;YAC9D,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,c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,EAChB,OAAsD;QAEtD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,EACnC,qBAAqB,CACtB,CAAC;IACJ,CAAC;CACF;AAnHD,gEAmHC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EACF,2EAA2E;IAC7E,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gCAAgC;SACrD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,OAAO;KACnB;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,YAAY,CAAC;IAC1D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gCAAgC;SACrD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { BenefitRecommendations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CostManagementClient } from \"../costManagementClient.js\";\nimport {\n BenefitRecommendationModel,\n BenefitRecommendationsListNextOptionalParams,\n BenefitRecommendationsListOptionalParams,\n BenefitRecommendationsListResponse,\n BenefitRecommendationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BenefitRecommendations operations. */\nexport class BenefitRecommendationsImpl implements BenefitRecommendations {\n private readonly client: CostManagementClient;\n\n /**\n * Initialize a new instance of the class BenefitRecommendations class.\n * @param client Reference to the service client\n */\n constructor(client: CostManagementClient) {\n this.client = client;\n }\n\n /**\n * List of recommendations for purchasing savings plan.\n * @param billingScope The scope associated with benefit recommendation operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resource group scope,\n * /providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for enterprise agreement scope, and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billing profile scope\n * @param options The options parameters.\n */\n public list(\n billingScope: string,\n options?: BenefitRecommendationsListOptionalParams\n ): PagedAsyncIterableIterator<BenefitRecommendationModel> {\n const iter = this.listPagingAll(billingScope, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(billingScope, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n billingScope: string,\n options?: BenefitRecommendationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<BenefitRecommendationModel[]> {\n let result: BenefitRecommendationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(billingScope, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(billingScope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n billingScope: string,\n options?: BenefitRecommendationsListOptionalParams\n ): AsyncIterableIterator<BenefitRecommendationModel> {\n for await (const page of this.listPagingPage(billingScope, options)) {\n yield* page;\n }\n }\n\n /**\n * List of recommendations for purchasing savings plan.\n * @param billingScope The scope associated with benefit recommendation operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resource group scope,\n * /providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for enterprise agreement scope, and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billing profile scope\n * @param options The options parameters.\n */\n private _list(\n billingScope: string,\n options?: BenefitRecommendationsListOptionalParams\n ): Promise<BenefitRecommendationsListResponse> {\n return this.client.sendOperationRequest(\n { billingScope, options },\n listOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param billingScope The scope associated with benefit recommendation operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resource group scope,\n * /providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for enterprise agreement scope, and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billing profile scope\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n billingScope: string,\n nextLink: string,\n options?: BenefitRecommendationsListNextOptionalParams\n ): Promise<BenefitRecommendationsListNextResponse> {\n return this.client.sendOperationRequest(\n { billingScope, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{billingScope}/providers/Microsoft.CostManagement/benefitRecommendations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BenefitRecommendationsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.expand,\n Parameters.orderby\n ],\n urlParameters: [Parameters.$host, Parameters.billingScope],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BenefitRecommendationsListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.billingScope\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing BenefitUtilizationSummaries operations. */
|
|
18
18
|
class BenefitUtilizationSummariesImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class BenefitUtilizationSummaries class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -39,52 +40,35 @@ class BenefitUtilizationSummariesImpl {
|
|
|
39
40
|
return this;
|
|
40
41
|
},
|
|
41
42
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
43
|
+
if (settings?.maxPageSize) {
|
|
43
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
45
|
}
|
|
45
46
|
return this.listByBillingAccountIdPagingPage(billingAccountId, options, settings);
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
listByBillingAccountIdPagingPage(billingAccountId, options, settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
});
|
|
50
|
+
async *listByBillingAccountIdPagingPage(billingAccountId, options, settings) {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings?.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = await this._listByBillingAccountId(billingAccountId, options);
|
|
55
|
+
let page = result.value || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
58
|
+
yield page;
|
|
59
|
+
}
|
|
60
|
+
while (continuationToken) {
|
|
61
|
+
result = await this._listByBillingAccountIdNext(billingAccountId, continuationToken, options);
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
65
|
+
yield page;
|
|
66
|
+
}
|
|
68
67
|
}
|
|
69
|
-
listByBillingAccountIdPagingAll(billingAccountId, options) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByBillingAccountIdPagingPage(billingAccountId, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
-
_c = _f.value;
|
|
75
|
-
_d = false;
|
|
76
|
-
const page = _c;
|
|
77
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
-
finally {
|
|
82
|
-
try {
|
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
84
|
-
}
|
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
|
86
|
-
}
|
|
87
|
-
});
|
|
68
|
+
async *listByBillingAccountIdPagingAll(billingAccountId, options) {
|
|
69
|
+
for await (const page of this.listByBillingAccountIdPagingPage(billingAccountId, options)) {
|
|
70
|
+
yield* page;
|
|
71
|
+
}
|
|
88
72
|
}
|
|
89
73
|
/**
|
|
90
74
|
* Lists savings plan utilization summaries for billing profile. Supported at grain values: 'Daily' and
|
|
@@ -103,52 +87,35 @@ class BenefitUtilizationSummariesImpl {
|
|
|
103
87
|
return this;
|
|
104
88
|
},
|
|
105
89
|
byPage: (settings) => {
|
|
106
|
-
if (settings
|
|
90
|
+
if (settings?.maxPageSize) {
|
|
107
91
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
108
92
|
}
|
|
109
93
|
return this.listByBillingProfileIdPagingPage(billingAccountId, billingProfileId, options, settings);
|
|
110
94
|
}
|
|
111
95
|
};
|
|
112
96
|
}
|
|
113
|
-
listByBillingProfileIdPagingPage(billingAccountId, billingProfileId, options, settings) {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
131
|
-
});
|
|
97
|
+
async *listByBillingProfileIdPagingPage(billingAccountId, billingProfileId, options, settings) {
|
|
98
|
+
let result;
|
|
99
|
+
let continuationToken = settings?.continuationToken;
|
|
100
|
+
if (!continuationToken) {
|
|
101
|
+
result = await this._listByBillingProfileId(billingAccountId, billingProfileId, options);
|
|
102
|
+
let page = result.value || [];
|
|
103
|
+
continuationToken = result.nextLink;
|
|
104
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
105
|
+
yield page;
|
|
106
|
+
}
|
|
107
|
+
while (continuationToken) {
|
|
108
|
+
result = await this._listByBillingProfileIdNext(billingAccountId, billingProfileId, continuationToken, options);
|
|
109
|
+
continuationToken = result.nextLink;
|
|
110
|
+
let page = result.value || [];
|
|
111
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
112
|
+
yield page;
|
|
113
|
+
}
|
|
132
114
|
}
|
|
133
|
-
listByBillingProfileIdPagingAll(billingAccountId, billingProfileId, options) {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByBillingProfileIdPagingPage(billingAccountId, billingProfileId, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
138
|
-
_c = _f.value;
|
|
139
|
-
_d = false;
|
|
140
|
-
const page = _c;
|
|
141
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
145
|
-
finally {
|
|
146
|
-
try {
|
|
147
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
148
|
-
}
|
|
149
|
-
finally { if (e_2) throw e_2.error; }
|
|
150
|
-
}
|
|
151
|
-
});
|
|
115
|
+
async *listByBillingProfileIdPagingAll(billingAccountId, billingProfileId, options) {
|
|
116
|
+
for await (const page of this.listByBillingProfileIdPagingPage(billingAccountId, billingProfileId, options)) {
|
|
117
|
+
yield* page;
|
|
118
|
+
}
|
|
152
119
|
}
|
|
153
120
|
/**
|
|
154
121
|
* Lists the savings plan utilization summaries for daily or monthly grain.
|
|
@@ -165,52 +132,35 @@ class BenefitUtilizationSummariesImpl {
|
|
|
165
132
|
return this;
|
|
166
133
|
},
|
|
167
134
|
byPage: (settings) => {
|
|
168
|
-
if (settings
|
|
135
|
+
if (settings?.maxPageSize) {
|
|
169
136
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
170
137
|
}
|
|
171
138
|
return this.listBySavingsPlanOrderPagingPage(savingsPlanOrderId, options, settings);
|
|
172
139
|
}
|
|
173
140
|
};
|
|
174
141
|
}
|
|
175
|
-
listBySavingsPlanOrderPagingPage(savingsPlanOrderId, options, settings) {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
}
|
|
193
|
-
});
|
|
142
|
+
async *listBySavingsPlanOrderPagingPage(savingsPlanOrderId, options, settings) {
|
|
143
|
+
let result;
|
|
144
|
+
let continuationToken = settings?.continuationToken;
|
|
145
|
+
if (!continuationToken) {
|
|
146
|
+
result = await this._listBySavingsPlanOrder(savingsPlanOrderId, options);
|
|
147
|
+
let page = result.value || [];
|
|
148
|
+
continuationToken = result.nextLink;
|
|
149
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
150
|
+
yield page;
|
|
151
|
+
}
|
|
152
|
+
while (continuationToken) {
|
|
153
|
+
result = await this._listBySavingsPlanOrderNext(savingsPlanOrderId, continuationToken, options);
|
|
154
|
+
continuationToken = result.nextLink;
|
|
155
|
+
let page = result.value || [];
|
|
156
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
157
|
+
yield page;
|
|
158
|
+
}
|
|
194
159
|
}
|
|
195
|
-
listBySavingsPlanOrderPagingAll(savingsPlanOrderId, options) {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listBySavingsPlanOrderPagingPage(savingsPlanOrderId, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
200
|
-
_c = _f.value;
|
|
201
|
-
_d = false;
|
|
202
|
-
const page = _c;
|
|
203
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
207
|
-
finally {
|
|
208
|
-
try {
|
|
209
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
210
|
-
}
|
|
211
|
-
finally { if (e_3) throw e_3.error; }
|
|
212
|
-
}
|
|
213
|
-
});
|
|
160
|
+
async *listBySavingsPlanOrderPagingAll(savingsPlanOrderId, options) {
|
|
161
|
+
for await (const page of this.listBySavingsPlanOrderPagingPage(savingsPlanOrderId, options)) {
|
|
162
|
+
yield* page;
|
|
163
|
+
}
|
|
214
164
|
}
|
|
215
165
|
/**
|
|
216
166
|
* Lists the savings plan utilization summaries for daily or monthly grain.
|
|
@@ -228,52 +178,35 @@ class BenefitUtilizationSummariesImpl {
|
|
|
228
178
|
return this;
|
|
229
179
|
},
|
|
230
180
|
byPage: (settings) => {
|
|
231
|
-
if (settings
|
|
181
|
+
if (settings?.maxPageSize) {
|
|
232
182
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
233
183
|
}
|
|
234
184
|
return this.listBySavingsPlanIdPagingPage(savingsPlanOrderId, savingsPlanId, options, settings);
|
|
235
185
|
}
|
|
236
186
|
};
|
|
237
187
|
}
|
|
238
|
-
listBySavingsPlanIdPagingPage(savingsPlanOrderId, savingsPlanId, options, settings) {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
}
|
|
256
|
-
});
|
|
188
|
+
async *listBySavingsPlanIdPagingPage(savingsPlanOrderId, savingsPlanId, options, settings) {
|
|
189
|
+
let result;
|
|
190
|
+
let continuationToken = settings?.continuationToken;
|
|
191
|
+
if (!continuationToken) {
|
|
192
|
+
result = await this._listBySavingsPlanId(savingsPlanOrderId, savingsPlanId, options);
|
|
193
|
+
let page = result.value || [];
|
|
194
|
+
continuationToken = result.nextLink;
|
|
195
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
196
|
+
yield page;
|
|
197
|
+
}
|
|
198
|
+
while (continuationToken) {
|
|
199
|
+
result = await this._listBySavingsPlanIdNext(savingsPlanOrderId, savingsPlanId, continuationToken, options);
|
|
200
|
+
continuationToken = result.nextLink;
|
|
201
|
+
let page = result.value || [];
|
|
202
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
203
|
+
yield page;
|
|
204
|
+
}
|
|
257
205
|
}
|
|
258
|
-
listBySavingsPlanIdPagingAll(savingsPlanOrderId, savingsPlanId, options) {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listBySavingsPlanIdPagingPage(savingsPlanOrderId, savingsPlanId, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
263
|
-
_c = _f.value;
|
|
264
|
-
_d = false;
|
|
265
|
-
const page = _c;
|
|
266
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
270
|
-
finally {
|
|
271
|
-
try {
|
|
272
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
273
|
-
}
|
|
274
|
-
finally { if (e_4) throw e_4.error; }
|
|
275
|
-
}
|
|
276
|
-
});
|
|
206
|
+
async *listBySavingsPlanIdPagingAll(savingsPlanOrderId, savingsPlanId, options) {
|
|
207
|
+
for await (const page of this.listBySavingsPlanIdPagingPage(savingsPlanOrderId, savingsPlanId, options)) {
|
|
208
|
+
yield* page;
|
|
209
|
+
}
|
|
277
210
|
}
|
|
278
211
|
/**
|
|
279
212
|
* Lists savings plan utilization summaries for the enterprise agreement scope. Supported at grain
|