@azure/arm-keyvault 2.1.0-beta.2 → 3.0.0-alpha.20230424.3

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 (235) hide show
  1. package/CHANGELOG.md +62 -1
  2. package/LICENSE +1 -1
  3. package/README.md +1 -1
  4. package/dist/index.js +2998 -1638
  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/samples-dev/keysCreateIfNotExistSample.js +12 -4
  9. package/dist-esm/samples-dev/keysCreateIfNotExistSample.js.map +1 -1
  10. package/dist-esm/samples-dev/keysGetSample.js +12 -4
  11. package/dist-esm/samples-dev/keysGetSample.js.map +1 -1
  12. package/dist-esm/samples-dev/keysGetVersionSample.js +12 -4
  13. package/dist-esm/samples-dev/keysGetVersionSample.js.map +1 -1
  14. package/dist-esm/samples-dev/keysListSample.js +24 -9
  15. package/dist-esm/samples-dev/keysListSample.js.map +1 -1
  16. package/dist-esm/samples-dev/keysListVersionsSample.js +24 -9
  17. package/dist-esm/samples-dev/keysListVersionsSample.js.map +1 -1
  18. package/dist-esm/samples-dev/managedHsmKeysCreateIfNotExistSample.d.ts +2 -0
  19. package/dist-esm/samples-dev/managedHsmKeysCreateIfNotExistSample.d.ts.map +1 -0
  20. package/dist-esm/samples-dev/managedHsmKeysCreateIfNotExistSample.js +43 -0
  21. package/dist-esm/samples-dev/managedHsmKeysCreateIfNotExistSample.js.map +1 -0
  22. package/dist-esm/samples-dev/managedHsmKeysGetSample.d.ts +2 -0
  23. package/dist-esm/samples-dev/managedHsmKeysGetSample.d.ts.map +1 -0
  24. package/dist-esm/samples-dev/managedHsmKeysGetSample.js +40 -0
  25. package/dist-esm/samples-dev/managedHsmKeysGetSample.js.map +1 -0
  26. package/dist-esm/samples-dev/managedHsmKeysGetVersionSample.d.ts +2 -0
  27. package/dist-esm/samples-dev/managedHsmKeysGetVersionSample.d.ts.map +1 -0
  28. package/dist-esm/samples-dev/managedHsmKeysGetVersionSample.js +41 -0
  29. package/dist-esm/samples-dev/managedHsmKeysGetVersionSample.js.map +1 -0
  30. package/dist-esm/samples-dev/managedHsmKeysListSample.d.ts +2 -0
  31. package/dist-esm/samples-dev/managedHsmKeysListSample.d.ts.map +1 -0
  32. package/dist-esm/samples-dev/managedHsmKeysListSample.js +60 -0
  33. package/dist-esm/samples-dev/managedHsmKeysListSample.js.map +1 -0
  34. package/dist-esm/samples-dev/managedHsmKeysListVersionsSample.d.ts +2 -0
  35. package/dist-esm/samples-dev/managedHsmKeysListVersionsSample.d.ts.map +1 -0
  36. package/dist-esm/samples-dev/managedHsmKeysListVersionsSample.js +61 -0
  37. package/dist-esm/samples-dev/managedHsmKeysListVersionsSample.js.map +1 -0
  38. package/dist-esm/samples-dev/managedHsmsCheckMhsmNameAvailabilitySample.d.ts +2 -0
  39. package/dist-esm/samples-dev/managedHsmsCheckMhsmNameAvailabilitySample.d.ts.map +1 -0
  40. package/dist-esm/samples-dev/managedHsmsCheckMhsmNameAvailabilitySample.js +38 -0
  41. package/dist-esm/samples-dev/managedHsmsCheckMhsmNameAvailabilitySample.js.map +1 -0
  42. package/dist-esm/samples-dev/managedHsmsCreateOrUpdateSample.js +13 -5
  43. package/dist-esm/samples-dev/managedHsmsCreateOrUpdateSample.js.map +1 -1
  44. package/dist-esm/samples-dev/managedHsmsDeleteSample.js +12 -4
  45. package/dist-esm/samples-dev/managedHsmsDeleteSample.js.map +1 -1
  46. package/dist-esm/samples-dev/managedHsmsGetDeletedSample.js +11 -3
  47. package/dist-esm/samples-dev/managedHsmsGetDeletedSample.js.map +1 -1
  48. package/dist-esm/samples-dev/managedHsmsGetSample.js +12 -4
  49. package/dist-esm/samples-dev/managedHsmsGetSample.js.map +1 -1
  50. package/dist-esm/samples-dev/managedHsmsListByResourceGroupSample.js +24 -9
  51. package/dist-esm/samples-dev/managedHsmsListByResourceGroupSample.js.map +1 -1
  52. package/dist-esm/samples-dev/managedHsmsListBySubscriptionSample.js +23 -8
  53. package/dist-esm/samples-dev/managedHsmsListBySubscriptionSample.js.map +1 -1
  54. package/dist-esm/samples-dev/managedHsmsListDeletedSample.js +23 -8
  55. package/dist-esm/samples-dev/managedHsmsListDeletedSample.js.map +1 -1
  56. package/dist-esm/samples-dev/managedHsmsPurgeDeletedSample.js +11 -3
  57. package/dist-esm/samples-dev/managedHsmsPurgeDeletedSample.js.map +1 -1
  58. package/dist-esm/samples-dev/managedHsmsUpdateSample.js +12 -4
  59. package/dist-esm/samples-dev/managedHsmsUpdateSample.js.map +1 -1
  60. package/dist-esm/samples-dev/mhsmPrivateEndpointConnectionsDeleteSample.js +12 -4
  61. package/dist-esm/samples-dev/mhsmPrivateEndpointConnectionsDeleteSample.js.map +1 -1
  62. package/dist-esm/samples-dev/mhsmPrivateEndpointConnectionsGetSample.js +12 -4
  63. package/dist-esm/samples-dev/mhsmPrivateEndpointConnectionsGetSample.js.map +1 -1
  64. package/dist-esm/samples-dev/mhsmPrivateEndpointConnectionsListByResourceSample.js +24 -9
  65. package/dist-esm/samples-dev/mhsmPrivateEndpointConnectionsListByResourceSample.js.map +1 -1
  66. package/dist-esm/samples-dev/mhsmPrivateEndpointConnectionsPutSample.js +12 -4
  67. package/dist-esm/samples-dev/mhsmPrivateEndpointConnectionsPutSample.js.map +1 -1
  68. package/dist-esm/samples-dev/mhsmPrivateLinkResourcesListByMhsmResourceSample.js +12 -4
  69. package/dist-esm/samples-dev/mhsmPrivateLinkResourcesListByMhsmResourceSample.js.map +1 -1
  70. package/dist-esm/samples-dev/mhsmRegionsListByResourceSample.d.ts +2 -0
  71. package/dist-esm/samples-dev/mhsmRegionsListByResourceSample.d.ts.map +1 -0
  72. package/dist-esm/samples-dev/mhsmRegionsListByResourceSample.js +60 -0
  73. package/dist-esm/samples-dev/mhsmRegionsListByResourceSample.js.map +1 -0
  74. package/dist-esm/samples-dev/operationsListSample.js +23 -8
  75. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  76. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +12 -4
  77. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -1
  78. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +12 -4
  79. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -1
  80. package/dist-esm/samples-dev/privateEndpointConnectionsListByResourceSample.js +24 -9
  81. package/dist-esm/samples-dev/privateEndpointConnectionsListByResourceSample.js.map +1 -1
  82. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +12 -4
  83. package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js.map +1 -1
  84. package/dist-esm/samples-dev/privateLinkResourcesListByVaultSample.js +12 -4
  85. package/dist-esm/samples-dev/privateLinkResourcesListByVaultSample.js.map +1 -1
  86. package/dist-esm/samples-dev/secretsCreateOrUpdateSample.js +12 -4
  87. package/dist-esm/samples-dev/secretsCreateOrUpdateSample.js.map +1 -1
  88. package/dist-esm/samples-dev/secretsGetSample.js +12 -4
  89. package/dist-esm/samples-dev/secretsGetSample.js.map +1 -1
  90. package/dist-esm/samples-dev/secretsListSample.js +24 -9
  91. package/dist-esm/samples-dev/secretsListSample.js.map +1 -1
  92. package/dist-esm/samples-dev/secretsUpdateSample.js +12 -4
  93. package/dist-esm/samples-dev/secretsUpdateSample.js.map +1 -1
  94. package/dist-esm/samples-dev/vaultsCheckNameAvailabilitySample.js +11 -3
  95. package/dist-esm/samples-dev/vaultsCheckNameAvailabilitySample.js.map +1 -1
  96. package/dist-esm/samples-dev/vaultsCreateOrUpdateSample.js +17 -8
  97. package/dist-esm/samples-dev/vaultsCreateOrUpdateSample.js.map +1 -1
  98. package/dist-esm/samples-dev/vaultsDeleteSample.js +12 -4
  99. package/dist-esm/samples-dev/vaultsDeleteSample.js.map +1 -1
  100. package/dist-esm/samples-dev/vaultsGetDeletedSample.js +11 -3
  101. package/dist-esm/samples-dev/vaultsGetDeletedSample.js.map +1 -1
  102. package/dist-esm/samples-dev/vaultsGetSample.js +12 -4
  103. package/dist-esm/samples-dev/vaultsGetSample.js.map +1 -1
  104. package/dist-esm/samples-dev/vaultsListByResourceGroupSample.js +24 -9
  105. package/dist-esm/samples-dev/vaultsListByResourceGroupSample.js.map +1 -1
  106. package/dist-esm/samples-dev/vaultsListBySubscriptionSample.js +23 -8
  107. package/dist-esm/samples-dev/vaultsListBySubscriptionSample.js.map +1 -1
  108. package/dist-esm/samples-dev/vaultsListDeletedSample.js +23 -8
  109. package/dist-esm/samples-dev/vaultsListDeletedSample.js.map +1 -1
  110. package/dist-esm/samples-dev/vaultsListSample.js +23 -8
  111. package/dist-esm/samples-dev/vaultsListSample.js.map +1 -1
  112. package/dist-esm/samples-dev/vaultsPurgeDeletedSample.js +11 -3
  113. package/dist-esm/samples-dev/vaultsPurgeDeletedSample.js.map +1 -1
  114. package/dist-esm/samples-dev/vaultsUpdateAccessPolicySample.js +12 -4
  115. package/dist-esm/samples-dev/vaultsUpdateAccessPolicySample.js.map +1 -1
  116. package/dist-esm/samples-dev/vaultsUpdateSample.js +12 -4
  117. package/dist-esm/samples-dev/vaultsUpdateSample.js.map +1 -1
  118. package/dist-esm/src/keyVaultManagementClient.d.ts +3 -1
  119. package/dist-esm/src/keyVaultManagementClient.d.ts.map +1 -1
  120. package/dist-esm/src/keyVaultManagementClient.js +5 -3
  121. package/dist-esm/src/keyVaultManagementClient.js.map +1 -1
  122. package/dist-esm/src/lroImpl.d.ts +6 -11
  123. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  124. package/dist-esm/src/lroImpl.js +12 -20
  125. package/dist-esm/src/lroImpl.js.map +1 -1
  126. package/dist-esm/src/models/index.d.ts +415 -92
  127. package/dist-esm/src/models/index.d.ts.map +1 -1
  128. package/dist-esm/src/models/index.js +28 -0
  129. package/dist-esm/src/models/index.js.map +1 -1
  130. package/dist-esm/src/models/mappers.d.ts +20 -0
  131. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  132. package/dist-esm/src/models/mappers.js +608 -28
  133. package/dist-esm/src/models/mappers.js.map +1 -1
  134. package/dist-esm/src/models/parameters.d.ts +9 -5
  135. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  136. package/dist-esm/src/models/parameters.js +45 -8
  137. package/dist-esm/src/models/parameters.js.map +1 -1
  138. package/dist-esm/src/operations/index.d.ts +2 -0
  139. package/dist-esm/src/operations/index.d.ts.map +1 -1
  140. package/dist-esm/src/operations/index.js +2 -0
  141. package/dist-esm/src/operations/index.js.map +1 -1
  142. package/dist-esm/src/operations/keys.d.ts +3 -1
  143. package/dist-esm/src/operations/keys.d.ts.map +1 -1
  144. package/dist-esm/src/operations/keys.js +27 -13
  145. package/dist-esm/src/operations/keys.js.map +1 -1
  146. package/dist-esm/src/operations/managedHsmKeys.d.ts +105 -0
  147. package/dist-esm/src/operations/managedHsmKeys.d.ts.map +1 -0
  148. package/dist-esm/src/operations/managedHsmKeys.js +404 -0
  149. package/dist-esm/src/operations/managedHsmKeys.js.map +1 -0
  150. package/dist-esm/src/operations/managedHsms.d.ts +13 -7
  151. package/dist-esm/src/operations/managedHsms.d.ts.map +1 -1
  152. package/dist-esm/src/operations/managedHsms.js +116 -49
  153. package/dist-esm/src/operations/managedHsms.js.map +1 -1
  154. package/dist-esm/src/operations/mhsmPrivateEndpointConnections.d.ts +2 -2
  155. package/dist-esm/src/operations/mhsmPrivateEndpointConnections.d.ts.map +1 -1
  156. package/dist-esm/src/operations/mhsmPrivateEndpointConnections.js +27 -17
  157. package/dist-esm/src/operations/mhsmPrivateEndpointConnections.js.map +1 -1
  158. package/dist-esm/src/operations/mhsmPrivateLinkResources.js +1 -1
  159. package/dist-esm/src/operations/mhsmPrivateLinkResources.js.map +1 -1
  160. package/dist-esm/src/operations/mhsmRegions.d.ts +38 -0
  161. package/dist-esm/src/operations/mhsmRegions.d.ts.map +1 -0
  162. package/dist-esm/src/operations/mhsmRegions.js +155 -0
  163. package/dist-esm/src/operations/mhsmRegions.js.map +1 -0
  164. package/dist-esm/src/operations/operations.js +12 -6
  165. package/dist-esm/src/operations/operations.js.map +1 -1
  166. package/dist-esm/src/operations/privateEndpointConnections.d.ts +2 -2
  167. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  168. package/dist-esm/src/operations/privateEndpointConnections.js +27 -12
  169. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  170. package/dist-esm/src/operations/secrets.d.ts +3 -1
  171. package/dist-esm/src/operations/secrets.d.ts.map +1 -1
  172. package/dist-esm/src/operations/secrets.js +17 -9
  173. package/dist-esm/src/operations/secrets.js.map +1 -1
  174. package/dist-esm/src/operations/vaults.d.ts +3 -3
  175. package/dist-esm/src/operations/vaults.d.ts.map +1 -1
  176. package/dist-esm/src/operations/vaults.js +69 -37
  177. package/dist-esm/src/operations/vaults.js.map +1 -1
  178. package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
  179. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  180. package/dist-esm/src/operationsInterfaces/index.js +2 -0
  181. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  182. package/dist-esm/src/operationsInterfaces/keys.d.ts +3 -1
  183. package/dist-esm/src/operationsInterfaces/keys.d.ts.map +1 -1
  184. package/dist-esm/src/operationsInterfaces/managedHsmKeys.d.ts +57 -0
  185. package/dist-esm/src/operationsInterfaces/managedHsmKeys.d.ts.map +1 -0
  186. package/dist-esm/src/operationsInterfaces/managedHsmKeys.js +9 -0
  187. package/dist-esm/src/operationsInterfaces/managedHsmKeys.js.map +1 -0
  188. package/dist-esm/src/operationsInterfaces/managedHsms.d.ts +13 -7
  189. package/dist-esm/src/operationsInterfaces/managedHsms.d.ts.map +1 -1
  190. package/dist-esm/src/operationsInterfaces/mhsmPrivateEndpointConnections.d.ts +2 -2
  191. package/dist-esm/src/operationsInterfaces/mhsmPrivateEndpointConnections.d.ts.map +1 -1
  192. package/dist-esm/src/operationsInterfaces/mhsmRegions.d.ts +13 -0
  193. package/dist-esm/src/operationsInterfaces/mhsmRegions.d.ts.map +1 -0
  194. package/dist-esm/src/operationsInterfaces/mhsmRegions.js +9 -0
  195. package/dist-esm/src/operationsInterfaces/mhsmRegions.js.map +1 -0
  196. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +2 -2
  197. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
  198. package/dist-esm/src/operationsInterfaces/secrets.d.ts +3 -1
  199. package/dist-esm/src/operationsInterfaces/secrets.d.ts.map +1 -1
  200. package/dist-esm/src/operationsInterfaces/vaults.d.ts +3 -3
  201. package/dist-esm/src/operationsInterfaces/vaults.d.ts.map +1 -1
  202. package/dist-esm/src/pagingHelper.d.ts +4 -4
  203. package/dist-esm/src/pagingHelper.js +4 -4
  204. package/dist-esm/test/keyvault_examples.js +25 -11
  205. package/dist-esm/test/keyvault_examples.js.map +1 -1
  206. package/package.json +13 -12
  207. package/review/arm-keyvault.api.md +274 -18
  208. package/src/keyVaultManagementClient.ts +10 -2
  209. package/src/lroImpl.ts +31 -23
  210. package/src/models/index.ts +387 -29
  211. package/src/models/mappers.ts +622 -11
  212. package/src/models/parameters.ts +50 -7
  213. package/src/operations/index.ts +2 -0
  214. package/src/operations/keys.ts +3 -3
  215. package/src/operations/managedHsmKeys.ts +525 -0
  216. package/src/operations/managedHsms.ts +118 -58
  217. package/src/operations/mhsmPrivateEndpointConnections.ts +24 -18
  218. package/src/operations/mhsmPrivateLinkResources.ts +1 -1
  219. package/src/operations/mhsmRegions.ts +194 -0
  220. package/src/operations/operations.ts +0 -1
  221. package/src/operations/privateEndpointConnections.ts +24 -13
  222. package/src/operations/secrets.ts +5 -4
  223. package/src/operations/vaults.ts +31 -28
  224. package/src/operationsInterfaces/index.ts +2 -0
  225. package/src/operationsInterfaces/keys.ts +3 -1
  226. package/src/operationsInterfaces/managedHsmKeys.ts +103 -0
  227. package/src/operationsInterfaces/managedHsms.ts +27 -9
  228. package/src/operationsInterfaces/mhsmPrivateEndpointConnections.ts +3 -3
  229. package/src/operationsInterfaces/mhsmRegions.ts +29 -0
  230. package/src/operationsInterfaces/privateEndpointConnections.ts +3 -3
  231. package/src/operationsInterfaces/secrets.ts +3 -1
  232. package/src/operationsInterfaces/vaults.ts +4 -4
  233. package/src/pagingHelper.ts +4 -4
  234. package/types/arm-keyvault.d.ts +480 -34
  235. package/types/tsdoc-metadata.json +1 -1
