Skip to content

Commit 38fd0e5

Browse files
azure-sdkv-jiaodi
andauthored
[AutoPR @azure-arm-billing]-generated-from-SDK Generation - JS-6331913 (#38620)
Configurations: 'specification/billing/resource-manager/Microsoft.Billing/Billing/tspconfig.yaml', API Version: 2024-04-01, SDK Release Type: beta, and CommitSHA: '0b39d09202614b896019af9fc8df28a8a7ee9c29' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6331913 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --------- Co-authored-by: Jiao Di (MSFT) <v-jiaodi@microsoft.com>
1 parent 7c40099 commit 38fd0e5

1,210 files changed

Lines changed: 55991 additions & 70664 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@
406406
# PRLabel: %Mgmt
407407
/sdk/baremetalinfrastructure/arm-baremetalinfrastructure/ @qiaozha @MaryGao @JialinHuang803
408408

409-
# PRLabel: %Mgmt
409+
# PRLabel: %Mgmt %mgmt-review-needed
410410
/sdk/billing/arm-billing/ @qiaozha @MaryGao @JialinHuang803
411411

412412
# PRLabel: %Mgmt

pnpm-lock.yaml

Lines changed: 20 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/billing/arm-billing/CHANGELOG.md

Lines changed: 103 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,113 @@
11
# Release History
22

3-
## 5.0.2 (Unreleased)
3+
## 6.0.0-beta.1 (2026-05-21)
4+
Compared with version 5.0.0
45

56
### Features Added
7+
- Added operation AssociatedTenantsOperations.createOrUpdate
8+
- Added operation AssociatedTenantsOperations.delete
9+
- Added operation BillingAccountsOperations.addPaymentTerms
10+
- Added operation BillingAccountsOperations.cancelPaymentTerms
11+
- Added operation BillingAccountsOperations.update
12+
- Added operation BillingProfilesOperations.createOrUpdate
13+
- Added operation BillingProfilesOperations.delete
14+
- Added operation BillingRequestsOperations.createOrUpdate
15+
- Added operation BillingRoleAssignmentsOperations.createByBillingAccount
16+
- Added operation BillingRoleAssignmentsOperations.createByBillingProfile
17+
- Added operation BillingRoleAssignmentsOperations.createByCustomer
18+
- Added operation BillingRoleAssignmentsOperations.createByInvoiceSection
19+
- Added operation BillingRoleAssignmentsOperations.createOrUpdateByBillingAccount
20+
- Added operation BillingRoleAssignmentsOperations.createOrUpdateByDepartment
21+
- Added operation BillingRoleAssignmentsOperations.createOrUpdateByEnrollmentAccount
22+
- Added operation BillingRoleAssignmentsOperations.resolveByBillingAccount
23+
- Added operation BillingRoleAssignmentsOperations.resolveByBillingProfile
24+
- Added operation BillingRoleAssignmentsOperations.resolveByCustomer
25+
- Added operation BillingRoleAssignmentsOperations.resolveByInvoiceSection
26+
- Added operation BillingSubscriptionsOperations.cancel
27+
- Added operation BillingSubscriptionsOperations.delete
28+
- Added operation BillingSubscriptionsOperations.merge
29+
- Added operation BillingSubscriptionsOperations.move
30+
- Added operation BillingSubscriptionsOperations.split
31+
- Added operation BillingSubscriptionsOperations.update
32+
- Added operation BillingSubscriptionsAliasesOperations.createOrUpdate
33+
- Added operation InvoicesOperations.amend
34+
- Added operation InvoicesOperations.downloadByBillingAccount
35+
- Added operation InvoicesOperations.downloadByBillingSubscription
36+
- Added operation InvoicesOperations.downloadDocumentsByBillingAccount
37+
- Added operation InvoicesOperations.downloadDocumentsByBillingSubscription
38+
- Added operation InvoicesOperations.downloadSummaryByBillingAccount
39+
- Added operation InvoiceSectionsOperations.createOrUpdate
40+
- Added operation InvoiceSectionsOperations.delete
41+
- Added operation PoliciesOperations.createOrUpdateByBillingAccount
42+
- Added operation PoliciesOperations.createOrUpdateByBillingProfile
43+
- Added operation PoliciesOperations.createOrUpdateByCustomer
44+
- Added operation PoliciesOperations.createOrUpdateByCustomerAtBillingAccount
45+
- Added operation ProductsOperations.move
46+
- Added operation ReservationsOperations.updateByBillingAccount
47+
- Added operation SavingsPlansOperations.updateByBillingAccount
48+
- Added operation TransactionsOperations.transactionsDownloadByInvoice
49+
- Added Interface AcceptTransferProperties
50+
- Added Interface EnrollmentAccountSubscriptionDetails
51+
- Added Interface ExtendedStatusInfoProperties
52+
- Added Interface InitiateTransferProperties
53+
- Added Interface PagedAsyncIterableIterator
54+
- Added Interface PageSettings
55+
- Added Interface PartnerInitiateTransferProperties
56+
- Added Interface PartnerTransferProperties
57+
- Added Interface PatchProperties
58+
- Added Interface PatchPropertiesRenewProperties
59+
- Added Interface PaymentMethodLinkProperties
60+
- Added Interface PurchaseRequestProperties
61+
- Added Interface RecipientTransferProperties
62+
- Added Interface ReservationOrderProperty
63+
- Added Interface ReservationProperty
64+
- Added Interface ReservationPropertyUtilization
65+
- Added Interface ReservationPurchaseRequestProperties
66+
- Added Interface ReservationPurchaseRequestPropertiesReservedResourceProperties
67+
- Added Interface RestorePollerOptions
68+
- Added Interface SavingsPlanModelProperties
69+
- Added Interface SavingsPlanOrderModelProperties
70+
- Added Interface SimplePollerLike
71+
- Added Interface TransferProperties
72+
- Added Interface ValidateTransferResponseProperties
73+
- Interface BillingSubscription has a new optional parameter enrollmentAccountSubscriptionDetails
74+
- Interface BillingSubscriptionAlias has a new optional parameter enrollmentAccountSubscriptionDetails
75+
- Interface BillingSubscriptionPatch has a new optional parameter enrollmentAccountSubscriptionDetails
76+
- Interface Patch has a new optional parameter renewProperties
77+
- Interface Reservation has a new optional parameter utilization
78+
- Interface ReservationPurchaseRequest has a new optional parameter instanceFlexibility
79+
- Interface ReservationPurchaseRequest has a new optional parameter reservedResourceProperties
80+
- Added Type Alias AzureSupportedClouds
81+
- Added Enum AzureClouds
82+
- Added Enum KnownVersions
683

784
### Breaking Changes
85+
- Operation AssociatedTenants.beginDeleteAndWait has a new signature
86+
- Operation BillingProfiles.beginDeleteAndWait has a new signature
87+
- Operation BillingSubscriptions.beginCancelAndWait has a new signature
88+
- Operation BillingSubscriptions.beginDeleteAndWait has a new signature
89+
- Operation Invoices.beginAmendAndWait has a new signature
90+
- Operation InvoiceSections.beginDeleteAndWait has a new signature
91+
- Removed Interface ExternalReference
92+
- Removed Interface ReservationList
93+
- Removed Interface ReservationOrderList
94+
- Removed Interface SavingsPlanModelList
95+
- Removed Interface SavingsPlanOrderModelList
96+
- Removed Interface TransferItemQueryParameter
97+
- Interface BillingSubscription no longer has parameter enrollmentAccountStartDate
98+
- Interface BillingSubscription no longer has parameter subscriptionEnrollmentAccountStatus
99+
- Interface BillingSubscriptionAlias no longer has parameter enrollmentAccountStartDate
100+
- Interface BillingSubscriptionAlias no longer has parameter subscriptionEnrollmentAccountStatus
101+
- Interface BillingSubscriptionPatch no longer has parameter enrollmentAccountStartDate
102+
- Interface BillingSubscriptionPatch no longer has parameter subscriptionEnrollmentAccountStatus
103+
- Interface Patch no longer has parameter purchaseProperties
104+
- Interface Reservation no longer has parameter aggregates
105+
- Interface Reservation no longer has parameter trend
106+
- Interface ReservationPurchaseRequest no longer has parameter instanceFlexibilityPropertiesInstanceFlexibility
107+
- Interface ReservationPurchaseRequest no longer has parameter instanceFlexibilityPropertiesReservedResourcePropertiesInstanceFlexibility
108+
- Parameter value of interface BillingRoleAssignmentListResult is now required
8109

9-
### Bugs Fixed
10-
11-
### Other Changes
12-
13-
## 5.0.1 (2025-08-22)
14-
15-
### Other Changes
16-
17-
- Other fixes
18-
110+
19111
## 5.0.0 (2024-09-04)
20112

21113
### Features Added

sdk/billing/arm-billing/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

sdk/billing/arm-billing/README.md

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure BillingManagement client.
44

5-
Billing Client
5+
Documentation for Microsoft.Billing.
66

7-
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/billing/arm-billing) |
8-
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-billing) |
9-
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-billing) |
10-
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
7+
Key links:
8+
9+
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/billing/arm-billing)
10+
- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-billing)
11+
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-billing?view=azure-node-preview)
12+
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/billing/arm-billing/samples)
1113

