@azure/arm-keyvault 2.0.0-alpha.20211214.4 → 2.0.0

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.
Files changed (200) hide show
  1. package/CHANGELOG.md +6 -21
  2. package/LICENSE +1 -1
  3. package/README.md +7 -5
  4. package/dist/index.js +103 -258
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/{index.d.ts → src/index.d.ts} +0 -1
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/{index.js → src/index.js} +0 -1
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/{keyVaultManagementClient.d.ts → src/keyVaultManagementClient.d.ts} +5 -2
  13. package/dist-esm/src/keyVaultManagementClient.d.ts.map +1 -0
  14. package/dist-esm/{keyVaultManagementClientContext.js → src/keyVaultManagementClient.js} +15 -5
  15. package/dist-esm/src/keyVaultManagementClient.js.map +1 -0
  16. package/dist-esm/{lroImpl.d.ts → src/lroImpl.d.ts} +0 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/{lroImpl.js → src/lroImpl.js} +0 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/{models → src/models}/index.d.ts +56 -100
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/{models → src/models}/index.js +5 -7
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/{models → src/models}/mappers.d.ts +2 -7
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/dist-esm/{models → src/models}/mappers.js +83 -201
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/{models → src/models}/parameters.d.ts +0 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/dist-esm/{models → src/models}/parameters.js +1 -1
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/{operations → src/operations}/index.d.ts +0 -0
  33. package/dist-esm/src/operations/index.d.ts.map +1 -0
  34. package/dist-esm/{operations → src/operations}/index.js +0 -0
  35. package/dist-esm/src/operations/index.js.map +1 -0
  36. package/dist-esm/{operations → src/operations}/keys.d.ts +3 -4
  37. package/dist-esm/src/operations/keys.d.ts.map +1 -0
  38. package/dist-esm/{operations → src/operations}/keys.js +1 -2
  39. package/dist-esm/src/operations/keys.js.map +1 -0
  40. package/dist-esm/{operations → src/operations}/managedHsms.d.ts +3 -4
  41. package/dist-esm/src/operations/managedHsms.d.ts.map +1 -0
  42. package/dist-esm/{operations → src/operations}/managedHsms.js +1 -2
  43. package/dist-esm/src/operations/managedHsms.js.map +1 -0
  44. package/dist-esm/{operations → src/operations}/mhsmPrivateEndpointConnections.d.ts +3 -4
  45. package/dist-esm/src/operations/mhsmPrivateEndpointConnections.d.ts.map +1 -0
  46. package/dist-esm/{operations → src/operations}/mhsmPrivateEndpointConnections.js +1 -2
  47. package/dist-esm/src/operations/mhsmPrivateEndpointConnections.js.map +1 -0
  48. package/dist-esm/{operations → src/operations}/mhsmPrivateLinkResources.d.ts +3 -3
  49. package/dist-esm/src/operations/mhsmPrivateLinkResources.d.ts.map +1 -0
  50. package/dist-esm/{operations → src/operations}/mhsmPrivateLinkResources.js +1 -1
  51. package/dist-esm/src/operations/mhsmPrivateLinkResources.js.map +1 -0
  52. package/dist-esm/{operations → src/operations}/operations.d.ts +3 -4
  53. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  54. package/dist-esm/{operations → src/operations}/operations.js +1 -2
  55. package/dist-esm/src/operations/operations.js.map +1 -0
  56. package/dist-esm/{operations → src/operations}/privateEndpointConnections.d.ts +3 -4
  57. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  58. package/dist-esm/{operations → src/operations}/privateEndpointConnections.js +1 -2
  59. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  60. package/dist-esm/{operations → src/operations}/privateLinkResources.d.ts +3 -3
  61. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  62. package/dist-esm/{operations → src/operations}/privateLinkResources.js +1 -1
  63. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  64. package/dist-esm/{operations → src/operations}/secrets.d.ts +3 -4
  65. package/dist-esm/src/operations/secrets.d.ts.map +1 -0
  66. package/dist-esm/{operations → src/operations}/secrets.js +1 -2
  67. package/dist-esm/src/operations/secrets.js.map +1 -0
  68. package/dist-esm/{operations → src/operations}/vaults.d.ts +3 -4
  69. package/dist-esm/src/operations/vaults.d.ts.map +1 -0
  70. package/dist-esm/{operations → src/operations}/vaults.js +1 -10
  71. package/dist-esm/src/operations/vaults.js.map +1 -0
  72. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/index.d.ts +0 -0
  73. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  74. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/index.js +0 -0
  75. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  76. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/keys.d.ts +0 -1
  77. package/dist-esm/src/operationsInterfaces/keys.d.ts.map +1 -0
  78. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/keys.js +1 -1
  79. package/dist-esm/src/operationsInterfaces/keys.js.map +1 -0
  80. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/managedHsms.d.ts +0 -1
  81. package/dist-esm/src/operationsInterfaces/managedHsms.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/managedHsms.js +9 -0
  83. package/dist-esm/src/operationsInterfaces/managedHsms.js.map +1 -0
  84. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/mhsmPrivateEndpointConnections.d.ts +0 -1
  85. package/dist-esm/src/operationsInterfaces/mhsmPrivateEndpointConnections.d.ts.map +1 -0
  86. package/dist-esm/{operationsInterfaces/operations.js → src/operationsInterfaces/mhsmPrivateEndpointConnections.js} +2 -2
  87. package/dist-esm/src/operationsInterfaces/mhsmPrivateEndpointConnections.js.map +1 -0
  88. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/mhsmPrivateLinkResources.d.ts +0 -0
  89. package/dist-esm/src/operationsInterfaces/mhsmPrivateLinkResources.d.ts.map +1 -0
  90. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/mhsmPrivateLinkResources.js +0 -0
  91. package/dist-esm/src/operationsInterfaces/mhsmPrivateLinkResources.js.map +1 -0
  92. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/operations.d.ts +0 -1
  93. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  94. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  95. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  96. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/privateEndpointConnections.d.ts +0 -1
  97. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  98. package/dist-esm/{operationsInterfaces/secrets.js → src/operationsInterfaces/privateEndpointConnections.js} +2 -2
  99. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  100. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/privateLinkResources.d.ts +0 -0
  101. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  102. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/privateLinkResources.js +0 -0
  103. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  104. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/secrets.d.ts +0 -1
  105. package/dist-esm/src/operationsInterfaces/secrets.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/secrets.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/secrets.js.map +1 -0
  108. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/vaults.d.ts +0 -1
  109. package/dist-esm/src/operationsInterfaces/vaults.d.ts.map +1 -0
  110. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/vaults.js +1 -1
  111. package/dist-esm/src/operationsInterfaces/vaults.js.map +1 -0
  112. package/dist-esm/test/keyvault_examples.d.ts +4 -0
  113. package/dist-esm/test/keyvault_examples.d.ts.map +1 -0
  114. package/dist-esm/test/keyvault_examples.js +247 -0
  115. package/dist-esm/test/keyvault_examples.js.map +1 -0
  116. package/package.json +20 -27
  117. package/review/arm-keyvault.api.md +8 -51
  118. package/src/index.ts +0 -1
  119. package/src/keyVaultManagementClient.ts +46 -3
  120. package/src/models/index.ts +58 -107
  121. package/src/models/mappers.ts +85 -209
  122. package/src/models/parameters.ts +1 -1
  123. package/src/operations/keys.ts +4 -5
  124. package/src/operations/managedHsms.ts +4 -5
  125. package/src/operations/mhsmPrivateEndpointConnections.ts +4 -5
  126. package/src/operations/mhsmPrivateLinkResources.ts +4 -4
  127. package/src/operations/operations.ts +4 -5
  128. package/src/operations/privateEndpointConnections.ts +4 -5
  129. package/src/operations/privateLinkResources.ts +4 -4
  130. package/src/operations/secrets.ts +4 -5
  131. package/src/operations/vaults.ts +4 -13
  132. package/src/operationsInterfaces/keys.ts +0 -1
  133. package/src/operationsInterfaces/managedHsms.ts +0 -1
  134. package/src/operationsInterfaces/mhsmPrivateEndpointConnections.ts +0 -1
  135. package/src/operationsInterfaces/operations.ts +0 -1
  136. package/src/operationsInterfaces/privateEndpointConnections.ts +0 -1
  137. package/src/operationsInterfaces/secrets.ts +0 -1
  138. package/src/operationsInterfaces/vaults.ts +0 -1
  139. package/tsconfig.json +1 -1
  140. package/types/arm-keyvault.d.ts +10 -71
  141. package/dist-esm/index.d.ts.map +0 -1
  142. package/dist-esm/index.js.map +0 -1
  143. package/dist-esm/keyVaultManagementClient.d.ts.map +0 -1
  144. package/dist-esm/keyVaultManagementClient.js +0 -31
  145. package/dist-esm/keyVaultManagementClient.js.map +0 -1
  146. package/dist-esm/keyVaultManagementClientContext.d.ts +0 -17
  147. package/dist-esm/keyVaultManagementClientContext.d.ts.map +0 -1
  148. package/dist-esm/keyVaultManagementClientContext.js.map +0 -1
  149. package/dist-esm/lroImpl.d.ts.map +0 -1
  150. package/dist-esm/lroImpl.js.map +0 -1
  151. package/dist-esm/models/index.d.ts.map +0 -1
  152. package/dist-esm/models/index.js.map +0 -1
  153. package/dist-esm/models/mappers.d.ts.map +0 -1
  154. package/dist-esm/models/mappers.js.map +0 -1
  155. package/dist-esm/models/parameters.d.ts.map +0 -1
  156. package/dist-esm/models/parameters.js.map +0 -1
  157. package/dist-esm/operations/index.d.ts.map +0 -1
  158. package/dist-esm/operations/index.js.map +0 -1
  159. package/dist-esm/operations/keys.d.ts.map +0 -1
  160. package/dist-esm/operations/keys.js.map +0 -1
  161. package/dist-esm/operations/managedHsms.d.ts.map +0 -1
  162. package/dist-esm/operations/managedHsms.js.map +0 -1
  163. package/dist-esm/operations/mhsmPrivateEndpointConnections.d.ts.map +0 -1
  164. package/dist-esm/operations/mhsmPrivateEndpointConnections.js.map +0 -1
  165. package/dist-esm/operations/mhsmPrivateLinkResources.d.ts.map +0 -1
  166. package/dist-esm/operations/mhsmPrivateLinkResources.js.map +0 -1
  167. package/dist-esm/operations/operations.d.ts.map +0 -1
  168. package/dist-esm/operations/operations.js.map +0 -1
  169. package/dist-esm/operations/privateEndpointConnections.d.ts.map +0 -1
  170. package/dist-esm/operations/privateEndpointConnections.js.map +0 -1
  171. package/dist-esm/operations/privateLinkResources.d.ts.map +0 -1
  172. package/dist-esm/operations/privateLinkResources.js.map +0 -1
  173. package/dist-esm/operations/secrets.d.ts.map +0 -1
  174. package/dist-esm/operations/secrets.js.map +0 -1
  175. package/dist-esm/operations/vaults.d.ts.map +0 -1
  176. package/dist-esm/operations/vaults.js.map +0 -1
  177. package/dist-esm/operationsInterfaces/index.d.ts.map +0 -1
  178. package/dist-esm/operationsInterfaces/index.js.map +0 -1
  179. package/dist-esm/operationsInterfaces/keys.d.ts.map +0 -1
  180. package/dist-esm/operationsInterfaces/keys.js.map +0 -1
  181. package/dist-esm/operationsInterfaces/managedHsms.d.ts.map +0 -1
  182. package/dist-esm/operationsInterfaces/managedHsms.js +0 -9
  183. package/dist-esm/operationsInterfaces/managedHsms.js.map +0 -1
  184. package/dist-esm/operationsInterfaces/mhsmPrivateEndpointConnections.d.ts.map +0 -1
  185. package/dist-esm/operationsInterfaces/mhsmPrivateEndpointConnections.js +0 -9
  186. package/dist-esm/operationsInterfaces/mhsmPrivateEndpointConnections.js.map +0 -1
  187. package/dist-esm/operationsInterfaces/mhsmPrivateLinkResources.d.ts.map +0 -1
  188. package/dist-esm/operationsInterfaces/mhsmPrivateLinkResources.js.map +0 -1
  189. package/dist-esm/operationsInterfaces/operations.d.ts.map +0 -1
  190. package/dist-esm/operationsInterfaces/operations.js.map +0 -1
  191. package/dist-esm/operationsInterfaces/privateEndpointConnections.d.ts.map +0 -1
  192. package/dist-esm/operationsInterfaces/privateEndpointConnections.js +0 -9
  193. package/dist-esm/operationsInterfaces/privateEndpointConnections.js.map +0 -1
  194. package/dist-esm/operationsInterfaces/privateLinkResources.d.ts.map +0 -1
  195. package/dist-esm/operationsInterfaces/privateLinkResources.js.map +0 -1
  196. package/dist-esm/operationsInterfaces/secrets.d.ts.map +0 -1
  197. package/dist-esm/operationsInterfaces/secrets.js.map +0 -1
  198. package/dist-esm/operationsInterfaces/vaults.d.ts.map +0 -1
  199. package/dist-esm/operationsInterfaces/vaults.js.map +0 -1
  200. package/src/keyVaultManagementClientContext.ts +0 -71
