@azure/arm-hardwaresecuritymodules 2.0.0-beta.1 → 2.0.0-beta.2

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 (172) hide show
  1. package/CHANGELOG.md +146 -2
  2. package/dist/index.js +2121 -1216
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/cloudHsmClusterBackupStatusGetSample.d.ts +2 -0
  7. package/dist-esm/samples-dev/cloudHsmClusterBackupStatusGetSample.d.ts.map +1 -0
  8. package/dist-esm/samples-dev/cloudHsmClusterBackupStatusGetSample.js +40 -0
  9. package/dist-esm/samples-dev/cloudHsmClusterBackupStatusGetSample.js.map +1 -0
  10. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsCreateSample.js +4 -4
  11. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsCreateSample.js.map +1 -1
  12. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.js +1 -1
  13. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.js.map +1 -1
  14. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsGetSample.js +1 -1
  15. package/dist-esm/samples-dev/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.js +20 -4
  16. package/dist-esm/samples-dev/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.js.map +1 -1
  17. package/dist-esm/samples-dev/cloudHsmClusterRestoreStatusGetSample.d.ts +2 -0
  18. package/dist-esm/samples-dev/cloudHsmClusterRestoreStatusGetSample.d.ts.map +1 -0
  19. package/dist-esm/samples-dev/cloudHsmClusterRestoreStatusGetSample.js +40 -0
  20. package/dist-esm/samples-dev/cloudHsmClusterRestoreStatusGetSample.js.map +1 -0
  21. package/dist-esm/samples-dev/cloudHsmClustersBackupSample.d.ts +2 -0
  22. package/dist-esm/samples-dev/cloudHsmClustersBackupSample.d.ts.map +1 -0
  23. package/dist-esm/samples-dev/cloudHsmClustersBackupSample.js +39 -0
  24. package/dist-esm/samples-dev/cloudHsmClustersBackupSample.js.map +1 -0
  25. package/dist-esm/samples-dev/cloudHsmClustersCreateOrUpdateSample.js +6 -6
  26. package/dist-esm/samples-dev/cloudHsmClustersCreateOrUpdateSample.js.map +1 -1
  27. package/dist-esm/samples-dev/cloudHsmClustersDeleteSample.js +1 -1
  28. package/dist-esm/samples-dev/cloudHsmClustersGetSample.js +1 -1
  29. package/dist-esm/samples-dev/cloudHsmClustersListByResourceGroupSample.js +2 -2
  30. package/dist-esm/samples-dev/cloudHsmClustersListByResourceGroupSample.js.map +1 -1
  31. package/dist-esm/samples-dev/cloudHsmClustersListBySubscriptionSample.js +2 -2
  32. package/dist-esm/samples-dev/cloudHsmClustersListBySubscriptionSample.js.map +1 -1
  33. package/dist-esm/samples-dev/cloudHsmClustersRestoreSample.d.ts +2 -0
  34. package/dist-esm/samples-dev/cloudHsmClustersRestoreSample.d.ts.map +1 -0
  35. package/dist-esm/samples-dev/cloudHsmClustersRestoreSample.js +43 -0
  36. package/dist-esm/samples-dev/cloudHsmClustersRestoreSample.js.map +1 -0
  37. package/dist-esm/samples-dev/cloudHsmClustersUpdateSample.js +4 -4
  38. package/dist-esm/samples-dev/cloudHsmClustersUpdateSample.js.map +1 -1
  39. package/dist-esm/samples-dev/cloudHsmClustersValidateBackupPropertiesSample.d.ts +2 -0
  40. package/dist-esm/samples-dev/cloudHsmClustersValidateBackupPropertiesSample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/cloudHsmClustersValidateBackupPropertiesSample.js +39 -0
  42. package/dist-esm/samples-dev/cloudHsmClustersValidateBackupPropertiesSample.js.map +1 -0
  43. package/dist-esm/samples-dev/cloudHsmClustersValidateRestorePropertiesSample.d.ts +2 -0
  44. package/dist-esm/samples-dev/cloudHsmClustersValidateRestorePropertiesSample.d.ts.map +1 -0
  45. package/dist-esm/samples-dev/cloudHsmClustersValidateRestorePropertiesSample.js +46 -0
  46. package/dist-esm/samples-dev/cloudHsmClustersValidateRestorePropertiesSample.js.map +1 -0
  47. package/dist-esm/samples-dev/dedicatedHsmCreateOrUpdateSample.js +15 -15
  48. package/dist-esm/samples-dev/dedicatedHsmCreateOrUpdateSample.js.map +1 -1
  49. package/dist-esm/samples-dev/dedicatedHsmDeleteSample.js +1 -1
  50. package/dist-esm/samples-dev/dedicatedHsmGetSample.js +3 -3
  51. package/dist-esm/samples-dev/dedicatedHsmListByResourceGroupSample.js +4 -4
  52. package/dist-esm/samples-dev/dedicatedHsmListByResourceGroupSample.js.map +1 -1
  53. package/dist-esm/samples-dev/dedicatedHsmListBySubscriptionSample.js +4 -4
  54. package/dist-esm/samples-dev/dedicatedHsmListBySubscriptionSample.js.map +1 -1
  55. package/dist-esm/samples-dev/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.js +2 -2
  56. package/dist-esm/samples-dev/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.js.map +1 -1
  57. package/dist-esm/samples-dev/dedicatedHsmUpdateSample.js +3 -3
  58. package/dist-esm/samples-dev/dedicatedHsmUpdateSample.js.map +1 -1
  59. package/dist-esm/samples-dev/operationsListSample.js +8 -8
  60. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  61. package/dist-esm/samples-dev/privateEndpointConnectionsListByCloudHsmClusterSample.js +2 -2
  62. package/dist-esm/samples-dev/privateEndpointConnectionsListByCloudHsmClusterSample.js.map +1 -1
  63. package/dist-esm/src/azureHSMResourceProvider.d.ts +7 -2
  64. package/dist-esm/src/azureHSMResourceProvider.d.ts.map +1 -1
  65. package/dist-esm/src/azureHSMResourceProvider.js +44 -10
  66. package/dist-esm/src/azureHSMResourceProvider.js.map +1 -1
  67. package/dist-esm/src/index.d.ts +0 -1
  68. package/dist-esm/src/index.d.ts.map +1 -1
  69. package/dist-esm/src/lroImpl.js +1 -1
  70. package/dist-esm/src/models/index.d.ts +543 -263
  71. package/dist-esm/src/models/index.d.ts.map +1 -1
  72. package/dist-esm/src/models/index.js +109 -49
  73. package/dist-esm/src/models/index.js.map +1 -1
  74. package/dist-esm/src/models/mappers.d.ts +28 -16
  75. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  76. package/dist-esm/src/models/mappers.js +832 -637
  77. package/dist-esm/src/models/mappers.js.map +1 -1
  78. package/dist-esm/src/models/parameters.d.ts +5 -12
  79. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  80. package/dist-esm/src/models/parameters.js +76 -117
  81. package/dist-esm/src/models/parameters.js.map +1 -1
  82. package/dist-esm/src/operations/cloudHsmClusterBackupStatus.d.ts +22 -0
  83. package/dist-esm/src/operations/cloudHsmClusterBackupStatus.d.ts.map +1 -0
  84. package/dist-esm/src/operations/cloudHsmClusterBackupStatus.js +61 -0
  85. package/dist-esm/src/operations/cloudHsmClusterBackupStatus.js.map +1 -0
  86. package/dist-esm/src/operations/cloudHsmClusterPrivateEndpointConnections.d.ts +7 -7
  87. package/dist-esm/src/operations/cloudHsmClusterPrivateEndpointConnections.d.ts.map +1 -1
  88. package/dist-esm/src/operations/cloudHsmClusterPrivateEndpointConnections.js +37 -29
  89. package/dist-esm/src/operations/cloudHsmClusterPrivateEndpointConnections.js.map +1 -1
  90. package/dist-esm/src/operations/cloudHsmClusterPrivateLinkResources.d.ts +23 -3
  91. package/dist-esm/src/operations/cloudHsmClusterPrivateLinkResources.d.ts.map +1 -1
  92. package/dist-esm/src/operations/cloudHsmClusterPrivateLinkResources.js +105 -6
  93. package/dist-esm/src/operations/cloudHsmClusterPrivateLinkResources.js.map +1 -1
  94. package/dist-esm/src/operations/cloudHsmClusterRestoreStatus.d.ts +22 -0
  95. package/dist-esm/src/operations/cloudHsmClusterRestoreStatus.d.ts.map +1 -0
  96. package/dist-esm/src/operations/cloudHsmClusterRestoreStatus.js +61 -0
  97. package/dist-esm/src/operations/cloudHsmClusterRestoreStatus.js.map +1 -0
  98. package/dist-esm/src/operations/cloudHsmClusters.d.ts +78 -10
  99. package/dist-esm/src/operations/cloudHsmClusters.d.ts.map +1 -1
  100. package/dist-esm/src/operations/cloudHsmClusters.js +467 -82
  101. package/dist-esm/src/operations/cloudHsmClusters.js.map +1 -1
  102. package/dist-esm/src/operations/dedicatedHsmOperations.d.ts +24 -24
  103. package/dist-esm/src/operations/dedicatedHsmOperations.d.ts.map +1 -1
  104. package/dist-esm/src/operations/dedicatedHsmOperations.js +117 -109
  105. package/dist-esm/src/operations/dedicatedHsmOperations.js.map +1 -1
  106. package/dist-esm/src/operations/index.d.ts +3 -1
  107. package/dist-esm/src/operations/index.d.ts.map +1 -1
  108. package/dist-esm/src/operations/index.js +3 -1
  109. package/dist-esm/src/operations/index.js.map +1 -1
  110. package/dist-esm/src/operations/operations.d.ts +4 -4
  111. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  112. package/dist-esm/src/operations/operations.js +8 -8
  113. package/dist-esm/src/operations/operations.js.map +1 -1
  114. package/dist-esm/src/operations/privateEndpointConnections.d.ts +3 -3
  115. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
  116. package/dist-esm/src/operations/privateEndpointConnections.js +14 -14
  117. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
  118. package/dist-esm/src/operationsInterfaces/cloudHsmClusterBackupStatus.d.ts +14 -0
  119. package/dist-esm/src/operationsInterfaces/cloudHsmClusterBackupStatus.d.ts.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/cloudHsmClusterBackupStatus.js +9 -0
  121. package/dist-esm/src/operationsInterfaces/cloudHsmClusterBackupStatus.js.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.d.ts +7 -7
  123. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.d.ts.map +1 -1
  124. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.d.ts +4 -3
  125. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.d.ts.map +1 -1
  126. package/dist-esm/src/operationsInterfaces/cloudHsmClusterRestoreStatus.d.ts +14 -0
  127. package/dist-esm/src/operationsInterfaces/cloudHsmClusterRestoreStatus.d.ts.map +1 -0
  128. package/dist-esm/src/operationsInterfaces/cloudHsmClusterRestoreStatus.js +9 -0
  129. package/dist-esm/src/operationsInterfaces/cloudHsmClusterRestoreStatus.js.map +1 -0
  130. package/dist-esm/src/operationsInterfaces/cloudHsmClusters.d.ts +78 -10
  131. package/dist-esm/src/operationsInterfaces/cloudHsmClusters.d.ts.map +1 -1
  132. package/dist-esm/src/operationsInterfaces/dedicatedHsmOperations.d.ts +18 -18
  133. package/dist-esm/src/operationsInterfaces/dedicatedHsmOperations.d.ts.map +1 -1
  134. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -1
  135. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  136. package/dist-esm/src/operationsInterfaces/index.js +3 -1
  137. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  138. package/dist-esm/src/operationsInterfaces/operations.d.ts +3 -3
  139. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -1
  140. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +1 -1
  141. package/dist-esm/src/pagingHelper.js.map +1 -1
  142. package/dist-esm/test/hardwaresecuritymodules_operations_test.spec.d.ts.map +1 -1
  143. package/dist-esm/test/hardwaresecuritymodules_operations_test.spec.js +6 -2
  144. package/dist-esm/test/hardwaresecuritymodules_operations_test.spec.js.map +1 -1
  145. package/package.json +14 -15
  146. package/review/arm-hardwaresecuritymodules.api.md +298 -93
  147. package/src/azureHSMResourceProvider.ts +67 -20
  148. package/src/lroImpl.ts +4 -4
  149. package/src/models/index.ts +633 -284
  150. package/src/models/mappers.ts +898 -675
  151. package/src/models/parameters.ts +82 -128
  152. package/src/operations/cloudHsmClusterBackupStatus.ts +82 -0
  153. package/src/operations/cloudHsmClusterPrivateEndpointConnections.ts +74 -56
  154. package/src/operations/cloudHsmClusterPrivateLinkResources.ts +145 -13
  155. package/src/operations/cloudHsmClusterRestoreStatus.ts +82 -0
  156. package/src/operations/cloudHsmClusters.ts +684 -151
  157. package/src/operations/dedicatedHsmOperations.ts +224 -215
  158. package/src/operations/index.ts +3 -1
  159. package/src/operations/operations.ts +17 -17
  160. package/src/operations/privateEndpointConnections.ts +30 -30
  161. package/src/operationsInterfaces/cloudHsmClusterBackupStatus.ts +30 -0
  162. package/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.ts +17 -11
  163. package/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.ts +6 -4
  164. package/src/operationsInterfaces/cloudHsmClusterRestoreStatus.ts +30 -0
  165. package/src/operationsInterfaces/cloudHsmClusters.ts +156 -19
  166. package/src/operationsInterfaces/dedicatedHsmOperations.ts +34 -28
  167. package/src/operationsInterfaces/index.ts +3 -1
  168. package/src/operationsInterfaces/operations.ts +4 -4
  169. package/src/operationsInterfaces/privateEndpointConnections.ts +3 -3
  170. package/src/pagingHelper.ts +1 -1
  171. package/types/arm-hardwaresecuritymodules.d.ts +625 -205
  172. package/types/tsdoc-metadata.json +1 -1