@@ -1,8 +1,8 @@
1
1
  import * as coreAuth from '@azure/core-auth';
2
2
  import * as coreClient from '@azure/core-client';
3
+ import { OperationState } from '@azure/core-lro';
3
4
  import { PagedAsyncIterableIterator } from '@azure/core-paging';
4
- import { PollerLike } from '@azure/core-lro';
5
- import { PollOperationState } from '@azure/core-lro';
5
+ import { SimplePollerLike } from '@azure/core-lro';
6
6
 
7
7
  /** An identity that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID. */
8
8
  export declare interface AccessPolicyEntry {
@@ -33,6 +33,18 @@ export declare interface Action {
33
33
  */
34
34
  export declare type ActionsRequired = string;
35
35
 
36
+ /**
37
+ * Defines values for ActivationStatus. \
38
+ * {@link KnownActivationStatus} can be used interchangeably with ActivationStatus,
39
+ * this enum contains the known values that the service supports.
40
+ * ### Known values supported by the service
41
+ * **Active**: The managed HSM Pool is active. \
42
+ * **NotActivated**: The managed HSM Pool is not yet activated. \
43
+ * **Unknown**: An unknown error occurred while activating managed hsm. \
44
+ * **Failed**: Failed to activate managed hsm.
45
+ */
46
+ export declare type ActivationStatus = string;
47
+
36
48
  /** The object attributes managed by the KeyVault service. */
37
49
  export declare interface Attributes {
38
50
  /** Determines whether the object is enabled. */
@@ -78,6 +90,31 @@ export declare interface Attributes {
78
90
  */
79
91
  export declare type CertificatePermissions = string;
80
92
 
93
+ /** The parameters used to check the availability of the managed hsm name. */
94
+ export declare interface CheckMhsmNameAvailabilityParameters {
95
+ /** The managed hsm name. */
96
+ name: string;
97
+ }
98
+
99
+ /** The CheckMhsmNameAvailability operation response. */
100
+ export declare interface CheckMhsmNameAvailabilityResult {
101
+ /**
102
+ * A boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used.
103
+ * NOTE: This property will not be serialized. It can only be populated by the server.
104
+ */
105
+ readonly nameAvailable?: boolean;
106
+ /**
107
+ * The reason that a managed hsm name could not be used. The reason element is only returned if NameAvailable is false.
108
+ * NOTE: This property will not be serialized. It can only be populated by the server.
109
+ */
110
+ readonly reason?: Reason;
111
+ /**
112
+ * An error message explaining the Reason value in more detail.
113
+ * NOTE: This property will not be serialized. It can only be populated by the server.
114
+ */
115
+ readonly message?: string;
116
+ }
117
+
81
118
  /** The CheckNameAvailability operation response. */
82
119
  export declare interface CheckNameAvailabilityResult {
83
120
  /**
@@ -285,11 +322,25 @@ export declare interface ErrorModel {
285
322
  }
286
323
 
287
324
  /**
288
- * Given a result page from a pageable operation, returns a
289
- * continuation token that can be used to begin paging from
325
+ * Defines values for GeoReplicationRegionProvisioningState. \
326
+ * {@link KnownGeoReplicationRegionProvisioningState} can be used interchangeably with GeoReplicationRegionProvisioningState,
327
+ * this enum contains the known values that the service supports.
328
+ * ### Known values supported by the service
329
+ * **Preprovisioning** \
330
+ * **Provisioning** \
331
+ * **Succeeded** \
332
+ * **Failed** \
333
+ * **Deleting** \
334
+ * **Cleanup**
335
+ */
336
+ export declare type GeoReplicationRegionProvisioningState = string;
337
+
338
+ /**
339
+ * Given the last `.value` produced by the `byPage` iterator,
340
+ * returns a continuation token that can be used to begin paging from
290
341
  * that point later.
291
- * @param page A result object from calling .byPage() on a paged operation.
292
- * @returns The continuation token that can be passed into byPage().
342
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
343
+ * @returns The continuation token that can be passed into byPage() during future calls.
293
344
  */
294
345
  export declare function getContinuationToken(page: unknown): string | undefined;
295
346
 
@@ -527,7 +578,9 @@ export declare interface Keys {
527
578
  * versions, and does not update existing keys.
528
579
  * @param resourceGroupName The name of the resource group which contains the specified key vault.
529
580
  * @param vaultName The name of the key vault which contains the key to be created.
530
- * @param keyName The name of the key to be created.
581
+ * @param keyName The name of the key to be created. The value you provide may be copied globally for
582
+ * the purpose of running the service. The value provided should not include personally identifiable or
583
+ * sensitive information.
531
584
  * @param parameters The parameters used to create the specified key.
532
585
  * @param options The options parameters.
533
586
  */
@@ -615,12 +668,14 @@ export declare class KeyVaultManagementClient extends coreClient.ServiceClient {
615
668
  /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
616
669
  private addCustomApiVersionPolicy;
617
670
  keys: Keys;
671
+ managedHsmKeys: ManagedHsmKeys;
618
672
  vaults: Vaults;
619
673
  privateEndpointConnections: PrivateEndpointConnections;
620
674
  privateLinkResources: PrivateLinkResources;
621
675
  managedHsms: ManagedHsms;
622
676
  mhsmPrivateEndpointConnections: MhsmPrivateEndpointConnections;
623
677
  mhsmPrivateLinkResources: MhsmPrivateLinkResources;
678
+ mhsmRegions: MhsmRegions;
624
679
  operations: Operations;
625
680
  secrets: Secrets;
626
681
  }
@@ -641,6 +696,18 @@ export declare enum KnownActionsRequired {
641
696
  None = "None"
642
697
  }
643
698
 
699
+ /** Known values of {@link ActivationStatus} that the service accepts. */
700
+ export declare enum KnownActivationStatus {
701
+ /** The managed HSM Pool is active. */
702
+ Active = "Active",
703
+ /** The managed HSM Pool is not yet activated. */
704
+ NotActivated = "NotActivated",
705
+ /** An unknown error occurred while activating managed hsm. */
706
+ Unknown = "Unknown",
707
+ /** Failed to activate managed hsm. */
708
+ Failed = "Failed"
709
+ }
710
+
644
711
  /** Known values of {@link CertificatePermissions} that the service accepts. */
645
712
  export declare enum KnownCertificatePermissions {
646
713
  /** All */
@@ -691,6 +758,22 @@ export declare enum KnownDeletionRecoveryLevel {
691
758
  RecoverableProtectedSubscription = "Recoverable+ProtectedSubscription"
692
759
  }
693
760
 
761
+ /** Known values of {@link GeoReplicationRegionProvisioningState} that the service accepts. */
762
+ export declare enum KnownGeoReplicationRegionProvisioningState {
763
+ /** Preprovisioning */
764
+ Preprovisioning = "Preprovisioning",
765
+ /** Provisioning */
766
+ Provisioning = "Provisioning",
767
+ /** Succeeded */
768
+ Succeeded = "Succeeded",
769
+ /** Failed */
770
+ Failed = "Failed",
771
+ /** Deleting */
772
+ Deleting = "Deleting",
773
+ /** Cleanup */
774
+ Cleanup = "Cleanup"
775
+ }
776
+
694
777
  /** Known values of {@link IdentityType} that the service accepts. */
695
778
  export declare enum KnownIdentityType {
696
779
  /** User */
@@ -964,6 +1047,11 @@ export declare interface ManagedHsm extends ManagedHsmResource {
964
1047
  properties?: ManagedHsmProperties;
965
1048
  }
966
1049
 
1050
+ export declare interface ManagedHsmAction {
1051
+ /** The type of action. */
1052
+ type?: KeyRotationPolicyActionType;
1053
+ }
1054
+
967
1055
  /** The error exception. */
968
1056
  export declare interface ManagedHsmError {
969
1057
  /**
@@ -973,6 +1061,238 @@ export declare interface ManagedHsmError {
973
1061
  readonly error?: ErrorModel;
974
1062
  }
975
1063
 
1064
+ /** The key resource. */
1065
+ export declare interface ManagedHsmKey extends ProxyResourceWithoutSystemData {
1066
+ /** The attributes of the key. */
1067
+ attributes?: ManagedHsmKeyAttributes;
1068
+ /** The type of the key. For valid values, see JsonWebKeyType. */
1069
+ kty?: JsonWebKeyType;
1070
+ keyOps?: JsonWebKeyOperation[];
1071
+ /** The key size in bits. For example: 2048, 3072, or 4096 for RSA. */
1072
+ keySize?: number;
1073
+ /** The elliptic curve name. For valid values, see JsonWebKeyCurveName. */
1074
+ curveName?: JsonWebKeyCurveName;
1075
+ /**
1076
+ * The URI to retrieve the current version of the key.
1077
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1078
+ */
1079
+ readonly keyUri?: string;
1080
+ /**
1081
+ * The URI to retrieve the specific version of the key.
1082
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1083
+ */
1084
+ readonly keyUriWithVersion?: string;
1085
+ /** Key rotation policy in response. It will be used for both output and input. Omitted if empty */
1086
+ rotationPolicy?: ManagedHsmRotationPolicy;
1087
+ /** Key release policy in response. It will be used for both output and input. Omitted if empty */
1088
+ releasePolicy?: ManagedHsmKeyReleasePolicy;
1089
+ }
1090
+
1091
+ /** The object attributes managed by the Azure Key Vault service. */
1092
+ export declare interface ManagedHsmKeyAttributes {
1093
+ /** Determines whether or not the object is enabled. */
1094
+ enabled?: boolean;
1095
+ /** Not before date in seconds since 1970-01-01T00:00:00Z. */
1096
+ notBefore?: number;
1097
+ /** Expiry date in seconds since 1970-01-01T00:00:00Z. */
1098
+ expires?: number;
1099
+ /**
1100
+ * Creation time in seconds since 1970-01-01T00:00:00Z.
1101
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1102
+ */
1103
+ readonly created?: number;
1104
+ /**
1105
+ * Last updated time in seconds since 1970-01-01T00:00:00Z.
1106
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1107
+ */
1108
+ readonly updated?: number;
1109
+ /**
1110
+ * The deletion recovery level currently in effect for the object. If it contains 'Purgeable', then the object can be permanently deleted by a privileged user; otherwise, only the system can purge the object at the end of the retention interval.
1111
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1112
+ */
1113
+ readonly recoveryLevel?: DeletionRecoveryLevel;
1114
+ /** Indicates if the private key can be exported. */
1115
+ exportable?: boolean;
1116
+ }
1117
+
1118
+ /** The parameters used to create a key. */
1119
+ export declare interface ManagedHsmKeyCreateParameters {
1120
+ /** The tags that will be assigned to the key. */
1121
+ tags?: {
1122
+ [propertyName: string]: string;
1123
+ };
1124
+ /** The properties of the key to be created. */
1125
+ properties: ManagedHsmKeyProperties;
1126
+ }
1127
+
1128
+ /** The page of keys. */
1129
+ export declare interface ManagedHsmKeyListResult {
1130
+ /** The key resources. */
1131
+ value?: ManagedHsmKey[];
1132
+ /** The URL to get the next page of keys. */
1133
+ nextLink?: string;
1134
+ }
1135
+
1136
+ /** The properties of the key. */
1137
+ export declare interface ManagedHsmKeyProperties {
1138
+ /** The attributes of the key. */
1139
+ attributes?: ManagedHsmKeyAttributes;
1140
+ /** The type of the key. For valid values, see JsonWebKeyType. */
1141
+ kty?: JsonWebKeyType;
1142
+ keyOps?: JsonWebKeyOperation[];
1143
+ /** The key size in bits. For example: 2048, 3072, or 4096 for RSA. */
1144
+ keySize?: number;
1145
+ /** The elliptic curve name. For valid values, see JsonWebKeyCurveName. */
1146
+ curveName?: JsonWebKeyCurveName;
1147
+ /**
1148
+ * The URI to retrieve the current version of the key.
1149
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1150
+ */
1151
+ readonly keyUri?: string;
1152
+ /**
1153
+ * The URI to retrieve the specific version of the key.
1154
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1155
+ */
1156
+ readonly keyUriWithVersion?: string;
1157
+ /** Key rotation policy in response. It will be used for both output and input. Omitted if empty */
1158
+ rotationPolicy?: ManagedHsmRotationPolicy;
1159
+ /** Key release policy in response. It will be used for both output and input. Omitted if empty */
1160
+ releasePolicy?: ManagedHsmKeyReleasePolicy;
1161
+ }
1162
+
1163
+ export declare interface ManagedHsmKeyReleasePolicy {
1164
+ /** Content type and version of key release policy */
1165
+ contentType?: string;
1166
+ /** Blob encoding the policy rules under which the key can be released. */
1167
+ data?: Uint8Array;
1168
+ }
1169
+
1170
+ export declare interface ManagedHsmKeyRotationPolicyAttributes {
1171
+ /**
1172
+ * Creation time in seconds since 1970-01-01T00:00:00Z.
1173
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1174
+ */
1175
+ readonly created?: number;
1176
+ /**
1177
+ * Last updated time in seconds since 1970-01-01T00:00:00Z.
1178
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1179
+ */
1180
+ readonly updated?: number;
1181
+ /** The expiration time for the new key version. It should be in ISO8601 format. Eg: 'P90D', 'P1Y'. */
1182
+ expiryTime?: string;
1183
+ }
1184
+
1185
+ /** Interface representing a ManagedHsmKeys. */
1186
+ export declare interface ManagedHsmKeys {
1187
+ /**
1188
+ * Lists the keys in the specified managed HSM.
1189
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1190
+ * @param name The name of the Managed HSM Pool within the specified resource group.
1191
+ * @param options The options parameters.
1192
+ */
1193
+ list(resourceGroupName: string, name: string, options?: ManagedHsmKeysListOptionalParams): PagedAsyncIterableIterator<ManagedHsmKey>;
1194
+ /**
1195
+ * Lists the versions of the specified key in the specified managed HSM.
1196
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1197
+ * @param name The name of the Managed HSM Pool within the specified resource group.
1198
+ * @param keyName The name of the key to be created. The value you provide may be copied globally for
1199
+ * the purpose of running the service. The value provided should not include personally identifiable or
1200
+ * sensitive information.
1201
+ * @param options The options parameters.
1202
+ */
1203
+ listVersions(resourceGroupName: string, name: string, keyName: string, options?: ManagedHsmKeysListVersionsOptionalParams): PagedAsyncIterableIterator<ManagedHsmKey>;
1204
+ /**
1205
+ * Creates the first version of a new key if it does not exist. If it already exists, then the existing
1206
+ * key is returned without any write operations being performed. This API does not create subsequent
1207
+ * versions, and does not update existing keys.
1208
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1209
+ * @param name The name of the Managed HSM Pool within the specified resource group.
1210
+ * @param keyName The name of the key to be created. The value you provide may be copied globally for
1211
+ * the purpose of running the service. The value provided should not include personally identifiable or
1212
+ * sensitive information.
1213
+ * @param parameters The parameters used to create the specified key.
1214
+ * @param options The options parameters.
1215
+ */
1216
+ createIfNotExist(resourceGroupName: string, name: string, keyName: string, parameters: ManagedHsmKeyCreateParameters, options?: ManagedHsmKeysCreateIfNotExistOptionalParams): Promise<ManagedHsmKeysCreateIfNotExistResponse>;
1217
+ /**
1218
+ * Gets the current version of the specified key from the specified managed HSM.
1219
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1220
+ * @param name The name of the Managed HSM Pool within the specified resource group.
1221
+ * @param keyName The name of the key to be created. The value you provide may be copied globally for
1222
+ * the purpose of running the service. The value provided should not include personally identifiable or
1223
+ * sensitive information.
1224
+ * @param options The options parameters.
1225
+ */
1226
+ get(resourceGroupName: string, name: string, keyName: string, options?: ManagedHsmKeysGetOptionalParams): Promise<ManagedHsmKeysGetResponse>;
1227
+ /**
1228
+ * Gets the specified version of the specified key in the specified managed HSM.
1229
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1230
+ * @param name The name of the Managed HSM Pool within the specified resource group.
1231
+ * @param keyName The name of the key to be created. The value you provide may be copied globally for
1232
+ * the purpose of running the service. The value provided should not include personally identifiable or
1233
+ * sensitive information.
1234
+ * @param keyVersion The version of the key to be retrieved.
1235
+ * @param options The options parameters.
1236
+ */
1237
+ getVersion(resourceGroupName: string, name: string, keyName: string, keyVersion: string, options?: ManagedHsmKeysGetVersionOptionalParams): Promise<ManagedHsmKeysGetVersionResponse>;
1238
+ }
1239
+
1240
+ /** Optional parameters. */
1241
+ export declare interface ManagedHsmKeysCreateIfNotExistOptionalParams extends coreClient.OperationOptions {
1242
+ }
1243
+
1244
+ /** Contains response data for the createIfNotExist operation. */
1245
+ export declare type ManagedHsmKeysCreateIfNotExistResponse = ManagedHsmKey;
1246
+
1247
+ /** Optional parameters. */
1248
+ export declare interface ManagedHsmKeysGetOptionalParams extends coreClient.OperationOptions {
1249
+ }
1250
+
1251
+ /** Contains response data for the get operation. */
1252
+ export declare type ManagedHsmKeysGetResponse = ManagedHsmKey;
1253
+
1254
+ /** Optional parameters. */
1255
+ export declare interface ManagedHsmKeysGetVersionOptionalParams extends coreClient.OperationOptions {
1256
+ }
1257
+
1258
+ /** Contains response data for the getVersion operation. */
1259
+ export declare type ManagedHsmKeysGetVersionResponse = ManagedHsmKey;
1260
+
1261
+ /** Optional parameters. */
1262
+ export declare interface ManagedHsmKeysListNextOptionalParams extends coreClient.OperationOptions {
1263
+ }
1264
+
1265
+ /** Contains response data for the listNext operation. */
1266
+ export declare type ManagedHsmKeysListNextResponse = ManagedHsmKeyListResult;
1267
+
1268
+ /** Optional parameters. */
1269
+ export declare interface ManagedHsmKeysListOptionalParams extends coreClient.OperationOptions {
1270
+ }
1271
+
1272
+ /** Contains response data for the list operation. */
1273
+ export declare type ManagedHsmKeysListResponse = ManagedHsmKeyListResult;
1274
+
1275
+ /** Optional parameters. */
1276
+ export declare interface ManagedHsmKeysListVersionsNextOptionalParams extends coreClient.OperationOptions {
1277
+ }
1278
+
1279
+ /** Contains response data for the listVersionsNext operation. */
1280
+ export declare type ManagedHsmKeysListVersionsNextResponse = ManagedHsmKeyListResult;
1281
+
1282
+ /** Optional parameters. */
1283
+ export declare interface ManagedHsmKeysListVersionsOptionalParams extends coreClient.OperationOptions {
1284
+ }
1285
+
1286
+ /** Contains response data for the listVersions operation. */
1287
+ export declare type ManagedHsmKeysListVersionsResponse = ManagedHsmKeyListResult;
1288
+
1289
+ export declare interface ManagedHsmLifetimeAction {
1290
+ /** The trigger of key rotation policy lifetimeAction. */
1291
+ trigger?: ManagedHsmTrigger;
1292
+ /** The action of key rotation policy lifetimeAction. */
1293
+ action?: ManagedHsmAction;
1294
+ }
1295
+
976
1296
  /** List of managed HSM Pools */
977
1297
  export declare interface ManagedHsmListResult {
978
1298
  /** The list of managed HSM Pools. */
@@ -1012,6 +1332,8 @@ export declare interface ManagedHsmProperties {
1012
1332
  readonly provisioningState?: ProvisioningState;
1013
1333
  /** Rules governing the accessibility of the key vault from specific network locations. */
1014
1334
  networkAcls?: MhsmNetworkRuleSet;
1335
+ /** List of all regions associated with the managed hsm pool. */
1336
+ regions?: MhsmGeoReplicatedRegion[];
1015
1337
  /**
1016
1338
  * List of private endpoint connections associated with the managed hsm pool.
1017
1339
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1024,6 +1346,11 @@ export declare interface ManagedHsmProperties {
1024
1346
  * NOTE: This property will not be serialized. It can only be populated by the server.
1025
1347
  */
1026
1348
  readonly scheduledPurgeDate?: Date;
1349
+ /**
1350
+ * Managed HSM security domain properties.
1351
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1352
+ */
1353
+ readonly securityDomainProperties?: ManagedHSMSecurityDomainProperties;
1027
1354
  }
1028
1355
 
1029
1356
  /** Managed HSM resource */
@@ -1058,6 +1385,13 @@ export declare interface ManagedHsmResource {
1058
1385
  readonly systemData?: SystemData;
1059
1386
  }
1060
1387
 
1388
+ export declare interface ManagedHsmRotationPolicy {
1389
+ /** The attributes of key rotation policy. */
1390
+ attributes?: ManagedHsmKeyRotationPolicyAttributes;
1391
+ /** The lifetimeActions for key rotation action. */
1392
+ lifetimeActions?: ManagedHsmLifetimeAction[];
1393
+ }
1394
+
1061
1395
  /** Interface representing a ManagedHsms. */
1062
1396
  export declare interface ManagedHsms {
1063
1397
  /**
@@ -1084,7 +1418,7 @@ export declare interface ManagedHsms {
1084
1418
  * @param parameters Parameters to create or update the managed HSM Pool
1085
1419
  * @param options The options parameters.
1086
1420
  */
1087
- beginCreateOrUpdate(resourceGroupName: string, name: string, parameters: ManagedHsm, options?: ManagedHsmsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ManagedHsmsCreateOrUpdateResponse>, ManagedHsmsCreateOrUpdateResponse>>;
1421
+ beginCreateOrUpdate(resourceGroupName: string, name: string, parameters: ManagedHsm, options?: ManagedHsmsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ManagedHsmsCreateOrUpdateResponse>, ManagedHsmsCreateOrUpdateResponse>>;
1088
1422
  /**
1089
1423
  * Create or update a managed HSM Pool in the specified subscription.
1090
1424
  * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
@@ -1100,7 +1434,7 @@ export declare interface ManagedHsms {
1100
1434
  * @param parameters Parameters to patch the managed HSM Pool
1101
1435
  * @param options The options parameters.
1102
1436
  */
1103
- beginUpdate(resourceGroupName: string, name: string, parameters: ManagedHsm, options?: ManagedHsmsUpdateOptionalParams): Promise<PollerLike<PollOperationState<ManagedHsmsUpdateResponse>, ManagedHsmsUpdateResponse>>;
1437
+ beginUpdate(resourceGroupName: string, name: string, parameters: ManagedHsm, options?: ManagedHsmsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ManagedHsmsUpdateResponse>, ManagedHsmsUpdateResponse>>;
1104
1438
  /**
1105
1439
  * Update a managed HSM Pool in the specified subscription.
1106
1440
  * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
@@ -1115,7 +1449,7 @@ export declare interface ManagedHsms {
1115
1449
  * @param name The name of the managed HSM Pool to delete
1116
1450
  * @param options The options parameters.
1117
1451
  */
1118
- beginDelete(resourceGroupName: string, name: string, options?: ManagedHsmsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
1452
+ beginDelete(resourceGroupName: string, name: string, options?: ManagedHsmsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
1119
1453
  /**
1120
1454
  * Deletes the specified managed HSM Pool.
1121
1455
  * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
@@ -1143,14 +1477,33 @@ export declare interface ManagedHsms {
1143
1477
  * @param location The location of the soft-deleted managed HSM.
1144
1478
  * @param options The options parameters.
1145
1479
  */
1146
- beginPurgeDeleted(name: string, location: string, options?: ManagedHsmsPurgeDeletedOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
1480
+ beginPurgeDeleted(name: string, location: string, options?: ManagedHsmsPurgeDeletedOptionalParams): Promise<SimplePollerLike<OperationState<ManagedHsmsPurgeDeletedResponse>, ManagedHsmsPurgeDeletedResponse>>;
1147
1481
  /**
1148
1482
  * Permanently deletes the specified managed HSM.
1149
1483
  * @param name The name of the soft-deleted managed HSM.
1150
1484
  * @param location The location of the soft-deleted managed HSM.
1151
1485
  * @param options The options parameters.
1152
1486
  */
1153
- beginPurgeDeletedAndWait(name: string, location: string, options?: ManagedHsmsPurgeDeletedOptionalParams): Promise<void>;
1487
+ beginPurgeDeletedAndWait(name: string, location: string, options?: ManagedHsmsPurgeDeletedOptionalParams): Promise<ManagedHsmsPurgeDeletedResponse>;
1488
+ /**
1489
+ * Checks that the managed hsm name is valid and is not already in use.
1490
+ * @param mhsmName The name of the managed hsm.
1491
+ * @param options The options parameters.
1492
+ */
1493
+ checkMhsmNameAvailability(mhsmName: CheckMhsmNameAvailabilityParameters, options?: ManagedHsmsCheckMhsmNameAvailabilityOptionalParams): Promise<ManagedHsmsCheckMhsmNameAvailabilityResponse>;
1494
+ }
1495
+
1496
+ /** Optional parameters. */
1497
+ export declare interface ManagedHsmsCheckMhsmNameAvailabilityOptionalParams extends coreClient.OperationOptions {
1498
+ }
1499
+
1500
+ /** Contains response data for the checkMhsmNameAvailability operation. */
1501
+ export declare type ManagedHsmsCheckMhsmNameAvailabilityResponse = CheckMhsmNameAvailabilityResult;
1502
+
1503
+ /** Defines headers for ManagedHsms_createOrUpdate operation. */
1504
+ export declare interface ManagedHsmsCreateOrUpdateHeaders {
1505
+ /** The URI to poll for completion status. */
1506
+ location?: string;
1154
1507
  }
1155
1508
 
1156
1509
  /** Optional parameters. */
@@ -1164,6 +1517,12 @@ export declare interface ManagedHsmsCreateOrUpdateOptionalParams extends coreCli
1164
1517
  /** Contains response data for the createOrUpdate operation. */
1165
1518
  export declare type ManagedHsmsCreateOrUpdateResponse = ManagedHsm;
1166
1519
 
1520
+ /** Defines headers for ManagedHsms_delete operation. */
1521
+ export declare interface ManagedHsmsDeleteHeaders {
1522
+ /** The URI to poll for completion status. */
1523
+ location?: string;
1524
+ }
1525
+
1167
1526
  /** Optional parameters. */
1168
1527
  export declare interface ManagedHsmsDeleteOptionalParams extends coreClient.OperationOptions {
1169
1528
  /** Delay to wait until next poll, in milliseconds. */
@@ -1172,6 +1531,20 @@ export declare interface ManagedHsmsDeleteOptionalParams extends coreClient.Oper
1172
1531
  resumeFrom?: string;
1173
1532
  }
1174
1533
 
1534
+ /** The security domain properties of the managed hsm. */
1535
+ export declare interface ManagedHSMSecurityDomainProperties {
1536
+ /**
1537
+ * Activation Status
1538
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1539
+ */
1540
+ readonly activationStatus?: ActivationStatus;
1541
+ /**
1542
+ * Activation Status Message.
1543
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1544
+ */
1545
+ readonly activationStatusMessage?: string;
1546
+ }
1547
+
1175
1548
  /** Optional parameters. */
1176
1549
  export declare interface ManagedHsmsGetDeletedOptionalParams extends coreClient.OperationOptions {
1177
1550
  }
@@ -1208,8 +1581,6 @@ export declare type ManagedHsmSkuName = "Standard_B1" | "Custom_B32";
1208
1581
 
1209
1582
  /** Optional parameters. */
1210
1583
  export declare interface ManagedHsmsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
1211
- /** Maximum number of results to return. */
1212
- top?: number;
1213
1584
  }
1214
1585
 
1215
1586
  /** Contains response data for the listByResourceGroupNext operation. */
@@ -1226,8 +1597,6 @@ export declare type ManagedHsmsListByResourceGroupResponse = ManagedHsmListResul
1226
1597
 
1227
1598
  /** Optional parameters. */
1228
1599
  export declare interface ManagedHsmsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
1229
- /** Maximum number of results to return. */
1230
- top?: number;
1231
1600
  }
1232
1601
 
1233
1602
  /** Contains response data for the listBySubscriptionNext operation. */
@@ -1256,6 +1625,12 @@ export declare interface ManagedHsmsListDeletedOptionalParams extends coreClient
1256
1625
  /** Contains response data for the listDeleted operation. */
1257
1626
  export declare type ManagedHsmsListDeletedResponse = DeletedManagedHsmListResult;
1258
1627
 
1628
+ /** Defines headers for ManagedHsms_purgeDeleted operation. */
1629
+ export declare interface ManagedHsmsPurgeDeletedHeaders {
1630
+ /** The URI to poll for completion status. */
1631
+ location?: string;
1632
+ }
1633
+
1259
1634
  /** Optional parameters. */
1260
1635
  export declare interface ManagedHsmsPurgeDeletedOptionalParams extends coreClient.OperationOptions {
1261
1636
  /** Delay to wait until next poll, in milliseconds. */
@@ -1264,6 +1639,9 @@ export declare interface ManagedHsmsPurgeDeletedOptionalParams extends coreClien
1264
1639
  resumeFrom?: string;
1265
1640
  }
1266
1641
 
1642
+ /** Contains response data for the purgeDeleted operation. */
1643
+ export declare type ManagedHsmsPurgeDeletedResponse = ManagedHsmsPurgeDeletedHeaders;
1644
+
1267
1645
  /** Defines headers for ManagedHsms_update operation. */
1268
1646
  export declare interface ManagedHsmsUpdateHeaders {
1269
1647
  /** The URI to poll for completion status. */
@@ -1281,6 +1659,13 @@ export declare interface ManagedHsmsUpdateOptionalParams extends coreClient.Oper
1281
1659
  /** Contains response data for the update operation. */
1282
1660
  export declare type ManagedHsmsUpdateResponse = ManagedHsm;
1283
1661
 
1662
+ export declare interface ManagedHsmTrigger {
1663
+ /** The time duration after key creation to rotate the key. It only applies to rotate. It will be in ISO 8601 duration format. Eg: 'P90D', 'P1Y'. */
1664
+ timeAfterCreate?: string;
1665
+ /** The time duration before key expiring to rotate or notify. It will be in ISO 8601 duration format. Eg: 'P90D', 'P1Y'. */
1666
+ timeBeforeExpiry?: string;
1667
+ }
1668
+
1284
1669
  /** Metric specification of operation. */
1285
1670
  export declare interface MetricSpecification {
1286
1671
  /** Name of metric specification. */
@@ -1307,7 +1692,20 @@ export declare interface MetricSpecification {
1307
1692
  internalMetricName?: string;
1308
1693
  }
1309
1694
 
1310
- /** A rule governing the accessibility of a managed hsm pool from a specific ip address or ip range. */
1695
+ /** A region that this managed HSM Pool has been extended to. */
1696
+ export declare interface MhsmGeoReplicatedRegion {
1697
+ /** Name of the geo replicated region. */
1698
+ name?: string;
1699
+ /**
1700
+ * Provisioning state of the geo replicated region.
1701
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1702
+ */
1703
+ readonly provisioningState?: GeoReplicationRegionProvisioningState;
1704
+ /** A boolean value that indicates whether the region is the primary region or a secondary region. */
1705
+ isPrimary?: boolean;
1706
+ }
1707
+
1708
+ /** A rule governing the accessibility of a managed HSM pool from a specific IP address or IP range. */
1311
1709
  export declare interface MhsmipRule {
1312
1710
  /** An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple IP address) or '124.56.78.0/24' (all addresses that start with 124.56.78). */
1313
1711
  value: string;
@@ -1397,7 +1795,7 @@ export declare interface MhsmPrivateEndpointConnections {
1397
1795
  * managed hsm pool.
1398
1796
  * @param options The options parameters.
1399
1797
  */
1400
- beginDelete(resourceGroupName: string, name: string, privateEndpointConnectionName: string, options?: MhsmPrivateEndpointConnectionsDeleteOptionalParams): Promise<PollerLike<PollOperationState<MhsmPrivateEndpointConnectionsDeleteResponse>, MhsmPrivateEndpointConnectionsDeleteResponse>>;
1798
+ beginDelete(resourceGroupName: string, name: string, privateEndpointConnectionName: string, options?: MhsmPrivateEndpointConnectionsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<MhsmPrivateEndpointConnectionsDeleteResponse>, MhsmPrivateEndpointConnectionsDeleteResponse>>;
1401
1799
  /**
1402
1800
  * Deletes the specified private endpoint connection associated with the managed hsm pool.
1403
1801
  * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
@@ -1411,8 +1809,6 @@ export declare interface MhsmPrivateEndpointConnections {
1411
1809
 
1412
1810
  /** Defines headers for MhsmPrivateEndpointConnections_delete operation. */
1413
1811
  export declare interface MhsmPrivateEndpointConnectionsDeleteHeaders {
1414
- /** The recommended number of seconds to wait before calling the URI specified in the location header. */
1415
- retryAfter?: number;
1416
1812
  /** The URI to poll for completion status. */
1417
1813
  location?: string;
1418
1814
  }
@@ -1522,6 +1918,39 @@ export declare interface MhsmPrivateLinkServiceConnectionState {
1522
1918
  actionsRequired?: ActionsRequired;
1523
1919
  }
1524
1920
 
1921
+ /** Interface representing a MhsmRegions. */
1922
+ export declare interface MhsmRegions {
1923
+ /**
1924
+ * The List operation gets information about the regions associated with the managed HSM Pool.
1925
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
1926
+ * @param name Name of the managed HSM Pool
1927
+ * @param options The options parameters.
1928
+ */
1929
+ listByResource(resourceGroupName: string, name: string, options?: MhsmRegionsListByResourceOptionalParams): PagedAsyncIterableIterator<MhsmGeoReplicatedRegion>;
1930
+ }
1931
+
1932
+ /** Optional parameters. */
1933
+ export declare interface MhsmRegionsListByResourceNextOptionalParams extends coreClient.OperationOptions {
1934
+ }
1935
+
1936
+ /** Contains response data for the listByResourceNext operation. */
1937
+ export declare type MhsmRegionsListByResourceNextResponse = MhsmRegionsListResult;
1938
+
1939
+ /** Optional parameters. */
1940
+ export declare interface MhsmRegionsListByResourceOptionalParams extends coreClient.OperationOptions {
1941
+ }
1942
+
1943
+ /** Contains response data for the listByResource operation. */
1944
+ export declare type MhsmRegionsListByResourceResponse = MhsmRegionsListResult;
1945
+
1946
+ /** List of regions associated with a managed HSM Pools */
1947
+ export declare interface MhsmRegionsListResult {
1948
+ /** The region associated with a managed HSM Pools. */
1949
+ value?: MhsmGeoReplicatedRegion[];
1950
+ /** The URL to get the next set of managed HSM Pools. */
1951
+ nextLink?: string;
1952
+ }
1953
+
1525
1954
  /** A rule governing the accessibility of a managed hsm pool from a specific virtual network. */
1526
1955
  export declare interface MhsmVirtualNetworkRule {
1527
1956
  /** Full resource id of a vnet subnet, such as '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'. */
@@ -1724,7 +2153,7 @@ export declare interface PrivateEndpointConnections {
1724
2153
  * vault.
1725
2154
  * @param options The options parameters.
1726
2155
  */
1727
- beginDelete(resourceGroupName: string, vaultName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<PollerLike<PollOperationState<PrivateEndpointConnectionsDeleteResponse>, PrivateEndpointConnectionsDeleteResponse>>;
2156
+ beginDelete(resourceGroupName: string, vaultName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<PrivateEndpointConnectionsDeleteResponse>, PrivateEndpointConnectionsDeleteResponse>>;
1728
2157
  /**
1729
2158
  * Deletes the specified private endpoint connection associated with the key vault.
1730
2159
  * @param resourceGroupName Name of the resource group that contains the key vault.
@@ -1869,6 +2298,29 @@ export declare interface PrivateLinkServiceConnectionState {
1869
2298
  */
1870
2299
  export declare type ProvisioningState = string;
1871
2300
 
2301
+ /** Common fields that are returned in the response for all Azure Resource Manager resources */
2302
+ export declare interface ProxyResourceWithoutSystemData {
2303
+ /**
2304
+ * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
2305
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2306
+ */
2307
+ readonly id?: string;
2308
+ /**
2309
+ * The name of the resource
2310
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2311
+ */
2312
+ readonly name?: string;
2313
+ /**
2314
+ * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
2315
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2316
+ */
2317
+ readonly type?: string;
2318
+ /** Resource tags. */
2319
+ tags?: {
2320
+ [propertyName: string]: string;
2321
+ };
2322
+ }
2323
+
1872
2324
  /**
1873
2325
  * Defines values for PublicNetworkAccess. \
1874
2326
  * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess,
@@ -2030,7 +2482,9 @@ export declare interface Secrets {
2030
2482
  * with vault secrets.
2031
2483
  * @param resourceGroupName The name of the Resource Group to which the vault belongs.
2032
2484
  * @param vaultName Name of the vault
2033
- * @param secretName Name of the secret
2485
+ * @param secretName Name of the secret. The value you provide may be copied globally for the purpose
2486
+ * of running the service. The value provided should not include personally identifiable or sensitive
2487
+ * information.
2034
2488
  * @param parameters Parameters to create or update the secret
2035
2489
  * @param options The options parameters.
2036
2490
  */
@@ -2072,8 +2526,6 @@ export declare type SecretsGetResponse = Secret;
2072
2526
 
2073
2527
  /** Optional parameters. */
2074
2528
  export declare interface SecretsListNextOptionalParams extends coreClient.OperationOptions {
2075
- /** Maximum number of results to return. */
2076
- top?: number;
2077
2529
  }
2078
2530
 
2079
2531
  /** Contains response data for the listNext operation. */
@@ -2287,7 +2739,7 @@ export declare interface VaultPatchProperties {
2287
2739
  enabledForTemplateDeployment?: boolean;
2288
2740
  /** Property to specify whether the 'soft delete' functionality is enabled for this key vault. Once set to true, it cannot be reverted to false. */
2289
2741
  enableSoftDelete?: boolean;
2290
- /** Property that controls how data actions are authorized. When true, the key vault will use Role Based Access Control (RBAC) for authorization of data actions, and the access policies specified in vault properties will be ignored (warning: this is a preview feature). When false, the key vault will use the access policies specified in vault properties, and any policy stored on Azure Resource Manager will be ignored. If null or not specified, the value of this property will not change. */
2742
+ /** Property that controls how data actions are authorized. When true, the key vault will use Role Based Access Control (RBAC) for authorization of data actions, and the access policies specified in vault properties will be ignored. When false, the key vault will use the access policies specified in vault properties, and any policy stored on Azure Resource Manager will be ignored. If null or not specified, the value of this property will not change. */
2291
2743
  enableRbacAuthorization?: boolean;
2292
2744
  /** softDelete data retention days. It accepts >=7 and <=90. */
2293
2745
  softDeleteRetentionInDays?: number;
@@ -2326,7 +2778,7 @@ export declare interface VaultProperties {
2326
2778
  enableSoftDelete?: boolean;
2327
2779
  /** softDelete data retention days. It accepts >=7 and <=90. */
2328
2780
  softDeleteRetentionInDays?: number;
2329
- /** Property that controls how data actions are authorized. When true, the key vault will use Role Based Access Control (RBAC) for authorization of data actions, and the access policies specified in vault properties will be ignored (warning: this is a preview feature). When false, the key vault will use the access policies specified in vault properties, and any policy stored on Azure Resource Manager will be ignored. If null or not specified, the vault is created with the default value of false. Note that management actions are always authorized with RBAC. */
2781
+ /** Property that controls how data actions are authorized. When true, the key vault will use Role Based Access Control (RBAC) for authorization of data actions, and the access policies specified in vault properties will be ignored. When false, the key vault will use the access policies specified in vault properties, and any policy stored on Azure Resource Manager will be ignored. If null or not specified, the vault is created with the default value of false. Note that management actions are always authorized with RBAC. */
2330
2782
  enableRbacAuthorization?: boolean;
2331
2783
  /** The vault's create mode to indicate whether the vault need to be recovered or not. */
2332
2784
  createMode?: CreateMode;
@@ -2386,7 +2838,7 @@ export declare interface Vaults {
2386
2838
  * @param parameters Parameters to create or update the vault
2387
2839
  * @param options The options parameters.
2388
2840
  */
2389
- beginCreateOrUpdate(resourceGroupName: string, vaultName: string, parameters: VaultCreateOrUpdateParameters, options?: VaultsCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<VaultsCreateOrUpdateResponse>, VaultsCreateOrUpdateResponse>>;
2841
+ beginCreateOrUpdate(resourceGroupName: string, vaultName: string, parameters: VaultCreateOrUpdateParameters, options?: VaultsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<VaultsCreateOrUpdateResponse>, VaultsCreateOrUpdateResponse>>;
2390
2842
  /**
2391
2843
  * Create or update a key vault in the specified subscription.
2392
2844
  * @param resourceGroupName The name of the Resource Group to which the server belongs.
@@ -2439,7 +2891,7 @@ export declare interface Vaults {
2439
2891
  * @param location The location of the soft-deleted vault.
2440
2892
  * @param options The options parameters.
2441
2893
  */
2442
- beginPurgeDeleted(vaultName: string, location: string, options?: VaultsPurgeDeletedOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
2894
+ beginPurgeDeleted(vaultName: string, location: string, options?: VaultsPurgeDeletedOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
2443
2895
  /**
2444
2896
  * Permanently deletes the specified vault. aka Purges the deleted Azure key vault.
2445
2897
  * @param vaultName The name of the soft-deleted vault.
@@ -2493,8 +2945,6 @@ export declare type VaultsGetResponse = Vault;
2493
2945
 
2494
2946
  /** Optional parameters. */
2495
2947
  export declare interface VaultsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
2496
- /** Maximum number of results to return. */
2497
- top?: number;
2498
2948
  }
2499
2949
 
2500
2950
  /** Contains response data for the listByResourceGroupNext operation. */
@@ -2511,8 +2961,6 @@ export declare type VaultsListByResourceGroupResponse = VaultListResult;
2511
2961
 
2512
2962
  /** Optional parameters. */
2513
2963
  export declare interface VaultsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
2514
- /** Maximum number of results to return. */
2515
- top?: number;
2516
2964
  }
2517
2965
 
2518
2966
  /** Contains response data for the listBySubscriptionNext operation. */
@@ -2543,8 +2991,6 @@ export declare type VaultsListDeletedResponse = DeletedVaultListResult;
2543
2991
 
2544
2992
  /** Optional parameters. */
2545
2993
  export declare interface VaultsListNextOptionalParams extends coreClient.OperationOptions {
2546
- /** Maximum number of results to return. */
2547
- top?: number;
2548
2994
  }
2549
2995
 
2550
2996
  /** Contains response data for the listNext operation. */