@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,5 +10,7 @@ export * from "./cloudHsmClusters";
10
10
  export * from "./cloudHsmClusterPrivateLinkResources";
11
11
  export * from "./cloudHsmClusterPrivateEndpointConnections";
12
12
  export * from "./privateEndpointConnections";
13
- export * from "./operations";
13
+ export * from "./cloudHsmClusterBackupStatus";
14
+ export * from "./cloudHsmClusterRestoreStatus";
14
15
  export * from "./dedicatedHsmOperations";
16
+ export * from "./operations";
@@ -13,9 +13,9 @@ import * as Mappers from "../models/mappers";
13
13
  import * as Parameters from "../models/parameters";
14
14
  import { AzureHSMResourceProvider } from "../azureHSMResourceProvider";
15
15
  import {
16
- DedicatedHsmOperation,
16
+ Operation,
17
17
  OperationsListOptionalParams,
18
- OperationsListResponse
18
+ OperationsListResponse,
19
19
  } from "../models";
20
20
 
21
21
  /// <reference lib="esnext.asynciterable" />
@@ -32,12 +32,12 @@ export class OperationsImpl implements Operations {
32
32
  }
33
33
 
34
34
  /**
35
- * Get a list of Dedicated HSM operations.
35
+ * Get a list of Hardware Security Modules operations.
36
36
  * @param options The options parameters.
37
37
  */
38
38
  public list(
39
- options?: OperationsListOptionalParams
40
- ): PagedAsyncIterableIterator<DedicatedHsmOperation> {
39
+ options?: OperationsListOptionalParams,
40
+ ): PagedAsyncIterableIterator<Operation> {
41
41
  const iter = this.listPagingAll(options);
42
42
  return {
43
43
  next() {
@@ -51,33 +51,33 @@ export class OperationsImpl implements Operations {
51
51
  throw new Error("maxPageSize is not supported by this operation.");
52
52
  }
53
53
  return this.listPagingPage(options, settings);
54
- }
54
+ },
55
55
  };
56
56
  }
57
57
 
58
58
  private async *listPagingPage(
59
59
  options?: OperationsListOptionalParams,
60
- _settings?: PageSettings
61
- ): AsyncIterableIterator<DedicatedHsmOperation[]> {
60
+ _settings?: PageSettings,
61
+ ): AsyncIterableIterator<Operation[]> {
62
62
  let result: OperationsListResponse;
63
63
  result = await this._list(options);
64
64
  yield result.value || [];
65
65
  }
66
66
 
67
67
  private async *listPagingAll(
68
- options?: OperationsListOptionalParams
69
- ): AsyncIterableIterator<DedicatedHsmOperation> {
68
+ options?: OperationsListOptionalParams,
69
+ ): AsyncIterableIterator<Operation> {
70
70
  for await (const page of this.listPagingPage(options)) {
71
71
  yield* page;
72
72
  }
73
73
  }
74
74
 
75
75
  /**
76
- * Get a list of Dedicated HSM operations.
76
+ * Get a list of Hardware Security Modules operations.
77
77
  * @param options The options parameters.
78
78
  */
79
79
  private _list(
80
- options?: OperationsListOptionalParams
80
+ options?: OperationsListOptionalParams,
81
81
  ): Promise<OperationsListResponse> {
82
82
  return this.client.sendOperationRequest({ options }, listOperationSpec);
83
83
  }
@@ -90,14 +90,14 @@ const listOperationSpec: coreClient.OperationSpec = {
90
90
  httpMethod: "GET",
91
91
  responses: {
92
92
  200: {
93
- bodyMapper: Mappers.DedicatedHsmOperationListResult
93
+ bodyMapper: Mappers.OperationListResult,
94
94
  },
95
95
  default: {
96
- bodyMapper: Mappers.DedicatedHsmError
97
- }
96
+ bodyMapper: Mappers.ErrorResponse,
97
+ },
98
98
  },
