Skip to content

Commit 29e6b95

Browse files
authored
MPG migration - hardwaresecuritymodules (#38999)
* update tspconfig.yaml * update client.tsp * WIP * format fix
1 parent f428a3d commit 29e6b95

File tree

4 files changed

+26
-8
lines changed

4 files changed

+26
-8
lines changed

specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/HardwareSecurityModules/CloudHsmCluster.tsp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import "./models.tsp";
77
using TypeSpec.Rest;
88
using Azure.ResourceManager;
99
using TypeSpec.Http;
10-
using TypeSpec.OpenAPI;
1110

1211
namespace Microsoft.HardwareSecurityModules;
1312
/**

specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/HardwareSecurityModules/back-compatible.tsp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,16 @@ using Microsoft.HardwareSecurityModules;
3131
"!python,!java,!csharp"
3232
);
3333
@@clientName(CloudHsmClusters.validateBackupProperties::parameters.body,
34-
"backupRequestProperties"
34+
"backupRequestProperties",
35+
"!csharp"
3536
);
3637
@@clientName(CloudHsmClusters.backup::parameters.body,
37-
"backupRequestProperties"
38+
"backupRequestProperties",
39+
"!csharp"
3840
);
3941
@@clientName(CloudHsmClusters.validateRestoreProperties::parameters.body,
40-
"restoreRequestProperties"
42+
"restoreRequestProperties",
43+
"!csharp"
4144
);
4245
//@@clientLocation and @@clientName decorators for operations that had custom @operationId
4346
//These ensure consistent operationId generation and client method naming in the output

specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/HardwareSecurityModules/client.tsp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,22 @@ using Azure.Core;
128128
"connectionState ",
129129
"csharp"
130130
);
131+
@@clientName(NetworkInterface.privateIpAddress, "PrivateIPAddress", "csharp");
132+
@@clientName(EndpointDetail.ipAddress, "IPAddress", "csharp");
133+
134+
@@clientName(CloudHsmClusters.validateBackupProperties::parameters.body,
135+
"content",
136+
"csharp"
137+
);
138+
@@clientName(CloudHsmClusters.backup::parameters.body, "content", "csharp");
139+
@@clientName(CloudHsmClusters.validateRestoreProperties::parameters.body,
140+
"content",
141+
"csharp"
142+
);
143+
144+
@@clientName(DedicatedHsms.update::parameters.properties, "patch", "csharp");
145+
146+
@@clientName(CloudHsmClusters.listByCloudHsmCluster,
147+
"GetCloudHsmClusterPrivateLinkResources",
148+
"csharp"
149+
);

specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/HardwareSecurityModules/tspconfig.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,8 @@ options:
1212
output-file: "{version-status}/{version}/openapi.json"
1313
examples-dir: "{project-root}/examples"
1414
arm-types-dir: "{project-root}/../../../../common-types/resource-management"
15-
"@azure-tools/typespec-csharp":
15+
"@azure-typespec/http-client-csharp-mgmt":
1616
emitter-output-dir: "{output-dir}/{service-dir}/{namespace}"
17-
flavor: azure
18-
clear-output-folder: true
19-
model-namespace: true
2017
namespace: "Azure.ResourceManager.HardwareSecurityModules"
2118
"@azure-tools/typespec-python":
2219
emitter-output-dir: "{output-dir}/{service-dir}/azure-mgmt-hardwaresecuritymodules"

0 commit comments

Comments
 (0)