Skip to content

Commit 0b78ccf

Browse files
author
SDKAuto
committed
CodeGen from PR 14830 in Azure/azure-rest-api-specs
Merge d98744647dd59d2a657b878285b5b4b6e45be3dd into c2e43f82e91ff7ad691381df56c535164b354cba
1 parent 23bb270 commit 0b78ccf

30 files changed

+710
-835
lines changed

sdk/batch/arm-batch/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/batch/arm-batch/README.md

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

3-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for BatchManagementClient.
3+
This package contains an isomorphic SDK (runs both in node.js and in browsers) for BatchManagementClient.
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-batch @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 get batchAccount as an example written in JavaScript.
4240

4341
##### Sample code
@@ -87,7 +85,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
8785
const credential = new InteractiveBrowserCredential(
8886
{
8987
clientId: "<client id for your Azure AD app>",
90-
tenantId: "<optional tenant for your organization>"
88+
tenant: "<optional tenant for your organization>"
9189
});
9290
const client = new Azure.ArmBatch.BatchManagementClient(creds, subscriptionId);
9391
const resourceGroupName = "testresourceGroupName";

sdk/batch/arm-batch/package.json

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"@azure/ms-rest-azure-js": "^2.1.0",
88
"@azure/ms-rest-js": "^2.2.0",
99
"@azure/core-auth": "^1.1.4",
10-
"tslib": "^2.0.0"
10+
"tslib": "^1.10.0"
1111
},
1212
"keywords": [
1313
"node",
@@ -21,21 +21,13 @@
2121
"module": "./esm/batchManagementClient.js",
2222
"types": "./esm/batchManagementClient.d.ts",
2323
"devDependencies": {
24-
"@types/chai": "^4.1.6",
25-
"@types/jssha": "^2.0.0",
26-
"@types/mocha": "^7.0.2",
27-
"chai": "^4.2.0",
28-
"dotenv": "^8.2.0",
29-
"mocha": "^7.1.1",
30-
"rollup": "^1.16.3",
24+
"typescript": "^3.6.0",
25+
"rollup": "^1.18.0",
3126
"rollup-plugin-node-resolve": "^5.2.0",
3227
"rollup-plugin-sourcemaps": "^0.4.2",
33-
"esm": "^3.2.25",
34-
"ts-node": "^8.3.0",
35-
"typescript": "^3.6.0",
36-
"uglify-js": "^3.4.9"
28+
"uglify-js": "^3.6.0"
3729
},
38-
"homepage": "https://github.com/Azure/azure-sdk-for-js",
30+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/batch/arm-batch",
3931
"repository": {
4032
"type": "git",
4133
"url": "https://github.com/Azure/azure-sdk-for-js.git"
@@ -60,8 +52,7 @@
6052
"scripts": {
6153
"build": "tsc && rollup -c rollup.config.js && npm run minify",
6254
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-batch.js.map'\" -o ./dist/arm-batch.min.js ./dist/arm-batch.js",
63-
"prepack": "npm install && npm run build",
64-
"test": "mocha -r esm --require ts-node/register test/*.spec.ts --timeout 1200000 --full-trace"
55+
"prepack": "npm install && npm run build"
6556
},
6657
"sideEffects": false,
6758
"autoPublish": true

sdk/batch/arm-batch/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/batch/arm-batch/src/batchManagementClient.ts

Lines changed: 2 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

sdk/batch/arm-batch/src/batchManagementClientContext.ts

Lines changed: 7 additions & 8 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-batch";
1716
const packageVersion = "5.1.0";
@@ -44,25 +43,25 @@ export class BatchManagementClientContext extends msRestAzure.AzureServiceClient
4443
if (!options) {
4544
options = {};
4645
}
47-
if(!options.userAgent) {
46+
if (!options.userAgent) {
4847
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
4948
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
5049
}
5150

5251
super(credentials, options);
5352

54-
this.apiVersion = '2020-09-01';
53+
this.apiVersion = '2021-01-01';
5554
this.acceptLanguage = 'en-US';
5655
this.longRunningOperationRetryTimeout = 30;
5756
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
5857
this.requestContentType = "application/json; charset=utf-8";
5958
this.credentials = credentials;
6059
this.subscriptionId = subscriptionId;
6160

62-
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
61+
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
6362
this.acceptLanguage = options.acceptLanguage;
6463
}
65-
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
64+
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
6665
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
6766
}
6867
}

sdk/batch/arm-batch/src/models/applicationOperationsMappers.ts