99
- queryParameters: [Parameters.apiVersion1],
99
+ queryParameters: [Parameters.apiVersion],
100
100
  urlParameters: [Parameters.$host],
101
101
  headerParameters: [Parameters.accept],
102
- serializer
102
+ serializer,
103
103
  };
@@ -18,13 +18,14 @@ import {
18
18
  PrivateEndpointConnectionsListByCloudHsmClusterNextOptionalParams,
19
19
  PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams,
20
20
  PrivateEndpointConnectionsListByCloudHsmClusterResponse,
21
- PrivateEndpointConnectionsListByCloudHsmClusterNextResponse
21
+ PrivateEndpointConnectionsListByCloudHsmClusterNextResponse,
22
22
  } from "../models";
23
23
 
24
24
  /// <reference lib="esnext.asynciterable" />
25
25
  /** Class containing PrivateEndpointConnections operations. */
26
26
  export class PrivateEndpointConnectionsImpl
27
- implements PrivateEndpointConnections {
27
+ implements PrivateEndpointConnections
28
+ {
28
29
  private readonly client: AzureHSMResourceProvider;
29
30
 
30
31
  /**
@@ -40,18 +41,18 @@ export class PrivateEndpointConnectionsImpl
40
41
  * HSM Cluster
41
42
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
42
43
  * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
43
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
44
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
44
45
  * @param options The options parameters.
45
46
  */
46
47
  public listByCloudHsmCluster(
47
48
  resourceGroupName: string,
48
49
  cloudHsmClusterName: string,
49
- options?: PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams
50
+ options?: PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams,
50
51
  ): PagedAsyncIterableIterator<PrivateEndpointConnection> {
51
52
  const iter = this.listByCloudHsmClusterPagingAll(
52
53
  resourceGroupName,
53
54
  cloudHsmClusterName,
54
- options
55
+ options,
55
56
  );
56
57
  return {
57
58
  next() {
@@ -68,9 +69,9 @@ export class PrivateEndpointConnectionsImpl
68
69
  resourceGroupName,
69
70
  cloudHsmClusterName,
70
71
  options,
71
- settings
72
+ settings,
72
73
  );
73
- }
74
+ },
74
75
  };
75
76
  }
76
77
 
@@ -78,7 +79,7 @@ export class PrivateEndpointConnectionsImpl
78
79
  resourceGroupName: string,
79
80
  cloudHsmClusterName: string,
80
81
  options?: PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams,
81
- settings?: PageSettings
82
+ settings?: PageSettings,
82
83
  ): AsyncIterableIterator<PrivateEndpointConnection[]> {
83
84
  let result: PrivateEndpointConnectionsListByCloudHsmClusterResponse;
84
85
  let continuationToken = settings?.continuationToken;
@@ -86,7 +87,7 @@ export class PrivateEndpointConnectionsImpl
86
87
  result = await this._listByCloudHsmCluster(
87
88
  resourceGroupName,
88
89
  cloudHsmClusterName,
89
- options
90
+ options,
90
91
  );
91
92
  let page = result.value || [];
92
93
  continuationToken = result.nextLink;
@@ -98,7 +99,7 @@ export class PrivateEndpointConnectionsImpl
98
99
  resourceGroupName,
99
100
  cloudHsmClusterName,
100
101
  continuationToken,
101
- options
102
+ options,
102
103
  );
103
104
  continuationToken = result.nextLink;
104
105
  let page = result.value || [];