@@ -4,15 +4,50 @@ import { OperationState } from '@azure/core-lro';
4
4
  import { PagedAsyncIterableIterator } from '@azure/core-paging';
5
5
  import { SimplePollerLike } from '@azure/core-lro';
6
6
 
7
+ /**
8
+ * Defines values for ActionType. \
9
+ * {@link KnownActionType} can be used interchangeably with ActionType,
10
+ * this enum contains the known values that the service supports.
11
+ * ### Known values supported by the service
12
+ * **Internal**
13
+ */
14
+ export declare type ActionType = string;
15
+
16
+ /**
17
+ * Defines values for ActivationState. \
18
+ * {@link KnownActivationState} can be used interchangeably with ActivationState,
19
+ * this enum contains the known values that the service supports.
20
+ * ### Known values supported by the service
21
+ * **NotDefined** \
22
+ * **NotActivated** \
23
+ * **Active** \
24
+ * **Failed** \
25
+ * **Unknown**
26
+ */
27
+ export declare type ActivationState = string;
28
+
7
29
  /** The API entity reference. */
8
30
  export declare interface ApiEntityReference {
9
- /** The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... */
10
- id?: string;
31
+ /** The Azure resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... */
32
+ resourceId?: string;
11
33
  }
12
34
 
35
+ /**
36
+ * Defines values for AutoGeneratedDomainNameLabelScope. \
37
+ * {@link KnownAutoGeneratedDomainNameLabelScope} can be used interchangeably with AutoGeneratedDomainNameLabelScope,
38
+ * this enum contains the known values that the service supports.
39
+ * ### Known values supported by the service
40
+ * **TenantReuse** \
41
+ * **SubscriptionReuse** \
42
+ * **ResourceGroupReuse** \
43
+ * **NoReuse**
44
+ */
45
+ export declare type AutoGeneratedDomainNameLabelScope = string;
46
+
13
47
  export declare class AzureHSMResourceProvider extends coreClient.ServiceClient {
14
48
  $host: string;
15
49
  subscriptionId: string;
50
+ apiVersion: string;
16
51
  /**
17
52
  * Initializes a new instance of the AzureHSMResourceProvider class.
18
53
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -20,83 +55,179 @@ export declare class AzureHSMResourceProvider extends coreClient.ServiceClient {
20
55
  * @param options The parameter options
21
56
  */
22
57
  constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureHSMResourceProviderOptionalParams);
58
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
59
+ private addCustomApiVersionPolicy;
23
60
  cloudHsmClusters: CloudHsmClusters;
24
61
  cloudHsmClusterPrivateLinkResources: CloudHsmClusterPrivateLinkResources;
25
62
  cloudHsmClusterPrivateEndpointConnections: CloudHsmClusterPrivateEndpointConnections;
26
63
  privateEndpointConnections: PrivateEndpointConnections;
27
- operations: Operations;
64
+ cloudHsmClusterBackupStatus: CloudHsmClusterBackupStatus;
65
+ cloudHsmClusterRestoreStatus: CloudHsmClusterRestoreStatus;
28
66
  dedicatedHsmOperations: DedicatedHsmOperations;
67
+ operations: Operations;
29
68
  }
30
69
 
31
70
  /** Optional parameters. */
32
71
  export declare interface AzureHSMResourceProviderOptionalParams extends coreClient.ServiceClientOptions {
33
72
  /** server parameter */
34
73
  $host?: string;
74
+ /** Api Version */
75
+ apiVersion?: string;
35
76
  /** Overrides client endpoint. */
36
77
  endpoint?: string;
37
78
  }
38
79
 
