@azure/arm-keyvault 3.0.1-alpha.20231016.1 → 3.1.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 (73) hide show
  1. package/CHANGELOG.md +11 -10
  2. package/dist/index.js +175 -90
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/keysCreateIfNotExistSample.js +1 -1
  7. package/dist-esm/samples-dev/keysGetSample.js +1 -1
  8. package/dist-esm/samples-dev/keysGetVersionSample.js +1 -1
  9. package/dist-esm/samples-dev/keysListSample.js +1 -1
  10. package/dist-esm/samples-dev/keysListVersionsSample.js +1 -1
  11. package/dist-esm/samples-dev/managedHsmKeysCreateIfNotExistSample.js +1 -1
  12. package/dist-esm/samples-dev/managedHsmKeysGetSample.js +1 -1
  13. package/dist-esm/samples-dev/managedHsmKeysGetVersionSample.js +1 -1
  14. package/dist-esm/samples-dev/managedHsmKeysListSample.js +1 -1
  15. package/dist-esm/samples-dev/managedHsmKeysListVersionsSample.js +1 -1
  16. package/dist-esm/samples-dev/managedHsmsCheckMhsmNameAvailabilitySample.js +1 -1
  17. package/dist-esm/samples-dev/managedHsmsCreateOrUpdateSample.js +1 -1
  18. package/dist-esm/samples-dev/managedHsmsDeleteSample.js +1 -1
  19. package/dist-esm/samples-dev/managedHsmsGetDeletedSample.js +1 -1
  20. package/dist-esm/samples-dev/managedHsmsGetSample.js +1 -1
  21. package/dist-esm/samples-dev/managedHsmsListByResourceGroupSample.js +1 -1
  22. package/dist-esm/samples-dev/managedHsmsListBySubscriptionSample.js +1 -1
  23. package/dist-esm/samples-dev/managedHsmsListDeletedSample.js +1 -1
  24. package/dist-esm/samples-dev/managedHsmsPurgeDeletedSample.js +1 -1
  25. package/dist-esm/samples-dev/managedHsmsUpdateSample.js +1 -1
  26. package/dist-esm/samples-dev/mhsmPrivateEndpointConnectionsDeleteSample.js +1 -1
  27. package/dist-esm/samples-dev/mhsmPrivateEndpointConnectionsGetSample.js +1 -1
  28. package/dist-esm/samples-dev/mhsmPrivateEndpointConnectionsListByResourceSample.js +1 -1
  29. package/dist-esm/samples-dev/mhsmPrivateEndpointConnectionsPutSample.js +1 -1
  30. package/dist-esm/samples-dev/mhsmPrivateLinkResourcesListByMhsmResourceSample.js +1 -1
  31. package/dist-esm/samples-dev/mhsmRegionsListByResourceSample.js +1 -1
  32. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  33. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +1 -1
  34. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +1 -1
  35. package/dist-esm/samples-dev/privateEndpointConnectionsListByResourceSample.js +1 -1
  36. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +1 -1
  37. package/dist-esm/samples-dev/privateLinkResourcesListByVaultSample.js +1 -1
  38. package/dist-esm/samples-dev/secretsCreateOrUpdateSample.js +1 -1
  39. package/dist-esm/samples-dev/secretsGetSample.js +1 -1
  40. package/dist-esm/samples-dev/secretsListSample.js +1 -1
  41. package/dist-esm/samples-dev/secretsUpdateSample.js +1 -1
  42. package/dist-esm/samples-dev/vaultsCheckNameAvailabilitySample.js +1 -1
  43. package/dist-esm/samples-dev/vaultsCreateOrUpdateSample.js +2 -2
  44. package/dist-esm/samples-dev/vaultsDeleteSample.js +1 -1
  45. package/dist-esm/samples-dev/vaultsGetDeletedSample.js +1 -1
  46. package/dist-esm/samples-dev/vaultsGetSample.js +1 -1
  47. package/dist-esm/samples-dev/vaultsListByResourceGroupSample.js +1 -1
  48. package/dist-esm/samples-dev/vaultsListBySubscriptionSample.js +1 -1
  49. package/dist-esm/samples-dev/vaultsListDeletedSample.js +1 -1
  50. package/dist-esm/samples-dev/vaultsListSample.js +1 -1
  51. package/dist-esm/samples-dev/vaultsPurgeDeletedSample.js +1 -1
  52. package/dist-esm/samples-dev/vaultsUpdateAccessPolicySample.js +1 -1
  53. package/dist-esm/samples-dev/vaultsUpdateSample.js +1 -1
  54. package/dist-esm/src/keyVaultManagementClient.js +2 -2
  55. package/dist-esm/src/models/index.d.ts +61 -5
  56. package/dist-esm/src/models/index.d.ts.map +1 -1
  57. package/dist-esm/src/models/index.js +12 -0
  58. package/dist-esm/src/models/index.js.map +1 -1
  59. package/dist-esm/src/models/mappers.d.ts +2 -0
  60. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  61. package/dist-esm/src/models/mappers.js +69 -1
  62. package/dist-esm/src/models/mappers.js.map +1 -1
  63. package/dist-esm/src/models/parameters.js +1 -1
  64. package/dist-esm/test/keyvault_examples.js +2 -2
  65. package/dist-esm/test/keyvault_examples.js.map +1 -1
  66. package/package.json +18 -9
  67. package/review/arm-keyvault.api.md +29 -1
  68. package/rollup.config.js +122 -0
  69. package/src/keyVaultManagementClient.ts +2 -2
  70. package/src/models/index.ts +65 -5
  71. package/src/models/mappers.ts +71 -1
  72. package/src/models/parameters.ts +1 -1
  73. package/types/arm-keyvault.d.ts +65 -5
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Lists the keys in the specified managed HSM.
17
17
  *
