@azure/arm-keyvault 2.0.0-beta.1 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/CHANGELOG.md +6 -11
  2. package/LICENSE +1 -1
  3. package/README.md +7 -5
  4. package/dist/index.js +103 -258
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/{index.d.ts → src/index.d.ts} +0 -1
  9. package/dist-esm/src/index.d.ts.map +1 -0
  10. package/dist-esm/{index.js → src/index.js} +0 -1
  11. package/dist-esm/src/index.js.map +1 -0
  12. package/dist-esm/{keyVaultManagementClient.d.ts → src/keyVaultManagementClient.d.ts} +5 -2
  13. package/dist-esm/src/keyVaultManagementClient.d.ts.map +1 -0
  14. package/dist-esm/{keyVaultManagementClientContext.js → src/keyVaultManagementClient.js} +15 -5
  15. package/dist-esm/src/keyVaultManagementClient.js.map +1 -0
  16. package/dist-esm/{lroImpl.d.ts → src/lroImpl.d.ts} +0 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/{lroImpl.js → src/lroImpl.js} +0 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/{models → src/models}/index.d.ts +56 -100
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/{models → src/models}/index.js +5 -7
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/{models → src/models}/mappers.d.ts +2 -7
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/dist-esm/{models → src/models}/mappers.js +83 -201
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/{models → src/models}/parameters.d.ts +0 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/dist-esm/{models → src/models}/parameters.js +1 -1
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/{operations → src/operations}/index.d.ts +0 -0
  33. package/dist-esm/src/operations/index.d.ts.map +1 -0
  34. package/dist-esm/{operations → src/operations}/index.js +0 -0
  35. package/dist-esm/src/operations/index.js.map +1 -0
  36. package/dist-esm/{operations → src/operations}/keys.d.ts +3 -4
  37. package/dist-esm/src/operations/keys.d.ts.map +1 -0
  38. package/dist-esm/{operations → src/operations}/keys.js +1 -2
  39. package/dist-esm/src/operations/keys.js.map +1 -0
  40. package/dist-esm/{operations → src/operations}/managedHsms.d.ts +3 -4
  41. package/dist-esm/src/operations/managedHsms.d.ts.map +1 -0
  42. package/dist-esm/{operations → src/operations}/managedHsms.js +1 -2
  43. package/dist-esm/src/operations/managedHsms.js.map +1 -0
  44. package/dist-esm/{operations → src/operations}/mhsmPrivateEndpointConnections.d.ts +3 -4
  45. package/dist-esm/src/operations/mhsmPrivateEndpointConnections.d.ts.map +1 -0
  46. package/dist-esm/{operations → src/operations}/mhsmPrivateEndpointConnections.js +1 -2
  47. package/dist-esm/src/operations/mhsmPrivateEndpointConnections.js.map +1 -0
  48. package/dist-esm/{operations → src/operations}/mhsmPrivateLinkResources.d.ts +3 -3
  49. package/dist-esm/src/operations/mhsmPrivateLinkResources.d.ts.map +1 -0
  50. package/dist-esm/{operations → src/operations}/mhsmPrivateLinkResources.js +1 -1
  51. package/dist-esm/src/operations/mhsmPrivateLinkResources.js.map +1 -0
  52. package/dist-esm/{operations → src/operations}/operations.d.ts +3 -4
  53. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  54. package/dist-esm/{operations → src/operations}/operations.js +1 -2
  55. package/dist-esm/src/operations/operations.js.map +1 -0
  56. package/dist-esm/{operations → src/operations}/privateEndpointConnections.d.ts +3 -4
  57. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  58. package/dist-esm/{operations → src/operations}/privateEndpointConnections.js +1 -2
  59. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  60. package/dist-esm/{operations → src/operations}/privateLinkResources.d.ts +3 -3
  61. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  62. package/dist-esm/{operations → src/operations}/privateLinkResources.js +1 -1
  63. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  64. package/dist-esm/{operations → src/operations}/secrets.d.ts +3 -4
  65. package/dist-esm/src/operations/secrets.d.ts.map +1 -0
  66. package/dist-esm/{operations → src/operations}/secrets.js +1 -2
  67. package/dist-esm/src/operations/secrets.js.map +1 -0
  68. package/dist-esm/{operations → src/operations}/vaults.d.ts +3 -4
  69. package/dist-esm/src/operations/vaults.d.ts.map +1 -0
  70. package/dist-esm/{operations → src/operations}/vaults.js +1 -10
  71. package/dist-esm/src/operations/vaults.js.map +1 -0
  72. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/index.d.ts +0 -0
  73. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  74. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/index.js +0 -0
  75. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  76. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/keys.d.ts +0 -1
  77. package/dist-esm/src/operationsInterfaces/keys.d.ts.map +1 -0
  78. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/keys.js +1 -1
  79. package/dist-esm/src/operationsInterfaces/keys.js.map +1 -0
  80. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/managedHsms.d.ts +0 -1
  81. package/dist-esm/src/operationsInterfaces/managedHsms.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/managedHsms.js +9 -0
  83. package/dist-esm/src/operationsInterfaces/managedHsms.js.map +1 -0
  84. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/mhsmPrivateEndpointConnections.d.ts +0 -1
  85. package/dist-esm/src/operationsInterfaces/mhsmPrivateEndpointConnections.d.ts.map +1 -0
  86. package/dist-esm/{operationsInterfaces/operations.js → src/operationsInterfaces/mhsmPrivateEndpointConnections.js} +2 -2
  87. package/dist-esm/src/operationsInterfaces/mhsmPrivateEndpointConnections.js.map +1 -0
  88. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/mhsmPrivateLinkResources.d.ts +0 -0
  89. package/dist-esm/src/operationsInterfaces/mhsmPrivateLinkResources.d.ts.map +1 -0
  90. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/mhsmPrivateLinkResources.js +0 -0
  91. package/dist-esm/src/operationsInterfaces/mhsmPrivateLinkResources.js.map +1 -0
  92. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/operations.d.ts +0 -1
  93. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  94. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  95. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  96. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/privateEndpointConnections.d.ts +0 -1
  97. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  98. package/dist-esm/{operationsInterfaces/secrets.js → src/operationsInterfaces/privateEndpointConnections.js} +2 -2
  99. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  100. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/privateLinkResources.d.ts +0 -0
  101. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  102. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/privateLinkResources.js +0 -0
  103. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  104. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/secrets.d.ts +0 -1
  105. package/dist-esm/src/operationsInterfaces/secrets.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/secrets.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/secrets.js.map +1 -0
  108. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/vaults.d.ts +0 -1
  109. package/dist-esm/src/operationsInterfaces/vaults.d.ts.map +1 -0
  110. package/dist-esm/{operationsInterfaces → src/operationsInterfaces}/vaults.js +1 -1
  111. package/dist-esm/src/operationsInterfaces/vaults.js.map +1 -0
  112. package/dist-esm/test/keyvault_examples.d.ts +4 -0
  113. package/dist-esm/test/keyvault_examples.d.ts.map +1 -0
  114. package/dist-esm/test/keyvault_examples.js +247 -0
  115. package/dist-esm/test/keyvault_examples.js.map +1 -0
  116. package/package.json +20 -27
  117. package/review/arm-keyvault.api.md +8 -51
  118. package/src/index.ts +0 -1
  119. package/src/keyVaultManagementClient.ts +46 -3
  120. package/src/models/index.ts +58 -107
  121. package/src/models/mappers.ts +85 -209
  122. package/src/models/parameters.ts +1 -1
  123. package/src/operations/keys.ts +4 -5
  124. package/src/operations/managedHsms.ts +4 -5
  125. package/src/operations/mhsmPrivateEndpointConnections.ts +4 -5
  126. package/src/operations/mhsmPrivateLinkResources.ts +4 -4
  127. package/src/operations/operations.ts +4 -5
  128. package/src/operations/privateEndpointConnections.ts +4 -5
  129. package/src/operations/privateLinkResources.ts +4 -4
  130. package/src/operations/secrets.ts +4 -5
  131. package/src/operations/vaults.ts +4 -13
  132. package/src/operationsInterfaces/keys.ts +0 -1
  133. package/src/operationsInterfaces/managedHsms.ts +0 -1
  134. package/src/operationsInterfaces/mhsmPrivateEndpointConnections.ts +0 -1
  135. package/src/operationsInterfaces/operations.ts +0 -1
  136. package/src/operationsInterfaces/privateEndpointConnections.ts +0 -1
  137. package/src/operationsInterfaces/secrets.ts +0 -1
  138. package/src/operationsInterfaces/vaults.ts +0 -1
  139. package/tsconfig.json +1 -1
  140. package/types/arm-keyvault.d.ts +10 -71
  141. package/types/tsdoc-metadata.json +1 -1
  142. package/dist-esm/index.d.ts.map +0 -1
  143. package/dist-esm/index.js.map +0 -1
  144. package/dist-esm/keyVaultManagementClient.d.ts.map +0 -1
  145. package/dist-esm/keyVaultManagementClient.js +0 -31
  146. package/dist-esm/keyVaultManagementClient.js.map +0 -1
  147. package/dist-esm/keyVaultManagementClientContext.d.ts +0 -17
  148. package/dist-esm/keyVaultManagementClientContext.d.ts.map +0 -1
  149. package/dist-esm/keyVaultManagementClientContext.js.map +0 -1
  150. package/dist-esm/lroImpl.d.ts.map +0 -1
  151. package/dist-esm/lroImpl.js.map +0 -1
  152. package/dist-esm/models/index.d.ts.map +0 -1
  153. package/dist-esm/models/index.js.map +0 -1
  154. package/dist-esm/models/mappers.d.ts.map +0 -1
  155. package/dist-esm/models/mappers.js.map +0 -1
  156. package/dist-esm/models/parameters.d.ts.map +0 -1
  157. package/dist-esm/models/parameters.js.map +0 -1
  158. package/dist-esm/operations/index.d.ts.map +0 -1
  159. package/dist-esm/operations/index.js.map +0 -1
  160. package/dist-esm/operations/keys.d.ts.map +0 -1
  161. package/dist-esm/operations/keys.js.map +0 -1
  162. package/dist-esm/operations/managedHsms.d.ts.map +0 -1
  163. package/dist-esm/operations/managedHsms.js.map +0 -1
  164. package/dist-esm/operations/mhsmPrivateEndpointConnections.d.ts.map +0 -1
  165. package/dist-esm/operations/mhsmPrivateEndpointConnections.js.map +0 -1
  166. package/dist-esm/operations/mhsmPrivateLinkResources.d.ts.map +0 -1
  167. package/dist-esm/operations/mhsmPrivateLinkResources.js.map +0 -1
  168. package/dist-esm/operations/operations.d.ts.map +0 -1
  169. package/dist-esm/operations/operations.js.map +0 -1
  170. package/dist-esm/operations/privateEndpointConnections.d.ts.map +0 -1
  171. package/dist-esm/operations/privateEndpointConnections.js.map +0 -1
  172. package/dist-esm/operations/privateLinkResources.d.ts.map +0 -1
  173. package/dist-esm/operations/privateLinkResources.js.map +0 -1
  174. package/dist-esm/operations/secrets.d.ts.map +0 -1
  175. package/dist-esm/operations/secrets.js.map +0 -1
  176. package/dist-esm/operations/vaults.d.ts.map +0 -1
  177. package/dist-esm/operations/vaults.js.map +0 -1
  178. package/dist-esm/operationsInterfaces/index.d.ts.map +0 -1
  179. package/dist-esm/operationsInterfaces/index.js.map +0 -1
  180. package/dist-esm/operationsInterfaces/keys.d.ts.map +0 -1
  181. package/dist-esm/operationsInterfaces/keys.js.map +0 -1
  182. package/dist-esm/operationsInterfaces/managedHsms.d.ts.map +0 -1
  183. package/dist-esm/operationsInterfaces/managedHsms.js +0 -9
  184. package/dist-esm/operationsInterfaces/managedHsms.js.map +0 -1
  185. package/dist-esm/operationsInterfaces/mhsmPrivateEndpointConnections.d.ts.map +0 -1
  186. package/dist-esm/operationsInterfaces/mhsmPrivateEndpointConnections.js +0 -9
  187. package/dist-esm/operationsInterfaces/mhsmPrivateEndpointConnections.js.map +0 -1
  188. package/dist-esm/operationsInterfaces/mhsmPrivateLinkResources.d.ts.map +0 -1
  189. package/dist-esm/operationsInterfaces/mhsmPrivateLinkResources.js.map +0 -1
  190. package/dist-esm/operationsInterfaces/operations.d.ts.map +0 -1
  191. package/dist-esm/operationsInterfaces/operations.js.map +0 -1
  192. package/dist-esm/operationsInterfaces/privateEndpointConnections.d.ts.map +0 -1
  193. package/dist-esm/operationsInterfaces/privateEndpointConnections.js +0 -9
  194. package/dist-esm/operationsInterfaces/privateEndpointConnections.js.map +0 -1
  195. package/dist-esm/operationsInterfaces/privateLinkResources.d.ts.map +0 -1
  196. package/dist-esm/operationsInterfaces/privateLinkResources.js.map +0 -1
  197. package/dist-esm/operationsInterfaces/secrets.d.ts.map +0 -1
  198. package/dist-esm/operationsInterfaces/secrets.js.map +0 -1
  199. package/dist-esm/operationsInterfaces/vaults.d.ts.map +0 -1
  200. package/dist-esm/operationsInterfaces/vaults.js.map +0 -1
  201. package/src/keyVaultManagementClientContext.ts +0 -71