@@ -110,12 +111,12 @@ export class PrivateEndpointConnectionsImpl
110
111
  private async *listByCloudHsmClusterPagingAll(
111
112
  resourceGroupName: string,
112
113
  cloudHsmClusterName: string,
113
- options?: PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams
114
+ options?: PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams,
114
115
  ): AsyncIterableIterator<PrivateEndpointConnection> {
115
116
  for await (const page of this.listByCloudHsmClusterPagingPage(
116
117
  resourceGroupName,
117
118
  cloudHsmClusterName,
118
- options
119
+ options,
119
120
  )) {
120
121
  yield* page;
121
122
  }
@@ -126,17 +127,17 @@ export class PrivateEndpointConnectionsImpl
126
127
  * HSM Cluster
127
128
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
128
129
  * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
129
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
130
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
130
131
  * @param options The options parameters.
131
132
  */
132
133
  private _listByCloudHsmCluster(
133
134
  resourceGroupName: string,
134
135
  cloudHsmClusterName: string,
135
- options?: PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams
136
+ options?: PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams,
136
137
  ): Promise<PrivateEndpointConnectionsListByCloudHsmClusterResponse> {
137
138
  return this.client.sendOperationRequest(
138
139
  { resourceGroupName, cloudHsmClusterName, options },
139
- listByCloudHsmClusterOperationSpec
140
+ listByCloudHsmClusterOperationSpec,
140
141
  );
141
142
  }
142
143
 
@@ -144,7 +145,7 @@ export class PrivateEndpointConnectionsImpl
144
145
  * ListByCloudHsmClusterNext
145
146
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
146
147
  * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
147
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
148
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
148
149
  * @param nextLink The nextLink from the previous successful call to the ListByCloudHsmCluster method.
149
150
  * @param options The options parameters.
150
151
  */
@@ -152,11 +153,11 @@ export class PrivateEndpointConnectionsImpl
152
153
  resourceGroupName: string,
153
154
  cloudHsmClusterName: string,
154
155
  nextLink: string,
155
- options?: PrivateEndpointConnectionsListByCloudHsmClusterNextOptionalParams
156
+ options?: PrivateEndpointConnectionsListByCloudHsmClusterNextOptionalParams,
156
157
  ): Promise<PrivateEndpointConnectionsListByCloudHsmClusterNextResponse> {
157
158
  return this.client.sendOperationRequest(
158
159
  { resourceGroupName, cloudHsmClusterName, nextLink, options },
159
- listByCloudHsmClusterNextOperationSpec
160
+ listByCloudHsmClusterNextOperationSpec,
160
161
  );
161
162
  }
162
163
  }
@@ -164,45 +165,44 @@ export class PrivateEndpointConnectionsImpl
164
165
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
165
166
 
166
167
  const listByCloudHsmClusterOperationSpec: coreClient.OperationSpec = {
167
- path:
168
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections",
168
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections",
169
169
  httpMethod: "GET",
170
170
  responses: {
171
171
  200: {
172
- bodyMapper: Mappers.PrivateEndpointConnectionListResult
172
+ bodyMapper: Mappers.PrivateEndpointConnectionListResult,
173
173
  },
174
174
  default: {
175
- bodyMapper: Mappers.CloudHsmClusterError
176
- }
175
+ bodyMapper: Mappers.ErrorResponse,
176
+ },
177
177
  },
178
178
  queryParameters: [Parameters.apiVersion],
179
179
  urlParameters: [
180
180
  Parameters.$host,
181
181
  Parameters.subscriptionId,
182
182
  Parameters.resourceGroupName,
183
- Parameters.cloudHsmClusterName
183
+ Parameters.cloudHsmClusterName,
184
184
  ],
185
185
  headerParameters: [Parameters.accept],
186
- serializer
186
+ serializer,
187
187
  };
188
188
  const listByCloudHsmClusterNextOperationSpec: coreClient.OperationSpec = {
189
189
  path: "{nextLink}",
190
190
  httpMethod: "GET",
191
191
  responses: {
192
192
  200: {
193
- bodyMapper: Mappers.PrivateEndpointConnectionListResult
193
+ bodyMapper: Mappers.PrivateEndpointConnectionListResult,
194
194
  },
195
195
  default: {
196
- bodyMapper: Mappers.CloudHsmClusterError
197
- }
196
+ bodyMapper: Mappers.ErrorResponse,
197
+ },
198
198
  },
