Skip to content

Commit ece7b92

Browse files
author
SDKAuto
committed
CodeGen from PR 12543 in Azure/azure-rest-api-specs
Merge cfaa6c8bda15abfbe9246acfb01351f45e028a73 into 5e076b3d3a0d6b5c9f083a0fddf0e3082137b0c6
1 parent a9245b7 commit ece7b92

21 files changed

+2324
-108
lines changed

sdk/keyvault/arm-keyvault/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) 2019 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/keyvault/arm-keyvault/README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@ npm install @azure/arm-keyvault
1515

1616
### How to use
1717

18-
#### nodejs - Authentication, client creation and get vaults as an example written in TypeScript.
18+
#### nodejs - client creation and get vaults as an example written in TypeScript.
1919

2020
##### Install @azure/ms-rest-nodeauth
2121

22+
- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
2223
```bash
23-
npm install @azure/ms-rest-nodeauth
24+
npm install @azure/ms-rest-nodeauth@"^3.0.0"
2425
```
2526

2627
##### Sample code
2728

29+
While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
2830
```typescript
29-
import * as msRest from "@azure/ms-rest-js";
30-
import * as msRestAzure from "@azure/ms-rest-azure-js";
31-
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
32-
import { KeyVaultManagementClient, KeyVaultManagementModels, KeyVaultManagementMappers } from "@azure/arm-keyvault";
31+
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
32+
const { KeyVaultManagementClient } = require("@azure/arm-keyvault");
3333
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
3434

3535
msRestNodeAuth.interactiveLogin().then((creds) => {
@@ -99,5 +99,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
9999

100100
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
101101

102-
103-
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fkeyvault%2Farm-keyvault%2FREADME.png)
102+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/keyvault/arm-keyvault/README.png)

sdk/keyvault/arm-keyvault/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"description": "KeyVaultManagementClient Library with typescript type definitions for node.js and browser.",
55
"version": "1.2.1",
66
"dependencies": {
7-
"@azure/ms-rest-azure-js": "^1.3.2",
8-
"@azure/ms-rest-js": "^1.8.1",
9-
"tslib": "^1.9.3"
7+
"@azure/ms-rest-azure-js": "^2.0.1",
8+
"@azure/ms-rest-js": "^2.0.4",
9+
"tslib": "^1.10.0"
1010
},
1111
"keywords": [
1212
"node",
@@ -20,19 +20,19 @@
2020
"module": "./esm/keyVaultManagementClient.js",
2121
"types": "./esm/keyVaultManagementClient.d.ts",
2222
"devDependencies": {
23-
"typescript": "^3.1.1",
24-
"rollup": "^0.66.2",
25-
"rollup-plugin-node-resolve": "^3.4.0",
23+
"typescript": "^3.5.3",
24+
"rollup": "^1.18.0",
25+
"rollup-plugin-node-resolve": "^5.2.0",
2626
"rollup-plugin-sourcemaps": "^0.4.2",
27-
"uglify-js": "^3.4.9"
27+
"uglify-js": "^3.6.0"
2828
},
29-
"homepage": "https://github.com/azure/azure-sdk-for-js",
29+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/keyvault/arm-keyvault",
3030
"repository": {
3131
"type": "git",
32-
"url": "https://github.com/azure/azure-sdk-for-js.git"
32+
"url": "https://github.com/Azure/azure-sdk-for-js.git"
3333
},
3434
"bugs": {
35-
"url": "https://github.com/azure/azure-sdk-for-js/issues"
35+
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
3636
},
3737
"files": [
3838
"dist/**/*.js",

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ 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.
2929
*/`
3030
},
3131
plugins: [
32-
nodeResolve({ module: true }),
32+
nodeResolve({ mainFields: ['module', 'main'] }),
3333
sourcemaps()
3434
]
3535
};

sdk/keyvault/arm-keyvault/src/keyVaultManagementClient.ts

Lines changed: 8 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
@@ -18,7 +17,10 @@ import { KeyVaultManagementClientContext } from "./keyVaultManagementClientConte
1817
class KeyVaultManagementClient extends KeyVaultManagementClientContext {
1918
// Operation groups
2019
vaults: operations.Vaults;
20+
privateEndpointConnections: operations.PrivateEndpointConnections;
21+
privateLinkResources: operations.PrivateLinkResources;
2122
operations: operations.Operations;
23+
keys: operations.Keys;
2224

2325
/**
2426
* Initializes a new instance of the KeyVaultManagementClient class.
@@ -30,7 +32,10 @@ class KeyVaultManagementClient extends KeyVaultManagementClientContext {
3032
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.KeyVaultManagementClientOptions) {
3133
super(credentials, subscriptionId, options);
3234
this.vaults = new operations.Vaults(this);
35+
this.privateEndpointConnections = new operations.PrivateEndpointConnections(this);
36+
this.privateLinkResources = new operations.PrivateLinkResources(this);
3337
this.operations = new operations.Operations(this);
38+
this.keys = new operations.Keys(this);
3439
}
3540
}
3641

sdk/keyvault/arm-keyvault/src/keyVaultManagementClientContext.ts

Lines changed: 3 additions & 4 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
@@ -45,7 +44,7 @@ export class KeyVaultManagementClientContext extends msRestAzure.AzureServiceCli
4544

4645
super(credentials, options);
4746

48-
this.apiVersion = '2018-02-14';
47+
this.apiVersion = '2019-09-01';
4948
this.acceptLanguage = 'en-US';
5049
this.longRunningOperationRetryTimeout = 30;
5150
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";

0 commit comments

Comments
 (0)