@@ -37,8 +37,6 @@ export interface KeyProperties {
37
37
  * NOTE: This property will not be serialized. It can only be populated by the server.
38
38
  */
39
39
  readonly keyUriWithVersion?: string;
40
- /** Key rotation policy in response. It will be used for both output and input. Omitted if empty */
41
- rotationPolicy?: RotationPolicy;
42
40
  }
43
41
 
44
42
  /** The object attributes managed by the Azure Key Vault service. */
@@ -64,47 +62,8 @@ export interface KeyAttributes {
64
62
  * NOTE: This property will not be serialized. It can only be populated by the server.
65
63
  */
66
64
  readonly recoveryLevel?: DeletionRecoveryLevel;
67
- }
68
-
69
- export interface RotationPolicy {
70
- /** The attributes of key rotation policy. */
71
- attributes?: KeyRotationPolicyAttributes;
72
- /** The lifetimeActions for key rotation action. */
73
- lifetimeActions?: LifetimeAction[];
74
- }
75
-
76
- export interface KeyRotationPolicyAttributes {
77
- /**
78
- * Creation time in seconds since 1970-01-01T00:00:00Z.
79
- * NOTE: This property will not be serialized. It can only be populated by the server.
80
- */
81
- readonly created?: number;
82
- /**
83
- * Last updated time in seconds since 1970-01-01T00:00:00Z.
84
- * NOTE: This property will not be serialized. It can only be populated by the server.
85
- */
86
- readonly updated?: number;
87
- /** The expiration time for the new key version. It should be in ISO8601 format. Eg: 'P90D', 'P1Y'. */
88
- expiryTime?: string;
89
- }
90
-
91
- export interface LifetimeAction {
92
- /** The trigger of key rotation policy lifetimeAction. */
93
- trigger?: Trigger;
94
- /** The action of key rotation policy lifetimeAction. */
95
- action?: Action;
96
- }
97
-
98
- export interface Trigger {
99
- /** The time duration after key creation to rotate the key. It should be in ISO8601 format. Eg: 'P90D', 'P1Y'. */
100
- timeAfterCreate?: string;
101
- /** The time duration before key expiring to rotate the key. It should be in ISO8601 format. Eg: 'P90D', 'P1Y'. */
102
- timeBeforeExpiry?: string;
103
- }
104
-
105
- export interface Action {
106
- /** The type of action. */
107
- type?: KeyRotationPolicyActionType;
65
+ /** Indicates if the private key can be exported. */
66
+ exportable?: boolean;
108
67
  }