package/CHANGELOG.md CHANGED
@@ -1,26 +1,11 @@
1
1
  # Release History
2
+
3
+ ## 2.0.0 (2022-01-17)
2
4
 
3
- ## 2.0.0-beta.2 (Unreleased)
5
+ The package of @azure/arm-keyvault is using our next generation design principles since version 2.0.0, which contains breaking changes.
4
6
 
5
- ### Features Added
7
+ To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
6
8
 
7
- ### Breaking Changes
9
+ To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
8
10
 
9
- ### Bugs Fixed
10
-
11
- ### Other Changes
12
-
13
- ## 2.0.0-beta.1 (2021-10-09)
14
-
15
- This is the first preview for the new version of the `@azure/arm-keyvault` package that follows the new [guidelines for TypeScript SDKs](https://azure.github.io/azure-sdk/typescript_introduction.html) for Azure services.
16
-
17
- While this package remains auto generated, the SDK generator itself has undergone changes to comply with the above guidelines in order to generate packages that are idiomatic to the JavaScript/TypeScript ecosystem and consistent with other packages for Azure services. For more on this, please see [State of the Azure SDK 2021](https://devblogs.microsoft.com/azure-sdk/state-of-the-azure-sdk-2021/).
18
-
19
- Please note that this version has breaking changes, all of which were made after careful consideration during the authoring of the guidelines and user studies.
20
-
21
- **Noteworthy changes and features**
22
- - Authentication: The packages `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` are no longer supported. Use package [@azure/identity](https://www.npmjs.com/package/@azure/identity) instead. Select a credential from Azure Identity examples based on the authentication method of your choice.
23
- - Callbacks: Method overloads that used callbacks have been removed and the use of promises is encouraged instead.
24
- - List operations now return an iterable result that follows the `PagedAsyncIterableIterator` interface as opposed to the previous model where you had to make a new request using the link to the next page.
25
- - Long running operations i.e. the Lro related object returned by methods whose names started with `begin`, now uses `pollUntilDone` to check whether the request is finished, instead of `pollUntilFinished`. To get the final result, use the corresponding method that will have the suffix `AndWait`.
26
- - The SDK only supports ECMAScript 2015 (ES6) and beyond, all projects that referenced this SDK should be upgraded to use ES6.
11
+ To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2021 Microsoft
3
+ Copyright (c) 2022 Microsoft
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure KeyVaultManagement client.
4
4
 
5
- You can also follow this [link](https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/keyvault/arm-keyvault) to see the previous stable versions for this package. Note that they might not implement the guidelines(https://azure.github.io/azure-sdk/typescript_introduction.html) or have the same feature set as the new releases.
6
-
7
5
  The Azure management API provides a RESTful set of web services that interact with Azure Key Vault.
8
6
 
9
7
  [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/keyvault/arm-keyvault) |
@@ -35,9 +33,9 @@ npm install @azure/arm-keyvault
35
33
  To create a client object to access the Azure KeyVaultManagement API, you will need the `endpoint` of your Azure KeyVaultManagement resource and a `credential`. The Azure KeyVaultManagement client can use Azure Active Directory credentials to authenticate.
36
34
  You can find the endpoint for your Azure KeyVaultManagement resource in the [Azure Portal][azure_portal].
37
35
 
38
- #### Using an Azure Active Directory Credential
36
+ 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).
39
37
 
40
- You can authenticate with Azure Active Directory using the [Azure Identity library][azure_identity]. To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
38
+ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
41
39
 
42
40
  ```bash
43
41
  npm install @azure/identity
@@ -55,6 +53,10 @@ const subscriptionId = "00000000-0000-0000-0000-000000000000";
55
53
  const client = new KeyVaultManagementClient(new DefaultAzureCredential(), subscriptionId);
56
54
  ```
57
55
 
56
+
57
+ ### JavaScript Bundle
58
+ 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).
59
+
58
60
  ## Key concepts
59
61
 
60
62
  ### KeyVaultManagementClient
@@ -68,7 +70,7 @@ const client = new KeyVaultManagementClient(new DefaultAzureCredential(), subscr
68
70
  Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
69
71
 
70
72
  ```javascript
71
- import { setLogLevel } from "@azure/logger";
73
+ const { setLogLevel } = require("@azure/logger");
72
74
  setLogLevel("info");
73
75
  ```
74
76
 
package/dist/index.js CHANGED
@@ -2,9 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib = require('tslib');
6
- require('@azure/core-paging');
7
5
  var coreClient = require('@azure/core-client');
6
+ var tslib = require('tslib');
8
7
  var coreLro = require('@azure/core-lro');
9
8
 
10
9
  /*
@@ -62,8 +61,6 @@ var coreLro = require('@azure/core-lro');
62
61
  KnownKeyPermissions["Restore"] = "restore";
63
62
  KnownKeyPermissions["Recover"] = "recover";
64
63
  KnownKeyPermissions["Purge"] = "purge";
65
- KnownKeyPermissions["Release"] = "release";
66
- KnownKeyPermissions["Rotate"] = "rotate";
67
64
  })(exports.KnownKeyPermissions || (exports.KnownKeyPermissions = {}));
68
65
  (function (KnownSecretPermissions) {
69
66
  KnownSecretPermissions["All"] = "all";
@@ -147,9 +144,6 @@ var coreLro = require('@azure/core-lro');
147
144
  KnownIdentityType["ManagedIdentity"] = "ManagedIdentity";
148
145
  KnownIdentityType["Key"] = "Key";
149
146
  })(exports.KnownIdentityType || (exports.KnownIdentityType = {}));
150
- (function (KnownManagedHsmSkuFamily) {
151
- KnownManagedHsmSkuFamily["B"] = "B";
152
- })(exports.KnownManagedHsmSkuFamily || (exports.KnownManagedHsmSkuFamily = {}));
153
147
  (function (KnownProvisioningState) {
154
148
  /** The managed HSM Pool has been full provisioned. */
155
149
  KnownProvisioningState["Succeeded"] = "Succeeded";
@@ -172,6 +166,9 @@ var coreLro = require('@azure/core-lro');
172
166
  KnownPublicNetworkAccess["Enabled"] = "Enabled";
173
167
  KnownPublicNetworkAccess["Disabled"] = "Disabled";
174
168
  })(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
169
+ (function (KnownManagedHsmSkuFamily) {
170
+ KnownManagedHsmSkuFamily["B"] = "B";
171
+ })(exports.KnownManagedHsmSkuFamily || (exports.KnownManagedHsmSkuFamily = {}));
175
172
 
176
173
  /*
177
174
  * Copyright (c) Microsoft Corporation.
@@ -256,13 +253,6 @@ const KeyProperties = {
256
253
  type: {
257
254
  name: "String"
258
255
  }
259
- },
260
- rotationPolicy: {
261
- serializedName: "rotationPolicy",
262
- type: {
263
- name: "Composite",
264
- className: "RotationPolicy"
265
- }
266
256
  }
267
257
  }
268
258
  }
@@ -310,117 +300,11 @@ const KeyAttributes = {
310
300
  type: {
311
301
  name: "String"
312
302
  }
313
- }
314
- }
315
- }
316
- };
317
- const RotationPolicy = {
318
- type: {
319
- name: "Composite",
320
- className: "RotationPolicy",
321
- modelProperties: {
322
- attributes: {
323
- serializedName: "attributes",
324
- type: {
325
- name: "Composite",
326
- className: "KeyRotationPolicyAttributes"
327
- }
328
303
  },
329
- lifetimeActions: {
330
- serializedName: "lifetimeActions",
304
+ exportable: {
305
+ serializedName: "exportable",
331
306
  type: {
332
- name: "Sequence",
333
- element: {
334
- type: {
335
- name: "Composite",
336
- className: "LifetimeAction"
337
- }
338
- }
339
- }
340
- }
341
- }
342
- }
343
- };
344
- const KeyRotationPolicyAttributes = {
345
- type: {
346
- name: "Composite",
347
- className: "KeyRotationPolicyAttributes",
348
- modelProperties: {
349
- created: {
350
- serializedName: "created",
351
- readOnly: true,
352
- type: {
353
- name: "Number"
354
- }
355
- },
356
- updated: {
357
- serializedName: "updated",
358
- readOnly: true,
359
- type: {
360
- name: "Number"
361
- }
362
- },
363
- expiryTime: {
364
- serializedName: "expiryTime",
365
- type: {
366
- name: "String"
367
- }
368
- }
369
- }
370
- }
371
- };
372
- const LifetimeAction = {
373
- type: {
374
- name: "Composite",
375
- className: "LifetimeAction",
376
- modelProperties: {
377
- trigger: {
378
- serializedName: "trigger",
379
- type: {
380
- name: "Composite",
381
- className: "Trigger"
382
- }
383
- },
384
- action: {
385
- serializedName: "action",
386
- type: {
387
- name: "Composite",
388
- className: "Action"
389
- }
390
- }
391
- }
392
- }
393
- };
394
- const Trigger = {
395
- type: {
396
- name: "Composite",
397
- className: "Trigger",
398
- modelProperties: {
399
- timeAfterCreate: {
400
- serializedName: "timeAfterCreate",
401
- type: {
402
- name: "String"
403
- }
404
- },
405
- timeBeforeExpiry: {
406
- serializedName: "timeBeforeExpiry",
407
- type: {
408
- name: "String"
409
- }
410
- }
411
- }
412
- }
413
- };
414
- const Action = {
415
- type: {
416
- name: "Composite",
417
- className: "Action",
418
- modelProperties: {
419
- type: {
420
- serializedName: "type",
421
- type: {
422
- name: "Enum",
423
- allowedValues: ["rotate", "notify"]
307
+ name: "Boolean"
424
308
  }
425
309
  }
426
310
  }
@@ -637,6 +521,7 @@ const VaultProperties = {
637
521
  }
638
522
  },
639
523
  enableRbacAuthorization: {
524
+ defaultValue: false,
640
525
  serializedName: "enableRbacAuthorization",
641
526
  type: {
642
527
  name: "Boolean"
@@ -1507,85 +1392,6 @@ const PrivateLinkResourceListResult = {
1507
1392
  }
1508
1393
  }
1509
1394
  };
1510
- const ManagedHsmResource = {
1511
- type: {
1512
- name: "Composite",
1513
- className: "ManagedHsmResource",
1514
- modelProperties: {
1515
- id: {
1516
- serializedName: "id",
1517
- readOnly: true,
1518
- type: {
1519
- name: "String"
1520
- }
1521
- },
1522
- name: {
1523
- serializedName: "name",
1524
- readOnly: true,
1525
- type: {
1526
- name: "String"
1527
- }
1528
- },
1529
- type: {
1530
- serializedName: "type",
1531
- readOnly: true,
1532
- type: {
1533
- name: "String"
1534
- }
1535
- },
1536
- location: {
1537
- serializedName: "location",
1538
- type: {
1539
- name: "String"
1540
- }
1541
- },
1542
- sku: {
1543
- serializedName: "sku",
1544
- type: {
1545
- name: "Composite",
1546
- className: "ManagedHsmSku"
1547
- }
1548
- },
1549
- tags: {
1550
- serializedName: "tags",
1551
- type: {
1552
- name: "Dictionary",
1553
- value: { type: { name: "String" } }
1554
- }
1555
- },
1556
- systemData: {
1557
- serializedName: "systemData",
1558
- type: {
1559
- name: "Composite",
1560
- className: "SystemData"
1561
- }
1562
- }
1563
- }
1564
- }
1565
- };
1566
- const ManagedHsmSku = {
1567
- type: {
1568
- name: "Composite",
1569
- className: "ManagedHsmSku",
1570
- modelProperties: {
1571
- family: {
1572
- serializedName: "family",
1573
- required: true,
1574
- type: {
1575
- name: "String"
1576
- }
1577
- },
1578
- name: {
1579
- serializedName: "name",
1580
- required: true,
1581
- type: {
1582
- name: "Enum",
1583
- allowedValues: ["Standard_B1", "Custom_B32"]
1584
- }
1585
- }
1586
- }
1587
- }
1588
- };
1589
1395
  const ManagedHsmProperties = {
1590
1396
  type: {
1591
1397
  name: "Composite",
@@ -1836,6 +1642,85 @@ const MhsmPrivateLinkServiceConnectionState = {
1836
1642
  }
1837
1643
  }
1838
1644
  };
1645
+ const ManagedHsmResource = {
1646
+ type: {
1647
+ name: "Composite",
1648
+ className: "ManagedHsmResource",
1649
+ modelProperties: {
1650
+ id: {
1651
+ serializedName: "id",
1652
+ readOnly: true,
1653
+ type: {
1654
+ name: "String"
1655
+ }
1656
+ },
1657
+ name: {
1658
+ serializedName: "name",
1659
+ readOnly: true,
1660
+ type: {
1661
+ name: "String"
1662
+ }
1663
+ },
1664
+ type: {
1665
+ serializedName: "type",
1666
+ readOnly: true,
1667
+ type: {
1668
+ name: "String"
1669
+ }
1670
+ },
1671
+ location: {
1672
+ serializedName: "location",
1673
+ type: {
1674
+ name: "String"
1675
+ }
1676
+ },
1677
+ sku: {
1678
+ serializedName: "sku",
1679
+ type: {
1680
+ name: "Composite",
1681
+ className: "ManagedHsmSku"
1682
+ }
1683
+ },
1684
+ tags: {
1685
+ serializedName: "tags",
1686
+ type: {
1687
+ name: "Dictionary",
1688
+ value: { type: { name: "String" } }
1689
+ }
1690
+ },
1691
+ systemData: {
1692
+ serializedName: "systemData",
1693
+ type: {
1694
+ name: "Composite",
1695
+ className: "SystemData"
1696
+ }
1697
+ }
1698
+ }
1699
+ }
1700
+ };
1701
+ const ManagedHsmSku = {
1702
+ type: {
1703
+ name: "Composite",
1704
+ className: "ManagedHsmSku",
1705
+ modelProperties: {
1706
+ family: {
1707
+ serializedName: "family",
1708
+ required: true,
1709
+ type: {
1710
+ name: "String"
1711
+ }
1712
+ },
1713
+ name: {
1714
+ serializedName: "name",
1715
+ required: true,
1716
+ type: {
1717
+ name: "Enum",
1718
+ allowedValues: ["Standard_B1", "Custom_B32"]
1719
+ }
1720
+ }
1721
+ }
1722
+ }
1723
+ };
1839
1724
  const ManagedHsmError = {
1840
1725
  type: {
1841
1726
  name: "Composite",
@@ -2562,12 +2447,6 @@ const Key = {
2562
2447
  type: {
2563
2448
  name: "String"
2564
2449
  }
2565
- }, rotationPolicy: {
2566
- serializedName: "properties.rotationPolicy",
2567
- type: {
2568
- name: "Composite",
2569
- className: "RotationPolicy"
2570
- }
2571
2450
  } })
2572
2451
  }
2573
2452
  };
@@ -2816,11 +2695,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
2816
2695
  KeyCreateParameters: KeyCreateParameters,
2817
2696
  KeyProperties: KeyProperties,
2818
2697
  KeyAttributes: KeyAttributes,
2819
- RotationPolicy: RotationPolicy,
2820
- KeyRotationPolicyAttributes: KeyRotationPolicyAttributes,
2821
- LifetimeAction: LifetimeAction,
2822
- Trigger: Trigger,
2823
- Action: Action,
2824
2698
  Resource: Resource,
2825
2699
  CloudError: CloudError,
2826
2700
  CloudErrorBody: CloudErrorBody,
@@ -2851,8 +2725,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
2851
2725
  CheckNameAvailabilityResult: CheckNameAvailabilityResult,
2852
2726
  PrivateEndpointConnectionListResult: PrivateEndpointConnectionListResult,
2853
2727
  PrivateLinkResourceListResult: PrivateLinkResourceListResult,
2854
- ManagedHsmResource: ManagedHsmResource,
2855
- ManagedHsmSku: ManagedHsmSku,
2856
2728
  ManagedHsmProperties: ManagedHsmProperties,
2857
2729
  MhsmNetworkRuleSet: MhsmNetworkRuleSet,
2858
2730
  MhsmipRule: MhsmipRule,
@@ -2860,6 +2732,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
2860
2732
  MhsmPrivateEndpointConnectionItem: MhsmPrivateEndpointConnectionItem,
2861
2733
  MhsmPrivateEndpoint: MhsmPrivateEndpoint,
2862
2734
  MhsmPrivateLinkServiceConnectionState: MhsmPrivateLinkServiceConnectionState,
2735
+ ManagedHsmResource: ManagedHsmResource,
2736
+ ManagedHsmSku: ManagedHsmSku,
2863
2737
  ManagedHsmError: ManagedHsmError,
2864
2738
  ErrorModel: ErrorModel,
2865
2739
  ManagedHsmListResult: ManagedHsmListResult,
@@ -2988,7 +2862,7 @@ const keyName = {
2988
2862
  const apiVersion = {
2989
2863
  parameterPath: "apiVersion",
2990
2864
  mapper: {
2991
- defaultValue: "2021-06-01-preview",
2865
+ defaultValue: "2021-10-01",
2992
2866
  isConstant: true,
2993
2867
  serializedName: "api-version",
2994
2868
  type: {
@@ -3170,7 +3044,7 @@ const secretName1 = {
3170
3044
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3171
3045
  */
3172
3046
  /// <reference lib="esnext.asynciterable" />
3173
- /** Class representing a Keys. */
3047
+ /** Class containing Keys operations. */
3174
3048
  class KeysImpl {
3175
3049
  /**
3176
3050
  * Initialize a new instance of the class Keys class.
@@ -3551,7 +3425,7 @@ class LroImpl {
3551
3425
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3552
3426
  */
3553
3427
  /// <reference lib="esnext.asynciterable" />
3554
- /** Class representing a Vaults. */
3428
+ /** Class containing Vaults operations. */
3555
3429
  class VaultsImpl {
3556
3430
  /**
3557
3431
  * Initialize a new instance of the class Vaults class.
@@ -4085,10 +3959,6 @@ const updateAccessPolicyOperationSpec = {
4085
3959
  201: {
4086
3960
  bodyMapper: VaultAccessPolicyParameters
4087
3961
  },
4088
- 404: {
4089
- bodyMapper: CloudError,
4090
- isError: true
4091
- },
4092
3962
  default: {
4093
3963
  bodyMapper: CloudError
4094
3964
  }
@@ -4187,10 +4057,6 @@ const purgeDeletedOperationSpec = {
4187
4057
  201: {},
4188
4058
  202: {},
4189
4059
  204: {},
4190
- 404: {
4191
- bodyMapper: CloudError,
4192
- isError: true
4193
- },
4194
4060
  default: {
4195
4061
  bodyMapper: CloudError
4196
4062
  }
@@ -4329,7 +4195,7 @@ const listNextOperationSpec$1 = {
4329
4195
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4330
4196
  */
4331
4197
  /// <reference lib="esnext.asynciterable" />
4332
- /** Class representing a PrivateEndpointConnections. */
4198
+ /** Class containing PrivateEndpointConnections operations. */
4333
4199
  class PrivateEndpointConnectionsImpl {
4334
4200
  /**
4335
4201
  * Initialize a new instance of the class PrivateEndpointConnections class.
@@ -4624,7 +4490,7 @@ const listByResourceNextOperationSpec = {
4624
4490
  * Code generated by Microsoft (R) AutoRest Code Generator.
4625
4491
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4626
4492
  */
4627
- /** Class representing a PrivateLinkResources. */
4493
+ /** Class containing PrivateLinkResources operations. */
4628
4494
  class PrivateLinkResourcesImpl {
4629
4495
  /**
4630
4496
  * Initialize a new instance of the class PrivateLinkResources class.
@@ -4675,7 +4541,7 @@ const listByVaultOperationSpec = {
4675
4541
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4676
4542
  */
4677
4543
  /// <reference lib="esnext.asynciterable" />
4678
- /** Class representing a ManagedHsms. */
4544
+ /** Class containing ManagedHsms operations. */
4679
4545
  class ManagedHsmsImpl {
4680
4546
  /**
4681
4547
  * Initialize a new instance of the class ManagedHsms class.
@@ -5373,7 +5239,7 @@ const listDeletedNextOperationSpec$1 = {
5373
5239
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
5374
5240
  */
5375
5241
  /// <reference lib="esnext.asynciterable" />
5376
- /** Class representing a MhsmPrivateEndpointConnections. */
5242
+ /** Class containing MhsmPrivateEndpointConnections operations. */
5377
5243
  class MhsmPrivateEndpointConnectionsImpl {
5378
5244
  /**
5379
5245
  * Initialize a new instance of the class MhsmPrivateEndpointConnections class.
@@ -5667,7 +5533,7 @@ const listByResourceNextOperationSpec$1 = {
5667
5533
  * Code generated by Microsoft (R) AutoRest Code Generator.
5668
5534
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
5669
5535
  */
5670
- /** Class representing a MhsmPrivateLinkResources. */
5536
+ /** Class containing MhsmPrivateLinkResources operations. */
5671
5537
  class MhsmPrivateLinkResourcesImpl {
5672
5538
  /**
5673
5539
  * Initialize a new instance of the class MhsmPrivateLinkResources class.
@@ -5718,7 +5584,7 @@ const listByMhsmResourceOperationSpec = {
5718
5584
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
5719
5585
  */
5720
5586
  /// <reference lib="esnext.asynciterable" />
5721
- /** Class representing a Operations. */
5587
+ /** Class containing Operations operations. */
5722
5588
  class OperationsImpl {
5723
5589
  /**
5724
5590
  * Initialize a new instance of the class Operations class.
@@ -5834,7 +5700,7 @@ const listNextOperationSpec$2 = {
5834
5700
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
5835
5701
  */
5836
5702
  /// <reference lib="esnext.asynciterable" />
5837
- /** Class representing a Secrets. */
5703
+ /** Class containing Secrets operations. */
5838
5704
  class SecretsImpl {
5839
5705
  /**
5840
5706
  * Initialize a new instance of the class Secrets class.
@@ -6082,9 +5948,9 @@ const listNextOperationSpec$3 = {
6082
5948
  * Code generated by Microsoft (R) AutoRest Code Generator.
6083
5949
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
6084
5950
  */
6085
- class KeyVaultManagementClientContext extends coreClient.ServiceClient {
5951
+ class KeyVaultManagementClient extends coreClient.ServiceClient {
6086
5952
  /**
6087
- * Initializes a new instance of the KeyVaultManagementClientContext class.
5953
+ * Initializes a new instance of the KeyVaultManagementClient class.
6088
5954
  * @param credentials Subscription credentials which uniquely identify client subscription.
6089
5955
  * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.
6090
5956
  * The subscription ID forms part of the URI for every service call.
@@ -6105,7 +5971,7 @@ class KeyVaultManagementClientContext extends coreClient.ServiceClient {
6105
5971
  requestContentType: "application/json; charset=utf-8",
6106
5972
  credential: credentials
6107
5973
  };
6108
- const packageDetails = `azsdk-js-arm-keyvault/2.0.0-beta.1`;
5974
+ const packageDetails = `azsdk-js-arm-keyvault/2.0.0`;
6109
5975
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
6110
5976
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
6111
5977
  : `${packageDetails}`;
@@ -6120,27 +5986,7 @@ class KeyVaultManagementClientContext extends coreClient.ServiceClient {
6120
5986
  this.subscriptionId = subscriptionId;
6121
5987
  // Assigning values to Constant parameters
6122
5988
  this.$host = options.$host || "https://management.azure.com";
6123
- this.apiVersion = options.apiVersion || "2021-06-01-preview";
6124
- }
6125
- }
6126
-
6127
- /*
6128
- * Copyright (c) Microsoft Corporation.
6129
- * Licensed under the MIT License.
6130
- *
6131
- * Code generated by Microsoft (R) AutoRest Code Generator.
6132
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
6133
- */
6134
- class KeyVaultManagementClient extends KeyVaultManagementClientContext {
6135
- /**
6136
- * Initializes a new instance of the KeyVaultManagementClient class.
6137
- * @param credentials Subscription credentials which uniquely identify client subscription.
6138
- * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.
6139
- * The subscription ID forms part of the URI for every service call.
6140
- * @param options The parameter options
6141
- */
6142
- constructor(credentials, subscriptionId, options) {
6143
- super(credentials, subscriptionId, options);
5989
+ this.apiVersion = options.apiVersion || "2021-10-01";
6144
5990
  this.keys = new KeysImpl(this);
6145
5991
  this.vaults = new VaultsImpl(this);
6146
5992
  this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
@@ -6154,5 +6000,4 @@ class KeyVaultManagementClient extends KeyVaultManagementClientContext {
6154
6000
  }
6155
6001
 
6156
6002
  exports.KeyVaultManagementClient = KeyVaultManagementClient;
6157
- exports.KeyVaultManagementClientContext = KeyVaultManagementClientContext;
6158
6003
  //# sourceMappingURL=index.js.map