@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
@@ -1 +1 @@
1
- {"version":3,"file":"keyvault_examples.js","sourceRoot":"","sources":["../../test/keyvault_examples.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,QAAQ,EAGR,cAAc,GACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAE3E,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG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AAS;oCACT,SAAS;oCACT,OAAO;iCACR;gCACD,OAAO,EAAE;oCACP,KAAK;oCACL,MAAM;oCACN,KAAK;oCACL,QAAQ;oCACR,QAAQ;oCACR,SAAS;oCACT,SAAS;oCACT,OAAO;iCACR;gCACD,YAAY,EAAE;oCACZ,KAAK;oCACL,MAAM;oCACN,QAAQ;oCACR,QAAQ;oCACR,QAAQ;oCACR,QAAQ;oCACR,gBAAgB;oCAChB,YAAY;oCACZ,aAAa;oCACb,YAAY;oCACZ,eAAe;oCACf,eAAe;oCACf,SAAS;oCACT,OAAO;iCACR;6BACF;yBACF;qBACF;oBACD,oBAAoB,EAAE,IAAI;oBAC1B,wBAAwB,EAAE,IAAI;oBAC9B,4BAA4B,EAAE,IAAI;iBACnC;aACF,CAAC,CAAA;YACF,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,2BAA2B,CAAC,CAAC;QACtD,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,oBAAoB,EAAE;;;YACvB,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;YACjE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;gBAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAA,IAAA;oBAAhD,cAAgD;oBAAhD,WAAgD;;wBAA5D,IAAI,IAAI,KAAA,CAAA;wBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;;;;;iBACpB;;;;;;;;;YACD,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -3,17 +3,17 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for KeyVaultManagementClient.",
6
- "version": "3.0.1-alpha.20231016.1",
6
+ "version": "3.1.0",
7
7
  "engines": {
8
8
  "node": ">=16.0.0"
9
9
  },
10
10
  "dependencies": {
11
- "@azure/core-lro": "^2.5.0",
11
+ "@azure/core-lro": "^2.5.4",
12
12
  "@azure/abort-controller": "^1.0.0",
13
13
  "@azure/core-paging": "^1.2.0",
14
14
  "@azure/core-client": "^1.7.0",
15
15
  "@azure/core-auth": "^1.3.0",
16
- "@azure/core-rest-pipeline": "^1.8.0",
16
+ "@azure/core-rest-pipeline": "^1.12.0",
17
17
  "tslib": "^2.2.0"
18
18
  },
19
19
  "keywords": [
@@ -29,21 +29,29 @@
29
29
  "types": "./types/arm-keyvault.d.ts",
30
30
  "devDependencies": {
31
31
  "@microsoft/api-extractor": "^7.31.1",
32
+ "@rollup/plugin-commonjs": "^24.0.0",
33
+ "@rollup/plugin-json": "^6.0.0",
34
+ "@rollup/plugin-multi-entry": "^6.0.0",
35
+ "@rollup/plugin-node-resolve": "^13.1.3",
32
36
  "mkdirp": "^2.1.2",
37
+ "rollup": "^2.66.1",
38
+ "rollup-plugin-sourcemaps": "^0.6.3",
33
39
  "typescript": "~5.0.0",
34
40
  "uglify-js": "^3.4.9",
35
- "rimraf": "^3.0.0",
41
+ "rimraf": "^5.0.0",
36
42
  "dotenv": "^16.0.0",
37
43
  "@azure/identity": "^3.3.0",
38
44
  "@azure-tools/test-recorder": "^3.0.0",
39
45
  "@azure-tools/test-credential": "^1.0.0",
40
46
  "mocha": "^10.0.0",
47
+ "@types/mocha": "^10.0.0",
48
+ "esm": "^3.2.18",
41
49
  "@types/chai": "^4.2.8",
42
50
  "chai": "^4.2.0",
43
51
  "cross-env": "^7.0.2",
44
52
  "@types/node": "^16.0.0",
45
- "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
46
- "ts-node": "^10.0.0"
53
+ "ts-node": "^10.0.0",
54
+ "@azure/dev-tool": "^1.0.0"
47
55
  },
48
56
  "repository": {
49
57
  "type": "git",
@@ -64,20 +72,21 @@
64
72
  "src/**/*.ts",
65
73
  "README.md",
66
74
  "LICENSE",
75
+ "rollup.config.js",
67
76
  "tsconfig.json",
68
77
  "review/*",
69
78
  "CHANGELOG.md",
70
79
  "types/*"
71
80
  ],
72
81
  "scripts": {
73
- "build": "npm run clean && tsc && dev-tool run bundle && npm run minify && mkdirp ./review && npm run extract-api",
82
+ "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
74
83
  "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
75
84
  "prepack": "npm run build",
76
85
  "pack": "npm pack 2>&1",
77
86
  "extract-api": "api-extractor run --local",
78
87
  "lint": "echo skipped",
79
88
  "audit": "echo skipped",
80
- "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
89
+ "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
81
90
  "build:node": "echo skipped",
82
91
  "build:browser": "echo skipped",
83
92
  "build:test": "echo skipped",
@@ -114,4 +123,4 @@
114
123
  "disableDocsMs": true,
115
124
  "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-keyvault?view=azure-node-preview"
116
125
  }
117
- }
126
+ }
@@ -458,6 +458,14 @@ export enum KnownManagedHsmSkuFamily {
458
458
  B = "B"
459
459
  }
460
460
 
461
+ // @public
462
+ export enum KnownManagedServiceIdentityType {
463
+ None = "None",
464
+ SystemAssigned = "SystemAssigned",
465
+ SystemAssignedUserAssigned = "SystemAssigned,UserAssigned",
466
+ UserAssigned = "UserAssigned"
467
+ }
468
+
461
469
  // @public
462
470
  export enum KnownNetworkRuleAction {
463
471
  Allow = "Allow",
@@ -736,6 +744,7 @@ export interface ManagedHsmProperties {
736
744
  // @public
737
745
  export interface ManagedHsmResource {
738
746
  readonly id?: string;
747
+ identity?: ManagedServiceIdentity;
739
748
  location?: string;
740
749
  readonly name?: string;
741
750
  sku?: ManagedHsmSku;
@@ -832,7 +841,7 @@ export interface ManagedHsmSku {
832
841
  export type ManagedHsmSkuFamily = string;
833
842
 
834
843
  // @public
835
- export type ManagedHsmSkuName = "Standard_B1" | "Custom_B32";
844
+ export type ManagedHsmSkuName = "Standard_B1" | "Custom_B32" | "Custom_B6";
836
845
 
837
846
  // @public
838
847
  export interface ManagedHsmsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
@@ -912,6 +921,19 @@ export interface ManagedHsmTrigger {
912
921
  timeBeforeExpiry?: string;
913
922
  }
914
923
 
924
+ // @public
925
+ export interface ManagedServiceIdentity {
926
+ readonly principalId?: string;
927
+ readonly tenantId?: string;
928
+ type: ManagedServiceIdentityType;
929
+ userAssignedIdentities?: {
930
+ [propertyName: string]: UserAssignedIdentity | null;
931
+ };
932
+ }
933
+
934
+ // @public
935
+ export type ManagedServiceIdentityType = string;
936
+
915
937
  // @public
916
938
  export interface MetricSpecification {
917
939
  aggregationType?: string;
@@ -1454,6 +1476,12 @@ export interface Trigger {
1454
1476
  timeBeforeExpiry?: string;
1455
1477
  }
1456
1478
 
1479
+ // @public
1480
+ export interface UserAssignedIdentity {
1481
+ readonly clientId?: string;
1482
+ readonly principalId?: string;
1483
+ }
1484
+
1457
1485
  // @public
1458
1486
  export interface Vault {
1459
1487
  readonly id?: string;
@@ -0,0 +1,122 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import nodeResolve from "@rollup/plugin-node-resolve";
10
+ import cjs from "@rollup/plugin-commonjs";
11
+ import sourcemaps from "rollup-plugin-sourcemaps";
12
+ import multiEntry from "@rollup/plugin-multi-entry";
13
+ import json from "@rollup/plugin-json";
14
+
15
+ import nodeBuiltins from "builtin-modules";
16
+
17
+ // #region Warning Handler
18
+
19
+ /**
20
+ * A function that can determine whether a rollup warning should be ignored. If
21
+ * the function returns `true`, then the warning will not be displayed.
22
+ */
23
+
24
+ function ignoreNiseSinonEval(warning) {
25
+ return (
26
+ warning.code === "EVAL" &&
27
+ warning.id &&
28
+ (warning.id.includes("node_modules/nise") ||
29
+ warning.id.includes("node_modules/sinon")) === true
30
+ );
31
+ }
32
+
33
+ function ignoreChaiCircularDependency(warning) {
34
+ return (
35
+ warning.code === "CIRCULAR_DEPENDENCY" &&
36
+ warning.importer && warning.importer.includes("node_modules/chai") === true
37
+ );
38
+ }
39
+
40
+ const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
41
+
42
+ /**
43
+ * Construct a warning handler for the shared rollup configuration
44
+ * that ignores certain warnings that are not relevant to testing.
45
+ */
46
+ function makeOnWarnForTesting() {
47
+ return (warning, warn) => {
48
+ // If every inhibitor returns false (i.e. no inhibitors), then show the warning
49
+ if (warningInhibitors.every((inhib) => !inhib(warning))) {
50
+ warn(warning);
51
+ }
52
+ };
53
+ }
54
+
55
+ // #endregion
56
+
57
+ function makeBrowserTestConfig() {
58
+ const config = {
59
+ input: {
60
+ include: ["dist-esm/test/**/*.spec.js"],
61
+ exclude: ["dist-esm/test/**/node/**"]
62
+ },
63
+ output: {
64
+ file: `dist-test/index.browser.js`,
65
+ format: "umd",
66
+ sourcemap: true
67
+ },
68
+ preserveSymlinks: false,
69
+ plugins: [
70
+ multiEntry({ exports: false }),
71
+ nodeResolve({
72
+ mainFields: ["module", "browser"]
73
+ }),
74
+ cjs(),
75
+ json(),
76
+ sourcemaps()
77
+ //viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
78
+ ],
79
+ onwarn: makeOnWarnForTesting(),
80
+ // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
81
+ // rollup started respecting the "sideEffects" field in package.json. Since
82
+ // our package.json sets "sideEffects=false", this also applies to test
83
+ // code, which causes all tests to be removed by tree-shaking.
84
+ treeshake: false
85
+ };
86
+
87
+ return config;
88
+ }
89
+
90
+ const defaultConfigurationOptions = {
91
+ disableBrowserBundle: false
92
+ };
93
+
94
+ export function makeConfig(pkg, options) {
95
+ options = {
96
+ ...defaultConfigurationOptions,
97
+ ...(options || {})
98
+ };
99
+
100
+ const baseConfig = {
101
+ // Use the package's module field if it has one
102
+ input: pkg["module"] || "dist-esm/src/index.js",
103
+ external: [
104
+ ...nodeBuiltins,
105
+ ...Object.keys(pkg.dependencies),
106
+ ...Object.keys(pkg.devDependencies)
107
+ ],
108
+ output: { file: "dist/index.js", format: "cjs", sourcemap: true },
109
+ preserveSymlinks: false,
110
+ plugins: [sourcemaps(), nodeResolve()]
111
+ };
112
+
113
+ const config = [baseConfig];
114
+
115
+ if (!options.disableBrowserBundle) {
116
+ config.push(makeBrowserTestConfig());
117
+ }
118
+
119
+ return config;
120
+ }
121
+
122
+ export default makeConfig(require("./package.json"));
@@ -75,7 +75,7 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient {
75
75
  credential: credentials
76
76
  };
77
77
 
78
- const packageDetails = `azsdk-js-arm-keyvault/3.0.1`;
78
+ const packageDetails = `azsdk-js-arm-keyvault/3.1.0`;
79
79
  const userAgentPrefix =
80
80
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
81
81
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -128,7 +128,7 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient {
128
128
 
129
129
  // Assigning values to Constant parameters
130
130
  this.$host = options.$host || "https://management.azure.com";
131
- this.apiVersion = options.apiVersion || "2023-02-01";
131
+ this.apiVersion = options.apiVersion || "2023-07-01";
132
132
  this.keys = new KeysImpl(this);
133
133
  this.managedHsmKeys = new ManagedHsmKeysImpl(this);
134
134
  this.vaults = new VaultsImpl(this);
@@ -700,11 +700,11 @@ export interface ManagedHsmProperties {
700
700
  * NOTE: This property will not be serialized. It can only be populated by the server.
701
701
  */
702
702
  readonly hsmUri?: string;
703
- /** 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. */
703
+ /** 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. */
704
704
  enableSoftDelete?: boolean;
705
- /** softDelete data retention days. It accepts >=7 and <=90. */
705
+ /** 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. */
706
706
  softDeleteRetentionInDays?: number;
707
- /** 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. */
707
+ /** 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. */
708
708
  enablePurgeProtection?: boolean;
709
709
  /** The create mode to indicate whether the resource is being created or is being recovered from a deleted resource. */
710
710
  createMode?: CreateMode;
@@ -727,7 +727,7 @@ export interface ManagedHsmProperties {
727
727
  * NOTE: This property will not be serialized. It can only be populated by the server.
728
728
  */
729
729
  readonly privateEndpointConnections?: MhsmPrivateEndpointConnectionItem[];
730
- /** Control permission for data plane traffic coming from public networks while private endpoint is enabled. */
730
+ /** Control permission to the managed HSM from public networks. */
731
731
  publicNetworkAccess?: PublicNetworkAccess;
732
732
  /**
733
733
  * The scheduled purge date in UTC.
@@ -853,6 +853,8 @@ export interface ManagedHsmResource {
853
853
  * NOTE: This property will not be serialized. It can only be populated by the server.
854
854
  */
855
855
  readonly systemData?: SystemData;
856
+ /** Managed service identity (system assigned and/or user assigned identities) */
857
+ identity?: ManagedServiceIdentity;
856
858
  }
857
859
 
858
860
  /** SKU details */
@@ -863,6 +865,40 @@ export interface ManagedHsmSku {
863
865
  name: ManagedHsmSkuName;
864
866
  }
865
867
 
868
+ /** Managed service identity (system assigned and/or user assigned identities) */
869
+ export interface ManagedServiceIdentity {
870
+ /**
871
+ * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
872
+ * NOTE: This property will not be serialized. It can only be populated by the server.
873
+ */
874
+ readonly principalId?: string;
875
+ /**
876
+ * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
877
+ * NOTE: This property will not be serialized. It can only be populated by the server.
878
+ */
879
+ readonly tenantId?: string;
880
+ /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */
881
+ type: ManagedServiceIdentityType;
882
+ /** 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. */
883
+ userAssignedIdentities?: {
884
+ [propertyName: string]: UserAssignedIdentity | null;
885
+ };
886
+ }
887
+
888
+ /** User assigned identity properties */
889
+ export interface UserAssignedIdentity {
890
+ /**
891
+ * The principal ID of the assigned identity.
892
+ * NOTE: This property will not be serialized. It can only be populated by the server.
893
+ */
894
+ readonly principalId?: string;
895
+ /**
896
+ * The client ID of the assigned identity.
897
+ * NOTE: This property will not be serialized. It can only be populated by the server.
898
+ */
899
+ readonly clientId?: string;
900
+ }
901
+
866
902
  /** The error exception. */
867
903
  export interface ManagedHsmError {
868
904
  /**
@@ -1975,6 +2011,30 @@ export enum KnownManagedHsmSkuFamily {
1975
2011
  * **B**
1976
2012
  */
1977
2013
  export type ManagedHsmSkuFamily = string;
2014
+
2015
+ /** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
2016
+ export enum KnownManagedServiceIdentityType {
2017
+ /** None */
2018
+ None = "None",
2019
+ /** SystemAssigned */
2020
+ SystemAssigned = "SystemAssigned",
2021
+ /** UserAssigned */
2022
+ UserAssigned = "UserAssigned",
2023
+ /** SystemAssignedUserAssigned */
2024
+ SystemAssignedUserAssigned = "SystemAssigned,UserAssigned"
2025
+ }
2026
+
2027
+ /**
2028
+ * Defines values for ManagedServiceIdentityType. \
2029
+ * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType,
2030
+ * this enum contains the known values that the service supports.
2031
+ * ### Known values supported by the service
2032
+ * **None** \
2033
+ * **SystemAssigned** \
2034
+ * **UserAssigned** \
2035
+ * **SystemAssigned,UserAssigned**
2036
+ */
2037
+ export type ManagedServiceIdentityType = string;
1978
2038
  /** Defines values for KeyRotationPolicyActionType. */
1979
2039
  export type KeyRotationPolicyActionType = "rotate" | "notify";
1980
2040
  /** Defines values for SkuName. */
@@ -1986,7 +2046,7 @@ export type AccessPolicyUpdateKind = "add" | "replace" | "remove";
1986
2046
  /** Defines values for Reason. */
1987
2047
  export type Reason = "AccountNameInvalid" | "AlreadyExists";
1988
2048
  /** Defines values for ManagedHsmSkuName. */
1989
- export type ManagedHsmSkuName = "Standard_B1" | "Custom_B32";
2049
+ export type ManagedHsmSkuName = "Standard_B1" | "Custom_B32" | "Custom_B6";
1990
2050
 
1991
2051
  /** Optional parameters. */
1992
2052
  export interface KeysCreateIfNotExistOptionalParams
@@ -1867,6 +1867,7 @@ export const ManagedHsmProperties: coreClient.CompositeMapper = {
1867
1867
  }
1868
1868
  },
1869
1869
  publicNetworkAccess: {
1870
+ defaultValue: "Enabled",
1870
1871
  serializedName: "publicNetworkAccess",
1871
1872
  type: {
1872
1873
  name: "String"
@@ -2154,6 +2155,13 @@ export const ManagedHsmResource: coreClient.CompositeMapper = {
2154
2155
  name: "Composite",
2155
2156
  className: "SystemData"
2156
2157
  }
2158
+ },
2159
+ identity: {
2160
+ serializedName: "identity",
2161
+ type: {
2162
+ name: "Composite",
2163
+ className: "ManagedServiceIdentity"
2164
+ }
2157
2165
  }
2158
2166
  }
2159
2167
  }
@@ -2176,7 +2184,69 @@ export const ManagedHsmSku: coreClient.CompositeMapper = {
2176
2184
  required: true,
2177
2185
  type: {
2178
2186
  name: "Enum",
2179
- allowedValues: ["Standard_B1", "Custom_B32"]
2187
+ allowedValues: ["Standard_B1", "Custom_B32", "Custom_B6"]
2188
+ }
2189
+ }
2190
+ }
2191
+ }
2192
+ };
2193
+
2194
+ export const ManagedServiceIdentity: coreClient.CompositeMapper = {
2195
+ type: {
2196
+ name: "Composite",
2197
+ className: "ManagedServiceIdentity",
2198
+ modelProperties: {
2199
+ principalId: {
2200
+ serializedName: "principalId",
2201
+ readOnly: true,
2202
+ type: {
2203
+ name: "Uuid"
2204
+ }
2205
+ },
2206
+ tenantId: {
2207
+ serializedName: "tenantId",
2208
+ readOnly: true,
2209
+ type: {
2210
+ name: "Uuid"
2211
+ }
2212
+ },
2213
+ type: {
2214
+ serializedName: "type",
2215
+ required: true,
2216
+ type: {
2217
+ name: "String"
2218
+ }
2219
+ },
2220
+ userAssignedIdentities: {
2221
+ serializedName: "userAssignedIdentities",
2222
+ type: {
2223
+ name: "Dictionary",
2224
+ value: {
2225
+ type: { name: "Composite", className: "UserAssignedIdentity" }
2226
+ }
2227
+ }
2228
+ }
2229
+ }
2230
+ }
2231
+ };
2232
+
2233
+ export const UserAssignedIdentity: coreClient.CompositeMapper = {
2234
+ type: {
2235
+ name: "Composite",
2236
+ className: "UserAssignedIdentity",
2237
+ modelProperties: {
2238
+ principalId: {
2239
+ serializedName: "principalId",
2240
+ readOnly: true,
2241
+ type: {
2242
+ name: "Uuid"
2243
+ }
2244
+ },
2245
+ clientId: {
2246
+ serializedName: "clientId",
2247
+ readOnly: true,
2248
+ type: {
2249
+ name: "Uuid"
2180
2250
  }
2181
2251
  }
2182
2252
  }
@@ -120,7 +120,7 @@ export const keyName: OperationURLParameter = {
120
120
  export const apiVersion: OperationQueryParameter = {
121
121
  parameterPath: "apiVersion",
122
122
  mapper: {
123
- defaultValue: "2023-02-01",
123
+ defaultValue: "2023-07-01",
124
124
  isConstant: true,
125
125
  serializedName: "api-version",
126
126
  type: {
@@ -882,6 +882,18 @@ export declare enum KnownManagedHsmSkuFamily {
882
882
  B = "B"
883
883
  }
884
884
 
885
+ /** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
886
+ export declare enum KnownManagedServiceIdentityType {
887
+ /** None */
888
+ None = "None",
889
+ /** SystemAssigned */
890
+ SystemAssigned = "SystemAssigned",
891
+ /** UserAssigned */
892
+ UserAssigned = "UserAssigned",
893
+ /** SystemAssignedUserAssigned */
894
+ SystemAssignedUserAssigned = "SystemAssigned,UserAssigned"
895
+ }
896
+
885
897
  /** Known values of {@link NetworkRuleAction} that the service accepts. */
886
898
  export declare enum KnownNetworkRuleAction {
887
899
  /** Allow */
@@ -1312,11 +1324,11 @@ export declare interface ManagedHsmProperties {
1312
1324
  * NOTE: This property will not be serialized. It can only be populated by the server.
1313
1325
  */
1314
1326
  readonly hsmUri?: string;
1315
- /** 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. */
1327
+ /** 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. */
1316
1328
  enableSoftDelete?: boolean;
1317
- /** softDelete data retention days. It accepts >=7 and <=90. */
1329
+ /** 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. */
1318
1330
  softDeleteRetentionInDays?: number;
1319
- /** 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. */
1331
+ /** 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. */
1320
1332
  enablePurgeProtection?: boolean;
1321
1333
  /** The create mode to indicate whether the resource is being created or is being recovered from a deleted resource. */
1322
1334
  createMode?: CreateMode;
@@ -1339,7 +1351,7 @@ export declare interface ManagedHsmProperties {
1339
1351
  * NOTE: This property will not be serialized. It can only be populated by the server.
1340
1352
  */
1341
1353
  readonly privateEndpointConnections?: MhsmPrivateEndpointConnectionItem[];
1342
- /** Control permission for data plane traffic coming from public networks while private endpoint is enabled. */
1354
+ /** Control permission to the managed HSM from public networks. */
1343
1355
  publicNetworkAccess?: PublicNetworkAccess;
1344
1356
  /**
1345
1357
  * The scheduled purge date in UTC.
@@ -1383,6 +1395,8 @@ export declare interface ManagedHsmResource {
1383
1395
  * NOTE: This property will not be serialized. It can only be populated by the server.
1384
1396
  */
1385
1397
  readonly systemData?: SystemData;
1398
+ /** Managed service identity (system assigned and/or user assigned identities) */
1399
+ identity?: ManagedServiceIdentity;
1386
1400
  }
1387
1401
 
1388
1402
  export declare interface ManagedHsmRotationPolicy {
@@ -1577,7 +1591,7 @@ export declare interface ManagedHsmSku {
1577
1591
  export declare type ManagedHsmSkuFamily = string;
1578
1592
 
1579
1593
  /** Defines values for ManagedHsmSkuName. */
1580
- export declare type ManagedHsmSkuName = "Standard_B1" | "Custom_B32";
1594
+ export declare type ManagedHsmSkuName = "Standard_B1" | "Custom_B32" | "Custom_B6";
1581
1595
 
1582
1596
  /** Optional parameters. */
1583
1597
  export declare interface ManagedHsmsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
@@ -1666,6 +1680,38 @@ export declare interface ManagedHsmTrigger {
1666
1680
  timeBeforeExpiry?: string;
1667
1681
  }
1668
1682
 
1683
+ /** Managed service identity (system assigned and/or user assigned identities) */
1684
+ export declare interface ManagedServiceIdentity {
1685
+ /**
1686
+ * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
1687
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1688
+ */
1689
+ readonly principalId?: string;
1690
+ /**
1691
+ * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
1692
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1693
+ */
1694
+ readonly tenantId?: string;
1695
+ /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */
1696
+ type: ManagedServiceIdentityType;
1697
+ /** 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. */
1698
+ userAssignedIdentities?: {
1699
+ [propertyName: string]: UserAssignedIdentity | null;
1700
+ };
1701
+ }
1702
+
1703
+ /**
1704
+ * Defines values for ManagedServiceIdentityType. \
1705
+ * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType,
1706
+ * this enum contains the known values that the service supports.
1707
+ * ### Known values supported by the service
1708
+ * **None** \
1709
+ * **SystemAssigned** \
1710
+ * **UserAssigned** \
1711
+ * **SystemAssigned,UserAssigned**
1712
+ */
1713
+ export declare type ManagedServiceIdentityType = string;
1714
+
1669
1715
  /** Metric specification of operation. */
1670
1716
  export declare interface MetricSpecification {
1671
1717
  /** Name of metric specification. */
@@ -2621,6 +2667,20 @@ export declare interface Trigger {
2621
2667
  timeBeforeExpiry?: string;
2622
2668
  }
2623
2669
 
2670
+ /** User assigned identity properties */
2671
+ export declare interface UserAssignedIdentity {
2672
+ /**
2673
+ * The principal ID of the assigned identity.
2674
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2675
+ */
2676
+ readonly principalId?: string;
2677
+ /**
2678
+ * The client ID of the assigned identity.
2679
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2680
+ */
2681
+ readonly clientId?: string;
2682
+ }
2683
+
2624
2684
  /** Resource information with extended details. */
2625
2685
  export declare interface Vault {
2626
2686
  /**