@azure/arm-hardwaresecuritymodules 2.0.0-alpha.20240110.1 → 2.0.0-beta.1

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 (175) hide show
  1. package/CHANGELOG.md +82 -1
  2. package/LICENSE +1 -1
  3. package/README.md +14 -14
  4. package/dist/index.js +2215 -425
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsCreateSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsCreateSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsCreateSample.js +46 -0
  11. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsCreateSample.js.map +1 -0
  12. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.js +40 -0
  15. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.js.map +1 -0
  16. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsGetSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsGetSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsGetSample.js +40 -0
  19. package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsGetSample.js.map +1 -0
  20. package/dist-esm/samples-dev/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.js +39 -0
  23. package/dist-esm/samples-dev/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.js.map +1 -0
  24. package/dist-esm/samples-dev/cloudHsmClustersCreateOrUpdateSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/cloudHsmClustersCreateOrUpdateSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/cloudHsmClustersCreateOrUpdateSample.js +53 -0
  27. package/dist-esm/samples-dev/cloudHsmClustersCreateOrUpdateSample.js.map +1 -0
  28. package/dist-esm/samples-dev/cloudHsmClustersDeleteSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/cloudHsmClustersDeleteSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/cloudHsmClustersDeleteSample.js +39 -0
  31. package/dist-esm/samples-dev/cloudHsmClustersDeleteSample.js.map +1 -0
  32. package/dist-esm/samples-dev/cloudHsmClustersGetSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/cloudHsmClustersGetSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/cloudHsmClustersGetSample.js +39 -0
  35. package/dist-esm/samples-dev/cloudHsmClustersGetSample.js.map +1 -0
  36. package/dist-esm/samples-dev/cloudHsmClustersListByResourceGroupSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/cloudHsmClustersListByResourceGroupSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/cloudHsmClustersListByResourceGroupSample.js +54 -0
  39. package/dist-esm/samples-dev/cloudHsmClustersListByResourceGroupSample.js.map +1 -0
  40. package/dist-esm/samples-dev/cloudHsmClustersListBySubscriptionSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/cloudHsmClustersListBySubscriptionSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/cloudHsmClustersListBySubscriptionSample.js +53 -0
  43. package/dist-esm/samples-dev/cloudHsmClustersListBySubscriptionSample.js.map +1 -0
  44. package/dist-esm/samples-dev/cloudHsmClustersUpdateSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/cloudHsmClustersUpdateSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/cloudHsmClustersUpdateSample.js +47 -0
  47. package/dist-esm/samples-dev/cloudHsmClustersUpdateSample.js.map +1 -0
  48. package/dist-esm/samples-dev/dedicatedHsmCreateOrUpdateSample.js +23 -13
  49. package/dist-esm/samples-dev/dedicatedHsmCreateOrUpdateSample.js.map +1 -1
  50. package/dist-esm/samples-dev/dedicatedHsmDeleteSample.js +13 -5
  51. package/dist-esm/samples-dev/dedicatedHsmDeleteSample.js.map +1 -1
  52. package/dist-esm/samples-dev/dedicatedHsmGetSample.js +23 -13
  53. package/dist-esm/samples-dev/dedicatedHsmGetSample.js.map +1 -1
  54. package/dist-esm/samples-dev/dedicatedHsmListByResourceGroupSample.js +18 -9
  55. package/dist-esm/samples-dev/dedicatedHsmListByResourceGroupSample.js.map +1 -1
  56. package/dist-esm/samples-dev/dedicatedHsmListBySubscriptionSample.js +16 -7
  57. package/dist-esm/samples-dev/dedicatedHsmListBySubscriptionSample.js.map +1 -1
  58. package/dist-esm/samples-dev/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.js +13 -5
  59. package/dist-esm/samples-dev/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.js.map +1 -1
  60. package/dist-esm/samples-dev/dedicatedHsmUpdateSample.js +18 -9
  61. package/dist-esm/samples-dev/dedicatedHsmUpdateSample.js.map +1 -1
  62. package/dist-esm/samples-dev/operationsListSample.js +16 -7
  63. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  64. package/dist-esm/samples-dev/privateEndpointConnectionsListByCloudHsmClusterSample.d.ts +2 -0
  65. package/dist-esm/samples-dev/privateEndpointConnectionsListByCloudHsmClusterSample.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/privateEndpointConnectionsListByCloudHsmClusterSample.js +55 -0
  67. package/dist-esm/samples-dev/privateEndpointConnectionsListByCloudHsmClusterSample.js.map +1 -0
  68. package/dist-esm/src/azureHSMResourceProvider.d.ts +22 -0
  69. package/dist-esm/src/azureHSMResourceProvider.d.ts.map +1 -0
  70. package/dist-esm/src/{azureDedicatedHSMResourceProvider.js → azureHSMResourceProvider.js} +10 -37
  71. package/dist-esm/src/azureHSMResourceProvider.js.map +1 -0
  72. package/dist-esm/src/index.d.ts +1 -1
  73. package/dist-esm/src/index.d.ts.map +1 -1
  74. package/dist-esm/src/index.js +1 -1
  75. package/dist-esm/src/index.js.map +1 -1
  76. package/dist-esm/src/lroImpl.d.ts +6 -11
  77. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  78. package/dist-esm/src/lroImpl.js +12 -20
  79. package/dist-esm/src/lroImpl.js.map +1 -1
  80. package/dist-esm/src/models/index.d.ts +538 -8
  81. package/dist-esm/src/models/index.d.ts.map +1 -1
  82. package/dist-esm/src/models/index.js +72 -0
  83. package/dist-esm/src/models/index.js.map +1 -1
  84. package/dist-esm/src/models/mappers.d.ts +28 -2
  85. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  86. package/dist-esm/src/models/mappers.js +692 -7
  87. package/dist-esm/src/models/mappers.js.map +1 -1
  88. package/dist-esm/src/models/parameters.d.ts +27 -5
  89. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  90. package/dist-esm/src/models/parameters.js +161 -29
  91. package/dist-esm/src/models/parameters.js.map +1 -1
  92. package/dist-esm/src/operations/cloudHsmClusterPrivateEndpointConnections.d.ts +55 -0
  93. package/dist-esm/src/operations/cloudHsmClusterPrivateEndpointConnections.d.ts.map +1 -0
  94. package/dist-esm/src/operations/cloudHsmClusterPrivateEndpointConnections.js +193 -0
  95. package/dist-esm/src/operations/cloudHsmClusterPrivateEndpointConnections.js.map +1 -0
  96. package/dist-esm/src/operations/cloudHsmClusterPrivateLinkResources.d.ts +21 -0
  97. package/dist-esm/src/operations/cloudHsmClusterPrivateLinkResources.d.ts.map +1 -0
  98. package/dist-esm/src/operations/cloudHsmClusterPrivateLinkResources.js +54 -0
  99. package/dist-esm/src/operations/cloudHsmClusterPrivateLinkResources.js.map +1 -0
  100. package/dist-esm/src/operations/cloudHsmClusters.d.ts +114 -0
  101. package/dist-esm/src/operations/cloudHsmClusters.d.ts.map +1 -0
  102. package/dist-esm/src/operations/cloudHsmClusters.js +580 -0
  103. package/dist-esm/src/operations/cloudHsmClusters.js.map +1 -0
  104. package/dist-esm/src/operations/dedicatedHsmOperations.d.ts +6 -6
  105. package/dist-esm/src/operations/dedicatedHsmOperations.d.ts.map +1 -1
  106. package/dist-esm/src/operations/dedicatedHsmOperations.js +51 -39
  107. package/dist-esm/src/operations/dedicatedHsmOperations.js.map +1 -1
  108. package/dist-esm/src/operations/index.d.ts +4 -0
  109. package/dist-esm/src/operations/index.d.ts.map +1 -1
  110. package/dist-esm/src/operations/index.js +4 -0
  111. package/dist-esm/src/operations/index.js.map +1 -1
  112. package/dist-esm/src/operations/operations.d.ts +2 -2
  113. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  114. package/dist-esm/src/operations/operations.js +1 -1
  115. package/dist-esm/src/operations/operations.js.map +1 -1
  116. package/dist-esm/src/operations/privateEndpointConnections.d.ts +43 -0
  117. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  118. package/dist-esm/src/operations/privateEndpointConnections.js +155 -0
  119. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.d.ts +47 -0
  121. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.js.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.d.ts +13 -0
  125. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.d.ts.map +1 -0
  126. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.js +9 -0
  127. package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.js.map +1 -0
  128. package/dist-esm/src/operationsInterfaces/cloudHsmClusters.d.ts +77 -0
  129. package/dist-esm/src/operationsInterfaces/cloudHsmClusters.d.ts.map +1 -0
  130. package/dist-esm/src/operationsInterfaces/cloudHsmClusters.js +9 -0
  131. package/dist-esm/src/operationsInterfaces/cloudHsmClusters.js.map +1 -0
  132. package/dist-esm/src/operationsInterfaces/dedicatedHsmOperations.d.ts +4 -4
  133. package/dist-esm/src/operationsInterfaces/dedicatedHsmOperations.d.ts.map +1 -1
  134. package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
  135. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  136. package/dist-esm/src/operationsInterfaces/index.js +4 -0
  137. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  138. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +15 -0
  139. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  140. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  141. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  142. package/dist-esm/test/hardwaresecuritymodules_operations_test.spec.d.ts +4 -0
  143. package/dist-esm/test/hardwaresecuritymodules_operations_test.spec.d.ts.map +1 -0
  144. package/dist-esm/test/hardwaresecuritymodules_operations_test.spec.js +73 -0
  145. package/dist-esm/test/hardwaresecuritymodules_operations_test.spec.js.map +1 -0
  146. package/package.json +15 -12
  147. package/review/arm-hardwaresecuritymodules.api.md +426 -19
  148. package/src/{azureDedicatedHSMResourceProvider.ts → azureHSMResourceProvider.ts} +35 -46
  149. package/src/index.ts +1 -1
  150. package/src/lroImpl.ts +31 -23
  151. package/src/models/index.ts +599 -8
  152. package/src/models/mappers.ts +751 -7
  153. package/src/models/parameters.ts +187 -30
  154. package/src/operations/cloudHsmClusterPrivateEndpointConnections.ts +263 -0
  155. package/src/operations/cloudHsmClusterPrivateLinkResources.ts +74 -0
  156. package/src/operations/cloudHsmClusters.ts +750 -0
  157. package/src/operations/dedicatedHsmOperations.ts +69 -59
  158. package/src/operations/index.ts +4 -0
  159. package/src/operations/operations.ts +4 -4
  160. package/src/operations/privateEndpointConnections.ts +208 -0
  161. package/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.ts +83 -0
  162. package/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.ts +28 -0
  163. package/src/operationsInterfaces/cloudHsmClusters.ts +142 -0
  164. package/src/operationsInterfaces/dedicatedHsmOperations.ts +6 -6
  165. package/src/operationsInterfaces/index.ts +4 -0
  166. package/src/operationsInterfaces/privateEndpointConnections.ts +31 -0
  167. package/types/arm-hardwaresecuritymodules.d.ts +773 -34
  168. package/types/tsdoc-metadata.json +1 -1
  169. package/dist-esm/src/azureDedicatedHSMResourceProvider.d.ts +0 -22
  170. package/dist-esm/src/azureDedicatedHSMResourceProvider.d.ts.map +0 -1
  171. package/dist-esm/src/azureDedicatedHSMResourceProvider.js.map +0 -1
  172. package/dist-esm/test/sampleTest.d.ts +0 -2
  173. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  174. package/dist-esm/test/sampleTest.js +0 -38
  175. package/dist-esm/test/sampleTest.js.map +0 -1
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=cloudHsmClusterPrivateEndpointConnections.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloudHsmClusterPrivateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,13 @@
1
+ import { CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams, CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterResponse } from "../models";
2
+ /** Interface representing a CloudHsmClusterPrivateLinkResources. */
3
+ export interface CloudHsmClusterPrivateLinkResources {
4
+ /**
5
+ * Gets the private link resources supported for the Cloud Hsm Cluster.
6
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
8
+ * Cloud HSM Cluster names must be between 3 and 24 characters in length.
9
+ * @param options The options parameters.
10
+ */
11
+ listByCloudHsmCluster(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams): Promise<CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterResponse>;
12
+ }
13
+ //# sourceMappingURL=cloudHsmClusterPrivateLinkResources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloudHsmClusterPrivateLinkResources.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,sEAAsE,EACtE,gEAAgE,EACjE,MAAM,WAAW,CAAC;AAEnB,oEAAoE;AACpE,MAAM,WAAW,mCAAmC;IAClD;;;;;;OAMG;IACH,qBAAqB,CACnB,iBAAiB,EAAE,MAAM,EACzB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,sEAAsE,GAC/E,OAAO,CAAC,gEAAgE,CAAC,CAAC;CAC9E"}
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=cloudHsmClusterPrivateLinkResources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloudHsmClusterPrivateLinkResources.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,77 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
3
+ import { CloudHsmCluster, CloudHsmClustersListByResourceGroupOptionalParams, CloudHsmClustersListBySubscriptionOptionalParams, CloudHsmClustersCreateOrUpdateOptionalParams, CloudHsmClustersCreateOrUpdateResponse, CloudHsmClustersUpdateOptionalParams, CloudHsmClustersUpdateResponse, CloudHsmClustersGetOptionalParams, CloudHsmClustersGetResponse, CloudHsmClustersDeleteOptionalParams } from "../models";
4
+ /** Interface representing a CloudHsmClusters. */
5
+ export interface CloudHsmClusters {
6
+ /**
7
+ * The List operation gets information about the Cloud HSM Clusters associated with the subscription
8
+ * and within the specified resource group.
9
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
10
+ * @param options The options parameters.
11
+ */
12
+ listByResourceGroup(resourceGroupName: string, options?: CloudHsmClustersListByResourceGroupOptionalParams): PagedAsyncIterableIterator<CloudHsmCluster>;
13
+ /**
14
+ * The List operation gets information about the Cloud HSM Clusters associated with the subscription.
15
+ * @param options The options parameters.
16
+ */
17
+ listBySubscription(options?: CloudHsmClustersListBySubscriptionOptionalParams): PagedAsyncIterableIterator<CloudHsmCluster>;
18
+ /**
19
+ * Create or Update a Cloud HSM Cluster in the specified subscription.
20
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
21
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
22
+ * Cloud HSM Cluster names must be between 3 and 24 characters in length.
23
+ * @param location The geo-location where the resource lives
24
+ * @param options The options parameters.
25
+ */
26
+ beginCreateOrUpdate(resourceGroupName: string, cloudHsmClusterName: string, location: string, options?: CloudHsmClustersCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<CloudHsmClustersCreateOrUpdateResponse>, CloudHsmClustersCreateOrUpdateResponse>>;
27
+ /**
28
+ * Create or Update a Cloud HSM Cluster in the specified subscription.
29
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
30
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
31
+ * Cloud HSM Cluster names must be between 3 and 24 characters in length.
32
+ * @param location The geo-location where the resource lives
33
+ * @param options The options parameters.
34
+ */
35
+ beginCreateOrUpdateAndWait(resourceGroupName: string, cloudHsmClusterName: string, location: string, options?: CloudHsmClustersCreateOrUpdateOptionalParams): Promise<CloudHsmClustersCreateOrUpdateResponse>;
36
+ /**
37
+ * Update a Cloud HSM Cluster in the specified subscription.
38
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
39
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
40
+ * Cloud HSM Cluster names must be between 3 and 24 characters in length.
41
+ * @param options The options parameters.
42
+ */
43
+ beginUpdate(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersUpdateOptionalParams): Promise<SimplePollerLike<OperationState<CloudHsmClustersUpdateResponse>, CloudHsmClustersUpdateResponse>>;
44
+ /**
45
+ * Update a Cloud HSM Cluster in the specified subscription.
46
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
47
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
48
+ * Cloud HSM Cluster names must be between 3 and 24 characters in length.
49
+ * @param options The options parameters.
50
+ */
51
+ beginUpdateAndWait(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersUpdateOptionalParams): Promise<CloudHsmClustersUpdateResponse>;
52
+ /**
53
+ * Gets the specified Cloud HSM Cluster
54
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
55
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
56
+ * Cloud HSM Cluster names must be between 3 and 24 characters in length.
57
+ * @param options The options parameters.
58
+ */
59
+ get(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersGetOptionalParams): Promise<CloudHsmClustersGetResponse>;
60
+ /**
61
+ * Deletes the specified Cloud HSM Cluster
62
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
63
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
64
+ * Cloud HSM Cluster names must be between 3 and 24 characters in length.
65
+ * @param options The options parameters.
66
+ */
67
+ beginDelete(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
68
+ /**
69
+ * Deletes the specified Cloud HSM Cluster
70
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
71
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
72
+ * Cloud HSM Cluster names must be between 3 and 24 characters in length.
73
+ * @param options The options parameters.
74
+ */
75
+ beginDeleteAndWait(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersDeleteOptionalParams): Promise<void>;
76
+ }
77
+ //# sourceMappingURL=cloudHsmClusters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloudHsmClusters.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/cloudHsmClusters.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,eAAe,EACf,iDAAiD,EACjD,gDAAgD,EAChD,4CAA4C,EAC5C,sCAAsC,EACtC,oCAAoC,EACpC,8BAA8B,EAC9B,iCAAiC,EACjC,2BAA2B,EAC3B,oCAAoC,EACrC,MAAM,WAAW,CAAC;AAGnB,iDAAiD;AACjD,MAAM,WAAW,gBAAgB;IAC/B;;;;;OAKG;IACH,mBAAmB,CACjB,iBAAiB,EAAE,MAAM,EACzB,OA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AAgB,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACzD;;;;;;OAMG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=cloudHsmClusters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloudHsmClusters.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/cloudHsmClusters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -1,5 +1,5 @@
1
1
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { PollerLike, PollOperationState } from "@azure/core-lro";
2
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
3
3
  import { DedicatedHsm, DedicatedHsmListByResourceGroupOptionalParams, DedicatedHsmListBySubscriptionOptionalParams, OutboundEnvironmentEndpoint, DedicatedHsmListOutboundNetworkDependenciesEndpointsOptionalParams, DedicatedHsmCreateOrUpdateOptionalParams, DedicatedHsmCreateOrUpdateResponse, DedicatedHsmUpdateOptionalParams, DedicatedHsmUpdateResponse, DedicatedHsmDeleteOptionalParams, DedicatedHsmGetOptionalParams, DedicatedHsmGetResponse } from "../models";
4
4
  /** Interface representing a DedicatedHsmOperations. */
5
5
  export interface DedicatedHsmOperations {
@@ -30,7 +30,7 @@ export interface DedicatedHsmOperations {
30
30
  * @param parameters Parameters to create or update the dedicated hsm
31
31
  * @param options The options parameters.
32
32
  */
33
- beginCreateOrUpdate(resourceGroupName: string, name: string, parameters: DedicatedHsm, options?: DedicatedHsmCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<DedicatedHsmCreateOrUpdateResponse>, DedicatedHsmCreateOrUpdateResponse>>;
33
+ beginCreateOrUpdate(resourceGroupName: string, name: string, parameters: DedicatedHsm, options?: DedicatedHsmCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<DedicatedHsmCreateOrUpdateResponse>, DedicatedHsmCreateOrUpdateResponse>>;
34
34
  /**
35
35
  * Create or Update a dedicated HSM in the specified subscription.
36
36
  * @param resourceGroupName The name of the Resource Group to which the resource belongs.
@@ -45,7 +45,7 @@ export interface DedicatedHsmOperations {
45
45
  * @param name Name of the dedicated HSM
46
46
  * @param options The options parameters.
47
47
  */
48
- beginUpdate(resourceGroupName: string, name: string, options?: DedicatedHsmUpdateOptionalParams): Promise<PollerLike<PollOperationState<DedicatedHsmUpdateResponse>, DedicatedHsmUpdateResponse>>;
48
+ beginUpdate(resourceGroupName: string, name: string, options?: DedicatedHsmUpdateOptionalParams): Promise<SimplePollerLike<OperationState<DedicatedHsmUpdateResponse>, DedicatedHsmUpdateResponse>>;
49
49
  /**
50
50
  * Update a dedicated HSM in the specified subscription.
51
51
  * @param resourceGroupName The name of the Resource Group to which the server belongs.
@@ -59,7 +59,7 @@ export interface DedicatedHsmOperations {
59
59
  * @param name The name of the dedicated HSM to delete
60
60
  * @param options The options parameters.
61
61
  */
62
- beginDelete(resourceGroupName: string, name: string, options?: DedicatedHsmDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
62
+ beginDelete(resourceGroupName: string, name: string, options?: DedicatedHsmDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
63
63
  /**
64
64
  * Deletes the specified Azure Dedicated HSM.
65
65
  * @param resourceGroupName The name of the Resource Group to which the dedicated HSM belongs.
@@ -1 +1 @@
1
- {"version":3,"file":"dedicatedHsmOperations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/dedicatedHsmOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,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CAAC,EAAE,gCAAgC,GACzC,OAAO,CACR,UAAU,CACR,kBAAkB,CAAC,0BAA0B,CAAC,EAC9C,0BAA0B,CAC3B,CACF,CAAC;IACF;;;;;OAKG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC,CAAC;IACvC;;;;;OAKG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACvD;;;;;OAKG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,uBAAuB,CAAC,CAAC;CACrC"}
1
+ {"version":3,"file":"dedicatedHsmOperations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/dedicatedHsmOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,YAAY,EACZ,6CAA6C,EAC7C,4CAA4C,EAC5C,2BAA2B,EAC3B,kEAAkE,EAClE,wCAAwC,EACxC,kCAAkC,EAClC,gCAAgC,EAChC,0BAA0B,EAC1B,gCAAgC,EAChC,6BAA6B,EAC7B,uBAAuB,EACxB,MAAM,WAAW,CAAC;AAGnB,uDAAuD;AACvD,MAAM,WAAW,sBA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,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACzD;;;;;OAKG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,uBAAuB,CAAC,CAAC;CACrC"}
@@ -1,3 +1,7 @@
1
+ export * from "./cloudHsmClusters";
2
+ export * from "./cloudHsmClusterPrivateLinkResources";
3
+ export * from "./cloudHsmClusterPrivateEndpointConnections";
4
+ export * from "./privateEndpointConnections";
1
5
  export * from "./operations";
2
6
  export * from "./dedicatedHsmOperations";
3
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,oBAAoB,CAAC;AACnC,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC"}
@@ -5,6 +5,10 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
+ export * from "./cloudHsmClusters";
9
+ export * from "./cloudHsmClusterPrivateLinkResources";
10
+ export * from "./cloudHsmClusterPrivateEndpointConnections";
11
+ export * from "./privateEndpointConnections";
8
12
  export * from "./operations";
9
13
  export * from "./dedicatedHsmOperations";
10
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,oBAAoB,CAAC;AACnC,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { PrivateEndpointConnection, PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams } from "../models";
3
+ /** Interface representing a PrivateEndpointConnections. */
4
+ export interface PrivateEndpointConnections {
5
+ /**
6
+ * The List operation gets information about the private endpoint connections associated with the Cloud
7
+ * HSM Cluster
8
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
10
+ * Cloud HSM Cluster names must be between 3 and 24 characters in length.
11
+ * @param options The options parameters.
12
+ */
13
+ listByCloudHsmCluster(resourceGroupName: string, cloudHsmClusterName: string, options?: PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams): PagedAsyncIterableIterator<PrivateEndpointConnection>;
14
+ }
15
+ //# sourceMappingURL=privateEndpointConnections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnections.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/privateEndpointConnections.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,yBAAyB,EACzB,6DAA6D,EAC9D,MAAM,WAAW,CAAC;AAGnB,2DAA2D;AAC3D,MAAM,WAAW,0BAA0B;IACzC;;;;;;;OAOG;IACH,qBAAqB,CACnB,iBAAiB,EAAE,MAAM,EACzB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,6DAA6D,GACtE,0BAA0B,CAAC,yBAAyB,CAAC,CAAC;CAC1D"}
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=privateEndpointConnections.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/privateEndpointConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,4 @@
1
+ export declare const testPollingOptions: {
2
+ updateIntervalInMs: number | undefined;
3
+ };
4
+ //# sourceMappingURL=hardwaresecuritymodules_operations_test.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hardwaresecuritymodules_operations_test.spec.d.ts","sourceRoot":"","sources":["../../test/hardwaresecuritymodules_operations_test.spec.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"}
@@ -0,0 +1,73 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ import { env, Recorder, isPlaybackMode, } from "@azure-tools/test-recorder";
10
+ import { createTestCredential } from "@azure-tools/test-credential";
11
+ import { assert } from "chai";
12
+ import { AzureHSMResourceProvider } from "../src/azureHSMResourceProvider";
13
+ const replaceableVariables = {
14
+ AZURE_CLIENT_ID: "azure_client_id",
15
+ AZURE_CLIENT_SECRET: "azure_client_secret",
16
+ AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
17
+ SUBSCRIPTION_ID: "azure_subscription_id"
18
+ };
19
+ const recorderOptions = {
20
+ envSetupForPlayback: replaceableVariables
21
+ };
22
+ export const testPollingOptions = {
23
+ updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
24
+ };
25
+ describe("hardwaresecuritymodules test", () => {
26
+ let recorder;
27
+ let subscriptionId;
28
+ let client;
29
+ let location;
30
+ let resourceGroup;
31
+ let resourcename;
32
+ beforeEach(function () {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ recorder = new Recorder(this.currentTest);
35
+ yield recorder.start(recorderOptions);
36
+ subscriptionId = env.SUBSCRIPTION_ID || '';
37
+ // This is an example of how the environment variables are used
38
+ const credential = createTestCredential();
39
+ client = new AzureHSMResourceProvider(credential, subscriptionId, recorder.configureClientOptions({}));
40
+ location = "ukwest";
41
+ resourceGroup = "myjstest";
42
+ resourcename = "resourcetest";
43
+ });
44
+ });
45
+ afterEach(function () {
46
+ return __awaiter(this, void 0, void 0, function* () {
47
+ yield recorder.stop();
48
+ });
49
+ });
50
+ it("operation list test", function () {
51
+ var _a, e_1, _b, _c;
52
+ return __awaiter(this, void 0, void 0, function* () {
53
+ const resArray = new Array();
54
+ try {
55
+ for (var _d = true, _e = __asyncValues(client.operations.list()), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
56
+ _c = _f.value;
57
+ _d = false;
58
+ let item = _c;
59
+ resArray.push(item);
60
+ }
61
+ }
62
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
63
+ finally {
64
+ try {
65
+ if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
66
+ }
67
+ finally { if (e_1) throw e_1.error; }
68
+ }
69
+ assert.notEqual(resArray.length, 0);
70
+ });
71
+ });
72
+ });
73
+ //# sourceMappingURL=hardwaresecuritymodules_operations_test.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hardwaresecuritymodules_operations_test.spec.js","sourceRoot":"","sources":["../../test/hardwaresecuritymodules_operations_test.spec.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,QAAQ,EAGR,cAAc,GACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAE3E,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CACrD,CAAC;AAEF,QAAQ,CAAC,8BAA8B,EAAE,GAAG,EAAE;IAC5C,IAAI,QAAkB,CAAC;IACvB,IAAI,cAAsB,CAAC;IAC3B,IAAI,MAAgC,CAAC;IACrC,IAAI,QAAgB,CAAC;IACrB,IAAI,aAAqB,CAAC;IAC1B,IAAI,YAAoB,CAAC;IAEzB,UAAU,CAAC;;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;YACtC,cAAc,GAAG,GAAG,CAAC,eAAe,IAAI,EAAE,CAAC;YAC3C,+DAA+D;YAC/D,MAAM,UAAU,GAAG,oBAAoB,EAAE,CAAC;YAC1C,MAAM,GAAG,IAAI,wBAAwB,CAAC,UAAU,EAAE,cAAc,EAAE,QAAQ,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC,CAAC;YACvG,QAAQ,GAAG,QAAQ,CAAC;YACpB,aAAa,GAAG,UAAU,CAAC;YAC3B,YAAY,GAAG,cAAc,CAAC;QAEhC,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,qBAAqB,EAAE;;;YACxB,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;gBAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA,sDAAE;oBAA1B,cAAwB;oBAAxB,WAAwB;oBAApC,IAAI,IAAI,KAAA,CAAA;oBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;iBACrB;;;;;;;;;YACD,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;;KACrC,CAAC,CAAC;AAEL,CAAC,CAAC,CAAA"}
package/package.json CHANGED
@@ -2,18 +2,18 @@
2
2
  "name": "@azure/arm-hardwaresecuritymodules",
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
- "description": "A generated SDK for AzureDedicatedHSMResourceProvider.",
6
- "version": "2.0.0-alpha.20240110.1",
5
+ "description": "A generated SDK for AzureHSMResourceProvider.",
6
+ "version": "2.0.0-beta.1",
7
7
  "engines": {
8
8
  "node": ">=18.0.0"
9
9
  },
10
10
  "dependencies": {
11
- "@azure/core-lro": "^2.2.0",
11
+ "@azure/core-lro": "^2.5.4",
12
12
  "@azure/abort-controller": "^1.0.0",
13
13
  "@azure/core-paging": "^1.2.0",
14
- "@azure/core-client": "^1.6.1",
14
+ "@azure/core-client": "^1.7.0",
15
15
  "@azure/core-auth": "^1.3.0",
16
- "@azure/core-rest-pipeline": "^1.8.0",
16
+ "@azure/core-rest-pipeline": "^1.12.0",
17
17
  "tslib": "^2.2.0"
18
18
  },
19
19
  "keywords": [
@@ -29,22 +29,24 @@
29
29
  "types": "./types/arm-hardwaresecuritymodules.d.ts",
30
30
  "devDependencies": {
31
31
  "@microsoft/api-extractor": "^7.31.1",
32
- "mkdirp": "^1.0.4",
32
+ "mkdirp": "^2.1.2",
33
33
  "typescript": "~5.2.0",
34
34
  "uglify-js": "^3.4.9",
35
- "rimraf": "^3.0.0",
35
+ "rimraf": "^5.0.0",
36
+ "dotenv": "^16.0.0",
37
+ "@azure/dev-tool": "^1.0.0",
36
38
  "@azure/identity": "^3.3.0",
37
39
  "@azure-tools/test-recorder": "^3.0.0",
38
40
  "@azure-tools/test-credential": "^1.0.0",
39
41
  "mocha": "^10.0.0",
42
+ "@types/mocha": "^10.0.0",
43
+ "esm": "^3.2.18",
40
44
  "@types/chai": "^4.2.8",
41
45
  "chai": "^4.2.0",
42
46
  "cross-env": "^7.0.2",
43
47
  "@types/node": "^18.0.0",
44
- "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
45
48
  "ts-node": "^10.0.0"
46
49
  },
47
- "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules",
48
50
  "repository": {
49
51
  "type": "git",
50
52
  "url": "https://github.com/Azure/azure-sdk-for-js.git"
@@ -77,7 +79,7 @@
77
79
  "extract-api": "api-extractor run --local",
78
80
  "lint": "echo skipped",
79
81
  "audit": "echo skipped",
80
- "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
82
+ "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
81
83
  "build:node": "echo skipped",
82
84
  "build:browser": "echo skipped",
83
85
  "build:test": "echo skipped",
@@ -99,12 +101,13 @@
99
101
  "//metadata": {
100
102
  "constantPaths": [
101
103
  {
102
- "path": "src/azureDedicatedHSMResourceProvider.ts",
104
+ "path": "src/azureHSMResourceProvider.ts",
103
105
  "prefix": "packageDetails"
104
106
  }
105
107
  ]
106
108
  },
107
109
  "autoPublish": true,
110
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules",
108
111
  "//sampleConfiguration": {
109
112
  "productName": "",
110
113
  "productSlugs": [
@@ -113,4 +116,4 @@
113
116
  "disableDocsMs": true,
114
117
  "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-hardwaresecuritymodules?view=azure-node-preview"
115
118
  }
116
- }
119
+ }