Skip to content

Commit eee9708

Browse files
loadtest, java, pin api-version 2024-12-01-preview (#37801)
1 parent b32509c commit eee9708

File tree

2 files changed

+40
-4
lines changed

2 files changed

+40
-4
lines changed

specification/loadtestservice/data-plane/loadtesting/client.tsp

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,45 @@ namespace Customizations;
140140

141141
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
142142
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
143-
@client({
144-
name: "LoadTestAdministrationClient",
145-
service: Microsoft.LoadTestService,
146-
})
143+
@client(
144+
{
145+
name: "LoadTestAdministrationClient",
146+
service: Microsoft.LoadTestService,
147+
},
148+
"java"
149+
)
150+
interface AdministrationOperationsJava {
151+
createOrUpdateTest is LoadTestAdministration.createOrUpdateTest;
152+
createOrUpdateAppComponents is LoadTestAdministration.createOrUpdateAppComponents;
153+
createOrUpdateServerMetricsConfig is LoadTestAdministration.createOrUpdateServerMetricsConfig;
154+
getAppComponents is LoadTestAdministration.getAppComponents;
155+
getServerMetricsConfig is LoadTestAdministration.getServerMetricsConfig;
156+
getTest is LoadTestAdministration.getTest;
157+
getTestFile is LoadTestAdministration.getTestFile;
158+
listTestFiles is LoadTestAdministration.listTestFiles;
159+
listTests is LoadTestAdministration.listTests;
160+
#suppress "@azure-tools/typespec-azure-core/byos" "It is limiting for users to have storage first before creating a load test also it will be breaking change for us."
161+
@clientName("BeginUploadTestFile", "python")
162+
@access(Access.internal, "python,csharp,java") // NOTE: These are overridden to LRO methods so original methods are made internal
163+
uploadTestFile is LoadTestAdministration.uploadTestFile;
164+
deleteTestFile is LoadTestAdministration.deleteTestFile;
165+
deleteTest is LoadTestAdministration.deleteTest;
166+
167+
createOrUpdateTestProfile is TestProfileAdministration.createOrUpdateTestProfile;
168+
deleteTestProfile is TestProfileAdministration.deleteTestProfile;
169+
getTestProfile is TestProfileAdministration.getTestProfile;
170+
listTestProfiles is TestProfileAdministration.listTestProfiles;
171+
}
172+
173+
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
174+
#suppress "@azure-tools/typespec-azure-core/use-standard-names" "Existing name"
175+
@client(
176+
{
177+
name: "LoadTestAdministrationClient",
178+
service: Microsoft.LoadTestService,
179+
},
180+
"!java"
181+
)
147182
interface AdministrationOperations {
148183
createOrUpdateTest is LoadTestAdministration.createOrUpdateTest;
149184
createOrUpdateAppComponents is LoadTestAdministration.createOrUpdateAppComponents;

specification/loadtestservice/data-plane/loadtesting/tspconfig.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ options:
5656
model-namespace: false
5757
flavor: azure
5858
"@azure-tools/typespec-java":
59+
api-version: "2024-12-01-preview"
5960
emitter-output-dir: "{output-dir}/{service-dir}/azure-developer-loadtesting"
6061
namespace: com.azure.developer.loadtesting
6162
enable-sync-stack: true

0 commit comments

Comments
 (0)