1214
## Getting started
1315

@@ -35,7 +37,7 @@ npm install @azure/arm-billing
3537
To create a client object to access the Azure BillingManagement API, you will need the `endpoint` of your Azure BillingManagement resource and a `credential`. The Azure BillingManagement client can use Azure Active Directory credentials to authenticate.
3638
You can find the endpoint for your Azure BillingManagement resource in the [Azure Portal][azure_portal].
3739

38-
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
40+
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
3941

4042
To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
4143

@@ -44,7 +46,6 @@ npm install @azure/identity
4446
```
4547

4648
You will also need to **register a new AAD application and grant access to Azure BillingManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
47-
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
4849

4950
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
5051

@@ -64,16 +65,16 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
6465
import { InteractiveBrowserCredential } from "@azure/identity";
6566
import { BillingManagementClient } from "@azure/arm-billing";
6667

67-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
6868
const credential = new InteractiveBrowserCredential({
6969
tenantId: "<YOUR_TENANT_ID>",
7070
clientId: "<YOUR_CLIENT_ID>",
7171
});
72+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
7273
const client = new BillingManagementClient(credential, subscriptionId);
7374
```
7475

75-
### JavaScript Bundle
7676

77+
### JavaScript Bundle
7778
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
7879

7980
## Key concepts
@@ -98,7 +99,7 @@ For more detailed instructions on how to enable logs, you can look at the [@azur
9899

99100
## Next steps
100101

101-
Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library.
102+
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/billing/arm-billing/samples) directory for detailed examples on how to use this library.
102103