Lines changed: 7 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.
@@ -21,6 +21,9 @@ export {
2121
BaseResource,
2222
BatchAccount,
2323
BatchAccountIdentity,
24+
BatchAccountIdentityUserAssignedIdentitiesValue,
25+
BatchPoolIdentity,
26+
BatchPoolIdentityUserAssignedIdentitiesValue,
2427
Certificate,
2528
CertificateCreateOrUpdateParameters,
2629
CertificateReference,
@@ -47,6 +50,7 @@ export {
4750
NetworkConfiguration,
4851
NetworkSecurityGroupRule,
4952
NFSMountConfiguration,
53+
NodePlacementConfiguration,
5054
Pool,
5155
PoolEndpointConfiguration,
5256
PrivateEndpoint,
@@ -67,6 +71,7 @@ export {
6771
UserIdentity,
6872
VirtualMachineConfiguration,
6973
VirtualMachineFamilyCoreQuota,
74+
VMExtension,
7075
WindowsConfiguration,
7176
WindowsUserConfiguration
7277
} from "../models/mappers";

sdk/batch/arm-batch/src/models/applicationPackageOperationsMappers.ts

Lines changed: 7 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.
@@ -22,6 +22,9 @@ export {
2222
BaseResource,
2323
BatchAccount,
2424
BatchAccountIdentity,
25+
BatchAccountIdentityUserAssignedIdentitiesValue,
26+
BatchPoolIdentity,
27+
BatchPoolIdentityUserAssignedIdentitiesValue,
2528
Certificate,
2629
CertificateCreateOrUpdateParameters,
2730
CertificateReference,
@@ -48,6 +51,7 @@ export {
4851
NetworkConfiguration,
4952
NetworkSecurityGroupRule,
5053
NFSMountConfiguration,
54+
NodePlacementConfiguration,
5155
Pool,
5256
PoolEndpointConfiguration,
5357
PrivateEndpoint,
@@ -68,6 +72,7 @@ export {
6872
UserIdentity,
6973
VirtualMachineConfiguration,
7074
VirtualMachineFamilyCoreQuota,
75+
VMExtension,
7176
WindowsConfiguration,
7277
WindowsUserConfiguration
7378
} from "../models/mappers";

sdk/batch/arm-batch/src/models/batchAccountOperationsMappers.ts

Lines changed: 7 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.
@@ -24,10 +24,13 @@ export {
2424
BatchAccountCreateParameters,
2525
BatchAccountDeleteHeaders,
2626
BatchAccountIdentity,
27+
BatchAccountIdentityUserAssignedIdentitiesValue,
2728
BatchAccountKeys,
2829
BatchAccountListResult,
2930
BatchAccountRegenerateKeyParameters,
3031
BatchAccountUpdateParameters,
32+
BatchPoolIdentity,
33+
BatchPoolIdentityUserAssignedIdentitiesValue,
3134
Certificate,
3235
CertificateCreateOrUpdateParameters,
3336
CertificateReference,
@@ -53,6 +56,7 @@ export {
5356
NetworkConfiguration,
5457
NetworkSecurityGroupRule,
5558
NFSMountConfiguration,
59+
NodePlacementConfiguration,
5660
Pool,
5761
PoolEndpointConfiguration,
5862
PrivateEndpoint,
@@ -73,6 +77,7 @@ export {
7377
UserIdentity,
7478
VirtualMachineConfiguration,
7579
VirtualMachineFamilyCoreQuota,
80+
VMExtension,
7681
WindowsConfiguration,
7782
WindowsUserConfiguration
7883
} from "../models/mappers";

sdk/batch/arm-batch/src/models/certificateOperationsMappers.ts

Lines changed: 7 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.
@@ -21,6 +21,9 @@ export {
2121
BaseResource,
2222
BatchAccount,
2323
BatchAccountIdentity,
24+
BatchAccountIdentityUserAssignedIdentitiesValue,
25+
BatchPoolIdentity,
26+
BatchPoolIdentityUserAssignedIdentitiesValue,
2427
Certificate,
2528
CertificateCancelDeletionHeaders,
2629
CertificateCreateHeaders,
@@ -52,6 +55,7 @@ export {
5255
NetworkConfiguration,
5356
NetworkSecurityGroupRule,
5457
NFSMountConfiguration,
58+
NodePlacementConfiguration,
5559
Pool,
5660
PoolEndpointConfiguration,
5761
PrivateEndpoint,
@@ -72,6 +76,7 @@ export {
7276
UserIdentity,
7377
VirtualMachineConfiguration,
7478
VirtualMachineFamilyCoreQuota,
79+
VMExtension,
7580
WindowsConfiguration,
7681
WindowsUserConfiguration
7782
} from "../models/mappers";

0 commit comments

Comments
 (0)