109
68
 
110
69
  /** Key Vault resource */
@@ -193,7 +152,7 @@ export interface VaultProperties {
193
152
  enableSoftDelete?: boolean;
194
153
  /** softDelete data retention days. It accepts >=7 and <=90. */
195
154
  softDeleteRetentionInDays?: number;
196
- /** 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. */
155
+ /** 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. */
197
156
  enableRbacAuthorization?: boolean;
198
157
  /** The vault's create mode to indicate whether the vault need to be recovered or not. */
199
158
  createMode?: CreateMode;
@@ -373,7 +332,7 @@ export interface VaultPatchProperties {
373
332
  enabledForTemplateDeployment?: boolean;
374
333
  /** Property to specify whether the 'soft delete' functionality is enabled for this key vault. Once set to true, it cannot be reverted to false. */
375
334
  enableSoftDelete?: boolean;
376
- /** 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. */
335
+ /** 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. */
377
336
  enableRbacAuthorization?: boolean;
378
337
  /** softDelete data retention days. It accepts >=7 and <=90. */
379
338
  softDeleteRetentionInDays?: number;
@@ -539,44 +498,6 @@ export interface PrivateLinkResourceListResult {
539
498
  value?: PrivateLinkResource[];
540
499
  }
541
500
 
542
- /** Managed HSM resource */
543
- export interface ManagedHsmResource {
544
- /**
545
- * The Azure Resource Manager resource ID for the managed HSM Pool.
546
- * NOTE: This property will not be serialized. It can only be populated by the server.
547
- */
548
- readonly id?: string;
549
- /**
550
- * The name of the managed HSM Pool.
551
- * NOTE: This property will not be serialized. It can only be populated by the server.
552
- */
553
- readonly name?: string;
554
- /**
555
- * The resource type of the managed HSM Pool.
556
- * NOTE: This property will not be serialized. It can only be populated by the server.
557
- */
558
- readonly type?: string;
559
- /** The supported Azure location where the managed HSM Pool should be created. */
560
- location?: string;
561
- /** SKU details */
562
- sku?: ManagedHsmSku;
563
- /** Resource tags */
564
- tags?: { [propertyName: string]: string };
565
- /**
566
- * Metadata pertaining to creation and last modification of the key vault resource.
567
- * NOTE: This property will not be serialized. It can only be populated by the server.
568
- */
569
- readonly systemData?: SystemData;
570
- }
571
-
572
- /** SKU details */
573
- export interface ManagedHsmSku {
574
- /** SKU Family of the managed HSM Pool */
575
- family: ManagedHsmSkuFamily;
576
- /** SKU of the managed HSM Pool */
577
- name: ManagedHsmSkuName;
578
- }
579
-
580
501
  /** Properties of the managed HSM Pool */
581
502
  export interface ManagedHsmProperties {
582
503
  /** The Azure Active Directory tenant ID that should be used for authenticating requests to the managed HSM pool. */
@@ -675,6 +596,44 @@ export interface MhsmPrivateLinkServiceConnectionState {
675
596
  actionsRequired?: ActionsRequired;
676
597
  }
677
598
 
599
+ /** Managed HSM resource */
600
+ export interface ManagedHsmResource {
601
+ /**
602
+ * The Azure Resource Manager resource ID for the managed HSM Pool.
603
+ * NOTE: This property will not be serialized. It can only be populated by the server.
604
+ */
605
+ readonly id?: string;
606
+ /**
607
+ * The name of the managed HSM Pool.
608
+ * NOTE: This property will not be serialized. It can only be populated by the server.
609
+ */
610
+ readonly name?: string;
611
+ /**
612
+ * The resource type of the managed HSM Pool.
613
+ * NOTE: This property will not be serialized. It can only be populated by the server.
614
+ */
615
+ readonly type?: string;
616
+ /** The supported Azure location where the managed HSM Pool should be created. */
617
+ location?: string;
618
+ /** SKU details */
619
+ sku?: ManagedHsmSku;
620
+ /** Resource tags */
621
+ tags?: { [propertyName: string]: string };
622
+ /**
623
+ * Metadata pertaining to creation and last modification of the key vault resource.
624
+ * NOTE: This property will not be serialized. It can only be populated by the server.
625
+ */
626
+ readonly systemData?: SystemData;
627
+ }
628
+
629
+ /** SKU details */
630
+ export interface ManagedHsmSku {
631
+ /** SKU Family of the managed HSM Pool */
632
+ family: ManagedHsmSkuFamily;
633
+ /** SKU of the managed HSM Pool */
634
+ name: ManagedHsmSkuName;
635
+ }
636
+
678
637
  /** The error exception. */
679
638
  export interface ManagedHsmError {
680
639
  /**
@@ -970,8 +929,6 @@ export type Key = Resource & {
970
929
  * NOTE: This property will not be serialized. It can only be populated by the server.
971
930
  */
972
931
  readonly keyUriWithVersion?: string;
973
- /** Key rotation policy in response. It will be used for both output and input. Omitted if empty */
974
- rotationPolicy?: RotationPolicy;
975
932
  };
976
933
 
977
934
  /** Private endpoint connection resource. */
@@ -1195,9 +1152,7 @@ export enum KnownKeyPermissions {
1195
1152
  Backup = "backup",
1196
1153
  Restore = "restore",
1197
1154
  Recover = "recover",
1198
- Purge = "purge",
1199
- Release = "release",
1200
- Rotate = "rotate"
1155
+ Purge = "purge"
1201
1156
  }
1202
1157
 
1203
1158
  /**
@@ -1221,9 +1176,7 @@ export enum KnownKeyPermissions {
1221
1176
  * **backup** \
1222
1177
  * **restore** \
1223
1178
  * **recover** \
1224
- * **purge** \
1225
- * **release** \
1226
- * **rotate**
1179
+ * **purge**
1227
1180
  */
1228
1181
  export type KeyPermissions = string;
1229
1182
 
@@ -1471,20 +1424,6 @@ export enum KnownIdentityType {
1471
1424
  */
1472
1425
  export type IdentityType = string;
1473
1426
 
1474
- /** Known values of {@link ManagedHsmSkuFamily} that the service accepts. */
1475
- export enum KnownManagedHsmSkuFamily {
1476
- B = "B"
1477
- }
1478
-
1479
- /**
1480
- * Defines values for ManagedHsmSkuFamily. \
1481
- * {@link KnownManagedHsmSkuFamily} can be used interchangeably with ManagedHsmSkuFamily,
1482
- * this enum contains the known values that the service supports.
1483
- * ### Known values supported by the service
1484
- * **B**
1485
- */
1486
- export type ManagedHsmSkuFamily = string;
1487
-
1488
1427
  /** Known values of {@link ProvisioningState} that the service accepts. */
1489
1428
  export enum KnownProvisioningState {
1490
1429
  /** The managed HSM Pool has been full provisioned. */
@@ -1536,8 +1475,20 @@ export enum KnownPublicNetworkAccess {
1536
1475
  * **Disabled**
1537
1476
  */
1538
1477
  export type PublicNetworkAccess = string;
1539
- /** Defines values for KeyRotationPolicyActionType. */
1540
- export type KeyRotationPolicyActionType = "rotate" | "notify";
1478
+
1479
+ /** Known values of {@link ManagedHsmSkuFamily} that the service accepts. */
1480
+ export enum KnownManagedHsmSkuFamily {
1481
+ B = "B"
1482
+ }
1483
+
1484
+ /**
1485
+ * Defines values for ManagedHsmSkuFamily. \
1486
+ * {@link KnownManagedHsmSkuFamily} can be used interchangeably with ManagedHsmSkuFamily,
1487
+ * this enum contains the known values that the service supports.
1488
+ * ### Known values supported by the service
1489
+ * **B**
1490
+ */
1491
+ export type ManagedHsmSkuFamily = string;
1541
1492
  /** Defines values for SkuName. */
1542
1493
  export type SkuName = "standard" | "premium";
1543
1494
  /** Defines values for CreateMode. */
@@ -85,13 +85,6 @@ export const KeyProperties: coreClient.CompositeMapper = {
85
85
  type: {
86
86
  name: "String"
87
87
  }
88
- },
89
- rotationPolicy: {
90
- serializedName: "rotationPolicy",
91
- type: {
92
- name: "Composite",
93
- className: "RotationPolicy"
94
- }
95
88
  }
96
89
  }
97
90
  }
@@ -140,122 +133,11 @@ export const KeyAttributes: coreClient.CompositeMapper = {
140
133
  type: {
141
134
  name: "String"
142
135
  }
143
- }
144
- }
145
- }
146
- };
147
-
148
- export const RotationPolicy: coreClient.CompositeMapper = {
149
- type: {
150
- name: "Composite",
151
- className: "RotationPolicy",
152
- modelProperties: {
153
- attributes: {
154
- serializedName: "attributes",
155
- type: {
156
- name: "Composite",
157
- className: "KeyRotationPolicyAttributes"
158
- }
159
136
  },
160
- lifetimeActions: {
161
- serializedName: "lifetimeActions",
137
+ exportable: {
138
+ serializedName: "exportable",
162
139
  type: {
163
- name: "Sequence",
164
- element: {
165
- type: {
166
- name: "Composite",
167
- className: "LifetimeAction"
168
- }
169
- }
170
- }
171
- }
172
- }
173
- }
174
- };
175
-
176
- export const KeyRotationPolicyAttributes: coreClient.CompositeMapper = {
177
- type: {
178
- name: "Composite",
179
- className: "KeyRotationPolicyAttributes",
180
- modelProperties: {
181
- created: {
182
- serializedName: "created",
183
- readOnly: true,
184
- type: {
185
- name: "Number"
186
- }
187
- },
188
- updated: {
189
- serializedName: "updated",
190
- readOnly: true,
191
- type: {
192
- name: "Number"
193
- }
194
- },
195
- expiryTime: {
196
- serializedName: "expiryTime",
197
- type: {
198
- name: "String"
199
- }
200
- }
201
- }
202
- }
203
- };
204
-
205
- export const LifetimeAction: coreClient.CompositeMapper = {
206
- type: {
207
- name: "Composite",
208
- className: "LifetimeAction",
209
- modelProperties: {
210
- trigger: {
211
- serializedName: "trigger",
212
- type: {
213
- name: "Composite",
214
- className: "Trigger"
215
- }
216
- },
217
- action: {
218
- serializedName: "action",
219
- type: {
220
- name: "Composite",
221
- className: "Action"
222
- }
223
- }
224
- }
225
- }
226
- };
227
-
228
- export const Trigger: coreClient.CompositeMapper = {
229
- type: {
230
- name: "Composite",
231
- className: "Trigger",
232
- modelProperties: {
233
- timeAfterCreate: {
234
- serializedName: "timeAfterCreate",
235
- type: {
236
- name: "String"
237
- }
238
- },
239
- timeBeforeExpiry: {
240
- serializedName: "timeBeforeExpiry",
241
- type: {
242
- name: "String"
243
- }
244
- }
245
- }
246
- }
247
- };
248
-
249
- export const Action: coreClient.CompositeMapper = {
250
- type: {
251
- name: "Composite",
252
- className: "Action",
253
- modelProperties: {
254
- type: {
255
- serializedName: "type",
256
- type: {
257
- name: "Enum",
258
- allowedValues: ["rotate", "notify"]
140
+ name: "Boolean"
259
141
  }
260
142
  }
261
143
  }
@@ -478,6 +360,7 @@ export const VaultProperties: coreClient.CompositeMapper = {
478
360
  }
479
361
  },
480
362
  enableRbacAuthorization: {
363
+ defaultValue: false,
481
364
  serializedName: "enableRbacAuthorization",
482
365
  type: {
483
366
  name: "Boolean"
@@ -1373,87 +1256,6 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = {
1373
1256
  }
1374
1257
  };
1375
1258
 
1376
- export const ManagedHsmResource: coreClient.CompositeMapper = {
1377
- type: {
1378
- name: "Composite",
1379
- className: "ManagedHsmResource",
1380
- modelProperties: {
1381
- id: {
1382
- serializedName: "id",
1383
- readOnly: true,
1384
- type: {
1385
- name: "String"
1386
- }
1387
- },
1388
- name: {
1389
- serializedName: "name",
1390
- readOnly: true,
1391
- type: {
1392
- name: "String"
1393
- }
1394
- },
1395
- type: {
1396
- serializedName: "type",
1397
- readOnly: true,
1398
- type: {
1399
- name: "String"
1400
- }
1401
- },
1402
- location: {
1403
- serializedName: "location",
1404
- type: {
1405
- name: "String"
1406
- }
1407
- },
1408
- sku: {
1409
- serializedName: "sku",
1410
- type: {
1411
- name: "Composite",
1412
- className: "ManagedHsmSku"
1413
- }
1414
- },
1415
- tags: {
1416
- serializedName: "tags",
1417
- type: {
1418
- name: "Dictionary",
1419
- value: { type: { name: "String" } }
1420
- }
1421
- },
1422
- systemData: {
1423
- serializedName: "systemData",
1424
- type: {
1425
- name: "Composite",
1426
- className: "SystemData"
1427
- }
1428
- }
1429
- }
1430
- }
1431
- };
1432
-
1433
- export const ManagedHsmSku: coreClient.CompositeMapper = {
1434
- type: {
1435
- name: "Composite",
1436
- className: "ManagedHsmSku",
1437
- modelProperties: {
1438
- family: {
1439
- serializedName: "family",
1440
- required: true,
1441
- type: {
1442
- name: "String"
1443
- }
1444
- },
1445
- name: {
1446
- serializedName: "name",
1447
- required: true,
1448
- type: {
1449
- name: "Enum",
1450
- allowedValues: ["Standard_B1", "Custom_B32"]
1451
- }
1452
- }
1453
- }
1454
- }
1455
- };
1456
-
1457
1259
  export const ManagedHsmProperties: coreClient.CompositeMapper = {
1458
1260
  type: {
1459
1261
  name: "Composite",
@@ -1711,6 +1513,87 @@ export const MhsmPrivateLinkServiceConnectionState: coreClient.CompositeMapper =
1711
1513
  }
1712
1514
  };
1713
1515
 
1516
+ export const ManagedHsmResource: coreClient.CompositeMapper = {
1517
+ type: {
1518
+ name: "Composite",
1519
+ className: "ManagedHsmResource",
1520
+ modelProperties: {
1521
+ id: {
1522
+ serializedName: "id",
1523
+ readOnly: true,
1524
+ type: {
1525
+ name: "String"
1526
+ }
1527
+ },
1528
+ name: {
1529
+ serializedName: "name",
1530
+ readOnly: true,
1531
+ type: {
1532
+ name: "String"
1533
+ }
1534
+ },
1535
+ type: {
1536
+ serializedName: "type",
1537
+ readOnly: true,
1538
+ type: {
1539
+ name: "String"
1540
+ }
1541
+ },
1542
+ location: {
1543
+ serializedName: "location",
1544
+ type: {
1545
+ name: "String"
1546
+ }
1547
+ },
1548
+ sku: {
1549
+ serializedName: "sku",
1550
+ type: {
1551
+ name: "Composite",
1552
+ className: "ManagedHsmSku"
1553
+ }
1554
+ },
1555
+ tags: {
1556
+ serializedName: "tags",
1557
+ type: {
1558
+ name: "Dictionary",
1559
+ value: { type: { name: "String" } }
1560
+ }
1561
+ },
1562
+ systemData: {
1563
+ serializedName: "systemData",
1564
+ type: {
1565
+ name: "Composite",
1566
+ className: "SystemData"
1567
+ }
1568
+ }
1569
+ }
1570
+ }
1571
+ };
1572
+
1573
+ export const ManagedHsmSku: coreClient.CompositeMapper = {
1574
+ type: {
1575
+ name: "Composite",
1576
+ className: "ManagedHsmSku",
1577
+ modelProperties: {
1578
+ family: {
1579
+ serializedName: "family",
1580
+ required: true,
1581
+ type: {
1582
+ name: "String"
1583
+ }
1584
+ },
1585
+ name: {
1586
+ serializedName: "name",
1587
+ required: true,
1588
+ type: {
1589
+ name: "Enum",
1590
+ allowedValues: ["Standard_B1", "Custom_B32"]
1591
+ }
1592
+ }
1593
+ }
1594
+ }
1595
+ };
1596
+
1714
1597
  export const ManagedHsmError: coreClient.CompositeMapper = {
1715
1598
  type: {
1716
1599
  name: "Composite",
@@ -2466,13 +2349,6 @@ export const Key: coreClient.CompositeMapper = {
2466
2349
  type: {
2467
2350
  name: "String"
2468
2351
  }
2469
- },
2470
- rotationPolicy: {
2471
- serializedName: "properties.rotationPolicy",
2472
- type: {
2473
- name: "Composite",
2474
- className: "RotationPolicy"
2475
- }
2476
2352
  }
2477
2353
  }
2478
2354
  }
@@ -118,7 +118,7 @@ export const keyName: OperationURLParameter = {
118
118
  export const apiVersion: OperationQueryParameter = {
119
119
  parameterPath: "apiVersion",
120
120
  mapper: {
121
- defaultValue: "2021-06-01-preview",
121
+ defaultValue: "2021-10-01",
122
122
  isConstant: true,
123
123
  serializedName: "api-version",
124
124
  type: {
@@ -6,13 +6,12 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import "@azure/core-paging";
10
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
10
  import { Keys } from "../operationsInterfaces";
12
11
  import * as coreClient from "@azure/core-client";
13
12
  import * as Mappers from "../models/mappers";
14
13
  import * as Parameters from "../models/parameters";
15
- import { KeyVaultManagementClientContext } from "../keyVaultManagementClientContext";
14
+ import { KeyVaultManagementClient } from "../keyVaultManagementClient";
16
15
  import {
17
16
  Key,
18
17
  KeysListNextOptionalParams,
@@ -33,15 +32,15 @@ import {
33
32
  } from "../models";
34
33
 
35
34
  /// <reference lib="esnext.asynciterable" />
36
- /** Class representing a Keys. */
35
+ /** Class containing Keys operations. */
37
36
  export class KeysImpl implements Keys {
38
- private readonly client: KeyVaultManagementClientContext;
37
+ private readonly client: KeyVaultManagementClient;
39
38
 
40
39
  /**
41
40
  * Initialize a new instance of the class Keys class.
42
41
  * @param client Reference to the service client
43
42
  */
44
- constructor(client: KeyVaultManagementClientContext) {
43
+ constructor(client: KeyVaultManagementClient) {
45
44
  this.client = client;
46
45
  }
47
46
 
@@ -6,13 +6,12 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import "@azure/core-paging";
10
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
10
  import { ManagedHsms } from "../operationsInterfaces";
12
11
  import * as coreClient from "@azure/core-client";
13
12
  import * as Mappers from "../models/mappers";
14
13
  import * as Parameters from "../models/parameters";
15
- import { KeyVaultManagementClientContext } from "../keyVaultManagementClientContext";
14
+ import { KeyVaultManagementClient } from "../keyVaultManagementClient";
16
15
  import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
17
16
  import { LroImpl } from "../lroImpl";
18
17
  import {
@@ -43,15 +42,15 @@ import {
43
42
  } from "../models";
44
43
 
45
44
  /// <reference lib="esnext.asynciterable" />
46
- /** Class representing a ManagedHsms. */
45
+ /** Class containing ManagedHsms operations. */
47
46
  export class ManagedHsmsImpl implements ManagedHsms {
48
- private readonly client: KeyVaultManagementClientContext;
47
+ private readonly client: KeyVaultManagementClient;
49
48
 
50
49
  /**
51
50
  * Initialize a new instance of the class ManagedHsms class.
52
51
  * @param client Reference to the service client
53
52
  */
54
- constructor(client: KeyVaultManagementClientContext) {
53
+ constructor(client: KeyVaultManagementClient) {
55
54
  this.client = client;
56
55
  }
57
56
 
@@ -6,13 +6,12 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import "@azure/core-paging";
10
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
10
  import { MhsmPrivateEndpointConnections } from "../operationsInterfaces";
12
11
  import * as coreClient from "@azure/core-client";
13
12
  import * as Mappers from "../models/mappers";
14
13
  import * as Parameters from "../models/parameters";
15
- import { KeyVaultManagementClientContext } from "../keyVaultManagementClientContext";
14
+ import { KeyVaultManagementClient } from "../keyVaultManagementClient";
16
15
  import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
17
16
  import { LroImpl } from "../lroImpl";
18
17
  import {
@@ -30,16 +29,16 @@ import {
30
29
  } from "../models";
31
30
 
32
31
  /// <reference lib="esnext.asynciterable" />
33
- /** Class representing a MhsmPrivateEndpointConnections. */
32
+ /** Class containing MhsmPrivateEndpointConnections operations. */
34
33
  export class MhsmPrivateEndpointConnectionsImpl
35
34
  implements MhsmPrivateEndpointConnections {
36
- private readonly client: KeyVaultManagementClientContext;
35
+ private readonly client: KeyVaultManagementClient;
37
36
 
38
37
  /**
39
38
  * Initialize a new instance of the class MhsmPrivateEndpointConnections class.
40
39
  * @param client Reference to the service client
41
40
  */
42
- constructor(client: KeyVaultManagementClientContext) {
41
+ constructor(client: KeyVaultManagementClient) {
43
42
  this.client = client;
44
43
  }
45
44