103104
## Contributing
104105

@@ -108,10 +109,6 @@ If you'd like to contribute to this library, please read the [contributing guide
108109

109110
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
110111

111-
112-
113-
[azure_cli]: https://learn.microsoft.com/cli/azure
114-
[azure_sub]: https://azure.microsoft.com/free/
115112
[azure_sub]: https://azure.microsoft.com/free/
116113
[azure_portal]: https://portal.azure.com
117114
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity

sdk/billing/arm-billing/_meta.json

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
{
2-
"extends": "../../../api-extractor-base.json"
3-
}
1+
{ "extends": "../../../api-extractor-base.json" }

sdk/billing/arm-billing/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "js",
44
"TagPrefix": "js/billing/arm-billing",
5-
"Tag": "js/billing/arm-billing_f0861b8724"
5+
"Tag": "js/billing/arm-billing_7f03b626e1"
66
}

sdk/billing/arm-billing/config/tsconfig.samples.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
"extends": "../../../../eng/tsconfigs/samples.json",
33
"compilerOptions": {
44
"paths": {
5-
"@azure/arm-billing": [
6-
"../dist/esm"
7-
]
5+
"@azure/arm-billing": ["../dist/esm"]
86
}
97
}
108
}
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"extends": "../../../../eng/tsconfigs/src.browser.json",
3-
"include": [
4-
"../src/index.ts"
5-
]
3+
"include": ["../src/index.ts"]
64
}

0 commit comments

Comments
 (0)