@azure/arm-hardwaresecuritymodules 2.0.0-alpha.20240118.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.
- package/CHANGELOG.md +82 -1
- package/LICENSE +1 -1
- package/README.md +14 -14
- package/dist/index.js +2215 -425
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsCreateSample.js +46 -0
- package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.js +40 -0
- package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsGetSample.js +40 -0
- package/dist-esm/samples-dev/cloudHsmClusterPrivateEndpointConnectionsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.d.ts +2 -0
- package/dist-esm/samples-dev/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.js +39 -0
- package/dist-esm/samples-dev/cloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterSample.js.map +1 -0
- package/dist-esm/samples-dev/cloudHsmClustersCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/cloudHsmClustersCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cloudHsmClustersCreateOrUpdateSample.js +53 -0
- package/dist-esm/samples-dev/cloudHsmClustersCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/cloudHsmClustersDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/cloudHsmClustersDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cloudHsmClustersDeleteSample.js +39 -0
- package/dist-esm/samples-dev/cloudHsmClustersDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/cloudHsmClustersGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/cloudHsmClustersGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cloudHsmClustersGetSample.js +39 -0
- package/dist-esm/samples-dev/cloudHsmClustersGetSample.js.map +1 -0
- package/dist-esm/samples-dev/cloudHsmClustersListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/cloudHsmClustersListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cloudHsmClustersListByResourceGroupSample.js +54 -0
- package/dist-esm/samples-dev/cloudHsmClustersListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/cloudHsmClustersListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/cloudHsmClustersListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cloudHsmClustersListBySubscriptionSample.js +53 -0
- package/dist-esm/samples-dev/cloudHsmClustersListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/cloudHsmClustersUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/cloudHsmClustersUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cloudHsmClustersUpdateSample.js +47 -0
- package/dist-esm/samples-dev/cloudHsmClustersUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/dedicatedHsmCreateOrUpdateSample.js +23 -13
- package/dist-esm/samples-dev/dedicatedHsmCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/dedicatedHsmDeleteSample.js +13 -5
- package/dist-esm/samples-dev/dedicatedHsmDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/dedicatedHsmGetSample.js +23 -13
- package/dist-esm/samples-dev/dedicatedHsmGetSample.js.map +1 -1
- package/dist-esm/samples-dev/dedicatedHsmListByResourceGroupSample.js +18 -9
- package/dist-esm/samples-dev/dedicatedHsmListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/dedicatedHsmListBySubscriptionSample.js +16 -7
- package/dist-esm/samples-dev/dedicatedHsmListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.js +13 -5
- package/dist-esm/samples-dev/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.js.map +1 -1
- package/dist-esm/samples-dev/dedicatedHsmUpdateSample.js +18 -9
- package/dist-esm/samples-dev/dedicatedHsmUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +16 -7
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByCloudHsmClusterSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListByCloudHsmClusterSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListByCloudHsmClusterSample.js +55 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListByCloudHsmClusterSample.js.map +1 -0
- package/dist-esm/src/azureHSMResourceProvider.d.ts +22 -0
- package/dist-esm/src/azureHSMResourceProvider.d.ts.map +1 -0
- package/dist-esm/src/{azureDedicatedHSMResourceProvider.js → azureHSMResourceProvider.js} +10 -37
- package/dist-esm/src/azureHSMResourceProvider.js.map +1 -0
- package/dist-esm/src/index.d.ts +1 -1
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +538 -8
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +72 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +28 -2
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +692 -7
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +27 -5
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +161 -29
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/cloudHsmClusterPrivateEndpointConnections.d.ts +55 -0
- package/dist-esm/src/operations/cloudHsmClusterPrivateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/cloudHsmClusterPrivateEndpointConnections.js +193 -0
- package/dist-esm/src/operations/cloudHsmClusterPrivateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/cloudHsmClusterPrivateLinkResources.d.ts +21 -0
- package/dist-esm/src/operations/cloudHsmClusterPrivateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/cloudHsmClusterPrivateLinkResources.js +54 -0
- package/dist-esm/src/operations/cloudHsmClusterPrivateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/cloudHsmClusters.d.ts +114 -0
- package/dist-esm/src/operations/cloudHsmClusters.d.ts.map +1 -0
- package/dist-esm/src/operations/cloudHsmClusters.js +580 -0
- package/dist-esm/src/operations/cloudHsmClusters.js.map +1 -0
- package/dist-esm/src/operations/dedicatedHsmOperations.d.ts +6 -6
- package/dist-esm/src/operations/dedicatedHsmOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/dedicatedHsmOperations.js +51 -39
- package/dist-esm/src/operations/dedicatedHsmOperations.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +4 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +4 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts +2 -2
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +1 -1
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +43 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +155 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.d.ts +47 -0
- package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/cloudHsmClusters.d.ts +77 -0
- package/dist-esm/src/operationsInterfaces/cloudHsmClusters.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/cloudHsmClusters.js +9 -0
- package/dist-esm/src/operationsInterfaces/cloudHsmClusters.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dedicatedHsmOperations.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/dedicatedHsmOperations.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +4 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +15 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/test/hardwaresecuritymodules_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/hardwaresecuritymodules_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/hardwaresecuritymodules_operations_test.spec.js +73 -0
- package/dist-esm/test/hardwaresecuritymodules_operations_test.spec.js.map +1 -0
- package/package.json +15 -12
- package/review/arm-hardwaresecuritymodules.api.md +426 -19
- package/src/{azureDedicatedHSMResourceProvider.ts → azureHSMResourceProvider.ts} +35 -46
- package/src/index.ts +1 -1
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +599 -8
- package/src/models/mappers.ts +751 -7
- package/src/models/parameters.ts +187 -30
- package/src/operations/cloudHsmClusterPrivateEndpointConnections.ts +263 -0
- package/src/operations/cloudHsmClusterPrivateLinkResources.ts +74 -0
- package/src/operations/cloudHsmClusters.ts +750 -0
- package/src/operations/dedicatedHsmOperations.ts +69 -59
- package/src/operations/index.ts +4 -0
- package/src/operations/operations.ts +4 -4
- package/src/operations/privateEndpointConnections.ts +208 -0
- package/src/operationsInterfaces/cloudHsmClusterPrivateEndpointConnections.ts +83 -0
- package/src/operationsInterfaces/cloudHsmClusterPrivateLinkResources.ts +28 -0
- package/src/operationsInterfaces/cloudHsmClusters.ts +142 -0
- package/src/operationsInterfaces/dedicatedHsmOperations.ts +6 -6
- package/src/operationsInterfaces/index.ts +4 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +31 -0
- package/types/arm-hardwaresecuritymodules.d.ts +773 -34
- package/dist-esm/src/azureDedicatedHSMResourceProvider.d.ts +0 -22
- package/dist-esm/src/azureDedicatedHSMResourceProvider.d.ts.map +0 -1
- package/dist-esm/src/azureDedicatedHSMResourceProvider.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
import * as coreAuth from '@azure/core-auth';
|
|
8
8
|
import * as coreClient from '@azure/core-client';
|
|
9
|
+
import { OperationState } from '@azure/core-lro';
|
|
9
10
|
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
10
|
-
import {
|
|
11
|
-
import { PollOperationState } from '@azure/core-lro';
|
|
11
|
+
import { SimplePollerLike } from '@azure/core-lro';
|
|
12
12
|
|
|
13
13
|
// @public
|
|
14
14
|
export interface ApiEntityReference {
|
|
@@ -16,35 +16,270 @@ export interface ApiEntityReference {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
// @public (undocumented)
|
|
19
|
-
export class
|
|
19
|
+
export class AzureHSMResourceProvider extends coreClient.ServiceClient {
|
|
20
20
|
// (undocumented)
|
|
21
21
|
$host: string;
|
|
22
|
-
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?:
|
|
22
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureHSMResourceProviderOptionalParams);
|
|
23
23
|
// (undocumented)
|
|
24
|
-
|
|
24
|
+
cloudHsmClusterPrivateEndpointConnections: CloudHsmClusterPrivateEndpointConnections;
|
|
25
|
+
// (undocumented)
|
|
26
|
+
cloudHsmClusterPrivateLinkResources: CloudHsmClusterPrivateLinkResources;
|
|
27
|
+
// (undocumented)
|
|
28
|
+
cloudHsmClusters: CloudHsmClusters;
|
|
25
29
|
// (undocumented)
|
|
26
30
|
dedicatedHsmOperations: DedicatedHsmOperations;
|
|
27
31
|
// (undocumented)
|
|
28
32
|
operations: Operations;
|
|
29
33
|
// (undocumented)
|
|
34
|
+
privateEndpointConnections: PrivateEndpointConnections;
|
|
35
|
+
// (undocumented)
|
|
30
36
|
subscriptionId: string;
|
|
31
37
|
}
|
|
32
38
|
|
|
33
39
|
// @public
|
|
34
|
-
export interface
|
|
40
|
+
export interface AzureHSMResourceProviderOptionalParams extends coreClient.ServiceClientOptions {
|
|
35
41
|
$host?: string;
|
|
36
|
-
apiVersion?: string;
|
|
37
42
|
endpoint?: string;
|
|
38
43
|
}
|
|
39
44
|
|
|
40
45
|
// @public
|
|
41
|
-
export interface
|
|
46
|
+
export interface BackupProperties {
|
|
47
|
+
azureStorageResourceUri?: string;
|
|
48
|
+
readonly lastBackupDateTime?: Date;
|
|
49
|
+
readonly lastBackupStatus?: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// @public
|
|
53
|
+
export interface CHsmError {
|
|
54
|
+
readonly code?: string;
|
|
55
|
+
readonly message?: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// @public
|
|
59
|
+
export interface CloudHsmCluster extends CloudHsmClusterResource {
|
|
60
|
+
autoGeneratedDomainNameLabelScope?: string;
|
|
61
|
+
backupProperties?: BackupProperties;
|
|
62
|
+
hsms?: CloudHsmProperties[];
|
|
63
|
+
privateEndpointConnections?: PrivateEndpointConnection[];
|
|
64
|
+
provisioningState?: ProvisioningState;
|
|
65
|
+
publicNetworkAccess?: string;
|
|
66
|
+
restoreProperties?: RestoreProperties;
|
|
67
|
+
securityDomain?: CloudHsmClusterSecurityDomainProperties;
|
|
68
|
+
readonly statusMessage?: string;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// @public
|
|
72
|
+
export interface CloudHsmClusterError {
|
|
73
|
+
error?: CHsmError;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// @public
|
|
77
|
+
export interface CloudHsmClusterListResult {
|
|
78
|
+
nextLink?: string;
|
|
79
|
+
value?: CloudHsmCluster[];
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// @public
|
|
83
|
+
export interface CloudHsmClusterPatchParameters {
|
|
84
|
+
backupProperties?: BackupProperties;
|
|
85
|
+
identity?: ManagedServiceIdentity;
|
|
86
|
+
sku?: CloudHsmClusterSku;
|
|
87
|
+
tags?: {
|
|
88
|
+
[propertyName: string]: string;
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// @public
|
|
93
|
+
export interface CloudHsmClusterPrivateEndpointConnections {
|
|
94
|
+
beginDelete(resourceGroupName: string, cloudHsmClusterName: string, peConnectionName: string, options?: CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
95
|
+
beginDeleteAndWait(resourceGroupName: string, cloudHsmClusterName: string, peConnectionName: string, options?: CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams): Promise<void>;
|
|
96
|
+
create(resourceGroupName: string, cloudHsmClusterName: string, peConnectionName: string, properties: PrivateEndpointConnection, options?: CloudHsmClusterPrivateEndpointConnectionsCreateOptionalParams): Promise<CloudHsmClusterPrivateEndpointConnectionsCreateResponse>;
|
|
97
|
+
get(resourceGroupName: string, cloudHsmClusterName: string, peConnectionName: string, options?: CloudHsmClusterPrivateEndpointConnectionsGetOptionalParams): Promise<CloudHsmClusterPrivateEndpointConnectionsGetResponse>;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// @public
|
|
101
|
+
export interface CloudHsmClusterPrivateEndpointConnectionsCreateOptionalParams extends coreClient.OperationOptions {
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// @public
|
|
105
|
+
export type CloudHsmClusterPrivateEndpointConnectionsCreateResponse = PrivateEndpointConnection;
|
|
106
|
+
|
|
107
|
+
// @public
|
|
108
|
+
export interface CloudHsmClusterPrivateEndpointConnectionsDeleteHeaders {
|
|
109
|
+
location?: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// @public
|
|
113
|
+
export interface CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams extends coreClient.OperationOptions {
|
|
114
|
+
resumeFrom?: string;
|
|
115
|
+
updateIntervalInMs?: number;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// @public
|
|
119
|
+
export interface CloudHsmClusterPrivateEndpointConnectionsGetOptionalParams extends coreClient.OperationOptions {
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// @public
|
|
123
|
+
export type CloudHsmClusterPrivateEndpointConnectionsGetResponse = PrivateEndpointConnection;
|
|
124
|
+
|
|
125
|
+
// @public
|
|
126
|
+
export interface CloudHsmClusterPrivateLinkResources {
|
|
127
|
+
listByCloudHsmCluster(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams): Promise<CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterResponse>;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// @public
|
|
131
|
+
export interface CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams extends coreClient.OperationOptions {
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// @public
|
|
135
|
+
export type CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterResponse = PrivateLinkResourceListResult;
|
|
136
|
+
|
|
137
|
+
// @public
|
|
138
|
+
export interface CloudHsmClusterResource extends TrackedResource {
|
|
139
|
+
identity?: ManagedServiceIdentity;
|
|
140
|
+
sku?: CloudHsmClusterSku;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// @public
|
|
144
|
+
export interface CloudHsmClusters {
|
|
145
|
+
beginCreateOrUpdate(resourceGroupName: string, cloudHsmClusterName: string, location: string, options?: CloudHsmClustersCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<CloudHsmClustersCreateOrUpdateResponse>, CloudHsmClustersCreateOrUpdateResponse>>;
|
|
146
|
+
beginCreateOrUpdateAndWait(resourceGroupName: string, cloudHsmClusterName: string, location: string, options?: CloudHsmClustersCreateOrUpdateOptionalParams): Promise<CloudHsmClustersCreateOrUpdateResponse>;
|
|
147
|
+
beginDelete(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
148
|
+
beginDeleteAndWait(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersDeleteOptionalParams): Promise<void>;
|
|
149
|
+
beginUpdate(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersUpdateOptionalParams): Promise<SimplePollerLike<OperationState<CloudHsmClustersUpdateResponse>, CloudHsmClustersUpdateResponse>>;
|
|
150
|
+
beginUpdateAndWait(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersUpdateOptionalParams): Promise<CloudHsmClustersUpdateResponse>;
|
|
151
|
+
get(resourceGroupName: string, cloudHsmClusterName: string, options?: CloudHsmClustersGetOptionalParams): Promise<CloudHsmClustersGetResponse>;
|
|
152
|
+
listByResourceGroup(resourceGroupName: string, options?: CloudHsmClustersListByResourceGroupOptionalParams): PagedAsyncIterableIterator<CloudHsmCluster>;
|
|
153
|
+
listBySubscription(options?: CloudHsmClustersListBySubscriptionOptionalParams): PagedAsyncIterableIterator<CloudHsmCluster>;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// @public
|
|
157
|
+
export interface CloudHsmClustersCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
|
|
158
|
+
autoGeneratedDomainNameLabelScope?: string;
|
|
159
|
+
backupProperties?: BackupProperties;
|
|
160
|
+
hsms?: CloudHsmProperties[];
|
|
161
|
+
identity?: ManagedServiceIdentity;
|
|
162
|
+
privateEndpointConnections?: PrivateEndpointConnection[];
|
|
163
|
+
provisioningState?: ProvisioningState;
|
|
164
|
+
publicNetworkAccess?: string;
|
|
165
|
+
restoreProperties?: RestoreProperties;
|
|
166
|
+
resumeFrom?: string;
|
|
167
|
+
securityDomain?: CloudHsmClusterSecurityDomainProperties;
|
|
168
|
+
sku?: CloudHsmClusterSku;
|
|
169
|
+
tags?: {
|
|
170
|
+
[propertyName: string]: string;
|
|
171
|
+
};
|
|
172
|
+
updateIntervalInMs?: number;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// @public
|
|
176
|
+
export type CloudHsmClustersCreateOrUpdateResponse = CloudHsmCluster;
|
|
177
|
+
|
|
178
|
+
// @public
|
|
179
|
+
export interface CloudHsmClustersDeleteHeaders {
|
|
180
|
+
location?: string;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// @public
|
|
184
|
+
export interface CloudHsmClustersDeleteOptionalParams extends coreClient.OperationOptions {
|
|
185
|
+
resumeFrom?: string;
|
|
186
|
+
updateIntervalInMs?: number;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// @public
|
|
190
|
+
export interface CloudHsmClusterSecurityDomainProperties {
|
|
191
|
+
activationStatus?: string;
|
|
192
|
+
fipsState?: number;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
// @public
|
|
196
|
+
export interface CloudHsmClustersGetOptionalParams extends coreClient.OperationOptions {
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// @public
|
|
200
|
+
export type CloudHsmClustersGetResponse = CloudHsmCluster;
|
|
201
|
+
|
|
202
|
+
// @public
|
|
203
|
+
export interface CloudHsmClusterSku {
|
|
204
|
+
capacity?: number;
|
|
205
|
+
family: CloudHsmClusterSkuFamily;
|
|
206
|
+
name: CloudHsmClusterSkuName;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
// @public
|
|
210
|
+
export type CloudHsmClusterSkuFamily = string;
|
|
211
|
+
|
|
212
|
+
// @public
|
|
213
|
+
export type CloudHsmClusterSkuName = "Standard_B1" | "Standard B10";
|
|
214
|
+
|
|
215
|
+
// @public
|
|
216
|
+
export interface CloudHsmClustersListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// @public
|
|
220
|
+
export type CloudHsmClustersListByResourceGroupNextResponse = CloudHsmClusterListResult;
|
|
221
|
+
|
|
222
|
+
// @public
|
|
223
|
+
export interface CloudHsmClustersListByResourceGroupOptionalParams extends coreClient.OperationOptions {
|
|
224
|
+
skiptoken?: string;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// @public
|
|
228
|
+
export type CloudHsmClustersListByResourceGroupResponse = CloudHsmClusterListResult;
|
|
229
|
+
|
|
230
|
+
// @public
|
|
231
|
+
export interface CloudHsmClustersListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// @public
|
|
235
|
+
export type CloudHsmClustersListBySubscriptionNextResponse = CloudHsmClusterListResult;
|
|
236
|
+
|
|
237
|
+
// @public
|
|
238
|
+
export interface CloudHsmClustersListBySubscriptionOptionalParams extends coreClient.OperationOptions {
|
|
239
|
+
skiptoken?: string;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
// @public
|
|
243
|
+
export type CloudHsmClustersListBySubscriptionResponse = CloudHsmClusterListResult;
|
|
244
|
+
|
|
245
|
+
// @public
|
|
246
|
+
export interface CloudHsmClustersUpdateHeaders {
|
|
247
|
+
location?: string;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
// @public
|
|
251
|
+
export interface CloudHsmClustersUpdateOptionalParams extends coreClient.OperationOptions {
|
|
252
|
+
backupProperties?: BackupProperties;
|
|
253
|
+
identity?: ManagedServiceIdentity;
|
|
254
|
+
resumeFrom?: string;
|
|
255
|
+
sku?: CloudHsmClusterSku;
|
|
256
|
+
tags?: {
|
|
257
|
+
[propertyName: string]: string;
|
|
258
|
+
};
|
|
259
|
+
updateIntervalInMs?: number;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
// @public
|
|
263
|
+
export type CloudHsmClustersUpdateResponse = CloudHsmCluster;
|
|
264
|
+
|
|
265
|
+
// @public
|
|
266
|
+
export interface CloudHsmProperties {
|
|
267
|
+
fqdn?: string;
|
|
268
|
+
state?: string;
|
|
269
|
+
stateMessage?: string;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
// @public
|
|
273
|
+
export type CreatedByType = string;
|
|
274
|
+
|
|
275
|
+
// @public
|
|
276
|
+
export interface DedicatedHsm extends DedicatedHsmResource {
|
|
42
277
|
managementNetworkProfile?: NetworkProfile;
|
|
43
278
|
networkProfile?: NetworkProfile;
|
|
44
279
|
readonly provisioningState?: JsonWebKeyType;
|
|
45
280
|
stampId?: string;
|
|
46
281
|
readonly statusMessage?: string;
|
|
47
|
-
readonly systemData?:
|
|
282
|
+
readonly systemData?: SystemDataAutoGenerated;
|
|
48
283
|
}
|
|
49
284
|
|
|
50
285
|
// @public
|
|
@@ -129,6 +364,7 @@ export interface DedicatedHsmOperation {
|
|
|
129
364
|
display?: DedicatedHsmOperationDisplay;
|
|
130
365
|
readonly isDataAction?: boolean;
|
|
131
366
|
name?: string;
|
|
367
|
+
origin?: string;
|
|
132
368
|
}
|
|
133
369
|
|
|
134
370
|
// @public
|
|
@@ -146,11 +382,11 @@ export interface DedicatedHsmOperationListResult {
|
|
|
146
382
|
|
|
147
383
|
// @public
|
|
148
384
|
export interface DedicatedHsmOperations {
|
|
149
|
-
beginCreateOrUpdate(resourceGroupName: string, name: string, parameters: DedicatedHsm, options?: DedicatedHsmCreateOrUpdateOptionalParams): Promise<
|
|
385
|
+
beginCreateOrUpdate(resourceGroupName: string, name: string, parameters: DedicatedHsm, options?: DedicatedHsmCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<DedicatedHsmCreateOrUpdateResponse>, DedicatedHsmCreateOrUpdateResponse>>;
|
|
150
386
|
beginCreateOrUpdateAndWait(resourceGroupName: string, name: string, parameters: DedicatedHsm, options?: DedicatedHsmCreateOrUpdateOptionalParams): Promise<DedicatedHsmCreateOrUpdateResponse>;
|
|
151
|
-
beginDelete(resourceGroupName: string, name: string, options?: DedicatedHsmDeleteOptionalParams): Promise<
|
|
387
|
+
beginDelete(resourceGroupName: string, name: string, options?: DedicatedHsmDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
152
388
|
beginDeleteAndWait(resourceGroupName: string, name: string, options?: DedicatedHsmDeleteOptionalParams): Promise<void>;
|
|
153
|
-
beginUpdate(resourceGroupName: string, name: string, options?: DedicatedHsmUpdateOptionalParams): Promise<
|
|
389
|
+
beginUpdate(resourceGroupName: string, name: string, options?: DedicatedHsmUpdateOptionalParams): Promise<SimplePollerLike<OperationState<DedicatedHsmUpdateResponse>, DedicatedHsmUpdateResponse>>;
|
|
154
390
|
beginUpdateAndWait(resourceGroupName: string, name: string, options?: DedicatedHsmUpdateOptionalParams): Promise<DedicatedHsmUpdateResponse>;
|
|
155
391
|
get(resourceGroupName: string, name: string, options?: DedicatedHsmGetOptionalParams): Promise<DedicatedHsmGetResponse>;
|
|
156
392
|
listByResourceGroup(resourceGroupName: string, options?: DedicatedHsmListByResourceGroupOptionalParams): PagedAsyncIterableIterator<DedicatedHsm>;
|
|
@@ -165,6 +401,19 @@ export interface DedicatedHsmPatchParameters {
|
|
|
165
401
|
};
|
|
166
402
|
}
|
|
167
403
|
|
|
404
|
+
// @public
|
|
405
|
+
export interface DedicatedHsmResource {
|
|
406
|
+
readonly id?: string;
|
|
407
|
+
location: string;
|
|
408
|
+
readonly name?: string;
|
|
409
|
+
sku?: Sku;
|
|
410
|
+
tags?: {
|
|
411
|
+
[propertyName: string]: string;
|
|
412
|
+
};
|
|
413
|
+
readonly type?: string;
|
|
414
|
+
zones?: string[];
|
|
415
|
+
}
|
|
416
|
+
|
|
168
417
|
// @public
|
|
169
418
|
export interface DedicatedHsmUpdateOptionalParams extends coreClient.OperationOptions {
|
|
170
419
|
resumeFrom?: string;
|
|
@@ -207,6 +456,20 @@ export type IdentityType = string;
|
|
|
207
456
|
// @public
|
|
208
457
|
export type JsonWebKeyType = string;
|
|
209
458
|
|
|
459
|
+
// @public
|
|
460
|
+
export enum KnownCloudHsmClusterSkuFamily {
|
|
461
|
+
// (undocumented)
|
|
462
|
+
B = "B"
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
// @public
|
|
466
|
+
export enum KnownCreatedByType {
|
|
467
|
+
Application = "Application",
|
|
468
|
+
Key = "Key",
|
|
469
|
+
ManagedIdentity = "ManagedIdentity",
|
|
470
|
+
User = "User"
|
|
471
|
+
}
|
|
472
|
+
|
|
210
473
|
// @public
|
|
211
474
|
export enum KnownIdentityType {
|
|
212
475
|
Application = "Application",
|
|
@@ -226,6 +489,41 @@ export enum KnownJsonWebKeyType {
|
|
|
226
489
|
Succeeded = "Succeeded"
|
|
227
490
|
}
|
|
228
491
|
|
|
492
|
+
// @public
|
|
493
|
+
export enum KnownManagedServiceIdentityType {
|
|
494
|
+
None = "None",
|
|
495
|
+
SystemAssigned = "SystemAssigned",
|
|
496
|
+
SystemAssignedUserAssigned = "SystemAssigned,UserAssigned",
|
|
497
|
+
UserAssigned = "UserAssigned"
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
// @public
|
|
501
|
+
export enum KnownPrivateEndpointConnectionProvisioningState {
|
|
502
|
+
Canceled = "Canceled",
|
|
503
|
+
Creating = "Creating",
|
|
504
|
+
Deleting = "Deleting",
|
|
505
|
+
Failed = "Failed",
|
|
506
|
+
InternalError = "InternalError",
|
|
507
|
+
Succeeded = "Succeeded",
|
|
508
|
+
Updating = "Updating"
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
// @public
|
|
512
|
+
export enum KnownPrivateEndpointServiceConnectionStatus {
|
|
513
|
+
Approved = "Approved",
|
|
514
|
+
Pending = "Pending",
|
|
515
|
+
Rejected = "Rejected"
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
// @public
|
|
519
|
+
export enum KnownProvisioningState {
|
|
520
|
+
Canceled = "Canceled",
|
|
521
|
+
Deleting = "Deleting",
|
|
522
|
+
Failed = "Failed",
|
|
523
|
+
Provisioning = "Provisioning",
|
|
524
|
+
Succeeded = "Succeeded"
|
|
525
|
+
}
|
|
526
|
+
|
|
229
527
|
// @public
|
|
230
528
|
export enum KnownSkuName {
|
|
231
529
|
PayShield10KLMK1CPS250 = "payShield10K_LMK1_CPS250",
|
|
@@ -237,6 +535,19 @@ export enum KnownSkuName {
|
|
|
237
535
|
SafeNetLunaNetworkHSMA790 = "SafeNet Luna Network HSM A790"
|
|
238
536
|
}
|
|
239
537
|
|
|
538
|
+
// @public
|
|
539
|
+
export interface ManagedServiceIdentity {
|
|
540
|
+
readonly principalId?: string;
|
|
541
|
+
readonly tenantId?: string;
|
|
542
|
+
type: ManagedServiceIdentityType;
|
|
543
|
+
userAssignedIdentities?: {
|
|
544
|
+
[propertyName: string]: UserAssignedIdentity | null;
|
|
545
|
+
};
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
// @public
|
|
549
|
+
export type ManagedServiceIdentityType = string;
|
|
550
|
+
|
|
240
551
|
// @public
|
|
241
552
|
export interface NetworkInterface {
|
|
242
553
|
readonly id?: string;
|
|
@@ -273,23 +584,95 @@ export interface OutboundEnvironmentEndpointCollection {
|
|
|
273
584
|
value: OutboundEnvironmentEndpoint[];
|
|
274
585
|
}
|
|
275
586
|
|
|
587
|
+
// @public
|
|
588
|
+
export interface PrivateEndpoint {
|
|
589
|
+
readonly id?: string;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
// @public
|
|
593
|
+
export interface PrivateEndpointConnection extends ProxyResource {
|
|
594
|
+
etag?: string;
|
|
595
|
+
readonly groupIds?: string[];
|
|
596
|
+
privateEndpoint?: PrivateEndpoint;
|
|
597
|
+
privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState;
|
|
598
|
+
readonly provisioningState?: PrivateEndpointConnectionProvisioningState;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
// @public
|
|
602
|
+
export interface PrivateEndpointConnectionListResult {
|
|
603
|
+
nextLink?: string;
|
|
604
|
+
value?: PrivateEndpointConnection[];
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
// @public
|
|
608
|
+
export type PrivateEndpointConnectionProvisioningState = string;
|
|
609
|
+
|
|
610
|
+
// @public
|
|
611
|
+
export interface PrivateEndpointConnections {
|
|
612
|
+
listByCloudHsmCluster(resourceGroupName: string, cloudHsmClusterName: string, options?: PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams): PagedAsyncIterableIterator<PrivateEndpointConnection>;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
// @public
|
|
616
|
+
export interface PrivateEndpointConnectionsListByCloudHsmClusterNextOptionalParams extends coreClient.OperationOptions {
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
// @public
|
|
620
|
+
export type PrivateEndpointConnectionsListByCloudHsmClusterNextResponse = PrivateEndpointConnectionListResult;
|
|
621
|
+
|
|
622
|
+
// @public
|
|
623
|
+
export interface PrivateEndpointConnectionsListByCloudHsmClusterOptionalParams extends coreClient.OperationOptions {
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
// @public
|
|
627
|
+
export type PrivateEndpointConnectionsListByCloudHsmClusterResponse = PrivateEndpointConnectionListResult;
|
|
628
|
+
|
|
629
|
+
// @public
|
|
630
|
+
export type PrivateEndpointServiceConnectionStatus = string;
|
|
631
|
+
|
|
632
|
+
// @public
|
|
633
|
+
export interface PrivateLinkResource extends Resource {
|
|
634
|
+
readonly groupId?: string;
|
|
635
|
+
readonly requiredMembers?: string[];
|
|
636
|
+
requiredZoneNames?: string[];
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
// @public
|
|
640
|
+
export interface PrivateLinkResourceListResult {
|
|
641
|
+
value?: PrivateLinkResource[];
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
// @public
|
|
645
|
+
export interface PrivateLinkServiceConnectionState {
|
|
646
|
+
actionsRequired?: string;
|
|
647
|
+
description?: string;
|
|
648
|
+
status?: PrivateEndpointServiceConnectionStatus;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
// @public
|
|
652
|
+
export type ProvisioningState = string;
|
|
653
|
+
|
|
654
|
+
// @public
|
|
655
|
+
export interface ProxyResource extends Resource {
|
|
656
|
+
}
|
|
657
|
+
|
|
276
658
|
// @public
|
|
277
659
|
export interface Resource {
|
|
278
660
|
readonly id?: string;
|
|
279
|
-
location: string;
|
|
280
661
|
readonly name?: string;
|
|
281
|
-
|
|
282
|
-
tags?: {
|
|
283
|
-
[propertyName: string]: string;
|
|
284
|
-
};
|
|
662
|
+
readonly systemData?: SystemData;
|
|
285
663
|
readonly type?: string;
|
|
286
|
-
zones?: string[];
|
|
287
664
|
}
|
|
288
665
|
|
|
289
666
|
// @public
|
|
290
667
|
export interface ResourceListResult {
|
|
291
668
|
nextLink?: string;
|
|
292
|
-
value?:
|
|
669
|
+
value?: DedicatedHsmResource[];
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
// @public
|
|
673
|
+
export interface RestoreProperties {
|
|
674
|
+
azureStorageResourceUri?: string;
|
|
675
|
+
foldername?: string;
|
|
293
676
|
}
|
|
294
677
|
|
|
295
678
|
// @public
|
|
@@ -302,6 +685,16 @@ export type SkuName = string;
|
|
|
302
685
|
|
|
303
686
|
// @public
|
|
304
687
|
export interface SystemData {
|
|
688
|
+
createdAt?: Date;
|
|
689
|
+
createdBy?: string;
|
|
690
|
+
createdByType?: CreatedByType;
|
|
691
|
+
lastModifiedAt?: Date;
|
|
692
|
+
lastModifiedBy?: string;
|
|
693
|
+
lastModifiedByType?: CreatedByType;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
// @public
|
|
697
|
+
export interface SystemDataAutoGenerated {
|
|
305
698
|
createdAt?: Date;
|
|
306
699
|
createdBy?: string;
|
|
307
700
|
createdByType?: IdentityType;
|
|
@@ -310,6 +703,20 @@ export interface SystemData {
|
|
|
310
703
|
lastModifiedByType?: IdentityType;
|
|
311
704
|
}
|
|
312
705
|
|
|
706
|
+
// @public
|
|
707
|
+
export interface TrackedResource extends Resource {
|
|
708
|
+
location: string;
|
|
709
|
+
tags?: {
|
|
710
|
+
[propertyName: string]: string;
|
|
711
|
+
};
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
// @public
|
|
715
|
+
export interface UserAssignedIdentity {
|
|
716
|
+
readonly clientId?: string;
|
|
717
|
+
readonly principalId?: string;
|
|
718
|
+
}
|
|
719
|
+
|
|
313
720
|
// (No @packageDocumentation comment for this package)
|
|
314
721
|
|
|
315
722
|
```
|
|
@@ -8,32 +8,39 @@
|
|
|
8
8
|
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
10
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
11
|
-
import {
|
|
12
|
-
PipelineRequest,
|
|
13
|
-
PipelineResponse,
|
|
14
|
-
SendRequest
|
|
15
|
-
} from "@azure/core-rest-pipeline";
|
|
16
11
|
import * as coreAuth from "@azure/core-auth";
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
import {
|
|
13
|
+
CloudHsmClustersImpl,
|
|
14
|
+
CloudHsmClusterPrivateLinkResourcesImpl,
|
|
15
|
+
CloudHsmClusterPrivateEndpointConnectionsImpl,
|
|
16
|
+
PrivateEndpointConnectionsImpl,
|
|
17
|
+
OperationsImpl,
|
|
18
|
+
DedicatedHsmOperationsImpl
|
|
19
|
+
} from "./operations";
|
|
20
|
+
import {
|
|
21
|
+
CloudHsmClusters,
|
|
22
|
+
CloudHsmClusterPrivateLinkResources,
|
|
23
|
+
CloudHsmClusterPrivateEndpointConnections,
|
|
24
|
+
PrivateEndpointConnections,
|
|
25
|
+
Operations,
|
|
26
|
+
DedicatedHsmOperations
|
|
27
|
+
} from "./operationsInterfaces";
|
|
28
|
+
import { AzureHSMResourceProviderOptionalParams } from "./models";
|
|
20
29
|
|
|
21
|
-
export class
|
|
30
|
+
export class AzureHSMResourceProvider extends coreClient.ServiceClient {
|
|
22
31
|
$host: string;
|
|
23
|
-
apiVersion: string;
|
|
24
32
|
subscriptionId: string;
|
|
25
33
|
|
|
26
34
|
/**
|
|
27
|
-
* Initializes a new instance of the
|
|
35
|
+
* Initializes a new instance of the AzureHSMResourceProvider class.
|
|
28
36
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
29
|
-
* @param subscriptionId
|
|
30
|
-
* The subscription ID forms part of the URI for every service call.
|
|
37
|
+
* @param subscriptionId The ID of the target subscription. The value must be an UUID.
|
|
31
38
|
* @param options The parameter options
|
|
32
39
|
*/
|
|
33
40
|
constructor(
|
|
34
41
|
credentials: coreAuth.TokenCredential,
|
|
35
42
|
subscriptionId: string,
|
|
36
|
-
options?:
|
|
43
|
+
options?: AzureHSMResourceProviderOptionalParams
|
|
37
44
|
) {
|
|
38
45
|
if (credentials === undefined) {
|
|
39
46
|
throw new Error("'credentials' cannot be null");
|
|
@@ -46,12 +53,12 @@ export class AzureDedicatedHSMResourceProvider extends coreClient.ServiceClient
|
|
|
46
53
|
if (!options) {
|
|
47
54
|
options = {};
|
|
48
55
|
}
|
|
49
|
-
const defaults:
|
|
56
|
+
const defaults: AzureHSMResourceProviderOptionalParams = {
|
|
50
57
|
requestContentType: "application/json; charset=utf-8",
|
|
51
58
|
credential: credentials
|
|
52
59
|
};
|
|
53
60
|
|
|
54
|
-
const packageDetails = `azsdk-js-arm-hardwaresecuritymodules/2.0.0`;
|
|
61
|
+
const packageDetails = `azsdk-js-arm-hardwaresecuritymodules/2.0.0-beta.1`;
|
|
55
62
|
const userAgentPrefix =
|
|
56
63
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
57
64
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -104,40 +111,22 @@ export class AzureDedicatedHSMResourceProvider extends coreClient.ServiceClient
|
|
|
104
111
|
|
|
105
112
|
// Assigning values to Constant parameters
|
|
106
113
|
this.$host = options.$host || "https://management.azure.com";
|
|
107
|
-
this.
|
|
114
|
+
this.cloudHsmClusters = new CloudHsmClustersImpl(this);
|
|
115
|
+
this.cloudHsmClusterPrivateLinkResources = new CloudHsmClusterPrivateLinkResourcesImpl(
|
|
116
|
+
this
|
|
117
|
+
);
|
|
118
|
+
this.cloudHsmClusterPrivateEndpointConnections = new CloudHsmClusterPrivateEndpointConnectionsImpl(
|
|
119
|
+
this
|
|
120
|
+
);
|
|
121
|
+
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
|
108
122
|
this.operations = new OperationsImpl(this);
|
|
109
123
|
this.dedicatedHsmOperations = new DedicatedHsmOperationsImpl(this);
|
|
110
|
-
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
114
|
-
private addCustomApiVersionPolicy(apiVersion?: string) {
|
|
115
|
-
if (!apiVersion) {
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
const apiVersionPolicy = {
|
|
119
|
-
name: "CustomApiVersionPolicy",
|
|
120
|
-
async sendRequest(
|
|
121
|
-
request: PipelineRequest,
|
|
122
|
-
next: SendRequest
|
|
123
|
-
): Promise<PipelineResponse> {
|
|
124
|
-
const param = request.url.split("?");
|
|
125
|
-
if (param.length > 1) {
|
|
126
|
-
const newParams = param[1].split("&").map((item) => {
|
|
127
|
-
if (item.indexOf("api-version") > -1) {
|
|
128
|
-
return "api-version=" + apiVersion;
|
|
129
|
-
} else {
|
|
130
|
-
return item;
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
request.url = param[0] + "?" + newParams.join("&");
|
|
134
|
-
}
|
|
135
|
-
return next(request);
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
this.pipeline.addPolicy(apiVersionPolicy);
|
|
139
124
|
}
|
|
140
125
|
|
|
126
|
+
cloudHsmClusters: CloudHsmClusters;
|
|
127
|
+
cloudHsmClusterPrivateLinkResources: CloudHsmClusterPrivateLinkResources;
|
|
128
|
+
cloudHsmClusterPrivateEndpointConnections: CloudHsmClusterPrivateEndpointConnections;
|
|
129
|
+
privateEndpointConnections: PrivateEndpointConnections;
|
|
141
130
|
operations: Operations;
|
|
142
131
|
dedicatedHsmOperations: DedicatedHsmOperations;
|
|
143
132
|
}
|
package/src/index.ts
CHANGED
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
/// <reference lib="esnext.asynciterable" />
|
|
10
10
|
export { getContinuationToken } from "./pagingHelper";
|
|
11
11
|
export * from "./models";
|
|
12
|
-
export {
|
|
12
|
+
export { AzureHSMResourceProvider } from "./azureHSMResourceProvider";
|
|
13
13
|
export * from "./operationsInterfaces";
|