39
- /** Cloud Hsm Cluster backup information */
40
- export declare interface BackupProperties {
41
- /** Azure storage Resource Uri */
42
- azureStorageResourceUri?: string;
80
+ /** Backup properties */
81
+ export declare interface BackupRequestProperties extends BackupRestoreRequestBaseProperties {
82
+ }
83
+
84
+ /** Backup and Restore operation common properties */
85
+ export declare interface BackupRestoreBaseResultProperties {
86
+ /**
87
+ * Status of the backup/restore operation
88
+ * NOTE: This property will not be serialized. It can only be populated by the server.
89
+ */
90
+ readonly status?: BackupRestoreOperationStatus;
91
+ /** The status details of backup/restore operation */
92
+ statusDetails?: string;
93
+ /** Error encountered, if any, during the backup/restore operation. */
94
+ error?: ErrorDetail;
43
95
  /**
44
- * Last Date Time that Customer Enabled Backup was taken
96
+ * The start time of the backup/restore operation in UTC
45
97
  * NOTE: This property will not be serialized. It can only be populated by the server.
46
98
  */
47
- readonly lastBackupDateTime?: Date;
99
+ readonly startTime?: Date;
48
100
  /**
49
- * Status of last backup
101
+ * The end time of the backup/restore operation in UTC
50
102
  * NOTE: This property will not be serialized. It can only be populated by the server.
51
103
  */
52
- readonly lastBackupStatus?: string;
104
+ readonly endTime?: Date;
105
+ /** Identifier for the backup/restore operation. */
106
+ jobId?: string;
107
+ }
108
+
109
+ /**
110
+ * Defines values for BackupRestoreOperationStatus. \
111
+ * {@link KnownBackupRestoreOperationStatus} can be used interchangeably with BackupRestoreOperationStatus,
112
+ * this enum contains the known values that the service supports.
113
+ * ### Known values supported by the service
114
+ * **InProgress** \
115
+ * **Succeeded** \
116
+ * **Failed** \
117
+ * **Cancelled**
118
+ */
119
+ export declare type BackupRestoreOperationStatus = string;
120
+
121
+ /** Backup and Restore Common properties */
122
+ export declare interface BackupRestoreRequestBaseProperties {
123
+ /** The Azure blob storage container Uri which contains the backup */
124
+ azureStorageBlobContainerUri: string;
125
+ /** The SAS token pointing to an Azure blob storage container. This property is reserved for Azure Backup Service. */
126
+ token?: string;
53
127
  }
54
128
 
55
- /** Error details */
56
- export declare interface CHsmError {
129
+ /** Backup operation Result */
130
+ export declare interface BackupResult {
57
131
  /**
58
- * The error code.
132
+ * Status of the backup/restore operation
59
133
  * NOTE: This property will not be serialized. It can only be populated by the server.
60
134
  */
61
- readonly code?: string;
135
+ readonly status?: BackupRestoreOperationStatus;
136
+ /** The status details of backup/restore operation */
137
+ statusDetails?: string;
138
+ /** Error encountered, if any, during the backup/restore operation. */
139
+ error?: ErrorDetail;
62
140
  /**
63
- * The error message.
141
+ * The start time of the backup/restore operation in UTC
64
142
  * NOTE: This property will not be serialized. It can only be populated by the server.
65
143
  */
66
- readonly message?: string;
144
+ readonly startTime?: Date;
145
+ /**
146
+ * The end time of the backup/restore operation in UTC
147
+ * NOTE: This property will not be serialized. It can only be populated by the server.
148
+ */
149
+ readonly endTime?: Date;
150
+ /** Identifier for the backup/restore operation. */
151
+ jobId?: string;
152
+ /** The Azure blob storage container Uri which contains the backup */
153
+ azureStorageBlobContainerUri?: string;
154
+ /** The ID of the backup. */
155
+ backupId?: string;
156
+ }
157
+
158
+ /** Properties of the Cloud HSM Cluster */
159
+ export declare interface BackupResultProperties extends BackupRestoreBaseResultProperties {
160
+ /** The Azure blob storage container Uri which contains the backup */
161
+ azureStorageBlobContainerUri?: string;
162
+ /** The ID of the backup. */
163
+ backupId?: string;
67
164
  }
68
165
 
69
166
  /** Resource information with extended details. */
70
167
  export declare interface CloudHsmCluster extends CloudHsmClusterResource {
71
- /** The Cloud HSM Cluster's provisioningState */
72
- provisioningState?: ProvisioningState;
168
+ /**
169
+ * State of security domain activation
170
+ * NOTE: This property will not be serialized. It can only be populated by the server.
171
+ */
172
+ readonly activationState?: ActivationState;
73
173
  /** The Cloud HSM Cluster's auto-generated Domain Name Label Scope */
74
- autoGeneratedDomainNameLabelScope?: string;
75
- /** Security domain properties information for Cloud HSM cluster */
76
- securityDomain?: CloudHsmClusterSecurityDomainProperties;
77
- /** An array of Cloud HSM Cluster's HSMs */
78
- hsms?: CloudHsmProperties[];
174
+ autoGeneratedDomainNameLabelScope?: AutoGeneratedDomainNameLabelScope;
175
+ /**
176
+ * An array of Cloud HSM Cluster's HSMs
177
+ * NOTE: This property will not be serialized. It can only be populated by the server.
178
+ */
179
+ readonly hsms?: CloudHsmProperties[];
180
+ /**
181
+ * List of private endpoint connection resources
182
+ * NOTE: This property will not be serialized. It can only be populated by the server.
183
+ */
184
+ readonly privateEndpointConnections?: PrivateEndpointConnection[];
185
+ /**
186
+ * The Cloud HSM Cluster's provisioningState
187
+ * NOTE: This property will not be serialized. It can only be populated by the server.
188
+ */
189
+ readonly provisioningState?: ProvisioningState;
79
190
  /** The Cloud HSM Cluster public network access */
80
- publicNetworkAccess?: string;
81
- /** List of private endpoint connection resources */
82
- privateEndpointConnections?: PrivateEndpointConnection[];
191
+ publicNetworkAccess?: PublicNetworkAccess;
83
192
  /**
84
193
  * Cloud HSM Cluster status message
85
194
  * NOTE: This property will not be serialized. It can only be populated by the server.
86
195
  */
87
196
  readonly statusMessage?: string;
88
- /** Cloud Hsm Cluster restore information */
89
- restoreProperties?: RestoreProperties;
90
- /** Cloud Hsm Cluster backup information */
91
- backupProperties?: BackupProperties;
92
197
  }
93
198
 
94
- /** The Cloud HSM Cluster error details */
95
- export declare interface CloudHsmClusterError {
96
- /** Error details */
97
- error?: CHsmError;
199
+ /** Interface representing a CloudHsmClusterBackupStatus. */
200
+ export declare interface CloudHsmClusterBackupStatus {
201
+ /**
202
+ * Gets the backup operation status of the specified Cloud HSM Cluster
203
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
204
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
205
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
206
+ * @param jobId The id returned as part of the backup request
207
+ * @param options The options parameters.
208
+ */
209
+ get(resourceGroupName: string, cloudHsmClusterName: string, jobId: string, options?: CloudHsmClusterBackupStatusGetOptionalParams): Promise<CloudHsmClusterBackupStatusGetResponse>;
210
+ }
211
+
212
+ /** Defines headers for CloudHsmClusterBackupStatus_get operation. */
213
+ export declare interface CloudHsmClusterBackupStatusGetExceptionHeaders {
214
+ /** A unique ID for the current operation, service generated. All the resource providers must return this value in the response headers to facilitate debugging. */
215
+ xMsRequestId?: string;
216
+ }
217
+
218
+ /** Defines headers for CloudHsmClusterBackupStatus_get operation. */
219
+ export declare interface CloudHsmClusterBackupStatusGetHeaders {
220
+ /** A unique ID for the current operation, service generated. All the resource providers must return this value in the response headers to facilitate debugging. */
221
+ xMsRequestId?: string;
222
+ }
223
+
224
+ /** Optional parameters. */
225
+ export declare interface CloudHsmClusterBackupStatusGetOptionalParams extends coreClient.OperationOptions {
98
226
  }
99
227
 
228
+ /** Contains response data for the get operation. */
229
+ export declare type CloudHsmClusterBackupStatusGetResponse = CloudHsmClusterBackupStatusGetHeaders & BackupResult;
230
+
100
231
  /** List of Cloud HSM Clusters */
101
232
  export declare interface CloudHsmClusterListResult {
102
233
  /** The list of Cloud HSM Clusters. */
@@ -111,12 +242,8 @@ export declare interface CloudHsmClusterPatchParameters {
111
242
  tags?: {
112
243
  [propertyName: string]: string;
113
244
  };
114
- /** SKU details */
115
- sku?: CloudHsmClusterSku;
116
245
  /** Managed service identity (system assigned and/or user assigned identities) */
117
246
  identity?: ManagedServiceIdentity;
118
- /** Cloud Hsm Cluster backup information */
119
- backupProperties?: BackupProperties;
120
247
  }
121
248
 
122
249
  /** Interface representing a CloudHsmClusterPrivateEndpointConnections. */
@@ -125,7 +252,7 @@ export declare interface CloudHsmClusterPrivateEndpointConnections {
125
252
  * Creates or updates the private endpoint connection for the Cloud Hsm Cluster.
126
253
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
127
254
  * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
128
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
255
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
129
256
  * @param peConnectionName Name of the private endpoint connection associated with the Cloud HSM
130
257
  * Cluster.
131
258
  * @param properties Parameters of the PrivateEndpointConnection
@@ -136,27 +263,27 @@ export declare interface CloudHsmClusterPrivateEndpointConnections {
136
263
  * Deletes the private endpoint connection for the Cloud Hsm Cluster.
137
264
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
138
265
  * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
139
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
266
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
140
267
  * @param peConnectionName Name of the private endpoint connection associated with the Cloud HSM
141
268
  * Cluster.
142
269
  * @param options The options parameters.
143
270
  */
144
- beginDelete(resourceGroupName: string, cloudHsmClusterName: string, peConnectionName: string, options?: CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
271
+ beginDelete(resourceGroupName: string, cloudHsmClusterName: string, peConnectionName: string, options?: CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<CloudHsmClusterPrivateEndpointConnectionsDeleteResponse>, CloudHsmClusterPrivateEndpointConnectionsDeleteResponse>>;
145
272
  /**
146
273
  * Deletes the private endpoint connection for the Cloud Hsm Cluster.
147
274
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
148
275
  * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
149
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
276
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
150
277
  * @param peConnectionName Name of the private endpoint connection associated with the Cloud HSM
151
278
  * Cluster.
152
279
  * @param options The options parameters.
153
280
  */
154
- beginDeleteAndWait(resourceGroupName: string, cloudHsmClusterName: string, peConnectionName: string, options?: CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams): Promise<void>;
281
+ beginDeleteAndWait(resourceGroupName: string, cloudHsmClusterName: string, peConnectionName: string, options?: CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams): Promise<CloudHsmClusterPrivateEndpointConnectionsDeleteResponse>;
155
282
  /**
156
283
  * Gets the private endpoint connection for the Cloud Hsm Cluster.
157
284
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
158
285
  * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
159
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
286
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
160
287
  * @param peConnectionName Name of the private endpoint connection associated with the Cloud HSM
161
288
  * Cluster.
162
289
  * @param options The options parameters.
@@ -185,6 +312,9 @@ export declare interface CloudHsmClusterPrivateEndpointConnectionsDeleteOptional
185
312
  resumeFrom?: string;
186
313
  }
187
314
 
315
+ /** Contains response data for the delete operation. */
316
+ export declare type CloudHsmClusterPrivateEndpointConnectionsDeleteResponse = CloudHsmClusterPrivateEndpointConnectionsDeleteHeaders;
317
+
188
318
  /** Optional parameters. */
189
319
  export declare interface CloudHsmClusterPrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions {
190
320
  }
@@ -198,12 +328,19 @@ export declare interface CloudHsmClusterPrivateLinkResources {
198
328
  * Gets the private link resources supported for the Cloud Hsm Cluster.
199
329
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
200
330
  * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
201
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
331
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
202
332
  * @param options The options parameters.
203
333
  */
204
- listByCloudHsmCluster(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams): Promise<CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterResponse>;
334
+ listByCloudHsmCluster(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams): PagedAsyncIterableIterator<PrivateLinkResource>;
205
335
  }
206
336
 
337
+ /** Optional parameters. */
338
+ export declare interface CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterNextOptionalParams extends coreClient.OperationOptions {
339
+ }
340
+
341
+ /** Contains response data for the listByCloudHsmClusterNext operation. */
342
+ export declare type CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterNextResponse = PrivateLinkResourceListResult;
343
+
207
344
  /** Optional parameters. */
208
345
  export declare interface CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams extends coreClient.OperationOptions {
209
346
  }
@@ -213,12 +350,44 @@ export declare type CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterResp
213
350
 
214
351
  /** Cloud HSM Cluster Resource */
215
352
  export declare interface CloudHsmClusterResource extends TrackedResource {
216
- /** SKU details */
217
- sku?: CloudHsmClusterSku;
218
353
  /** Managed service identity (system assigned and/or user assigned identities) */
219
354
  identity?: ManagedServiceIdentity;
355
+ /** SKU details */
356
+ sku?: CloudHsmClusterSku;
357
+ }
358
+
359
+ /** Interface representing a CloudHsmClusterRestoreStatus. */
360
+ export declare interface CloudHsmClusterRestoreStatus {
361
+ /**
362
+ * Gets the restore operation status of the specified Cloud HSM Cluster
363
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
364
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
365
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
366
+ * @param jobId The id returned as part of the backup request
367
+ * @param options The options parameters.
368
+ */
369
+ get(resourceGroupName: string, cloudHsmClusterName: string, jobId: string, options?: CloudHsmClusterRestoreStatusGetOptionalParams): Promise<CloudHsmClusterRestoreStatusGetResponse>;
370
+ }
371
+
372
+ /** Defines headers for CloudHsmClusterRestoreStatus_get operation. */
373
+ export declare interface CloudHsmClusterRestoreStatusGetExceptionHeaders {
374
+ /** A unique ID for the current operation, service generated. All the resource providers must return this value in the response headers to facilitate debugging. */
375
+ xMsRequestId?: string;
376
+ }
377
+
378
+ /** Defines headers for CloudHsmClusterRestoreStatus_get operation. */
379
+ export declare interface CloudHsmClusterRestoreStatusGetHeaders {
380
+ /** A unique ID for the current operation, service generated. All the resource providers must return this value in the response headers to facilitate debugging. */
381
+ xMsRequestId?: string;
382
+ }
383
+
384
+ /** Optional parameters. */
385
+ export declare interface CloudHsmClusterRestoreStatusGetOptionalParams extends coreClient.OperationOptions {
220
386
  }
221
387
 
388
+ /** Contains response data for the get operation. */
389
+ export declare type CloudHsmClusterRestoreStatusGetResponse = CloudHsmClusterRestoreStatusGetHeaders & RestoreResult;
390
+
222
391
  /** Interface representing a CloudHsmClusters. */
223
392
  export declare interface CloudHsmClusters {
224
393
  /**
@@ -237,7 +406,7 @@ export declare interface CloudHsmClusters {
237
406
  * Create or Update a Cloud HSM Cluster in the specified subscription.
238
407
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
239
408
  * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
240
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
409
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
241
410
  * @param location The geo-location where the resource lives
242
411
  * @param options The options parameters.
243
412
  */
@@ -246,7 +415,7 @@ export declare interface CloudHsmClusters {
246
415
  * Create or Update a Cloud HSM Cluster in the specified subscription.
247
416
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
248
417
  * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
249
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
418
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
250
419
  * @param location The geo-location where the resource lives
251
420
  * @param options The options parameters.
252
421
  */
@@ -255,7 +424,7 @@ export declare interface CloudHsmClusters {
255
424
  * Update a Cloud HSM Cluster in the specified subscription.
256
425
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
257
426
  * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
258
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
427
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
259
428
  * @param options The options parameters.
260
429
  */
261
430
  beginUpdate(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersUpdateOptionalParams): Promise<SimplePollerLike<OperationState<CloudHsmClustersUpdateResponse>, CloudHsmClustersUpdateResponse>>;
@@ -263,7 +432,7 @@ export declare interface CloudHsmClusters {
263
432
  * Update a Cloud HSM Cluster in the specified subscription.
264
433
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
265
434
  * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
266
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
435
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
267
436
  * @param options The options parameters.
268
437
  */
269
438
  beginUpdateAndWait(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersUpdateOptionalParams): Promise<CloudHsmClustersUpdateResponse>;
@@ -271,7 +440,7 @@ export declare interface CloudHsmClusters {
271
440
  * Gets the specified Cloud HSM Cluster
272
441
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
273
442
  * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
274
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
443
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
275
444
  * @param options The options parameters.
276
445
  */
277
446
  get(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersGetOptionalParams): Promise<CloudHsmClustersGetResponse>;
@@ -279,46 +448,121 @@ export declare interface CloudHsmClusters {
279
448
  * Deletes the specified Cloud HSM Cluster
280
449
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
281
450
  * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
282
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
451
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
283
452
  * @param options The options parameters.
284
453
  */
285
- beginDelete(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
454
+ beginDelete(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersDeleteOptionalParams): Promise<SimplePollerLike<OperationState<CloudHsmClustersDeleteResponse>, CloudHsmClustersDeleteResponse>>;
286
455
  /**
287
456
  * Deletes the specified Cloud HSM Cluster
288
457
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
289
458
  * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
290
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
459
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
460
+ * @param options The options parameters.
461
+ */
462
+ beginDeleteAndWait(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersDeleteOptionalParams): Promise<CloudHsmClustersDeleteResponse>;
463
+ /**
464
+ * Pre Backup operation to validate whether the customer can perform a backup on the Cloud HSM Cluster
465
+ * resource in the specified subscription.
466
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
467
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
468
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
469
+ * @param options The options parameters.
470
+ */
471
+ beginValidateBackupProperties(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersValidateBackupPropertiesOptionalParams): Promise<SimplePollerLike<OperationState<CloudHsmClustersValidateBackupPropertiesResponse>, CloudHsmClustersValidateBackupPropertiesResponse>>;
472
+ /**
473
+ * Pre Backup operation to validate whether the customer can perform a backup on the Cloud HSM Cluster
474
+ * resource in the specified subscription.
475
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
476
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
477
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
478
+ * @param options The options parameters.
479
+ */
480
+ beginValidateBackupPropertiesAndWait(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersValidateBackupPropertiesOptionalParams): Promise<CloudHsmClustersValidateBackupPropertiesResponse>;
481
+ /**
482
+ * Create a backup of the Cloud HSM Cluster in the specified subscription
483
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
484
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
485
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
486
+ * @param options The options parameters.
487
+ */
488
+ beginBackup(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersBackupOptionalParams): Promise<SimplePollerLike<OperationState<CloudHsmClustersBackupResponse>, CloudHsmClustersBackupResponse>>;
489
+ /**
490
+ * Create a backup of the Cloud HSM Cluster in the specified subscription
491
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
492
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
493
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
494
+ * @param options The options parameters.
495
+ */
496
+ beginBackupAndWait(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersBackupOptionalParams): Promise<CloudHsmClustersBackupResponse>;
497
+ /**
498
+ * Queued validating pre restore operation
499
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
500
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
501
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
502
+ * @param options The options parameters.
503
+ */
504
+ beginValidateRestoreProperties(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersValidateRestorePropertiesOptionalParams): Promise<SimplePollerLike<OperationState<CloudHsmClustersValidateRestorePropertiesResponse>, CloudHsmClustersValidateRestorePropertiesResponse>>;
505
+ /**
506
+ * Queued validating pre restore operation
507
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
508
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
509
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
510
+ * @param options The options parameters.
511
+ */
512
+ beginValidateRestorePropertiesAndWait(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersValidateRestorePropertiesOptionalParams): Promise<CloudHsmClustersValidateRestorePropertiesResponse>;
513
+ /**
514
+ * Restores all key materials of a specified Cloud HSM Cluster
515
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
516
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
517
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
518
+ * @param restoreRequestProperties Restore Operation Required properties
519
+ * @param options The options parameters.
520
+ */
521
+ beginRestore(resourceGroupName: string, cloudHsmClusterName: string, restoreRequestProperties: RestoreRequestProperties, options?: CloudHsmClustersRestoreOptionalParams): Promise<SimplePollerLike<OperationState<CloudHsmClustersRestoreResponse>, CloudHsmClustersRestoreResponse>>;
522
+ /**
523
+ * Restores all key materials of a specified Cloud HSM Cluster
524
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
525
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
526
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
527
+ * @param restoreRequestProperties Restore Operation Required properties
291
528
  * @param options The options parameters.
292
529
  */
293
- beginDeleteAndWait(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersDeleteOptionalParams): Promise<void>;
530
+ beginRestoreAndWait(resourceGroupName: string, cloudHsmClusterName: string, restoreRequestProperties: RestoreRequestProperties, options?: CloudHsmClustersRestoreOptionalParams): Promise<CloudHsmClustersRestoreResponse>;
531
+ }
532
+
533
+ /** Defines headers for CloudHsmClusters_backup operation. */
534
+ export declare interface CloudHsmClustersBackupHeaders {
535
+ /** A unique ID for the current operation, service generated. All the resource providers must return this value in the response headers to facilitate debugging. */
536
+ xMsRequestId?: string;
537
+ }
538
+
539
+ /** Optional parameters. */
540
+ export declare interface CloudHsmClustersBackupOptionalParams extends coreClient.OperationOptions {
541
+ /** Azure storage Resource Uri */
542
+ backupRequestProperties?: BackupRequestProperties;
543
+ /** Delay to wait until next poll, in milliseconds. */
544
+ updateIntervalInMs?: number;
545
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
546
+ resumeFrom?: string;
294
547
  }
295
548
 
549
+ /** Contains response data for the backup operation. */
550
+ export declare type CloudHsmClustersBackupResponse = CloudHsmClustersBackupHeaders & BackupResult;
551
+
296
552
  /** Optional parameters. */
297
553
  export declare interface CloudHsmClustersCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
298
554
  /** Resource tags. */
299
555
  tags?: {
300
556
  [propertyName: string]: string;
301
557
  };
302
- /** SKU details */
303
- sku?: CloudHsmClusterSku;
304
558
  /** Managed service identity (system assigned and/or user assigned identities) */
305
559
  identity?: ManagedServiceIdentity;
306
- /** The Cloud HSM Cluster's provisioningState */
307
- provisioningState?: ProvisioningState;
560
+ /** SKU details */
561
+ sku?: CloudHsmClusterSku;
308
562
  /** The Cloud HSM Cluster's auto-generated Domain Name Label Scope */
309
- autoGeneratedDomainNameLabelScope?: string;
310
- /** Security domain properties information for Cloud HSM cluster */
311
- securityDomain?: CloudHsmClusterSecurityDomainProperties;
312
- /** An array of Cloud HSM Cluster's HSMs */
313
- hsms?: CloudHsmProperties[];
563
+ autoGeneratedDomainNameLabelScope?: AutoGeneratedDomainNameLabelScope;
314
564
  /** The Cloud HSM Cluster public network access */
315
- publicNetworkAccess?: string;
316
- /** List of private endpoint connection resources */
317
- privateEndpointConnections?: PrivateEndpointConnection[];
318
- /** Cloud Hsm Cluster restore information */
319
- restoreProperties?: RestoreProperties;
320
- /** Cloud Hsm Cluster backup information */
321
- backupProperties?: BackupProperties;
565
+ publicNetworkAccess?: PublicNetworkAccess;
322
566
  /** Delay to wait until next poll, in milliseconds. */
323
567
  updateIntervalInMs?: number;
324
568
  /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
@@ -342,13 +586,8 @@ export declare interface CloudHsmClustersDeleteOptionalParams extends coreClient
342
586
  resumeFrom?: string;
343
587
  }
344
588
 
345
- /** Security domain properties information for Cloud HSM cluster */
346
- export declare interface CloudHsmClusterSecurityDomainProperties {
347
- /** FIPS state information for security domain */
348
- fipsState?: number;
349
- /** status of security domain activation */
350
- activationStatus?: string;
351
- }
589
+ /** Contains response data for the delete operation. */
590
+ export declare type CloudHsmClustersDeleteResponse = CloudHsmClustersDeleteHeaders;
352
591
 
353
592
  /** Optional parameters. */
354
593
  export declare interface CloudHsmClustersGetOptionalParams extends coreClient.OperationOptions {
@@ -411,6 +650,23 @@ export declare interface CloudHsmClustersListBySubscriptionOptionalParams extend
411
650
  /** Contains response data for the listBySubscription operation. */
412
651
  export declare type CloudHsmClustersListBySubscriptionResponse = CloudHsmClusterListResult;
413
652
 
653
+ /** Defines headers for CloudHsmClusters_restore operation. */
654
+ export declare interface CloudHsmClustersRestoreHeaders {
655
+ /** A unique ID for the current operation, service generated. All the resource providers must return this value in the response headers to facilitate debugging. */
656
+ xMsRequestId?: string;
657
+ }
658
+
659
+ /** Optional parameters. */
660
+ export declare interface CloudHsmClustersRestoreOptionalParams extends coreClient.OperationOptions {
661
+ /** Delay to wait until next poll, in milliseconds. */
662
+ updateIntervalInMs?: number;
663
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
664
+ resumeFrom?: string;
665
+ }
666
+
667
+ /** Contains response data for the restore operation. */
668
+ export declare type CloudHsmClustersRestoreResponse = CloudHsmClustersRestoreHeaders & RestoreResult;
669
+
414
670
  /** Defines headers for CloudHsmClusters_update operation. */
415
671
  export declare interface CloudHsmClustersUpdateHeaders {
416
672
  /** The URI to poll for completion status. */
@@ -423,12 +679,8 @@ export declare interface CloudHsmClustersUpdateOptionalParams extends coreClient
423
679
  tags?: {
424
680
  [propertyName: string]: string;
425
681
  };
426
- /** SKU details */
427
- sku?: CloudHsmClusterSku;
428
682
  /** Managed service identity (system assigned and/or user assigned identities) */
429
683
  identity?: ManagedServiceIdentity;
430
- /** Cloud Hsm Cluster backup information */
431
- backupProperties?: BackupProperties;
432
684
  /** Delay to wait until next poll, in milliseconds. */
433
685
  updateIntervalInMs?: number;
434
686
  /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
@@ -438,11 +690,49 @@ export declare interface CloudHsmClustersUpdateOptionalParams extends coreClient
438
690
  /** Contains response data for the update operation. */
439
691
  export declare type CloudHsmClustersUpdateResponse = CloudHsmCluster;
440
692
 
693
+ /** Defines headers for CloudHsmClusters_validateBackupProperties operation. */
694
+ export declare interface CloudHsmClustersValidateBackupPropertiesHeaders {
695
+ /** A unique ID for the current operation, service generated. All the resource providers must return this value in the response headers to facilitate debugging. */
696
+ xMsRequestId?: string;
697
+ }
698
+
699
+ /** Optional parameters. */
700
+ export declare interface CloudHsmClustersValidateBackupPropertiesOptionalParams extends coreClient.OperationOptions {
701
+ /** Backup Operation Required properties */
702
+ backupRequestProperties?: BackupRequestProperties;
703
+ /** Delay to wait until next poll, in milliseconds. */
704
+ updateIntervalInMs?: number;
705
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
706
+ resumeFrom?: string;
707
+ }
708
+
709
+ /** Contains response data for the validateBackupProperties operation. */
710
+ export declare type CloudHsmClustersValidateBackupPropertiesResponse = CloudHsmClustersValidateBackupPropertiesHeaders & BackupResult;
711
+
712
+ /** Defines headers for CloudHsmClusters_validateRestoreProperties operation. */
713
+ export declare interface CloudHsmClustersValidateRestorePropertiesHeaders {
714
+ /** A unique ID for the current operation, service generated. All the resource providers must return this value in the response headers to facilitate debugging. */
715
+ xMsRequestId?: string;
716
+ }
717
+
718
+ /** Optional parameters. */
719
+ export declare interface CloudHsmClustersValidateRestorePropertiesOptionalParams extends coreClient.OperationOptions {
720
+ /** Optional Parameters to validate prior performing a restore operation. */
721
+ restoreRequestProperties?: RestoreRequestProperties;
722
+ /** Delay to wait until next poll, in milliseconds. */
723
+ updateIntervalInMs?: number;
724
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
725
+ resumeFrom?: string;
726
+ }
727
+
728
+ /** Contains response data for the validateRestoreProperties operation. */
729
+ export declare type CloudHsmClustersValidateRestorePropertiesResponse = CloudHsmClustersValidateRestorePropertiesHeaders & RestoreResult;
730
+
441
731
  /** The Cloud HSM Properties */
442
732
  export declare interface CloudHsmProperties {
443
733
  /** FQDN of the Cloud HSM */
444
734
  fqdn?: string;
445
- /** The Cloud HSM State */
735
+ /** The Cloud HSM State. Values are: Deploying, ConfiguringSlb, Starting, Starting, Failed, Failed, Deleting, DeletingSlbEntry, InitialProvisioning, Updating */
446
736
  state?: string;
447
737
  /** The Cloud HSM State message */
448
738
  stateMessage?: string;
@@ -461,12 +751,11 @@ export declare interface CloudHsmProperties {
461
751
  export declare type CreatedByType = string;
462
752
 
463
753
  /** Resource information with extended details. */
464
- export declare interface DedicatedHsm extends DedicatedHsmResource {
465
- /**
466
- * Metadata pertaining to creation and last modification of the resource
467
- * NOTE: This property will not be serialized. It can only be populated by the server.
468
- */
469
- readonly systemData?: SystemDataAutoGenerated;
754
+ export declare interface DedicatedHsm extends TrackedResource {
755
+ /** SKU details */
756
+ sku: Sku;
757
+ /** The Dedicated Hsm zones. */
758
+ zones?: string[];
470
759
  /** Specifies the network interfaces of the dedicated hsm. */
471
760
  networkProfile?: NetworkProfile;
472
761
  /** Specifies the management network interfaces of the dedicated hsm. */
@@ -496,6 +785,12 @@ export declare interface DedicatedHsmCreateOrUpdateOptionalParams extends coreCl
496
785
  /** Contains response data for the createOrUpdate operation. */
497
786
  export declare type DedicatedHsmCreateOrUpdateResponse = DedicatedHsm;
498
787
 
788
+ /** Defines headers for DedicatedHsm_delete operation. */
789
+ export declare interface DedicatedHsmDeleteHeaders {
790
+ /** The URI to poll for completion status. */
791
+ location?: string;
792
+ }
793
+
499
794
  /** Optional parameters. */
500
795
  export declare interface DedicatedHsmDeleteOptionalParams extends coreClient.OperationOptions {
501
796
  /** Delay to wait until next poll, in milliseconds. */
@@ -504,6 +799,9 @@ export declare interface DedicatedHsmDeleteOptionalParams extends coreClient.Ope
504
799
  resumeFrom?: string;
505
800
  }
506
801
 
802
+ /** Contains response data for the delete operation. */
803
+ export declare type DedicatedHsmDeleteResponse = DedicatedHsmDeleteHeaders;
804
+
507
805
  /** The error exception. */
508
806
  export declare interface DedicatedHsmError {
509
807
  /**
@@ -574,45 +872,12 @@ export declare interface DedicatedHsmListResult {
574
872
  nextLink?: string;
575
873
  }
576
874
 
577
- /** REST API operation */
578
- export declare interface DedicatedHsmOperation {
579
- /** The name of the Dedicated HSM Resource Provider Operation. */
580
- name?: string;
581
- /**
582
- * Gets or sets a value indicating whether it is a data plane action
583
- * NOTE: This property will not be serialized. It can only be populated by the server.
584
- */
585
- readonly isDataAction?: boolean;
586
- /** The origin of the operation */
587
- origin?: string;
588
- /** The display string. */
589
- display?: DedicatedHsmOperationDisplay;
590
- }
591
-
592
- /** The display string. */
593
- export declare interface DedicatedHsmOperationDisplay {
594
- /** The Resource Provider of the operation */
595
- provider?: string;
596
- /** Resource on which the operation is performed. */
597
- resource?: string;
598
- /** Operation type: Read, write, delete, etc. */
599
- operation?: string;
600
- /** The object that represents the operation. */
601
- description?: string;
602
- }
603
-
604
- /** Result of the request to list Dedicated HSM Provider operations. It contains a list of operations. */
605
- export declare interface DedicatedHsmOperationListResult {
606
- /** List of Dedicated HSM Resource Provider operations. */
607
- value?: DedicatedHsmOperation[];
608
- }
609
-
610
875
  /** Interface representing a DedicatedHsmOperations. */
611
876
  export declare interface DedicatedHsmOperations {
612
877
  /**
613
878
  * The List operation gets information about the dedicated hsms associated with the subscription and
614
879
  * within the specified resource group.
615
- * @param resourceGroupName The name of the Resource Group to which the dedicated HSM belongs.
880
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
616
881
  * @param options The options parameters.
617
882
  */
618
883
  listByResourceGroup(resourceGroupName: string, options?: DedicatedHsmListByResourceGroupOptionalParams): PagedAsyncIterableIterator<DedicatedHsm>;
@@ -624,14 +889,14 @@ export declare interface DedicatedHsmOperations {
624
889
  /**
625
890
  * Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified
626
891
  * dedicated hsm resource. The operation returns properties of each egress endpoint.
627
- * @param resourceGroupName The name of the Resource Group to which the dedicated hsm belongs.
628
- * @param name The name of the dedicated HSM.
892
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
893
+ * @param name Name of the dedicated Hsm
629
894
  * @param options The options parameters.
630
895
  */
631
896
  listOutboundNetworkDependenciesEndpoints(resourceGroupName: string, name: string, options?: DedicatedHsmListOutboundNetworkDependenciesEndpointsOptionalParams): PagedAsyncIterableIterator<OutboundEnvironmentEndpoint>;
632
897
  /**
633
898
  * Create or Update a dedicated HSM in the specified subscription.
634
- * @param resourceGroupName The name of the Resource Group to which the resource belongs.
899
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
635
900
  * @param name Name of the dedicated Hsm
636
901
  * @param parameters Parameters to create or update the dedicated hsm
637
902
  * @param options The options parameters.
@@ -639,7 +904,7 @@ export declare interface DedicatedHsmOperations {
639
904
  beginCreateOrUpdate(resourceGroupName: string, name: string, parameters: DedicatedHsm, options?: DedicatedHsmCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<DedicatedHsmCreateOrUpdateResponse>, DedicatedHsmCreateOrUpdateResponse>>;
640
905
  /**
641
906
  * Create or Update a dedicated HSM in the specified subscription.
642
- * @param resourceGroupName The name of the Resource Group to which the resource belongs.
907
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
643
908
  * @param name Name of the dedicated Hsm
644
909
  * @param parameters Parameters to create or update the dedicated hsm
645
910
  * @param options The options parameters.
@@ -647,36 +912,36 @@ export declare interface DedicatedHsmOperations {
647
912
  beginCreateOrUpdateAndWait(resourceGroupName: string, name: string, parameters: DedicatedHsm, options?: DedicatedHsmCreateOrUpdateOptionalParams): Promise<DedicatedHsmCreateOrUpdateResponse>;
648
913
  /**
649
914
  * Update a dedicated HSM in the specified subscription.
650
- * @param resourceGroupName The name of the Resource Group to which the server belongs.
651
- * @param name Name of the dedicated HSM
915
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
916
+ * @param name Name of the dedicated Hsm
652
917
  * @param options The options parameters.
653
918
  */
654
919
  beginUpdate(resourceGroupName: string, name: string, options?: DedicatedHsmUpdateOptionalParams): Promise<SimplePollerLike<OperationState<DedicatedHsmUpdateResponse>, DedicatedHsmUpdateResponse>>;
655
920
  /**
656
921
  * Update a dedicated HSM in the specified subscription.
657
- * @param resourceGroupName The name of the Resource Group to which the server belongs.
658
- * @param name Name of the dedicated HSM
922
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
923
+ * @param name Name of the dedicated Hsm
659
924
  * @param options The options parameters.
660
925
  */
661
926
  beginUpdateAndWait(resourceGroupName: string, name: string, options?: DedicatedHsmUpdateOptionalParams): Promise<DedicatedHsmUpdateResponse>;
662
927
  /**
663
928
  * Deletes the specified Azure Dedicated HSM.
664
- * @param resourceGroupName The name of the Resource Group to which the dedicated HSM belongs.
665
- * @param name The name of the dedicated HSM to delete
929
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
930
+ * @param name Name of the dedicated Hsm
666
931
  * @param options The options parameters.
667
932
  */
668
- beginDelete(resourceGroupName: string, name: string, options?: DedicatedHsmDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
933
+ beginDelete(resourceGroupName: string, name: string, options?: DedicatedHsmDeleteOptionalParams): Promise<SimplePollerLike<OperationState<DedicatedHsmDeleteResponse>, DedicatedHsmDeleteResponse>>;
669
934
  /**
670
935
  * Deletes the specified Azure Dedicated HSM.
671
- * @param resourceGroupName The name of the Resource Group to which the dedicated HSM belongs.
672
- * @param name The name of the dedicated HSM to delete
936
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
937
+ * @param name Name of the dedicated Hsm
673
938
  * @param options The options parameters.
674
939
  */
675
- beginDeleteAndWait(resourceGroupName: string, name: string, options?: DedicatedHsmDeleteOptionalParams): Promise<void>;
940
+ beginDeleteAndWait(resourceGroupName: string, name: string, options?: DedicatedHsmDeleteOptionalParams): Promise<DedicatedHsmDeleteResponse>;
676
941
  /**
677
942
  * Gets the specified Azure dedicated HSM.
678
- * @param resourceGroupName The name of the Resource Group to which the dedicated hsm belongs.
679
- * @param name The name of the dedicated HSM.
943
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
944
+ * @param name Name of the dedicated Hsm
680
945
  * @param options The options parameters.
681
946
  */
682
947
  get(resourceGroupName: string, name: string, options?: DedicatedHsmGetOptionalParams): Promise<DedicatedHsmGetResponse>;
@@ -690,33 +955,10 @@ export declare interface DedicatedHsmPatchParameters {
690
955
  };
691
956
  }
692
957
 
693
- /** Dedicated HSM resource */
694
- export declare interface DedicatedHsmResource {
695
- /**
696
- * The Azure Resource Manager resource ID for the dedicated HSM.
697
- * NOTE: This property will not be serialized. It can only be populated by the server.
698
- */
699
- readonly id?: string;
700
- /**
701
- * The name of the dedicated HSM.
702
- * NOTE: This property will not be serialized. It can only be populated by the server.
703
- */
704
- readonly name?: string;
705
- /**
706
- * The resource type of the dedicated HSM.
707
- * NOTE: This property will not be serialized. It can only be populated by the server.
708
- */
709
- readonly type?: string;
710
- /** The supported Azure location where the dedicated HSM should be created. */
711
- location: string;
712
- /** SKU details */
713
- sku?: Sku;
714
- /** The Dedicated Hsm zones. */
715
- zones?: string[];
716
- /** Resource tags */
717
- tags?: {
718
- [propertyName: string]: string;
719
- };
958
+ /** Defines headers for DedicatedHsm_update operation. */
959
+ export declare interface DedicatedHsmUpdateHeaders {
960
+ /** The URI to poll for completion status. */
961
+ location?: string;
720
962
  }
721
963
 
722
964
  /** Optional parameters. */
@@ -754,6 +996,49 @@ export declare interface EndpointDetail {
754
996
  description?: string;
755
997
  }
756
998
 
999
+ /** The resource management error additional info. */
1000
+ export declare interface ErrorAdditionalInfo {
1001
+ /**
1002
+ * The additional info type.
1003
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1004
+ */
1005
+ readonly type?: string;
1006
+ /**
1007
+ * The additional info.
1008
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1009
+ */
1010
+ readonly info?: Record<string, unknown>;
1011
+ }
1012
+
1013
+ /** The error detail. */
1014
+ export declare interface ErrorDetail {
1015
+ /**
1016
+ * The error code.
1017
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1018
+ */
1019
+ readonly code?: string;
1020
+ /**
1021
+ * The error message.
1022
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1023
+ */
1024
+ readonly message?: string;
1025
+ /**
1026
+ * The error target.
1027
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1028
+ */
1029
+ readonly target?: string;
1030
+ /**
1031
+ * The error details.
1032
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1033
+ */
1034
+ readonly details?: ErrorDetail[];
1035
+ /**
1036
+ * The error additional info.
1037
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1038
+ */
1039
+ readonly additionalInfo?: ErrorAdditionalInfo[];
1040
+ }
1041
+
757
1042
  /** The key vault server error. */
758
1043
  export declare interface ErrorModel {
759
1044
  /**
@@ -773,6 +1058,12 @@ export declare interface ErrorModel {
773
1058
  readonly innerError?: ErrorModel;
774
1059
  }
775
1060
 
1061
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
1062
+ export declare interface ErrorResponse {
1063
+ /** The error object. */
1064
+ error?: ErrorDetail;
1065
+ }
1066
+
776
1067
  /**
777
1068
  * Given the last `.value` produced by the `byPage` iterator,
778
1069
  * returns a continuation token that can be used to begin paging from
@@ -799,7 +1090,7 @@ export declare type IdentityType = string;
799
1090
  * {@link KnownJsonWebKeyType} can be used interchangeably with JsonWebKeyType,
800
1091
  * this enum contains the known values that the service supports.
801
1092
  * ### Known values supported by the service
802
- * **Succeeded**: The dedicated HSM has been full provisioned. \
1093
+ * **Succeeded**: The dedicated HSM has been fully provisioned. \
803
1094
  * **Provisioning**: The dedicated HSM is currently being provisioned. \
804
1095
  * **Allocating**: A device is currently being allocated for the dedicated HSM resource. \
805
1096
  * **Connecting**: The dedicated HSM is being connected to the virtual network. \
@@ -809,6 +1100,50 @@ export declare type IdentityType = string;
809
1100
  */
810
1101
  export declare type JsonWebKeyType = string;
811
1102
 
1103
+ /** Known values of {@link ActionType} that the service accepts. */
1104
+ export declare enum KnownActionType {
1105
+ /** Internal */
1106
+ Internal = "Internal"
1107
+ }
1108
+
1109
+ /** Known values of {@link ActivationState} that the service accepts. */
1110
+ export declare enum KnownActivationState {
1111
+ /** NotDefined */
1112
+ NotDefined = "NotDefined",
1113
+ /** NotActivated */
1114
+ NotActivated = "NotActivated",
1115
+ /** Active */
1116
+ Active = "Active",
1117
+ /** Failed */
1118
+ Failed = "Failed",
1119
+ /** Unknown */
1120
+ Unknown = "Unknown"
1121
+ }
1122
+
1123
+ /** Known values of {@link AutoGeneratedDomainNameLabelScope} that the service accepts. */
1124
+ export declare enum KnownAutoGeneratedDomainNameLabelScope {
1125
+ /** TenantReuse */
1126
+ TenantReuse = "TenantReuse",
1127
+ /** SubscriptionReuse */
1128
+ SubscriptionReuse = "SubscriptionReuse",
1129
+ /** ResourceGroupReuse */
1130
+ ResourceGroupReuse = "ResourceGroupReuse",
1131
+ /** NoReuse */
1132
+ NoReuse = "NoReuse"
1133
+ }
1134
+
1135
+ /** Known values of {@link BackupRestoreOperationStatus} that the service accepts. */
1136
+ export declare enum KnownBackupRestoreOperationStatus {
1137
+ /** InProgress */
1138
+ InProgress = "InProgress",
1139
+ /** Succeeded */
1140
+ Succeeded = "Succeeded",
1141
+ /** Failed */
1142
+ Failed = "Failed",
1143
+ /** Cancelled */
1144
+ Cancelled = "Cancelled"
1145
+ }
1146
+
812
1147
  /** Known values of {@link CloudHsmClusterSkuFamily} that the service accepts. */
813
1148
  export declare enum KnownCloudHsmClusterSkuFamily {
814
1149
  /** B */
@@ -841,7 +1176,7 @@ export declare enum KnownIdentityType {
841
1176
 
842
1177
  /** Known values of {@link JsonWebKeyType} that the service accepts. */
843
1178
  export declare enum KnownJsonWebKeyType {
844
- /** The dedicated HSM has been full provisioned. */
1179
+ /** The dedicated HSM has been fully provisioned. */
845
1180
  Succeeded = "Succeeded",
846
1181
  /** The dedicated HSM is currently being provisioned. */
847
1182
  Provisioning = "Provisioning",
@@ -869,6 +1204,16 @@ export declare enum KnownManagedServiceIdentityType {
869
1204
  SystemAssignedUserAssigned = "SystemAssigned,UserAssigned"
870
1205
  }
871
1206
 
1207
+ /** Known values of {@link Origin} that the service accepts. */
1208
+ export declare enum KnownOrigin {
1209
+ /** User */
1210
+ User = "user",
1211
+ /** System */
1212
+ System = "system",
1213
+ /** UserSystem */
1214
+ UserSystem = "user,system"
1215
+ }
1216
+
872
1217
  /** Known values of {@link PrivateEndpointConnectionProvisioningState} that the service accepts. */
873
1218
  export declare enum KnownPrivateEndpointConnectionProvisioningState {
874
1219
  /** Succeeded */
@@ -911,6 +1256,12 @@ export declare enum KnownProvisioningState {
911
1256
  Canceled = "Canceled"
912
1257
  }
913
1258
 
1259
+ /** Known values of {@link PublicNetworkAccess} that the service accepts. */
1260
+ export declare enum KnownPublicNetworkAccess {
1261
+ /** Disabled */
1262
+ Disabled = "Disabled"
1263
+ }
1264
+
914
1265
  /** Known values of {@link SkuName} that the service accepts. */
915
1266
  export declare enum KnownSkuName {
916
1267
  /** The dedicated HSM is a Safenet Luna Network HSM A790 device. */
@@ -964,10 +1315,10 @@ export declare type ManagedServiceIdentityType = string;
964
1315
  /** The network interface definition. */
965
1316
  export declare interface NetworkInterface {
966
1317
  /**
967
- * The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/...
1318
+ * The Azure resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/...
968
1319
  * NOTE: This property will not be serialized. It can only be populated by the server.
969
1320
  */
970
- readonly id?: string;
1321
+ readonly resourceId?: string;
971
1322
  /** Private Ip address of the interface */
972
1323
  privateIpAddress?: string;
973
1324
  }
@@ -980,13 +1331,77 @@ export declare interface NetworkProfile {
980
1331
  networkInterfaces?: NetworkInterface[];
981
1332
  }
982
1333
 
1334
+ /** Details of a REST API operation, returned from the Resource Provider Operations API */
1335
+ export declare interface Operation {
1336
+ /**
1337
+ * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
1338
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1339
+ */
1340
+ readonly name?: string;
1341
+ /**
1342
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations.
1343
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1344
+ */
1345
+ readonly isDataAction?: boolean;
1346
+ /** Localized display information for this particular operation. */
1347
+ display?: OperationDisplay;
1348
+ /**
1349
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"
1350
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1351
+ */
1352
+ readonly origin?: Origin;
1353
+ /**
1354
+ * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
1355
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1356
+ */
1357
+ readonly actionType?: ActionType;
1358
+ }
1359
+
1360
+ /** Localized display information for this particular operation. */
1361
+ export declare interface OperationDisplay {
1362
+ /**
1363
+ * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute".
1364
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1365
+ */
1366
+ readonly provider?: string;
1367
+ /**
1368
+ * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections".
1369
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1370
+ */
1371
+ readonly resource?: string;
1372
+ /**
1373
+ * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine".
1374
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1375
+ */
1376
+ readonly operation?: string;
1377
+ /**
1378
+ * The short, localized friendly description of the operation; suitable for tool tips and detailed views.
1379
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1380
+ */
1381
+ readonly description?: string;
1382
+ }
1383
+
1384
+ /** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */
1385
+ export declare interface OperationListResult {
1386
+ /**
1387
+ * List of operations supported by the resource provider
1388
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1389
+ */
1390
+ readonly value?: Operation[];
1391
+ /**
1392
+ * URL to get the next set of operation list results (if there are any).
1393
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1394
+ */
1395
+ readonly nextLink?: string;
1396
+ }
1397
+
983
1398
  /** Interface representing a Operations. */
984
1399
  export declare interface Operations {
985
1400
  /**
986
- * Get a list of Dedicated HSM operations.
1401
+ * Get a list of Hardware Security Modules operations.
987
1402
  * @param options The options parameters.
988
1403
  */
989
- list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<DedicatedHsmOperation>;
1404
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
990
1405
  }
991
1406
 
992
1407
  /** Optional parameters. */
@@ -994,7 +1409,18 @@ export declare interface OperationsListOptionalParams extends coreClient.Operati
994
1409
  }
995
1410
 
996
1411
  /** Contains response data for the list operation. */
997
- export declare type OperationsListResponse = DedicatedHsmOperationListResult;
1412
+ export declare type OperationsListResponse = OperationListResult;
1413
+
1414
+ /**
1415
+ * Defines values for Origin. \
1416
+ * {@link KnownOrigin} can be used interchangeably with Origin,
1417
+ * this enum contains the known values that the service supports.
1418
+ * ### Known values supported by the service
1419
+ * **user** \
1420
+ * **system** \
1421
+ * **user,system**
1422
+ */
1423
+ export declare type Origin = string;
998
1424
 
999
1425
  /** Egress endpoints which dedicated hsm service connects to for common purpose. */
1000
1426
  export declare interface OutboundEnvironmentEndpoint {
@@ -1074,7 +1500,7 @@ export declare interface PrivateEndpointConnections {
1074
1500
  * HSM Cluster
1075
1501
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
1076
1502
  * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
1077
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
1503
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
1078
1504
  * @param options The options parameters.
1079
1505
  */
1080
1506
  listByCloudHsmCluster(resourceGroupName: string, cloudHsmClusterName: string, options?: PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams): PagedAsyncIterableIterator<PrivateEndpointConnection>;
@@ -1125,6 +1551,11 @@ export declare interface PrivateLinkResource extends Resource {
1125
1551
  export declare interface PrivateLinkResourceListResult {
1126
1552
  /** Array of private link resources */
1127
1553
  value?: PrivateLinkResource[];
1554
+ /**
1555
+ * URL to get the next set of operation list results (if there are any).
1556
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1557
+ */
1558
+ readonly nextLink?: string;
1128
1559
  }
1129
1560
 
1130
1561
  /** A collection of information about the state of the connection between service consumer and provider. */
@@ -1154,6 +1585,15 @@ export declare type ProvisioningState = string;
1154
1585
  export declare interface ProxyResource extends Resource {
1155
1586
  }
1156
1587
 
1588
+ /**
1589
+ * Defines values for PublicNetworkAccess. \
1590
+ * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess,
1591
+ * this enum contains the known values that the service supports.
1592
+ * ### Known values supported by the service
1593
+ * **Disabled**
1594
+ */
1595
+ export declare type PublicNetworkAccess = string;
1596
+
1157
1597
  /** Common fields that are returned in the response for all Azure Resource Manager resources */
1158
1598
  export declare interface Resource {
1159
1599
  /**
@@ -1178,20 +1618,16 @@ export declare interface Resource {
1178
1618
  readonly systemData?: SystemData;
1179
1619
  }
1180
1620
 
1181
- /** List of dedicated HSM resources. */
1182
- export declare interface ResourceListResult {
1183
- /** The list of dedicated HSM resources. */
1184
- value?: DedicatedHsmResource[];
1185
- /** The URL to get the next set of dedicated HSM resources. */
1186
- nextLink?: string;
1621
+ /** Cloud Hsm Cluster restore information */
1622
+ export declare interface RestoreRequestProperties extends BackupRestoreRequestBaseProperties {
1623
+ /** An autogenerated unique string ID for labeling the backup. It contains both a UUID and a date timestamp. */
1624
+ backupId: string;
1187
1625
  }
1188
1626
 
1189
- /** Cloud Hsm Cluster restore information */
1190
- export declare interface RestoreProperties {
1191
- /** Directory name in Azure Storage Blob where the backup is stored */
1192
- foldername?: string;
1193
- /** Azure Blob storage container Uri */
1194
- azureStorageResourceUri?: string;
1627
+ /** Restore operation properties */
1628
+ export declare interface RestoreResult {
1629
+ /** Backup and Restore operation common properties */
1630
+ properties?: BackupRestoreBaseResultProperties;
1195
1631
  }
1196
1632
 
1197
1633
  /** SKU of the dedicated HSM */
@@ -1231,22 +1667,6 @@ export declare interface SystemData {
1231
1667
  lastModifiedAt?: Date;
1232
1668
  }
1233
1669
 
1234
- /** Metadata pertaining to creation and last modification of dedicated hsm resource. */
1235
- export declare interface SystemDataAutoGenerated {
1236
- /** The identity that created dedicated hsm resource. */
1237
- createdBy?: string;
1238
- /** The type of identity that created dedicated hsm resource. */
1239
- createdByType?: IdentityType;
1240
- /** The timestamp of dedicated hsm resource creation (UTC). */
1241
- createdAt?: Date;
1242
- /** The identity that last modified dedicated hsm resource. */
1243
- lastModifiedBy?: string;
1244
- /** The type of identity that last modified dedicated hsm resource. */
1245
- lastModifiedByType?: IdentityType;
1246
- /** The timestamp of dedicated hsm resource last modification (UTC). */
1247
- lastModifiedAt?: Date;
1248
- }
1249
-
1250
1670
  /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
1251
1671
  export declare interface TrackedResource extends Resource {
1252
1672
  /** Resource tags. */