Skip to content

Commit 96fbcec

Browse files
authored
mgmt, Java, Validate TypeSpec conversion for Quantum service converted tsp (#43427)
* feat(java): add Java client customizations for backward compatibility after Swagger to TypeSpec migration * Update service name in tspconfig.yaml to remove space for AzureQuantum * Update tspconfig.yaml
1 parent f74fe15 commit 96fbcec

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

specification/quantum/Microsoft.Quantum.Management/client.tsp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,24 @@ using Azure.ResourceManager.Foundations;
9090
@@alternateType(ProviderPropertiesAad.tenantId, uuid, "csharp");
9191
@@alternateType(WorkspaceResourceProperties.endpointUri, url, "csharp");
9292
@@alternateType(QuantumSuiteOfferProperties.quotas, azureLocation, "csharp");
93+
94+
// Java client customizations to preserve backward compatibility after Swagger -> TypeSpec migration.
95+
@@clientName(
96+
CheckNameAvailabilityRequest,
97+
"CheckNameAvailabilityParameters",
98+
"java"
99+
);
100+
@@clientName(
101+
CheckNameAvailabilityResponse,
102+
"CheckNameAvailabilityResult",
103+
"java"
104+
);
105+
@@clientName(WorkspaceProvisioningStatus, "ProvisioningStatus", "java");
106+
@@clientName(ProviderStatus, "Status", "java");
107+
@@clientLocation(
108+
Workspaces.checkNameAvailability,
109+
"WorkspaceOperations",
110+
"java"
111+
);
112+
@@clientLocation(Workspaces.listKeys, "WorkspaceOperations", "java");
113+
@@clientLocation(Workspaces.regenerateKeys, "WorkspaceOperations", "java");

specification/quantum/Microsoft.Quantum.Management/tspconfig.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ options:
2222
namespace: "com.azure.resourcemanager.quantum"
2323
service-name: "Azure Quantum"
2424
flavor: azure
25+
float32-as-double: false
2526
linter:
2627
extends:
2728
- "@azure-tools/typespec-azure-rulesets/resource-manager"

0 commit comments

Comments
 (0)