@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
@@ -10,7 +10,7 @@ import { setContinuationToken } from "../pagingHelper";
10
10
  import * as coreClient from "@azure/core-client";
11
11
  import * as Mappers from "../models/mappers";
12
12
  import * as Parameters from "../models/parameters";
13
- import { createHttpPoller } from "@azure/core-lro";
13
+ import { createHttpPoller, } from "@azure/core-lro";
14
14
  import { createLroSpec } from "../lroImpl";
15
15
  /// <reference lib="esnext.asynciterable" />
16
16
  /** Class containing CloudHsmClusters operations. */
@@ -42,7 +42,7 @@ export class CloudHsmClustersImpl {
42
42
  throw new Error("maxPageSize is not supported by this operation.");
43
43
  }
44
44
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
45
- }
45
+ },
46
46
  };
47
47
  }
48
48
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
@@ -103,7 +103,7 @@ export class CloudHsmClustersImpl {
103
103
  throw new Error("maxPageSize is not supported by this operation.");
104
104
  }
105
105
  return this.listBySubscriptionPagingPage(options, settings);
106
- }
106
+ },
107
107
  };
108
108
  }
109
109
  listBySubscriptionPagingPage(options, settings) {
@@ -150,7 +150,7 @@ export class CloudHsmClustersImpl {
150
150
  * Create or Update a Cloud HSM Cluster in the specified subscription.
151
151
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
152
152
  * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
153
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
153
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
154
154
  * @param location The geo-location where the resource lives
155
155
  * @param options The options parameters.
156
156
  */
@@ -174,19 +174,19 @@ export class CloudHsmClustersImpl {
174
174
  rawResponse: {
175
175
  statusCode: currentRawResponse.status,
176
176
  body: currentRawResponse.parsedBody,
177
- headers: currentRawResponse.headers.toJSON()
178
- }
177
+ headers: currentRawResponse.headers.toJSON(),
178
+ },
179
179
  };
180
180
  });
181
181
  const lro = createLroSpec({
182
182
  sendOperationFn,
183
183
  args: { resourceGroupName, cloudHsmClusterName, location, options },
184
- spec: createOrUpdateOperationSpec
184
+ spec: createOrUpdateOperationSpec,
185
185
  });
186
186
  const poller = yield createHttpPoller(lro, {
187
187
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
188
188
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
189
- resourceLocationConfig: "original-uri"
189
+ resourceLocationConfig: "original-uri",
190
190
  });
191
191
  yield poller.poll();
192
192
  return poller;
@@ -196,7 +196,7 @@ export class CloudHsmClustersImpl {
196
196
  * Create or Update a Cloud HSM Cluster in the specified subscription.
197
197
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
198
198
  * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
199
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
199
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
200
200
  * @param location The geo-location where the resource lives
201
201
  * @param options The options parameters.
202
202
  */
@@ -210,7 +210,7 @@ export class CloudHsmClustersImpl {
210
210
  * Update a Cloud HSM Cluster in the specified subscription.
211
211
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
212
212
  * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
213
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
213
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
214
214
  * @param options The options parameters.
215
215
  */
216
216
  beginUpdate(resourceGroupName, cloudHsmClusterName, options) {
@@ -233,19 +233,19 @@ export class CloudHsmClustersImpl {
233
233
  rawResponse: {
234
234
  statusCode: currentRawResponse.status,
235
235
  body: currentRawResponse.parsedBody,
236
- headers: currentRawResponse.headers.toJSON()
237
- }
236
+ headers: currentRawResponse.headers.toJSON(),
237
+ },
238
238
  };
239
239
  });
240
240
  const lro = createLroSpec({
241
241
  sendOperationFn,
242
242
  args: { resourceGroupName, cloudHsmClusterName, options },
243
- spec: updateOperationSpec
243
+ spec: updateOperationSpec,
244
244
  });