199
199
  urlParameters: [
200
200
  Parameters.$host,
201
201
  Parameters.subscriptionId,
202
202
  Parameters.resourceGroupName,
203
203
  Parameters.cloudHsmClusterName,
204
- Parameters.nextLink
204
+ Parameters.nextLink,
205
205
  ],
206
206
  headerParameters: [Parameters.accept],
207
- serializer
207
+ serializer,
208
208
  };
@@ -0,0 +1,30 @@
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
+
9
+ import {
10
+ CloudHsmClusterBackupStatusGetOptionalParams,
11
+ CloudHsmClusterBackupStatusGetResponse,
12
+ } from "../models";
13
+
14
+ /** Interface representing a CloudHsmClusterBackupStatus. */
15
+ export interface CloudHsmClusterBackupStatus {
16
+ /**
17
+ * Gets the backup operation status of the specified Cloud HSM Cluster
18
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
19
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
20
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
21
+ * @param jobId The id returned as part of the backup request
22
+ * @param options The options parameters.
23
+ */
24
+ get(
25
+ resourceGroupName: string,
26
+ cloudHsmClusterName: string,
27
+ jobId: string,
28
+ options?: CloudHsmClusterBackupStatusGetOptionalParams,
29
+ ): Promise<CloudHsmClusterBackupStatusGetResponse>;
30
+ }
@@ -12,8 +12,9 @@ import {
12
12
  CloudHsmClusterPrivateEndpointConnectionsCreateOptionalParams,
13
13
  CloudHsmClusterPrivateEndpointConnectionsCreateResponse,
14
14
  CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams,
15
+ CloudHsmClusterPrivateEndpointConnectionsDeleteResponse,
15
16
  CloudHsmClusterPrivateEndpointConnectionsGetOptionalParams,
16
- CloudHsmClusterPrivateEndpointConnectionsGetResponse
17
+ CloudHsmClusterPrivateEndpointConnectionsGetResponse,
17
18
  } from "../models";
18
19
 
19
20
  /** Interface representing a CloudHsmClusterPrivateEndpointConnections. */
