Skip to content

Commit 5fc06f7

Browse files
author
SDKAuto
committed
CodeGen from PR 14997 in Azure/azure-rest-api-specs
Merge 567b0ee9ff92540a6895f03fda03f4f43f63702a into 33b8d6f7bf2eb081fe134333b0fc445777e488d6
1 parent 719cb86 commit 5fc06f7

Some content is hidden

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

52 files changed

+1665
-229
lines changed

sdk/billing/arm-billing/LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020 Microsoft
3+
Copyright (c) 2021 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/billing/arm-billing/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
## Azure BillingManagementClient SDK for JavaScript
22

3-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for BillingManagementClient.
3+
This package contains an isomorphic SDK (runs both in node.js and in browsers) for BillingManagementClient.
44

55
### Currently supported environments
66

77
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
8-
- Latest versions of Safari, Chrome, Edge, and Firefox.
8+
- Latest versions of Safari, Chrome, Edge and Firefox.
99

1010
### Prerequisites
1111

@@ -21,7 +21,6 @@ Install both packages using the below command:
2121
```bash
2222
npm install --save @azure/arm-billing @azure/identity
2323
```
24-
2524
> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features.
2625
If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.
2726

@@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/
3736

3837
In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
3938
Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.
40-
4139
#### nodejs - Authentication, client creation, and list billingAccounts as an example written in JavaScript.
4240

4341
##### Sample code
@@ -86,7 +84,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
8684
const credential = new InteractiveBrowserCredential(
8785
{
8886
clientId: "<client id for your Azure AD app>",
89-
tenantId: "<optional tenant for your organization>"
87+
tenant: "<optional tenant for your organization>"
9088
});
9189
const client = new Azure.ArmBilling.BillingManagementClient(creds, subscriptionId);
9290
const expand = "testexpand";

sdk/billing/arm-billing/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"rollup-plugin-sourcemaps": "^0.4.2",
2828
"uglify-js": "^3.6.0"
2929
},
30-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/billing/arm-billing",
30+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/billing/arm-billing",
3131
"repository": {
3232
"type": "git",
3333
"url": "https://github.com/Azure/azure-sdk-for-js.git"

sdk/billing/arm-billing/rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const config = {
2121
"@azure/ms-rest-azure-js": "msRestAzure"
2222
},
2323
banner: `/*
24-
* Copyright (c) Microsoft Corporation. All rights reserved.
25-
* Licensed under the MIT License. See License.txt in the project root for license information.
24+
* Copyright (c) Microsoft Corporation.
25+
* Licensed under the MIT License.
2626
*
2727
* Code generated by Microsoft (R) AutoRest Code Generator.
2828
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

sdk/billing/arm-billing/src/billingManagementClient.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for
4-
* license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
54
*
65
* Code generated by Microsoft (R) AutoRest Code Generator.
76
* Changes may cause incorrect behavior and will be lost if the code is
@@ -36,6 +35,7 @@ class BillingManagementClient extends BillingManagementClientContext {
3635
billingRoleDefinitions: operations.BillingRoleDefinitions;
3736
billingRoleAssignments: operations.BillingRoleAssignments;
3837
agreements: operations.Agreements;
38+
reservations: operations.Reservations;
3939
enrollmentAccounts: operations.EnrollmentAccounts;
4040
billingPeriods: operations.BillingPeriods;
4141

@@ -70,6 +70,7 @@ class BillingManagementClient extends BillingManagementClientContext {
7070
this.billingRoleDefinitions = new operations.BillingRoleDefinitions(this);
7171
this.billingRoleAssignments = new operations.BillingRoleAssignments(this);
7272
this.agreements = new operations.Agreements(this);
73+
this.reservations = new operations.Reservations(this);
7374
this.enrollmentAccounts = new operations.EnrollmentAccounts(this);
7475
this.billingPeriods = new operations.BillingPeriods(this);
7576
}

sdk/billing/arm-billing/src/billingManagementClientContext.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for
4-
* license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
54
*
65
* Code generated by Microsoft (R) AutoRest Code Generator.
76
* Changes may cause incorrect behavior and will be lost if the code is
@@ -10,8 +9,8 @@
109

1110
import * as Models from "./models";
1211
import * as msRest from "@azure/ms-rest-js";
13-
import { TokenCredential } from "@azure/core-auth";
1412
import * as msRestAzure from "@azure/ms-rest-azure-js";
13+
import { TokenCredential } from "@azure/core-auth";
1514

1615
const packageName = "@azure/arm-billing";
1716
const packageVersion = "3.1.0";
@@ -42,7 +41,7 @@ export class BillingManagementClientContext extends msRestAzure.AzureServiceClie
4241
if (!options) {
4342
options = {};
4443
}
45-
if(!options.userAgent) {
44+
if (!options.userAgent) {
4645
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
4746
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
4847
}
@@ -56,10 +55,10 @@ export class BillingManagementClientContext extends msRestAzure.AzureServiceClie
5655
this.credentials = credentials;
5756
this.subscriptionId = subscriptionId;
5857

59-
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
58+
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
6059
this.acceptLanguage = options.acceptLanguage;
6160
}
62-
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
61+
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
6362
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
6463
}
6564
}

sdk/billing/arm-billing/src/models/addressMappers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

sdk/billing/arm-billing/src/models/agreementsMappers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

sdk/billing/arm-billing/src/models/availableBalancesMappers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

sdk/billing/arm-billing/src/models/billingAccountsMappers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) Microsoft Corporation. All rights reserved.
3-
* Licensed under the MIT License. See License.txt in the project root for license information.
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT License.
44
*
55
* Code generated by Microsoft (R) AutoRest Code Generator.
66
* Changes may cause incorrect behavior and will be lost if the code is regenerated.

0 commit comments

Comments
 (0)