245
245
  const poller = yield createHttpPoller(lro, {
246
246
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
247
247
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
248
- resourceLocationConfig: "location"
248
+ resourceLocationConfig: "location",
249
249
  });
250
250
  yield poller.poll();
251
251
  return poller;
@@ -255,7 +255,7 @@ export class CloudHsmClustersImpl {
255
255
  * Update a Cloud HSM Cluster in the specified subscription.
256
256
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
257
257
  * @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.
258
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
259
259
  * @param options The options parameters.
260
260
  */
261
261
  beginUpdateAndWait(resourceGroupName, cloudHsmClusterName, options) {
@@ -268,7 +268,7 @@ export class CloudHsmClustersImpl {
268
268
  * Gets the specified Cloud HSM Cluster
269
269
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
270
270
  * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
271
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
271
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
272
272
  * @param options The options parameters.
273
273
  */
274
274
  get(resourceGroupName, cloudHsmClusterName, options) {
@@ -278,7 +278,7 @@ export class CloudHsmClustersImpl {
278
278
  * Deletes the specified Cloud HSM Cluster
279
279
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
280
280
  * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
281
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
281
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
282
282
  * @param options The options parameters.
283
283
  */
284
284
  beginDelete(resourceGroupName, cloudHsmClusterName, options) {
@@ -301,19 +301,19 @@ export class CloudHsmClustersImpl {
301
301
  rawResponse: {
302
302
  statusCode: currentRawResponse.status,
303
303
  body: currentRawResponse.parsedBody,
304
- headers: currentRawResponse.headers.toJSON()
305
- }
304
+ headers: currentRawResponse.headers.toJSON(),
305
+ },
306
306
  };
307
307
  });
308
308
  const lro = createLroSpec({
309
309
  sendOperationFn,
310
310
  args: { resourceGroupName, cloudHsmClusterName, options },
311
- spec: deleteOperationSpec
311
+ spec: deleteOperationSpec,
312
312
  });
313
313
  const poller = yield createHttpPoller(lro, {
314
314
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
315
315
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
316
- resourceLocationConfig: "location"
316
+ resourceLocationConfig: "location",
317
317
  });
318
318
  yield poller.poll();
319
319
  return poller;
@@ -323,7 +323,7 @@ export class CloudHsmClustersImpl {
323
323
  * Deletes the specified Cloud HSM Cluster
324
324
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
325
325
  * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
326
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
326
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
327
327
  * @param options The options parameters.
328
328
  */
329
329
  beginDeleteAndWait(resourceGroupName, cloudHsmClusterName, options) {
@@ -348,6 +348,247 @@ export class CloudHsmClustersImpl {
348
348
  _listBySubscription(options) {
349
349
  return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
350
350
  }
351
+ /**
352
+ * Pre Backup operation to validate whether the customer can perform a backup on the Cloud HSM Cluster
353
+ * resource in the specified subscription.
354
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
355
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
356
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
357
+ * @param options The options parameters.
358
+ */
359
+ beginValidateBackupProperties(resourceGroupName, cloudHsmClusterName, options) {
360
+ return __awaiter(this, void 0, void 0, function* () {
361
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
362
+ return this.client.sendOperationRequest(args, spec);
363
+ });
364
+ const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
365
+ var _a;
366
+ let currentRawResponse = undefined;
367
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
368
+ const callback = (rawResponse, flatResponse) => {
369
+ currentRawResponse = rawResponse;
370
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
371
+ };
372
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
373
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
374
+ return {
375
+ flatResponse,
376
+ rawResponse: {
377
+ statusCode: currentRawResponse.status,
378
+ body: currentRawResponse.parsedBody,
379
+ headers: currentRawResponse.headers.toJSON(),
380
+ },
381
+ };
382
+ });
383
+ const lro = createLroSpec({
384
+ sendOperationFn,
385
+ args: { resourceGroupName, cloudHsmClusterName, options },
386
+ spec: validateBackupPropertiesOperationSpec,
387
+ });
388
+ const poller = yield createHttpPoller(lro, {
389
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
390
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
391
+ resourceLocationConfig: "azure-async-operation",
392
+ });
393
+ yield poller.poll();
394
+ return poller;
395
+ });
396
+ }
397
+ /**
398
+ * Pre Backup operation to validate whether the customer can perform a backup on the Cloud HSM Cluster
399
+ * resource in the specified subscription.
400
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
401
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
402
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
403
+ * @param options The options parameters.
404
+ */
405
+ beginValidateBackupPropertiesAndWait(resourceGroupName, cloudHsmClusterName, options) {
406
+ return __awaiter(this, void 0, void 0, function* () {
407
+ const poller = yield this.beginValidateBackupProperties(resourceGroupName, cloudHsmClusterName, options);
408
+ return poller.pollUntilDone();
409
+ });
410
+ }
411
+ /**
412
+ * Create a backup of the Cloud HSM Cluster in the specified subscription
413
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
414
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
415
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
416
+ * @param options The options parameters.
417
+ */
418
+ beginBackup(resourceGroupName, cloudHsmClusterName, options) {
419
+ return __awaiter(this, void 0, void 0, function* () {
420
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
421
+ return this.client.sendOperationRequest(args, spec);
422
+ });
423
+ const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
424
+ var _a;
425
+ let currentRawResponse = undefined;
426
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
427
+ const callback = (rawResponse, flatResponse) => {
428
+ currentRawResponse = rawResponse;
429
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
430
+ };
431
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
432
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
433
+ return {
434
+ flatResponse,
435
+ rawResponse: {
436
+ statusCode: currentRawResponse.status,
437
+ body: currentRawResponse.parsedBody,
438
+ headers: currentRawResponse.headers.toJSON(),
439
+ },
440
+ };
441
+ });
442
+ const lro = createLroSpec({
443
+ sendOperationFn,
444
+ args: { resourceGroupName, cloudHsmClusterName, options },
445
+ spec: backupOperationSpec,
446
+ });
447
+ const poller = yield createHttpPoller(lro, {
448
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
449
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
450
+ resourceLocationConfig: "azure-async-operation",
451
+ });
452
+ yield poller.poll();
453
+ return poller;
454
+ });
455
+ }
456
+ /**
457
+ * Create a backup of the Cloud HSM Cluster in the specified subscription
458
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
459
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
460
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
461
+ * @param options The options parameters.
462
+ */
463
+ beginBackupAndWait(resourceGroupName, cloudHsmClusterName, options) {
464
+ return __awaiter(this, void 0, void 0, function* () {
465
+ const poller = yield this.beginBackup(resourceGroupName, cloudHsmClusterName, options);
466
+ return poller.pollUntilDone();
467
+ });
468
+ }
469
+ /**
470
+ * Queued validating pre restore operation
471
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
472
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
473
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
474
+ * @param options The options parameters.
475
+ */
476
+ beginValidateRestoreProperties(resourceGroupName, cloudHsmClusterName, options) {
477
+ return __awaiter(this, void 0, void 0, function* () {
478
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
479
+ return this.client.sendOperationRequest(args, spec);
480
+ });
481
+ const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
482
+ var _a;
483
+ let currentRawResponse = undefined;
484
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
485
+ const callback = (rawResponse, flatResponse) => {
486
+ currentRawResponse = rawResponse;
487
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
488
+ };
489
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
490
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
491
+ return {
492
+ flatResponse,
493
+ rawResponse: {
494
+ statusCode: currentRawResponse.status,
495
+ body: currentRawResponse.parsedBody,
496
+ headers: currentRawResponse.headers.toJSON(),
497
+ },
498
+ };
499
+ });
500
+ const lro = createLroSpec({
501
+ sendOperationFn,
502
+ args: { resourceGroupName, cloudHsmClusterName, options },
503
+ spec: validateRestorePropertiesOperationSpec,
504
+ });
505
+ const poller = yield createHttpPoller(lro, {
506
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
507
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
508
+ resourceLocationConfig: "azure-async-operation",
509
+ });
510
+ yield poller.poll();
511
+ return poller;
512
+ });
513
+ }
514
+ /**
515
+ * Queued validating pre restore operation
516
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
517
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
518
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
519
+ * @param options The options parameters.
520
+ */
521
+ beginValidateRestorePropertiesAndWait(resourceGroupName, cloudHsmClusterName, options) {
522
+ return __awaiter(this, void 0, void 0, function* () {
523
+ const poller = yield this.beginValidateRestoreProperties(resourceGroupName, cloudHsmClusterName, options);
524
+ return poller.pollUntilDone();
525
+ });
526
+ }
527
+ /**
528
+ * Restores all key materials of a specified Cloud HSM Cluster
529
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
530
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
531
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
532
+ * @param restoreRequestProperties Restore Operation Required properties
533
+ * @param options The options parameters.
534
+ */
535
+ beginRestore(resourceGroupName, cloudHsmClusterName, restoreRequestProperties, options) {
536
+ return __awaiter(this, void 0, void 0, function* () {
537
+ const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
538
+ return this.client.sendOperationRequest(args, spec);
539
+ });
540
+ const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
541
+ var _a;
542
+ let currentRawResponse = undefined;
543
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
544
+ const callback = (rawResponse, flatResponse) => {
545
+ currentRawResponse = rawResponse;
546
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
547
+ };
548
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
549
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
550
+ return {
551
+ flatResponse,
552
+ rawResponse: {
553
+ statusCode: currentRawResponse.status,
554
+ body: currentRawResponse.parsedBody,
555
+ headers: currentRawResponse.headers.toJSON(),
556
+ },
557
+ };
558
+ });
559
+ const lro = createLroSpec({
560
+ sendOperationFn,
561
+ args: {
562
+ resourceGroupName,
563
+ cloudHsmClusterName,
564
+ restoreRequestProperties,
565
+ options,
566
+ },
567
+ spec: restoreOperationSpec,
568
+ });
569
+ const poller = yield createHttpPoller(lro, {
570
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
571
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
572
+ resourceLocationConfig: "azure-async-operation",
573
+ });
574
+ yield poller.poll();
575
+ return poller;
576
+ });
577
+ }
578
+ /**
579
+ * Restores all key materials of a specified Cloud HSM Cluster
580
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
581
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
582
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
583
+ * @param restoreRequestProperties Restore Operation Required properties
584
+ * @param options The options parameters.
585
+ */
586
+ beginRestoreAndWait(resourceGroupName, cloudHsmClusterName, restoreRequestProperties, options) {
587
+ return __awaiter(this, void 0, void 0, function* () {
588
+ const poller = yield this.beginRestore(resourceGroupName, cloudHsmClusterName, restoreRequestProperties, options);
589
+ return poller.pollUntilDone();
590
+ });
591
+ }
351
592
  /**
352
593
  * ListByResourceGroupNext
353
594
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -373,208 +614,352 @@ const createOrUpdateOperationSpec = {
373
614
  httpMethod: "PUT",
374
615
  responses: {
375
616
  200: {
376
- bodyMapper: Mappers.CloudHsmCluster
617
+ bodyMapper: Mappers.CloudHsmCluster,
377
618
  },
378
619
  201: {
379
- bodyMapper: Mappers.CloudHsmCluster
620
+ bodyMapper: Mappers.CloudHsmCluster,
380
621
  },
381
622
  202: {
382
- bodyMapper: Mappers.CloudHsmCluster
623
+ bodyMapper: Mappers.CloudHsmCluster,
383
624
  },
384
625
  204: {
385
- bodyMapper: Mappers.CloudHsmCluster
626
+ bodyMapper: Mappers.CloudHsmCluster,
386
627
  },
387
628
  default: {
388
- bodyMapper: Mappers.CloudHsmClusterError
389
- }
629
+ bodyMapper: Mappers.ErrorResponse,
630
+ },
390
631
  },
391
632
  requestBody: {
392
633
  parameterPath: {
393
634
  tags: ["options", "tags"],
394
635
  location: ["location"],
395
- sku: ["options", "sku"],
396
636
  identity: ["options", "identity"],
397
- provisioningState: ["options", "provisioningState"],
637
+ sku: ["options", "sku"],
398
638
  autoGeneratedDomainNameLabelScope: [
399
639
  "options",
400
- "autoGeneratedDomainNameLabelScope"
640
+ "autoGeneratedDomainNameLabelScope",
401
641
  ],
402
- securityDomain: ["options", "securityDomain"],
403
- hsms: ["options", "hsms"],
404
642
  publicNetworkAccess: ["options", "publicNetworkAccess"],
405
- privateEndpointConnections: ["options", "privateEndpointConnections"],
406
- restoreProperties: ["options", "restoreProperties"],
407
- backupProperties: ["options", "backupProperties"]
408
643
  },
409
- mapper: Object.assign(Object.assign({}, Mappers.CloudHsmCluster), { required: true })
644
+ mapper: Object.assign(Object.assign({}, Mappers.CloudHsmCluster), { required: true }),
410
645
  },
411
646
  queryParameters: [Parameters.apiVersion],
412
647
  urlParameters: [
413
648
  Parameters.$host,
414
649
  Parameters.subscriptionId,
415
650
  Parameters.resourceGroupName,
416
- Parameters.cloudHsmClusterName
651
+ Parameters.cloudHsmClusterName,
417
652
  ],
418
653
  headerParameters: [Parameters.contentType, Parameters.accept],
419
654
  mediaType: "json",
420
- serializer
655
+ serializer,
421
656
  };
422
657
  const updateOperationSpec = {
423
658
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}",
424
659
  httpMethod: "PATCH",
425
660
  responses: {
426
661
  200: {
427
- bodyMapper: Mappers.CloudHsmCluster
662
+ bodyMapper: Mappers.CloudHsmCluster,
428
663
  },
429
664
  201: {
430
- bodyMapper: Mappers.CloudHsmCluster
665
+ bodyMapper: Mappers.CloudHsmCluster,
431
666
  },
432
667
  202: {
433
- bodyMapper: Mappers.CloudHsmCluster
668
+ bodyMapper: Mappers.CloudHsmCluster,
434
669
  },
435
670
  204: {
436
- bodyMapper: Mappers.CloudHsmCluster
671
+ bodyMapper: Mappers.CloudHsmCluster,
437
672
  },
438
673
  default: {
439
- bodyMapper: Mappers.CloudHsmClusterError
440
- }
674
+ bodyMapper: Mappers.ErrorResponse,
675
+ },
441
676
  },
442
677
  requestBody: {
443
678
  parameterPath: {
444
679
  tags: ["options", "tags"],
445
- sku: ["options", "sku"],
446
680
  identity: ["options", "identity"],
447
- backupProperties: ["options", "backupProperties"]
448
681
  },
449
- mapper: Object.assign(Object.assign({}, Mappers.CloudHsmClusterPatchParameters), { required: true })
682
+ mapper: Object.assign(Object.assign({}, Mappers.CloudHsmClusterPatchParameters), { required: true }),
450
683
  },
451
684
  queryParameters: [Parameters.apiVersion],
452
685
  urlParameters: [
453
686
  Parameters.$host,
454
687
  Parameters.subscriptionId,
455
688
  Parameters.resourceGroupName,
456
- Parameters.cloudHsmClusterName
689
+ Parameters.cloudHsmClusterName,
457
690
  ],
458
691
  headerParameters: [Parameters.contentType, Parameters.accept],
459
692
  mediaType: "json",
460
- serializer
693
+ serializer,
461
694
  };
462
695
  const getOperationSpec = {
463
696
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}",
464
697
  httpMethod: "GET",
465
698
  responses: {
466
699
  200: {
467
- bodyMapper: Mappers.CloudHsmCluster
700
+ bodyMapper: Mappers.CloudHsmCluster,
468
701
  },
469
702
  default: {
470
- bodyMapper: Mappers.CloudHsmClusterError
471
- }
703
+ bodyMapper: Mappers.ErrorResponse,
704
+ },
472
705
  },
473
706
  queryParameters: [Parameters.apiVersion],
474
707
  urlParameters: [
475
708
  Parameters.$host,
476
709
  Parameters.subscriptionId,
477
710
  Parameters.resourceGroupName,
478
- Parameters.cloudHsmClusterName
711
+ Parameters.cloudHsmClusterName,
479
712
  ],
480
713
  headerParameters: [Parameters.accept],
481
- serializer
714
+ serializer,
482
715
  };
483
716
  const deleteOperationSpec = {
484
717
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}",
485
718
  httpMethod: "DELETE",
486
719
  responses: {
487
- 200: {},
488
- 201: {},
489
- 202: {},
490
- 204: {},
720
+ 200: {
721
+ headersMapper: Mappers.CloudHsmClustersDeleteHeaders,
722
+ },
723
+ 201: {
724
+ headersMapper: Mappers.CloudHsmClustersDeleteHeaders,
725
+ },
726
+ 202: {
727
+ headersMapper: Mappers.CloudHsmClustersDeleteHeaders,
728
+ },
729
+ 204: {
730
+ headersMapper: Mappers.CloudHsmClustersDeleteHeaders,
731
+ },
491
732
  default: {
492
- bodyMapper: Mappers.CloudHsmClusterError
493
- }
733
+ bodyMapper: Mappers.ErrorResponse,
734
+ },
494
735
  },
495
736
  queryParameters: [Parameters.apiVersion],
496
737
  urlParameters: [
497
738
  Parameters.$host,
498
739
  Parameters.subscriptionId,
499
740
  Parameters.resourceGroupName,
500
- Parameters.cloudHsmClusterName
741
+ Parameters.cloudHsmClusterName,
501
742
  ],
502
743
  headerParameters: [Parameters.accept],
503
- serializer
744
+ serializer,
504
745
  };
505
746
  const listByResourceGroupOperationSpec = {
506
747
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters",
507
748
  httpMethod: "GET",
508
749
  responses: {
509
750
  200: {
510
- bodyMapper: Mappers.CloudHsmClusterListResult
751
+ bodyMapper: Mappers.CloudHsmClusterListResult,
511
752
  },
512
753
  default: {
513
- bodyMapper: Mappers.CloudHsmClusterError
514
- }
754
+ bodyMapper: Mappers.ErrorResponse,
755
+ },
515
756
  },
516
757
  queryParameters: [Parameters.apiVersion, Parameters.skiptoken],
517
758
  urlParameters: [
518
759
  Parameters.$host,
519
760
  Parameters.subscriptionId,
520
- Parameters.resourceGroupName
761
+ Parameters.resourceGroupName,
521
762
  ],
522
763
  headerParameters: [Parameters.accept],
523
- serializer
764
+ serializer,
524
765
  };
525
766
  const listBySubscriptionOperationSpec = {
526
767
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters",
527
768
  httpMethod: "GET",
528
769
  responses: {
529
770
  200: {
530
- bodyMapper: Mappers.CloudHsmClusterListResult
771
+ bodyMapper: Mappers.CloudHsmClusterListResult,
531
772
  },
532
773
  default: {
533
- bodyMapper: Mappers.CloudHsmClusterError
534
- }
774
+ bodyMapper: Mappers.ErrorResponse,
775
+ },
535
776
  },
536
777
  queryParameters: [Parameters.apiVersion, Parameters.skiptoken],
537
778
  urlParameters: [Parameters.$host, Parameters.subscriptionId],
538
779
  headerParameters: [Parameters.accept],
539
- serializer
780
+ serializer,
781
+ };
782
+ const validateBackupPropertiesOperationSpec = {
783
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/validateBackupProperties",
784
+ httpMethod: "POST",
785
+ responses: {
786
+ 200: {
787
+ bodyMapper: Mappers.BackupResult,
788
+ headersMapper: Mappers.CloudHsmClustersValidateBackupPropertiesHeaders,
789
+ },
790
+ 201: {
791
+ bodyMapper: Mappers.BackupResult,
792
+ headersMapper: Mappers.CloudHsmClustersValidateBackupPropertiesHeaders,
793
+ },
794
+ 202: {
795
+ bodyMapper: Mappers.BackupResult,
796
+ headersMapper: Mappers.CloudHsmClustersValidateBackupPropertiesHeaders,
797
+ },
798
+ 204: {
799
+ bodyMapper: Mappers.BackupResult,
800
+ headersMapper: Mappers.CloudHsmClustersValidateBackupPropertiesHeaders,
801
+ },
802
+ default: {
803
+ bodyMapper: Mappers.ErrorResponse,
804
+ },
805
+ },
806
+ requestBody: Parameters.backupRequestProperties,
807
+ queryParameters: [Parameters.apiVersion],
808
+ urlParameters: [
809
+ Parameters.$host,
810
+ Parameters.subscriptionId,
811
+ Parameters.resourceGroupName,
812
+ Parameters.cloudHsmClusterName,
813
+ ],
814
+ headerParameters: [Parameters.contentType, Parameters.accept],
815
+ mediaType: "json",
816
+ serializer,
817
+ };
818
+ const backupOperationSpec = {
819
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/backup",
820
+ httpMethod: "POST",
821
+ responses: {
822
+ 200: {
823
+ bodyMapper: Mappers.BackupResult,
824
+ headersMapper: Mappers.CloudHsmClustersBackupHeaders,
825
+ },
826
+ 201: {
827
+ bodyMapper: Mappers.BackupResult,
828
+ headersMapper: Mappers.CloudHsmClustersBackupHeaders,
829
+ },
830
+ 202: {
831
+ bodyMapper: Mappers.BackupResult,
832
+ headersMapper: Mappers.CloudHsmClustersBackupHeaders,
833
+ },
834
+ 204: {
835
+ bodyMapper: Mappers.BackupResult,
836
+ headersMapper: Mappers.CloudHsmClustersBackupHeaders,
837
+ },
838
+ default: {
839
+ bodyMapper: Mappers.ErrorResponse,
840
+ },
841
+ },
842
+ requestBody: Parameters.backupRequestProperties,
843
+ queryParameters: [Parameters.apiVersion],
844
+ urlParameters: [
845
+ Parameters.$host,
846
+ Parameters.subscriptionId,
847
+ Parameters.resourceGroupName,
848
+ Parameters.cloudHsmClusterName,
849
+ ],
850
+ headerParameters: [Parameters.contentType, Parameters.accept],
851
+ mediaType: "json",
852
+ serializer,
853
+ };
854
+ const validateRestorePropertiesOperationSpec = {
855
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/validateRestoreProperties",
856
+ httpMethod: "POST",
857
+ responses: {
858
+ 200: {
859
+ bodyMapper: Mappers.RestoreResult,
860
+ headersMapper: Mappers.CloudHsmClustersValidateRestorePropertiesHeaders,
861
+ },
862
+ 201: {
863
+ bodyMapper: Mappers.RestoreResult,
864
+ headersMapper: Mappers.CloudHsmClustersValidateRestorePropertiesHeaders,
865
+ },
866
+ 202: {
867
+ bodyMapper: Mappers.RestoreResult,
868
+ headersMapper: Mappers.CloudHsmClustersValidateRestorePropertiesHeaders,
869
+ },
870
+ 204: {
871
+ bodyMapper: Mappers.RestoreResult,
872
+ headersMapper: Mappers.CloudHsmClustersValidateRestorePropertiesHeaders,
873
+ },
874
+ default: {
875
+ bodyMapper: Mappers.ErrorResponse,
876
+ },
877
+ },
878
+ requestBody: Parameters.restoreRequestProperties,
879
+ queryParameters: [Parameters.apiVersion],
880
+ urlParameters: [
881
+ Parameters.$host,
882
+ Parameters.subscriptionId,
883
+ Parameters.resourceGroupName,
884
+ Parameters.cloudHsmClusterName,
885
+ ],
886
+ headerParameters: [Parameters.contentType, Parameters.accept],
887
+ mediaType: "json",
888
+ serializer,
889
+ };
890
+ const restoreOperationSpec = {
891
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/restore",
892
+ httpMethod: "POST",
893
+ responses: {
894
+ 200: {
895
+ bodyMapper: Mappers.RestoreResult,
896
+ headersMapper: Mappers.CloudHsmClustersRestoreHeaders,
897
+ },
898
+ 201: {
899
+ bodyMapper: Mappers.RestoreResult,
900
+ headersMapper: Mappers.CloudHsmClustersRestoreHeaders,
901
+ },
902
+ 202: {
903
+ bodyMapper: Mappers.RestoreResult,
904
+ headersMapper: Mappers.CloudHsmClustersRestoreHeaders,
905
+ },
906
+ 204: {
907
+ bodyMapper: Mappers.RestoreResult,
908
+ headersMapper: Mappers.CloudHsmClustersRestoreHeaders,
909
+ },
910
+ default: {
911
+ bodyMapper: Mappers.ErrorResponse,
912
+ },
913
+ },
914
+ requestBody: Parameters.restoreRequestProperties1,
915
+ queryParameters: [Parameters.apiVersion],
916
+ urlParameters: [
917
+ Parameters.$host,
918
+ Parameters.subscriptionId,
919
+ Parameters.resourceGroupName,
920
+ Parameters.cloudHsmClusterName,
921
+ ],
922
+ headerParameters: [Parameters.contentType, Parameters.accept],
923
+ mediaType: "json",
924
+ serializer,
540
925
  };
541
926
  const listByResourceGroupNextOperationSpec = {
542
927
  path: "{nextLink}",
543
928
  httpMethod: "GET",
544
929
  responses: {
545
930
  200: {
546
- bodyMapper: Mappers.CloudHsmClusterListResult
931
+ bodyMapper: Mappers.CloudHsmClusterListResult,
547
932
  },
548
933
  default: {
549
- bodyMapper: Mappers.CloudHsmClusterError
550
- }
934
+ bodyMapper: Mappers.ErrorResponse,
935
+ },
551
936
  },
552
937
  urlParameters: [
553
938
  Parameters.$host,
554
939
  Parameters.subscriptionId,
555
940
  Parameters.resourceGroupName,
556
- Parameters.nextLink
941
+ Parameters.nextLink,
557
942
  ],
558
943
  headerParameters: [Parameters.accept],
559
- serializer
944
+ serializer,
560
945
  };
561
946
  const listBySubscriptionNextOperationSpec = {
562
947
  path: "{nextLink}",
563
948
  httpMethod: "GET",
564
949
  responses: {
565
950
  200: {
566
- bodyMapper: Mappers.CloudHsmClusterListResult
951
+ bodyMapper: Mappers.CloudHsmClusterListResult,
567
952
  },
568
953
  default: {
569
- bodyMapper: Mappers.CloudHsmClusterError
570
- }
954
+ bodyMapper: Mappers.ErrorResponse,
955
+ },
571
956
  },
572
957
  urlParameters: [
573
958
  Parameters.$host,
574
959
  Parameters.subscriptionId,
575
- Parameters.nextLink
960
+ Parameters.nextLink,
576
961
  ],
577
962
  headerParameters: [Parameters.accept],
578
- serializer
963
+ serializer,
579
964
  };
580
965
  //# sourceMappingURL=cloudHsmClusters.js.map