18
18
  * @summary Lists the keys in the specified managed HSM.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/managedHsmListKeys.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/managedHsmListKeys.json
20
20
  */
21
21
  function listKeysInTheManagedHsm() {
22
22
  var _a, e_1, _b, _c;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Lists the versions of the specified key in the specified managed HSM.
17
17
  *
18
18
  * @summary Lists the versions of the specified key in the specified managed HSM.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/managedHsmListKeyVersions.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/managedHsmListKeyVersions.json
20
20
  */
21
21
  function listKeyVersionsInTheManagedHsm() {
22
22
  var _a, e_1, _b, _c;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Checks that the managed hsm name is valid and is not already in use.
17
17
  *
18
18
  * @summary Checks that the managed hsm name is valid and is not already in use.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/ManagedHsm_checkMhsmNameAvailability.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/ManagedHsm_checkMhsmNameAvailability.json
20
20
  */
21
21
  function validateAManagedHsmName() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Create or update a managed HSM Pool in the specified subscription.
17
17
  *
18
18
  * @summary Create or update a managed HSM Pool in the specified subscription.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/ManagedHsm_CreateOrUpdate.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/ManagedHsm_CreateOrUpdate.json
20
20
  */
21
21
  function createANewManagedHsmPoolOrUpdateAnExistingManagedHsmPool() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Deletes the specified managed HSM Pool.
17
17
  *
18
18
  * @summary Deletes the specified managed HSM Pool.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/ManagedHsm_Delete.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/ManagedHsm_Delete.json
20
20
  */
21
21
  function deleteAManagedHsmPool() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets the specified deleted managed HSM.
17
17
  *
18
18
  * @summary Gets the specified deleted managed HSM.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/DeletedManagedHsm_Get.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/DeletedManagedHsm_Get.json
20
20
  */
21
21
  function retrieveADeletedManagedHsm() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets the specified managed HSM Pool.
17
17
  *
18
18
  * @summary Gets the specified managed HSM Pool.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/ManagedHsm_Get.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/ManagedHsm_Get.json
20
20
  */
21
21
  function retrieveAManagedHsmPool() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to The List operation gets information about the managed HSM Pools associated with the subscription and within the specified resource group.
17
17
  *
18
18
  * @summary The List operation gets information about the managed HSM Pools associated with the subscription and within the specified resource group.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/ManagedHsm_ListByResourceGroup.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/ManagedHsm_ListByResourceGroup.json
20
20
  */
21
21
  function listManagedHsmPoolsInAResourceGroup() {
22
22
  var _a, e_1, _b, _c;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to The List operation gets information about the managed HSM Pools associated with the subscription.
17
17
  *
18
18
  * @summary The List operation gets information about the managed HSM Pools associated with the subscription.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/ManagedHsm_ListBySubscription.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/ManagedHsm_ListBySubscription.json
20
20
  */
21
21
  function listManagedHsmPoolsInASubscription() {
22
22
  var _a, e_1, _b, _c;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to The List operation gets information about the deleted managed HSMs associated with the subscription.
17
17
  *
18
18
  * @summary The List operation gets information about the deleted managed HSMs associated with the subscription.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/DeletedManagedHsm_List.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/DeletedManagedHsm_List.json
20
20
  */
21
21
  function listDeletedManagedHsMSInTheSpecifiedSubscription() {
22
22
  var _a, e_1, _b, _c;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Permanently deletes the specified managed HSM.
17
17
  *
18
18
  * @summary Permanently deletes the specified managed HSM.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/DeletedManagedHsm_Purge.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/DeletedManagedHsm_Purge.json
20
20
  */
21
21
  function purgeAManagedHsmPool() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Update a managed HSM Pool in the specified subscription.
17
17
  *
18
18
  * @summary Update a managed HSM Pool in the specified subscription.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/ManagedHsm_Update.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/ManagedHsm_Update.json
20
20
  */
21
21
  function updateAnExistingManagedHsmPool() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Deletes the specified private endpoint connection associated with the managed hsm pool.
17
17
  *
18
18
  * @summary Deletes the specified private endpoint connection associated with the managed hsm pool.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/ManagedHsm_deletePrivateEndpointConnection.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/ManagedHsm_deletePrivateEndpointConnection.json
20
20
  */
21
21
  function managedHsmDeletePrivateEndpointConnection() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets the specified private endpoint connection associated with the managed HSM Pool.
17
17
  *
18
18
  * @summary Gets the specified private endpoint connection associated with the managed HSM Pool.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/ManagedHsm_getPrivateEndpointConnection.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/ManagedHsm_getPrivateEndpointConnection.json
20
20
  */
21
21
  function managedHsmGetPrivateEndpointConnection() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to The List operation gets information about the private endpoint connections associated with the managed HSM Pool.
17
17
  *
18
18
  * @summary The List operation gets information about the private endpoint connections associated with the managed HSM Pool.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/ManagedHsm_ListPrivateEndpointConnectionsByResource.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/ManagedHsm_ListPrivateEndpointConnectionsByResource.json
20
20
  */
21
21
  function listManagedHsmPoolsInASubscription() {
22
22
  var _a, e_1, _b, _c;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Updates the specified private endpoint connection associated with the managed hsm pool.
17
17
  *
18
18
  * @summary Updates the specified private endpoint connection associated with the managed hsm pool.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/ManagedHsm_putPrivateEndpointConnection.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/ManagedHsm_putPrivateEndpointConnection.json
20
20
  */
21
21
  function managedHsmPutPrivateEndpointConnection() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets the private link resources supported for the managed hsm pool.
17
17
  *
18
18
  * @summary Gets the private link resources supported for the managed hsm pool.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/ManagedHsm_listPrivateLinkResources.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/ManagedHsm_listPrivateLinkResources.json
20
20
  */
21
21
  function keyVaultListPrivateLinkResources() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to The List operation gets information about the regions associated with the managed HSM Pool.
17
17
  *
18
18
  * @summary The List operation gets information about the regions associated with the managed HSM Pool.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/ManagedHsm_ListRegionsByResource.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/ManagedHsm_ListRegionsByResource.json
20
20
  */
21
21
  function listManagedHsmPoolsInASubscription() {
22
22
  var _a, e_1, _b, _c;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Lists all of the available Key Vault Rest API operations.
17
17
  *
18
18
  * @summary Lists all of the available Key Vault Rest API operations.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/listOperations.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/listOperations.json
20
20
  */
21
21
  function listsAvailableRestApiOperations() {
22
22
  var _a, e_1, _b, _c;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Deletes the specified private endpoint connection associated with the key vault.
17
17
  *
18
18
  * @summary Deletes the specified private endpoint connection associated with the key vault.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/deletePrivateEndpointConnection.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/deletePrivateEndpointConnection.json
20
20
  */
21
21
  function keyVaultDeletePrivateEndpointConnection() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets the specified private endpoint connection associated with the key vault.
17
17
  *
18
18
  * @summary Gets the specified private endpoint connection associated with the key vault.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/getPrivateEndpointConnection.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/getPrivateEndpointConnection.json
20
20
  */
21
21
  function keyVaultGetPrivateEndpointConnection() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to The List operation gets information about the private endpoint connections associated with the vault.
17
17
  *
18
18
  * @summary The List operation gets information about the private endpoint connections associated with the vault.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/listPrivateEndpointConnection.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/listPrivateEndpointConnection.json
20
20
  */
21
21
  function keyVaultListPrivateEndpointConnection() {
22
22
  var _a, e_1, _b, _c;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Updates the specified private endpoint connection associated with the key vault.
17
17
  *
18
18
  * @summary Updates the specified private endpoint connection associated with the key vault.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/putPrivateEndpointConnection.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/putPrivateEndpointConnection.json
20
20
  */
21
21
  function keyVaultPutPrivateEndpointConnection() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets the private link resources supported for the key vault.
17
17
  *
18
18
  * @summary Gets the private link resources supported for the key vault.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/listPrivateLinkResources.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/listPrivateLinkResources.json
20
20
  */
21
21
  function keyVaultListPrivateLinkResources() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Create or update a secret in a key vault in the specified subscription. NOTE: This API is intended for internal use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets.
17
17
  *
18
18
  * @summary Create or update a secret in a key vault in the specified subscription. NOTE: This API is intended for internal use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/createSecret.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/createSecret.json
20
20
  */
21
21
  function createASecret() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets the specified secret. NOTE: This API is intended for internal use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets.
17
17
  *
18
18
  * @summary Gets the specified secret. NOTE: This API is intended for internal use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/getSecret.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/getSecret.json
20
20
  */
21
21
  function getASecret() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to The List operation gets information about the secrets in a vault. NOTE: This API is intended for internal use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets.
17
17
  *
18
18
  * @summary The List operation gets information about the secrets in a vault. NOTE: This API is intended for internal use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/listSecrets.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/listSecrets.json
20
20
  */
21
21
  function listSecretsInTheVault() {
22
22
  var _a, e_1, _b, _c;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Update a secret in the specified subscription. NOTE: This API is intended for internal use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets.
17
17
  *
18
18
  * @summary Update a secret in the specified subscription. NOTE: This API is intended for internal use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/updateSecret.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/updateSecret.json
20
20
  */
21
21
  function updateASecret() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Checks that the vault name is valid and is not already in use.
17
17
  *
18
18
  * @summary Checks that the vault name is valid and is not already in use.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/checkVaultNameAvailability.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/checkVaultNameAvailability.json
20
20
  */
21
21
  function validateAVaultName() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Create or update a key vault in the specified subscription.
17
17
  *
18
18
  * @summary Create or update a key vault in the specified subscription.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/createVault.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/createVault.json
20
20
  */
21
21
  function createANewVaultOrUpdateAnExistingVault() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -97,7 +97,7 @@ function createANewVaultOrUpdateAnExistingVault() {
97
97
  * This sample demonstrates how to Create or update a key vault in the specified subscription.
98
98
  *
99
99
  * @summary Create or update a key vault in the specified subscription.
100
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/createVaultWithNetworkAcls.json
100
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/createVaultWithNetworkAcls.json
101
101
  */
102
102
  function createOrUpdateAVaultWithNetworkAcls() {
103
103
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Deletes the specified Azure key vault.
17
17
  *
18
18
  * @summary Deletes the specified Azure key vault.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/deleteVault.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/deleteVault.json
20
20
  */
21
21
  function deleteAVault() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets the deleted Azure key vault.
17
17
  *
18
18
  * @summary Gets the deleted Azure key vault.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/getDeletedVault.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/getDeletedVault.json
20
20
  */
21
21
  function retrieveADeletedVault() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets the specified Azure key vault.
17
17
  *
18
18
  * @summary Gets the specified Azure key vault.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/getVault.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/getVault.json
20
20
  */
21
21
  function retrieveAVault() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to The List operation gets information about the vaults associated with the subscription and within the specified resource group.
17
17
  *
18
18
  * @summary The List operation gets information about the vaults associated with the subscription and within the specified resource group.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/listVaultByResourceGroup.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/listVaultByResourceGroup.json
20
20
  */
21
21
  function listVaultsInTheSpecifiedResourceGroup() {
22
22
  var _a, e_1, _b, _c;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to The List operation gets information about the vaults associated with the subscription.
17
17
  *
18
18
  * @summary The List operation gets information about the vaults associated with the subscription.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/listVaultBySubscription.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/listVaultBySubscription.json
20
20
  */
21
21
  function listVaultsInTheSpecifiedSubscription() {
22
22
  var _a, e_1, _b, _c;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets information about the deleted vaults in a subscription.
17
17
  *
18
18
  * @summary Gets information about the deleted vaults in a subscription.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/listDeletedVaults.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/listDeletedVaults.json
20
20
  */
21
21
  function listDeletedVaultsInTheSpecifiedSubscription() {
22
22
  var _a, e_1, _b, _c;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to The List operation gets information about the vaults associated with the subscription.
17
17
  *
18
18
  * @summary The List operation gets information about the vaults associated with the subscription.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/listVault.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/listVault.json
20
20
  */
21
21
  function listVaultsInTheSpecifiedSubscription() {
22
22
  var _a, e_1, _b, _c;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Permanently deletes the specified vault. aka Purges the deleted Azure key vault.
17
17
  *
18
18
  * @summary Permanently deletes the specified vault. aka Purges the deleted Azure key vault.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/purgeDeletedVault.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/purgeDeletedVault.json
20
20
  */
21
21
  function purgeADeletedVault() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Update access policies in a key vault in the specified subscription.
17
17
  *
18
18
  * @summary Update access policies in a key vault in the specified subscription.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/updateAccessPoliciesAdd.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/updateAccessPoliciesAdd.json
20
20
  */
21
21
  function addAnAccessPolicyOrUpdateAnAccessPolicyWithNewPermissions() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Update a key vault in the specified subscription.
17
17
  *
18
18
  * @summary Update a key vault in the specified subscription.
19
- * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-02-01/examples/updateVault.json
19
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/stable/2023-07-01/examples/updateVault.json
20
20
  */
21
21
  function updateAnExistingVault() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -33,7 +33,7 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient {
33
33
  requestContentType: "application/json; charset=utf-8",
34
34
  credential: credentials
35
35
  };
36
- const packageDetails = `azsdk-js-arm-keyvault/3.0.1`;
36
+ const packageDetails = `azsdk-js-arm-keyvault/3.1.0`;
37
37
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
38
38
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
39
39
  : `${packageDetails}`;
@@ -66,7 +66,7 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient {
66
66
  this.subscriptionId = subscriptionId;
67
67
  // Assigning values to Constant parameters
68
68
  this.$host = options.$host || "https://management.azure.com";
69
- this.apiVersion = options.apiVersion || "2023-02-01";
69
+ this.apiVersion = options.apiVersion || "2023-07-01";
70
70
  this.keys = new KeysImpl(this);
71
71
  this.managedHsmKeys = new ManagedHsmKeysImpl(this);
72
72
  this.vaults = new VaultsImpl(this);
@@ -657,11 +657,11 @@ export interface ManagedHsmProperties {
657
657
  * NOTE: This property will not be serialized. It can only be populated by the server.
658
658
  */
659
659
  readonly hsmUri?: string;
660
- /** Property to specify whether the 'soft delete' functionality is enabled for this managed HSM pool. If it's not set to any value(true or false) when creating new managed HSM pool, it will be set to true by default. Once set to true, it cannot be reverted to false. */
660
+ /** Property to specify whether the 'soft delete' functionality is enabled for this managed HSM pool. Soft delete is enabled by default for all managed HSMs and is immutable. */
661
661
  enableSoftDelete?: boolean;
662
- /** softDelete data retention days. It accepts >=7 and <=90. */
662
+ /** Soft deleted data retention days. When you delete an HSM or a key, it will remain recoverable for the configured retention period or for a default period of 90 days. It accepts values between 7 and 90. */
663
663
  softDeleteRetentionInDays?: number;
664
- /** Property specifying whether protection against purge is enabled for this managed HSM pool. Setting this property to true activates protection against purge for this managed HSM pool and its content - only the Managed HSM service may initiate a hard, irrecoverable deletion. The setting is effective only if soft delete is also enabled. Enabling this functionality is irreversible. */
664
+ /** Property specifying whether protection against purge is enabled for this managed HSM pool. Setting this property to true activates protection against purge for this managed HSM pool and its content - only the Managed HSM service may initiate a hard, irrecoverable deletion. Enabling this functionality is irreversible. */
665
665
  enablePurgeProtection?: boolean;
666
666
  /** The create mode to indicate whether the resource is being created or is being recovered from a deleted resource. */
667
667
  createMode?: CreateMode;
@@ -684,7 +684,7 @@ export interface ManagedHsmProperties {
684
684
  * NOTE: This property will not be serialized. It can only be populated by the server.
685
685
  */
686
686
  readonly privateEndpointConnections?: MhsmPrivateEndpointConnectionItem[];
687
- /** Control permission for data plane traffic coming from public networks while private endpoint is enabled. */
687
+ /** Control permission to the managed HSM from public networks. */
688
688
  publicNetworkAccess?: PublicNetworkAccess;
689
689
  /**
690
690
  * The scheduled purge date in UTC.
@@ -803,6 +803,8 @@ export interface ManagedHsmResource {
803
803
  * NOTE: This property will not be serialized. It can only be populated by the server.
804
804
  */
805
805
  readonly systemData?: SystemData;
806
+ /** Managed service identity (system assigned and/or user assigned identities) */
807
+ identity?: ManagedServiceIdentity;
806
808
  }
807
809
  /** SKU details */
808
810
  export interface ManagedHsmSku {
@@ -811,6 +813,38 @@ export interface ManagedHsmSku {
811
813
  /** SKU of the managed HSM Pool */
812
814
  name: ManagedHsmSkuName;
813
815
  }
816
+ /** Managed service identity (system assigned and/or user assigned identities) */
817
+ export interface ManagedServiceIdentity {
818
+ /**
819
+ * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
820
+ * NOTE: This property will not be serialized. It can only be populated by the server.
821
+ */
822
+ readonly principalId?: string;
823
+ /**
824
+ * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
825
+ * NOTE: This property will not be serialized. It can only be populated by the server.
826
+ */
827
+ readonly tenantId?: string;
828
+ /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */
829
+ type: ManagedServiceIdentityType;
830
+ /** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */
831
+ userAssignedIdentities?: {
832
+ [propertyName: string]: UserAssignedIdentity | null;
833
+ };
834
+ }
835
+ /** User assigned identity properties */
836
+ export interface UserAssignedIdentity {
837
+ /**
838
+ * The principal ID of the assigned identity.
839
+ * NOTE: This property will not be serialized. It can only be populated by the server.
840
+ */
841
+ readonly principalId?: string;
842
+ /**
843
+ * The client ID of the assigned identity.
844
+ * NOTE: This property will not be serialized. It can only be populated by the server.
845
+ */
846
+ readonly clientId?: string;
847
+ }
814
848
  /** The error exception. */
815
849
  export interface ManagedHsmError {
816
850
  /**
@@ -1848,6 +1882,28 @@ export declare enum KnownManagedHsmSkuFamily {
1848
1882
  * **B**
1849
1883
  */
1850
1884
  export type ManagedHsmSkuFamily = string;
1885
+ /** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
1886
+ export declare enum KnownManagedServiceIdentityType {
1887
+ /** None */
1888
+ None = "None",
1889
+ /** SystemAssigned */
1890
+ SystemAssigned = "SystemAssigned",
1891
+ /** UserAssigned */
1892
+ UserAssigned = "UserAssigned",
1893
+ /** SystemAssignedUserAssigned */
1894
+ SystemAssignedUserAssigned = "SystemAssigned,UserAssigned"
1895
+ }
1896
+ /**
1897
+ * Defines values for ManagedServiceIdentityType. \
1898
+ * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType,
1899
+ * this enum contains the known values that the service supports.
1900
+ * ### Known values supported by the service
1901
+ * **None** \
1902
+ * **SystemAssigned** \
1903
+ * **UserAssigned** \
1904
+ * **SystemAssigned,UserAssigned**
1905
+ */
1906
+ export type ManagedServiceIdentityType = string;
1851
1907
  /** Defines values for KeyRotationPolicyActionType. */
1852
1908
  export type KeyRotationPolicyActionType = "rotate" | "notify";
1853
1909
  /** Defines values for SkuName. */
@@ -1859,7 +1915,7 @@ export type AccessPolicyUpdateKind = "add" | "replace" | "remove";
1859
1915
  /** Defines values for Reason. */
1860
1916
  export type Reason = "AccountNameInvalid" | "AlreadyExists";
1861
1917
  /** Defines values for ManagedHsmSkuName. */
1862
- export type ManagedHsmSkuName = "Standard_B1" | "Custom_B32";
1918
+ export type ManagedHsmSkuName = "Standard_B1" | "Custom_B32" | "Custom_B6";
1863
1919
  /** Optional parameters. */
1864
1920
  export interface KeysCreateIfNotExistOptionalParams extends coreClient.OperationOptions {
1865
1921
  }