@azure/arm-billing 5.0.1-alpha.20250619.1 → 5.0.1-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/billingManagementClient.js +43 -5
- package/dist/browser/billingManagementClient.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 +868 -393
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/address.js +1 -0
- package/dist/browser/operations/address.js.map +1 -1
- package/dist/browser/operations/agreements.js +23 -40
- package/dist/browser/operations/agreements.js.map +1 -1
- package/dist/browser/operations/associatedTenants.js +45 -52
- package/dist/browser/operations/associatedTenants.js.map +1 -1
- package/dist/browser/operations/availableBalances.js +1 -0
- package/dist/browser/operations/availableBalances.js.map +1 -1
- package/dist/browser/operations/billingAccounts.js +79 -98
- package/dist/browser/operations/billingAccounts.js.map +1 -1
- package/dist/browser/operations/billingPermissions.js +162 -281
- package/dist/browser/operations/billingPermissions.js.map +1 -1
- package/dist/browser/operations/billingProfiles.js +45 -52
- package/dist/browser/operations/billingProfiles.js.map +1 -1
- package/dist/browser/operations/billingPropertyOperations.js +1 -0
- package/dist/browser/operations/billingPropertyOperations.js.map +1 -1
- package/dist/browser/operations/billingRequests.js +122 -202
- package/dist/browser/operations/billingRequests.js.map +1 -1
- package/dist/browser/operations/billingRoleAssignments.js +260 -307
- package/dist/browser/operations/billingRoleAssignments.js.map +1 -1
- package/dist/browser/operations/billingRoleDefinitionOperations.js +139 -241
- package/dist/browser/operations/billingRoleDefinitionOperations.js.map +1 -1
- package/dist/browser/operations/billingSubscriptions.js +199 -271
- package/dist/browser/operations/billingSubscriptions.js.map +1 -1
- package/dist/browser/operations/billingSubscriptionsAliases.js +34 -46
- package/dist/browser/operations/billingSubscriptionsAliases.js.map +1 -1
- package/dist/browser/operations/customers.js +45 -79
- package/dist/browser/operations/customers.js.map +1 -1
- package/dist/browser/operations/departments.js +23 -40
- package/dist/browser/operations/departments.js.map +1 -1
- package/dist/browser/operations/enrollmentAccounts.js +45 -79
- package/dist/browser/operations/enrollmentAccounts.js.map +1 -1
- package/dist/browser/operations/invoiceSections.js +45 -52
- package/dist/browser/operations/invoiceSections.js.map +1 -1
- package/dist/browser/operations/invoices.js +133 -154
- package/dist/browser/operations/invoices.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/partnerTransfers.js +23 -40
- package/dist/browser/operations/partnerTransfers.js.map +1 -1
- package/dist/browser/operations/paymentMethods.js +67 -118
- package/dist/browser/operations/paymentMethods.js.map +1 -1
- package/dist/browser/operations/policies.js +45 -24
- package/dist/browser/operations/policies.js.map +1 -1
- package/dist/browser/operations/products.js +100 -163
- package/dist/browser/operations/products.js.map +1 -1
- package/dist/browser/operations/recipientTransfers.js +23 -40
- package/dist/browser/operations/recipientTransfers.js.map +1 -1
- package/dist/browser/operations/reservationOrders.js +23 -40
- package/dist/browser/operations/reservationOrders.js.map +1 -1
- package/dist/browser/operations/reservations.js +78 -124
- package/dist/browser/operations/reservations.js.map +1 -1
- package/dist/browser/operations/savingsPlanOrders.js +23 -40
- package/dist/browser/operations/savingsPlanOrders.js.map +1 -1
- package/dist/browser/operations/savingsPlans.js +56 -85
- package/dist/browser/operations/savingsPlans.js.map +1 -1
- package/dist/browser/operations/transactions.js +100 -163
- package/dist/browser/operations/transactions.js.map +1 -1
- package/dist/browser/operations/transfers.js +23 -40
- package/dist/browser/operations/transfers.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/billingManagementClient.js +43 -5
- package/dist/commonjs/billingManagementClient.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 +868 -393
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/address.js +1 -0
- package/dist/commonjs/operations/address.js.map +1 -1
- package/dist/commonjs/operations/agreements.js +23 -39
- package/dist/commonjs/operations/agreements.js.map +1 -1
- package/dist/commonjs/operations/associatedTenants.js +45 -51
- package/dist/commonjs/operations/associatedTenants.js.map +1 -1
- package/dist/commonjs/operations/availableBalances.js +1 -0
- package/dist/commonjs/operations/availableBalances.js.map +1 -1
- package/dist/commonjs/operations/billingAccounts.js +79 -97
- package/dist/commonjs/operations/billingAccounts.js.map +1 -1
- package/dist/commonjs/operations/billingPermissions.js +155 -273
- package/dist/commonjs/operations/billingPermissions.js.map +1 -1
- package/dist/commonjs/operations/billingProfiles.js +45 -51
- package/dist/commonjs/operations/billingProfiles.js.map +1 -1
- package/dist/commonjs/operations/billingPropertyOperations.js +1 -0
- package/dist/commonjs/operations/billingPropertyOperations.js.map +1 -1
- package/dist/commonjs/operations/billingRequests.js +122 -201
- package/dist/commonjs/operations/billingRequests.js.map +1 -1
- package/dist/commonjs/operations/billingRoleAssignments.js +260 -306
- package/dist/commonjs/operations/billingRoleAssignments.js.map +1 -1
- package/dist/commonjs/operations/billingRoleDefinitionOperations.js +139 -240
- package/dist/commonjs/operations/billingRoleDefinitionOperations.js.map +1 -1
- package/dist/commonjs/operations/billingSubscriptions.js +199 -270
- package/dist/commonjs/operations/billingSubscriptions.js.map +1 -1
- package/dist/commonjs/operations/billingSubscriptionsAliases.js +34 -45
- package/dist/commonjs/operations/billingSubscriptionsAliases.js.map +1 -1
- package/dist/commonjs/operations/customers.js +45 -78
- package/dist/commonjs/operations/customers.js.map +1 -1
- package/dist/commonjs/operations/departments.js +23 -39
- package/dist/commonjs/operations/departments.js.map +1 -1
- package/dist/commonjs/operations/enrollmentAccounts.js +45 -78
- package/dist/commonjs/operations/enrollmentAccounts.js.map +1 -1
- package/dist/commonjs/operations/invoiceSections.js +45 -51
- package/dist/commonjs/operations/invoiceSections.js.map +1 -1
- package/dist/commonjs/operations/invoices.js +133 -153
- package/dist/commonjs/operations/invoices.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/partnerTransfers.js +23 -39
- package/dist/commonjs/operations/partnerTransfers.js.map +1 -1
- package/dist/commonjs/operations/paymentMethods.js +67 -117
- package/dist/commonjs/operations/paymentMethods.js.map +1 -1
- package/dist/commonjs/operations/policies.js +45 -24
- package/dist/commonjs/operations/policies.js.map +1 -1
- package/dist/commonjs/operations/products.js +100 -162
- package/dist/commonjs/operations/products.js.map +1 -1
- package/dist/commonjs/operations/recipientTransfers.js +23 -39
- package/dist/commonjs/operations/recipientTransfers.js.map +1 -1
- package/dist/commonjs/operations/reservationOrders.js +23 -39
- package/dist/commonjs/operations/reservationOrders.js.map +1 -1
- package/dist/commonjs/operations/reservations.js +78 -123
- package/dist/commonjs/operations/reservations.js.map +1 -1
- package/dist/commonjs/operations/savingsPlanOrders.js +23 -39
- package/dist/commonjs/operations/savingsPlanOrders.js.map +1 -1
- package/dist/commonjs/operations/savingsPlans.js +56 -84
- package/dist/commonjs/operations/savingsPlans.js.map +1 -1
- package/dist/commonjs/operations/transactions.js +100 -162
- package/dist/commonjs/operations/transactions.js.map +1 -1
- package/dist/commonjs/operations/transfers.js +23 -39
- package/dist/commonjs/operations/transfers.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/billingManagementClient.js +43 -5
- package/dist/esm/billingManagementClient.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 +868 -393
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/address.js +1 -0
- package/dist/esm/operations/address.js.map +1 -1
- package/dist/esm/operations/agreements.js +23 -40
- package/dist/esm/operations/agreements.js.map +1 -1
- package/dist/esm/operations/associatedTenants.js +45 -52
- package/dist/esm/operations/associatedTenants.js.map +1 -1
- package/dist/esm/operations/availableBalances.js +1 -0
- package/dist/esm/operations/availableBalances.js.map +1 -1
- package/dist/esm/operations/billingAccounts.js +79 -98
- package/dist/esm/operations/billingAccounts.js.map +1 -1
- package/dist/esm/operations/billingPermissions.js +162 -281
- package/dist/esm/operations/billingPermissions.js.map +1 -1
- package/dist/esm/operations/billingProfiles.js +45 -52
- package/dist/esm/operations/billingProfiles.js.map +1 -1
- package/dist/esm/operations/billingPropertyOperations.js +1 -0
- package/dist/esm/operations/billingPropertyOperations.js.map +1 -1
- package/dist/esm/operations/billingRequests.js +122 -202
- package/dist/esm/operations/billingRequests.js.map +1 -1
- package/dist/esm/operations/billingRoleAssignments.js +260 -307
- package/dist/esm/operations/billingRoleAssignments.js.map +1 -1
- package/dist/esm/operations/billingRoleDefinitionOperations.js +139 -241
- package/dist/esm/operations/billingRoleDefinitionOperations.js.map +1 -1
- package/dist/esm/operations/billingSubscriptions.js +199 -271
- package/dist/esm/operations/billingSubscriptions.js.map +1 -1
- package/dist/esm/operations/billingSubscriptionsAliases.js +34 -46
- package/dist/esm/operations/billingSubscriptionsAliases.js.map +1 -1
- package/dist/esm/operations/customers.js +45 -79
- package/dist/esm/operations/customers.js.map +1 -1
- package/dist/esm/operations/departments.js +23 -40
- package/dist/esm/operations/departments.js.map +1 -1
- package/dist/esm/operations/enrollmentAccounts.js +45 -79
- package/dist/esm/operations/enrollmentAccounts.js.map +1 -1
- package/dist/esm/operations/invoiceSections.js +45 -52
- package/dist/esm/operations/invoiceSections.js.map +1 -1
- package/dist/esm/operations/invoices.js +133 -154
- package/dist/esm/operations/invoices.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/partnerTransfers.js +23 -40
- package/dist/esm/operations/partnerTransfers.js.map +1 -1
- package/dist/esm/operations/paymentMethods.js +67 -118
- package/dist/esm/operations/paymentMethods.js.map +1 -1
- package/dist/esm/operations/policies.js +45 -24
- package/dist/esm/operations/policies.js.map +1 -1
- package/dist/esm/operations/products.js +100 -163
- package/dist/esm/operations/products.js.map +1 -1
- package/dist/esm/operations/recipientTransfers.js +23 -40
- package/dist/esm/operations/recipientTransfers.js.map +1 -1
- package/dist/esm/operations/reservationOrders.js +23 -40
- package/dist/esm/operations/reservationOrders.js.map +1 -1
- package/dist/esm/operations/reservations.js +78 -124
- package/dist/esm/operations/reservations.js.map +1 -1
- package/dist/esm/operations/savingsPlanOrders.js +23 -40
- package/dist/esm/operations/savingsPlanOrders.js.map +1 -1
- package/dist/esm/operations/savingsPlans.js +56 -85
- package/dist/esm/operations/savingsPlans.js.map +1 -1
- package/dist/esm/operations/transactions.js +100 -163
- package/dist/esm/operations/transactions.js.map +1 -1
- package/dist/esm/operations/transfers.js +23 -40
- package/dist/esm/operations/transfers.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/billingManagementClient.js +43 -5
- package/dist/react-native/billingManagementClient.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 +868 -393
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/address.js +1 -0
- package/dist/react-native/operations/address.js.map +1 -1
- package/dist/react-native/operations/agreements.js +23 -40
- package/dist/react-native/operations/agreements.js.map +1 -1
- package/dist/react-native/operations/associatedTenants.js +45 -52
- package/dist/react-native/operations/associatedTenants.js.map +1 -1
- package/dist/react-native/operations/availableBalances.js +1 -0
- package/dist/react-native/operations/availableBalances.js.map +1 -1
- package/dist/react-native/operations/billingAccounts.js +79 -98
- package/dist/react-native/operations/billingAccounts.js.map +1 -1
- package/dist/react-native/operations/billingPermissions.js +162 -281
- package/dist/react-native/operations/billingPermissions.js.map +1 -1
- package/dist/react-native/operations/billingProfiles.js +45 -52
- package/dist/react-native/operations/billingProfiles.js.map +1 -1
- package/dist/react-native/operations/billingPropertyOperations.js +1 -0
- package/dist/react-native/operations/billingPropertyOperations.js.map +1 -1
- package/dist/react-native/operations/billingRequests.js +122 -202
- package/dist/react-native/operations/billingRequests.js.map +1 -1
- package/dist/react-native/operations/billingRoleAssignments.js +260 -307
- package/dist/react-native/operations/billingRoleAssignments.js.map +1 -1
- package/dist/react-native/operations/billingRoleDefinitionOperations.js +139 -241
- package/dist/react-native/operations/billingRoleDefinitionOperations.js.map +1 -1
- package/dist/react-native/operations/billingSubscriptions.js +199 -271
- package/dist/react-native/operations/billingSubscriptions.js.map +1 -1
- package/dist/react-native/operations/billingSubscriptionsAliases.js +34 -46
- package/dist/react-native/operations/billingSubscriptionsAliases.js.map +1 -1
- package/dist/react-native/operations/customers.js +45 -79
- package/dist/react-native/operations/customers.js.map +1 -1
- package/dist/react-native/operations/departments.js +23 -40
- package/dist/react-native/operations/departments.js.map +1 -1
- package/dist/react-native/operations/enrollmentAccounts.js +45 -79
- package/dist/react-native/operations/enrollmentAccounts.js.map +1 -1
- package/dist/react-native/operations/invoiceSections.js +45 -52
- package/dist/react-native/operations/invoiceSections.js.map +1 -1
- package/dist/react-native/operations/invoices.js +133 -154
- package/dist/react-native/operations/invoices.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/partnerTransfers.js +23 -40
- package/dist/react-native/operations/partnerTransfers.js.map +1 -1
- package/dist/react-native/operations/paymentMethods.js +67 -118
- package/dist/react-native/operations/paymentMethods.js.map +1 -1
- package/dist/react-native/operations/policies.js +45 -24
- package/dist/react-native/operations/policies.js.map +1 -1
- package/dist/react-native/operations/products.js +100 -163
- package/dist/react-native/operations/products.js.map +1 -1
- package/dist/react-native/operations/recipientTransfers.js +23 -40
- package/dist/react-native/operations/recipientTransfers.js.map +1 -1
- package/dist/react-native/operations/reservationOrders.js +23 -40
- package/dist/react-native/operations/reservationOrders.js.map +1 -1
- package/dist/react-native/operations/reservations.js +78 -124
- package/dist/react-native/operations/reservations.js.map +1 -1
- package/dist/react-native/operations/savingsPlanOrders.js +23 -40
- package/dist/react-native/operations/savingsPlanOrders.js.map +1 -1
- package/dist/react-native/operations/savingsPlans.js +56 -85
- package/dist/react-native/operations/savingsPlans.js.map +1 -1
- package/dist/react-native/operations/transactions.js +100 -163
- package/dist/react-native/operations/transactions.js.map +1 -1
- package/dist/react-native/operations/transfers.js +23 -40
- package/dist/react-native/operations/transfers.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-billing.api.md → arm-billing-node.api.md} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"policies.js","sourceRoot":"","sources":["../../../src/operations/policies.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AA0B9C,4CAA4C;AAC5C,MAAa,YAAY;IAGvB;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;OASG;IACH,aAAa,CACX,kBAA0B,EAC1B,kBAA0B,EAC1B,YAAoB,EACpB,UAAsC,EACtC,OAA6C;QAE7C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,kBAAkB;YAClB,kBAAkB;YAClB,YAAY;YACZ,UAAU;YACV,OAAO;SACR,EACD,0BAA0B,CAC3B,CAAC;IACJ,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,6BAA6B,CACjC,kBAA0B,EAC1B,kBAA0B,EAC1B,YAAoB,EACpB,UAA0B,EAC1B,OAAwD;QAOxD,MAAM,mBAAmB,GAAG,KAAK,EAC/B,IAAmC,EACnC,IAA8B,EACqB,EAAE;YACrD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,C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8BAA8B,GAA6B;IAC/D,IAAI,EAAE,8EAA8E;IACpF,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,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 { Policies } 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 { BillingManagementClient } from \"../billingManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ServiceDefinedResourceName,\n PoliciesGetByCustomerOptionalParams,\n PoliciesGetByCustomerResponse,\n CustomerPolicy,\n PoliciesCreateOrUpdateByCustomerOptionalParams,\n PoliciesCreateOrUpdateByCustomerResponse,\n PoliciesGetByBillingProfileOptionalParams,\n PoliciesGetByBillingProfileResponse,\n BillingProfilePolicy,\n PoliciesCreateOrUpdateByBillingProfileOptionalParams,\n PoliciesCreateOrUpdateByBillingProfileResponse,\n PoliciesGetByCustomerAtBillingAccountOptionalParams,\n PoliciesGetByCustomerAtBillingAccountResponse,\n PoliciesCreateOrUpdateByCustomerAtBillingAccountOptionalParams,\n PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse,\n PoliciesGetByBillingAccountOptionalParams,\n PoliciesGetByBillingAccountResponse,\n BillingAccountPolicy,\n PoliciesCreateOrUpdateByBillingAccountOptionalParams,\n PoliciesCreateOrUpdateByBillingAccountResponse,\n PoliciesGetBySubscriptionOptionalParams,\n PoliciesGetBySubscriptionResponse,\n} from \"../models/index.js\";\n\n/** Class containing Policies operations. */\nexport class PoliciesImpl implements Policies {\n private readonly client: BillingManagementClient;\n\n /**\n * Initialize a new instance of the class Policies class.\n * @param client Reference to the service client\n */\n constructor(client: BillingManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the policies for a customer. This operation is supported only for billing accounts with\n * agreement type Microsoft Partner Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param customerName The ID that uniquely identifies a customer.\n * @param policyName Service-defined resource names such as 'default' which are reserved resource\n * names.\n * @param options The options parameters.\n */\n getByCustomer(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n policyName: ServiceDefinedResourceName,\n options?: PoliciesGetByCustomerOptionalParams,\n ): Promise<PoliciesGetByCustomerResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n customerName,\n policyName,\n options,\n },\n getByCustomerOperationSpec,\n );\n }\n\n /**\n * Updates the policies for a customer. This operation is supported only for billing accounts with\n * agreement type Microsoft Partner Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param customerName The ID that uniquely identifies a customer.\n * @param parameters A policy at customer scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByCustomer(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n parameters: CustomerPolicy,\n options?: PoliciesCreateOrUpdateByCustomerOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PoliciesCreateOrUpdateByCustomerResponse>,\n PoliciesCreateOrUpdateByCustomerResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PoliciesCreateOrUpdateByCustomerResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n billingAccountName,\n billingProfileName,\n customerName,\n parameters,\n options,\n },\n spec: createOrUpdateByCustomerOperationSpec,\n });\n const poller = await createHttpPoller<\n PoliciesCreateOrUpdateByCustomerResponse,\n OperationState<PoliciesCreateOrUpdateByCustomerResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates the policies for a customer. This operation is supported only for billing accounts with\n * agreement type Microsoft Partner Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param customerName The ID that uniquely identifies a customer.\n * @param parameters A policy at customer scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByCustomerAndWait(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n parameters: CustomerPolicy,\n options?: PoliciesCreateOrUpdateByCustomerOptionalParams,\n ): Promise<PoliciesCreateOrUpdateByCustomerResponse> {\n const poller = await this.beginCreateOrUpdateByCustomer(\n billingAccountName,\n billingProfileName,\n customerName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Lists the policies for a billing profile. This operation is supported only for billing accounts with\n * agreement type Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param options The options parameters.\n */\n getByBillingProfile(\n billingAccountName: string,\n billingProfileName: string,\n options?: PoliciesGetByBillingProfileOptionalParams,\n ): Promise<PoliciesGetByBillingProfileResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, billingProfileName, options },\n getByBillingProfileOperationSpec,\n );\n }\n\n /**\n * Updates the policies for a billing profile. This operation is supported only for billing accounts\n * with agreement type Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param parameters A policy at billing profile scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByBillingProfile(\n billingAccountName: string,\n billingProfileName: string,\n parameters: BillingProfilePolicy,\n options?: PoliciesCreateOrUpdateByBillingProfileOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PoliciesCreateOrUpdateByBillingProfileResponse>,\n PoliciesCreateOrUpdateByBillingProfileResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PoliciesCreateOrUpdateByBillingProfileResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, billingProfileName, parameters, options },\n spec: createOrUpdateByBillingProfileOperationSpec,\n });\n const poller = await createHttpPoller<\n PoliciesCreateOrUpdateByBillingProfileResponse,\n OperationState<PoliciesCreateOrUpdateByBillingProfileResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates the policies for a billing profile. This operation is supported only for billing accounts\n * with agreement type Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param parameters A policy at billing profile scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByBillingProfileAndWait(\n billingAccountName: string,\n billingProfileName: string,\n parameters: BillingProfilePolicy,\n options?: PoliciesCreateOrUpdateByBillingProfileOptionalParams,\n ): Promise<PoliciesCreateOrUpdateByBillingProfileResponse> {\n const poller = await this.beginCreateOrUpdateByBillingProfile(\n billingAccountName,\n billingProfileName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Lists the policies for a customer at billing account scope. This operation is supported only for\n * billing accounts with agreement type Microsoft Partner Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param customerName The ID that uniquely identifies a customer.\n * @param options The options parameters.\n */\n getByCustomerAtBillingAccount(\n billingAccountName: string,\n customerName: string,\n options?: PoliciesGetByCustomerAtBillingAccountOptionalParams,\n ): Promise<PoliciesGetByCustomerAtBillingAccountResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, customerName, options },\n getByCustomerAtBillingAccountOperationSpec,\n );\n }\n\n /**\n * Updates the policies for a customer at billing account scope. This operation is supported only for\n * billing accounts with agreement type Microsoft Partner Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param customerName The ID that uniquely identifies a customer.\n * @param parameters A policy at customer scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByCustomerAtBillingAccount(\n billingAccountName: string,\n customerName: string,\n parameters: CustomerPolicy,\n options?: PoliciesCreateOrUpdateByCustomerAtBillingAccountOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse>,\n PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, customerName, parameters, options },\n spec: createOrUpdateByCustomerAtBillingAccountOperationSpec,\n });\n const poller = await createHttpPoller<\n PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse,\n OperationState<PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates the policies for a customer at billing account scope. This operation is supported only for\n * billing accounts with agreement type Microsoft Partner Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param customerName The ID that uniquely identifies a customer.\n * @param parameters A policy at customer scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByCustomerAtBillingAccountAndWait(\n billingAccountName: string,\n customerName: string,\n parameters: CustomerPolicy,\n options?: PoliciesCreateOrUpdateByCustomerAtBillingAccountOptionalParams,\n ): Promise<PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse> {\n const poller = await this.beginCreateOrUpdateByCustomerAtBillingAccount(\n billingAccountName,\n customerName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get the policies for a billing account of Enterprise Agreement type.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param options The options parameters.\n */\n getByBillingAccount(\n billingAccountName: string,\n options?: PoliciesGetByBillingAccountOptionalParams,\n ): Promise<PoliciesGetByBillingAccountResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, options },\n getByBillingAccountOperationSpec,\n );\n }\n\n /**\n * Update the policies for a billing account of Enterprise Agreement type.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param parameters A policy at billing account scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByBillingAccount(\n billingAccountName: string,\n parameters: BillingAccountPolicy,\n options?: PoliciesCreateOrUpdateByBillingAccountOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PoliciesCreateOrUpdateByBillingAccountResponse>,\n PoliciesCreateOrUpdateByBillingAccountResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PoliciesCreateOrUpdateByBillingAccountResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, parameters, options },\n spec: createOrUpdateByBillingAccountOperationSpec,\n });\n const poller = await createHttpPoller<\n PoliciesCreateOrUpdateByBillingAccountResponse,\n OperationState<PoliciesCreateOrUpdateByBillingAccountResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update the policies for a billing account of Enterprise Agreement type.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param parameters A policy at billing account scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByBillingAccountAndWait(\n billingAccountName: string,\n parameters: BillingAccountPolicy,\n options?: PoliciesCreateOrUpdateByBillingAccountOptionalParams,\n ): Promise<PoliciesCreateOrUpdateByBillingAccountResponse> {\n const poller = await this.beginCreateOrUpdateByBillingAccount(\n billingAccountName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Lists the policies that are managed by the Billing Admin for the defined subscriptions. This is\n * supported for Microsoft Online Services Program, Microsoft Customer Agreement and Microsoft Partner\n * Agreement.\n * @param options The options parameters.\n */\n getBySubscription(\n options?: PoliciesGetBySubscriptionOptionalParams,\n ): Promise<PoliciesGetBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n getBySubscriptionOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getByCustomerOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/policies/{policyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.customerName,\n Parameters.policyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateByCustomerOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/policies/default\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n 201: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n 202: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n 204: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters19,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.customerName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getByBillingProfileOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingProfilePolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateByBillingProfileOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingProfilePolicy,\n },\n 201: {\n bodyMapper: Mappers.BillingProfilePolicy,\n },\n 202: {\n bodyMapper: Mappers.BillingProfilePolicy,\n },\n 204: {\n bodyMapper: Mappers.BillingProfilePolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters20,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getByCustomerAtBillingAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/policies/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.customerName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateByCustomerAtBillingAccountOperationSpec: coreClient.OperationSpec =\n {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/policies/default\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n 201: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n 202: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n 204: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters19,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.customerName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n };\nconst getByBillingAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/policies/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingAccountPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.billingAccountName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateByBillingAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/policies/default\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingAccountPolicy,\n },\n 201: {\n bodyMapper: Mappers.BillingAccountPolicy,\n },\n 202: {\n bodyMapper: Mappers.BillingAccountPolicy,\n },\n 204: {\n bodyMapper: Mappers.BillingAccountPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters21,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.billingAccountName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Billing/policies/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"policies.js","sourceRoot":"","sources":["../../../src/operations/policies.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AA0B9C,4CAA4C;AAC5C,MAAa,YAA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AAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,YAAY;IACpC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,kBAAkB,CAAC;IAChE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,8EAA8E;IACpF,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,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 { Policies } 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 { BillingManagementClient } from \"../billingManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ServiceDefinedResourceName,\n PoliciesGetByCustomerOptionalParams,\n PoliciesGetByCustomerResponse,\n CustomerPolicy,\n PoliciesCreateOrUpdateByCustomerOptionalParams,\n PoliciesCreateOrUpdateByCustomerResponse,\n PoliciesGetByBillingProfileOptionalParams,\n PoliciesGetByBillingProfileResponse,\n BillingProfilePolicy,\n PoliciesCreateOrUpdateByBillingProfileOptionalParams,\n PoliciesCreateOrUpdateByBillingProfileResponse,\n PoliciesGetByCustomerAtBillingAccountOptionalParams,\n PoliciesGetByCustomerAtBillingAccountResponse,\n PoliciesCreateOrUpdateByCustomerAtBillingAccountOptionalParams,\n PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse,\n PoliciesGetByBillingAccountOptionalParams,\n PoliciesGetByBillingAccountResponse,\n BillingAccountPolicy,\n PoliciesCreateOrUpdateByBillingAccountOptionalParams,\n PoliciesCreateOrUpdateByBillingAccountResponse,\n PoliciesGetBySubscriptionOptionalParams,\n PoliciesGetBySubscriptionResponse,\n} from \"../models/index.js\";\n\n/** Class containing Policies operations. */\nexport class PoliciesImpl implements Policies {\n private readonly client: BillingManagementClient;\n\n /**\n * Initialize a new instance of the class Policies class.\n * @param client Reference to the service client\n */\n constructor(client: BillingManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the policies for a customer. This operation is supported only for billing accounts with\n * agreement type Microsoft Partner Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param customerName The ID that uniquely identifies a customer.\n * @param policyName Service-defined resource names such as 'default' which are reserved resource\n * names.\n * @param options The options parameters.\n */\n getByCustomer(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n policyName: ServiceDefinedResourceName,\n options?: PoliciesGetByCustomerOptionalParams,\n ): Promise<PoliciesGetByCustomerResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n customerName,\n policyName,\n options,\n },\n getByCustomerOperationSpec,\n );\n }\n\n /**\n * Updates the policies for a customer. This operation is supported only for billing accounts with\n * agreement type Microsoft Partner Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param customerName The ID that uniquely identifies a customer.\n * @param parameters A policy at customer scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByCustomer(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n parameters: CustomerPolicy,\n options?: PoliciesCreateOrUpdateByCustomerOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PoliciesCreateOrUpdateByCustomerResponse>,\n PoliciesCreateOrUpdateByCustomerResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PoliciesCreateOrUpdateByCustomerResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n billingAccountName,\n billingProfileName,\n customerName,\n parameters,\n options,\n },\n spec: createOrUpdateByCustomerOperationSpec,\n });\n const poller = await createHttpPoller<\n PoliciesCreateOrUpdateByCustomerResponse,\n OperationState<PoliciesCreateOrUpdateByCustomerResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates the policies for a customer. This operation is supported only for billing accounts with\n * agreement type Microsoft Partner Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param customerName The ID that uniquely identifies a customer.\n * @param parameters A policy at customer scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByCustomerAndWait(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n parameters: CustomerPolicy,\n options?: PoliciesCreateOrUpdateByCustomerOptionalParams,\n ): Promise<PoliciesCreateOrUpdateByCustomerResponse> {\n const poller = await this.beginCreateOrUpdateByCustomer(\n billingAccountName,\n billingProfileName,\n customerName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Lists the policies for a billing profile. This operation is supported only for billing accounts with\n * agreement type Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param options The options parameters.\n */\n getByBillingProfile(\n billingAccountName: string,\n billingProfileName: string,\n options?: PoliciesGetByBillingProfileOptionalParams,\n ): Promise<PoliciesGetByBillingProfileResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, billingProfileName, options },\n getByBillingProfileOperationSpec,\n );\n }\n\n /**\n * Updates the policies for a billing profile. This operation is supported only for billing accounts\n * with agreement type Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param parameters A policy at billing profile scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByBillingProfile(\n billingAccountName: string,\n billingProfileName: string,\n parameters: BillingProfilePolicy,\n options?: PoliciesCreateOrUpdateByBillingProfileOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PoliciesCreateOrUpdateByBillingProfileResponse>,\n PoliciesCreateOrUpdateByBillingProfileResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PoliciesCreateOrUpdateByBillingProfileResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, billingProfileName, parameters, options },\n spec: createOrUpdateByBillingProfileOperationSpec,\n });\n const poller = await createHttpPoller<\n PoliciesCreateOrUpdateByBillingProfileResponse,\n OperationState<PoliciesCreateOrUpdateByBillingProfileResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates the policies for a billing profile. This operation is supported only for billing accounts\n * with agreement type Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param parameters A policy at billing profile scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByBillingProfileAndWait(\n billingAccountName: string,\n billingProfileName: string,\n parameters: BillingProfilePolicy,\n options?: PoliciesCreateOrUpdateByBillingProfileOptionalParams,\n ): Promise<PoliciesCreateOrUpdateByBillingProfileResponse> {\n const poller = await this.beginCreateOrUpdateByBillingProfile(\n billingAccountName,\n billingProfileName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Lists the policies for a customer at billing account scope. This operation is supported only for\n * billing accounts with agreement type Microsoft Partner Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param customerName The ID that uniquely identifies a customer.\n * @param options The options parameters.\n */\n getByCustomerAtBillingAccount(\n billingAccountName: string,\n customerName: string,\n options?: PoliciesGetByCustomerAtBillingAccountOptionalParams,\n ): Promise<PoliciesGetByCustomerAtBillingAccountResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, customerName, options },\n getByCustomerAtBillingAccountOperationSpec,\n );\n }\n\n /**\n * Updates the policies for a customer at billing account scope. This operation is supported only for\n * billing accounts with agreement type Microsoft Partner Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param customerName The ID that uniquely identifies a customer.\n * @param parameters A policy at customer scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByCustomerAtBillingAccount(\n billingAccountName: string,\n customerName: string,\n parameters: CustomerPolicy,\n options?: PoliciesCreateOrUpdateByCustomerAtBillingAccountOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse>,\n PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, customerName, parameters, options },\n spec: createOrUpdateByCustomerAtBillingAccountOperationSpec,\n });\n const poller = await createHttpPoller<\n PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse,\n OperationState<PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates the policies for a customer at billing account scope. This operation is supported only for\n * billing accounts with agreement type Microsoft Partner Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param customerName The ID that uniquely identifies a customer.\n * @param parameters A policy at customer scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByCustomerAtBillingAccountAndWait(\n billingAccountName: string,\n customerName: string,\n parameters: CustomerPolicy,\n options?: PoliciesCreateOrUpdateByCustomerAtBillingAccountOptionalParams,\n ): Promise<PoliciesCreateOrUpdateByCustomerAtBillingAccountResponse> {\n const poller = await this.beginCreateOrUpdateByCustomerAtBillingAccount(\n billingAccountName,\n customerName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get the policies for a billing account of Enterprise Agreement type.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param options The options parameters.\n */\n getByBillingAccount(\n billingAccountName: string,\n options?: PoliciesGetByBillingAccountOptionalParams,\n ): Promise<PoliciesGetByBillingAccountResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, options },\n getByBillingAccountOperationSpec,\n );\n }\n\n /**\n * Update the policies for a billing account of Enterprise Agreement type.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param parameters A policy at billing account scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByBillingAccount(\n billingAccountName: string,\n parameters: BillingAccountPolicy,\n options?: PoliciesCreateOrUpdateByBillingAccountOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PoliciesCreateOrUpdateByBillingAccountResponse>,\n PoliciesCreateOrUpdateByBillingAccountResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PoliciesCreateOrUpdateByBillingAccountResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, parameters, options },\n spec: createOrUpdateByBillingAccountOperationSpec,\n });\n const poller = await createHttpPoller<\n PoliciesCreateOrUpdateByBillingAccountResponse,\n OperationState<PoliciesCreateOrUpdateByBillingAccountResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update the policies for a billing account of Enterprise Agreement type.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param parameters A policy at billing account scope.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateByBillingAccountAndWait(\n billingAccountName: string,\n parameters: BillingAccountPolicy,\n options?: PoliciesCreateOrUpdateByBillingAccountOptionalParams,\n ): Promise<PoliciesCreateOrUpdateByBillingAccountResponse> {\n const poller = await this.beginCreateOrUpdateByBillingAccount(\n billingAccountName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Lists the policies that are managed by the Billing Admin for the defined subscriptions. This is\n * supported for Microsoft Online Services Program, Microsoft Customer Agreement and Microsoft Partner\n * Agreement.\n * @param options The options parameters.\n */\n getBySubscription(\n options?: PoliciesGetBySubscriptionOptionalParams,\n ): Promise<PoliciesGetBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n getBySubscriptionOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getByCustomerOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/policies/{policyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.customerName,\n Parameters.policyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateByCustomerOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/policies/default\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n 201: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n 202: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n 204: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters19,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.customerName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getByBillingProfileOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingProfilePolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateByBillingProfileOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingProfilePolicy,\n },\n 201: {\n bodyMapper: Mappers.BillingProfilePolicy,\n },\n 202: {\n bodyMapper: Mappers.BillingProfilePolicy,\n },\n 204: {\n bodyMapper: Mappers.BillingProfilePolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters20,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getByCustomerAtBillingAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/policies/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.customerName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateByCustomerAtBillingAccountOperationSpec: coreClient.OperationSpec =\n {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/policies/default\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n 201: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n 202: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n 204: {\n bodyMapper: Mappers.CustomerPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters19,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.customerName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n };\nconst getByBillingAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/policies/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingAccountPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.billingAccountName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateByBillingAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/policies/default\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingAccountPolicy,\n },\n 201: {\n bodyMapper: Mappers.BillingAccountPolicy,\n },\n 202: {\n bodyMapper: Mappers.BillingAccountPolicy,\n },\n 204: {\n bodyMapper: Mappers.BillingAccountPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters21,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.billingAccountName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Billing/policies/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SubscriptionPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing Products operations. */
|
|
20
20
|
class ProductsImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class Products class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -43,52 +44,35 @@ class ProductsImpl {
|
|
|
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.listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options, settings);
|
|
50
51
|
},
|
|
51
52
|
};
|
|
52
53
|
}
|
|
53
|
-
listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options, settings) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
});
|
|
54
|
+
async *listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options, settings) {
|
|
55
|
+
let result;
|
|
56
|
+
let continuationToken = settings?.continuationToken;
|
|
57
|
+
if (!continuationToken) {
|
|
58
|
+
result = await this._listByInvoiceSection(billingAccountName, billingProfileName, invoiceSectionName, 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._listByInvoiceSectionNext(billingAccountName, billingProfileName, invoiceSectionName, 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
|
-
listByInvoiceSectionPagingAll(billingAccountName, billingProfileName, invoiceSectionName, options) {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, 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 *listByInvoiceSectionPagingAll(billingAccountName, billingProfileName, invoiceSectionName, options) {
|
|
73
|
+
for await (const page of this.listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, options)) {
|
|
74
|
+
yield* page;
|
|
75
|
+
}
|
|
92
76
|
}
|
|
93
77
|
/**
|
|
94
78
|
* Lists the products for a billing profile. These don't include products billed based on usage. The
|
|
@@ -108,52 +92,35 @@ class ProductsImpl {
|
|
|
108
92
|
return this;
|
|
109
93
|
},
|
|
110
94
|
byPage: (settings) => {
|
|
111
|
-
if (settings
|
|
95
|
+
if (settings?.maxPageSize) {
|
|
112
96
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
113
97
|
}
|
|
114
98
|
return this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, options, settings);
|
|
115
99
|
},
|
|
116
100
|
};
|
|
117
101
|
}
|
|
118
|
-
listByBillingProfilePagingPage(billingAccountName, billingProfileName, options, settings) {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
});
|
|
102
|
+
async *listByBillingProfilePagingPage(billingAccountName, billingProfileName, options, settings) {
|
|
103
|
+
let result;
|
|
104
|
+
let continuationToken = settings?.continuationToken;
|
|
105
|
+
if (!continuationToken) {
|
|
106
|
+
result = await this._listByBillingProfile(billingAccountName, billingProfileName, options);
|
|
107
|
+
let page = result.value || [];
|
|
108
|
+
continuationToken = result.nextLink;
|
|
109
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
110
|
+
yield page;
|
|
111
|
+
}
|
|
112
|
+
while (continuationToken) {
|
|
113
|
+
result = await this._listByBillingProfileNext(billingAccountName, billingProfileName, continuationToken, options);
|
|
114
|
+
continuationToken = result.nextLink;
|
|
115
|
+
let page = result.value || [];
|
|
116
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
117
|
+
yield page;
|
|
118
|
+
}
|
|
137
119
|
}
|
|
138
|
-
listByBillingProfilePagingAll(billingAccountName, billingProfileName, options) {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
143
|
-
_c = _f.value;
|
|
144
|
-
_d = false;
|
|
145
|
-
const page = _c;
|
|
146
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
150
|
-
finally {
|
|
151
|
-
try {
|
|
152
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
153
|
-
}
|
|
154
|
-
finally { if (e_2) throw e_2.error; }
|
|
155
|
-
}
|
|
156
|
-
});
|
|
120
|
+
async *listByBillingProfilePagingAll(billingAccountName, billingProfileName, options) {
|
|
121
|
+
for await (const page of this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, options)) {
|
|
122
|
+
yield* page;
|
|
123
|
+
}
|
|
157
124
|
}
|
|
158
125
|
/**
|
|
159
126
|
* Lists the products for a customer. These don't include products billed based on usage.The operation
|
|
@@ -172,52 +139,35 @@ class ProductsImpl {
|
|
|
172
139
|
return this;
|
|
173
140
|
},
|
|
174
141
|
byPage: (settings) => {
|
|
175
|
-
if (settings
|
|
142
|
+
if (settings?.maxPageSize) {
|
|
176
143
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
177
144
|
}
|
|
178
145
|
return this.listByCustomerPagingPage(billingAccountName, customerName, options, settings);
|
|
179
146
|
},
|
|
180
147
|
};
|
|
181
148
|
}
|
|
182
|
-
listByCustomerPagingPage(billingAccountName, customerName, options, settings) {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}
|
|
200
|
-
});
|
|
149
|
+
async *listByCustomerPagingPage(billingAccountName, customerName, options, settings) {
|
|
150
|
+
let result;
|
|
151
|
+
let continuationToken = settings?.continuationToken;
|
|
152
|
+
if (!continuationToken) {
|
|
153
|
+
result = await this._listByCustomer(billingAccountName, customerName, options);
|
|
154
|
+
let page = result.value || [];
|
|
155
|
+
continuationToken = result.nextLink;
|
|
156
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
157
|
+
yield page;
|
|
158
|
+
}
|
|
159
|
+
while (continuationToken) {
|
|
160
|
+
result = await this._listByCustomerNext(billingAccountName, customerName, continuationToken, options);
|
|
161
|
+
continuationToken = result.nextLink;
|
|
162
|
+
let page = result.value || [];
|
|
163
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
164
|
+
yield page;
|
|
165
|
+
}
|
|
201
166
|
}
|
|
202
|
-
listByCustomerPagingAll(billingAccountName, customerName, options) {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByCustomerPagingPage(billingAccountName, customerName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
207
|
-
_c = _f.value;
|
|
208
|
-
_d = false;
|
|
209
|
-
const page = _c;
|
|
210
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
214
|
-
finally {
|
|
215
|
-
try {
|
|
216
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
217
|
-
}
|
|
218
|
-
finally { if (e_3) throw e_3.error; }
|
|
219
|
-
}
|
|
220
|
-
});
|
|
167
|
+
async *listByCustomerPagingAll(billingAccountName, customerName, options) {
|
|
168
|
+
for await (const page of this.listByCustomerPagingPage(billingAccountName, customerName, options)) {
|
|
169
|
+
yield* page;
|
|
170
|
+
}
|
|
221
171
|
}
|
|
222
172
|
/**
|
|
223
173
|
* Lists the products for a billing account. These don't include products billed based on usage. The
|
|
@@ -236,52 +186,35 @@ class ProductsImpl {
|
|
|
236
186
|
return this;
|
|
237
187
|
},
|
|
238
188
|
byPage: (settings) => {
|
|
239
|
-
if (settings
|
|
189
|
+
if (settings?.maxPageSize) {
|
|
240
190
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
241
191
|
}
|
|
242
192
|
return this.listByBillingAccountPagingPage(billingAccountName, options, settings);
|
|
243
193
|
},
|
|
244
194
|
};
|
|
245
195
|
}
|
|
246
|
-
listByBillingAccountPagingPage(billingAccountName, options, settings) {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
}
|
|
264
|
-
});
|
|
196
|
+
async *listByBillingAccountPagingPage(billingAccountName, options, settings) {
|
|
197
|
+
let result;
|
|
198
|
+
let continuationToken = settings?.continuationToken;
|
|
199
|
+
if (!continuationToken) {
|
|
200
|
+
result = await this._listByBillingAccount(billingAccountName, options);
|
|
201
|
+
let page = result.value || [];
|
|
202
|
+
continuationToken = result.nextLink;
|
|
203
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
204
|
+
yield page;
|
|
205
|
+
}
|
|
206
|
+
while (continuationToken) {
|
|
207
|
+
result = await this._listByBillingAccountNext(billingAccountName, continuationToken, options);
|
|
208
|
+
continuationToken = result.nextLink;
|
|
209
|
+
let page = result.value || [];
|
|
210
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
211
|
+
yield page;
|
|
212
|
+
}
|
|
265
213
|
}
|
|
266
|
-
listByBillingAccountPagingAll(billingAccountName, options) {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByBillingAccountPagingPage(billingAccountName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
271
|
-
_c = _f.value;
|
|
272
|
-
_d = false;
|
|
273
|
-
const page = _c;
|
|
274
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
278
|
-
finally {
|
|
279
|
-
try {
|
|
280
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
281
|
-
}
|
|
282
|
-
finally { if (e_4) throw e_4.error; }
|
|
283
|
-
}
|
|
284
|
-
});
|
|
214
|
+
async *listByBillingAccountPagingAll(billingAccountName, options) {
|
|
215
|
+
for await (const page of this.listByBillingAccountPagingPage(billingAccountName, options)) {
|
|
216
|
+
yield* page;
|
|
217
|
+
}
|
|
285
218
|
}
|
|
286
219
|
/**
|
|
287
220
|
* Lists the products for an invoice section. These don't include products billed based on usage. The
|
|
@@ -330,14 +263,19 @@ class ProductsImpl {
|
|
|
330
263
|
return this.client.sendOperationRequest(args, spec);
|
|
331
264
|
};
|
|
332
265
|
const sendOperationFn = async (args, spec) => {
|
|
333
|
-
var _a;
|
|
334
266
|
let currentRawResponse = undefined;
|
|
335
|
-
const providedCallback =
|
|
267
|
+
const providedCallback = args.options?.onResponse;
|
|
336
268
|
const callback = (rawResponse, flatResponse) => {
|
|
337
269
|
currentRawResponse = rawResponse;
|
|
338
|
-
providedCallback
|
|
270
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
271
|
+
};
|
|
272
|
+
const updatedArgs = {
|
|
273
|
+
...args,
|
|
274
|
+
options: {
|
|
275
|
+
...args.options,
|
|
276
|
+
onResponse: callback,
|
|
277
|
+
},
|
|
339
278
|
};
|
|
340
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
341
279
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
342
280
|
return {
|
|
343
281
|
flatResponse,
|
|
@@ -354,8 +292,8 @@ class ProductsImpl {
|
|
|
354
292
|
spec: moveOperationSpec,
|
|
355
293
|
});
|
|
356
294
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
357
|
-
restoreFrom: options
|
|
358
|
-
intervalInMs: options
|
|
295
|
+
restoreFrom: options?.resumeFrom,
|
|
296
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
359
297
|
resourceLocationConfig: "location",
|
|
360
298
|
});
|
|
361
299
|
await poller.poll();
|