@@ -22,7 +23,7 @@ export interface CloudHsmClusterPrivateEndpointConnections {
22
23
  * Creates or updates the private endpoint connection for the Cloud Hsm Cluster.
23
24
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
24
25
  * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
25
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
26
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
26
27
  * @param peConnectionName Name of the private endpoint connection associated with the Cloud HSM
27
28
  * Cluster.
28
29
  * @param properties Parameters of the PrivateEndpointConnection
@@ -33,13 +34,13 @@ export interface CloudHsmClusterPrivateEndpointConnections {
33
34
  cloudHsmClusterName: string,
34
35
  peConnectionName: string,
35
36
  properties: PrivateEndpointConnection,
36
- options?: CloudHsmClusterPrivateEndpointConnectionsCreateOptionalParams
37
+ options?: CloudHsmClusterPrivateEndpointConnectionsCreateOptionalParams,
37
38
  ): Promise<CloudHsmClusterPrivateEndpointConnectionsCreateResponse>;
38
39
  /**
39
40
  * Deletes the private endpoint connection for the Cloud Hsm Cluster.
40
41
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
41
42
  * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
42
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
43
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
43
44
  * @param peConnectionName Name of the private endpoint connection associated with the Cloud HSM
44
45
  * Cluster.
45
46
  * @param options The options parameters.
@@ -48,13 +49,18 @@ export interface CloudHsmClusterPrivateEndpointConnections {
48
49
  resourceGroupName: string,
49
50
  cloudHsmClusterName: string,
50
51
  peConnectionName: string,
51
- options?: CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams
52
- ): Promise<SimplePollerLike<OperationState<void>, void>>;
52
+ options?: CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams,
53
+ ): Promise<
54
+ SimplePollerLike<
55
+ OperationState<CloudHsmClusterPrivateEndpointConnectionsDeleteResponse>,
56
+ CloudHsmClusterPrivateEndpointConnectionsDeleteResponse
57
+ >
58
+ >;
53
59
  /**
54
60
  * Deletes the private endpoint connection for the Cloud Hsm Cluster.
55
61
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
56
62
  * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
57
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
63
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
58
64
  * @param peConnectionName Name of the private endpoint connection associated with the Cloud HSM
59
65
  * Cluster.
60
66
  * @param options The options parameters.
@@ -63,13 +69,13 @@ export interface CloudHsmClusterPrivateEndpointConnections {
63
69
  resourceGroupName: string,
64
70
  cloudHsmClusterName: string,
65
71
  peConnectionName: string,
66
- options?: CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams
67
- ): Promise<void>;
72
+ options?: CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams,
73
+ ): Promise<CloudHsmClusterPrivateEndpointConnectionsDeleteResponse>;
68
74
  /**
69
75
  * Gets the private endpoint connection for the Cloud Hsm Cluster.
70
76
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
71
77
  * @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.
78
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
73
79
  * @param peConnectionName Name of the private endpoint connection associated with the Cloud HSM
74
80
  * Cluster.
75
81
  * @param options The options parameters.
@@ -78,6 +84,6 @@ export interface CloudHsmClusterPrivateEndpointConnections {
78
84
  resourceGroupName: string,
79
85
  cloudHsmClusterName: string,
80
86
  peConnectionName: string,
81
- options?: CloudHsmClusterPrivateEndpointConnectionsGetOptionalParams
87
+ options?: CloudHsmClusterPrivateEndpointConnectionsGetOptionalParams,
82
88
  ): Promise<CloudHsmClusterPrivateEndpointConnectionsGetResponse>;
83
89
  }
@@ -6,23 +6,25 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
10
  import {
11
+ PrivateLinkResource,
10
12
  CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams,
11
- CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterResponse
12
13
  } from "../models";
13
14
 
15
+ /// <reference lib="esnext.asynciterable" />
14
16
  /** Interface representing a CloudHsmClusterPrivateLinkResources. */
15
17
  export interface CloudHsmClusterPrivateLinkResources {
16
18
  /**
17
19
  * Gets the private link resources supported for the Cloud Hsm Cluster.
18
20
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
19
21
  * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
20
- * Cloud HSM Cluster names must be between 3 and 24 characters in length.
22
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
21
23
  * @param options The options parameters.
22
24
  */
23
25
  listByCloudHsmCluster(
24
26
  resourceGroupName: string,
25
27
  cloudHsmClusterName: string,
26
- options?: CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams
27
- ): Promise<CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterResponse>;
28
+ options?: CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams,
29
+ ): PagedAsyncIterableIterator<PrivateLinkResource>;
28
30
  }
@@ -0,0 +1,30 @@
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
+
9
+ import {
10
+ CloudHsmClusterRestoreStatusGetOptionalParams,
11
+ CloudHsmClusterRestoreStatusGetResponse,
12
+ } from "../models";
13
+
14
+ /** Interface representing a CloudHsmClusterRestoreStatus. */
15
+ export interface CloudHsmClusterRestoreStatus {
16
+ /**
17
+ * Gets the restore operation status of the specified Cloud HSM Cluster
18
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
19
+ * @param cloudHsmClusterName The name of the Cloud HSM Cluster within the specified resource group.
20
+ * Cloud HSM Cluster names must be between 3 and 23 characters in length.
21
+ * @param jobId The id returned as part of the backup request
22
+ * @param options The options parameters.
23
+ */
24
+ get(
25
+ resourceGroupName: string,
26
+ cloudHsmClusterName: string,
27
+ jobId: string,
28
+ options?: CloudHsmClusterRestoreStatusGetOptionalParams,
29
+ ): Promise<CloudHsmClusterRestoreStatusGetResponse>;
30
+ }