-
Notifications
You must be signed in to change notification settings - Fork 5.1k
/
client.tsp
49 lines (36 loc) · 1.67 KB
/
client.tsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import "./main.tsp";
import "@azure-tools/typespec-client-generator-core";
import "@azure-tools/typespec-azure-resource-manager";
using TypeSpec.Versioning;
using Azure.ClientGenerator.Core;
using Microsoft.LoadTestService;
using Azure.ResourceManager;
@useDependency(Microsoft.LoadTestService.APIVersions.v2022_12_01)
@useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1)
namespace Customizations;
@@clientName(LoadTests.updateLoadtest::parameters.properties,
"LoadTestResourcePatchRequestBody"
);
@@clientName(Quotas.checkAvailability::parameters.body, "QuotaBucketRequest");
@@clientName(LoadTests.createOrUpdateLoadtest::parameters.resource,
"LoadTestResource"
);
@client({
name: "LoadTestMgmtClient",
service: Microsoft.LoadTestService,
})
@armResourceOperations
interface LoadTests {
listBySubscription is Microsoft.LoadTestService.LoadTests.listBySubscription;
listByResourceGroup is Microsoft.LoadTestService.LoadTests.listByResourceGroup;
getLoadtest is Microsoft.LoadTestService.LoadTests.get;
createOrUpdateLoadtest is Microsoft.LoadTestService.LoadTests.createOrUpdate;
#suppress "@azure-tools/typespec-azure-resource-manager/lro-location-header" "Existing API"
updateLoadtest is Microsoft.LoadTestService.LoadTests.update;
deleteLoadtest is Microsoft.LoadTestService.LoadTests.delete;
#suppress "@azure-tools/typespec-azure-core/no-operation-id" ""
outboundNetworkDependenciesEndpoints is Microsoft.LoadTestService.LoadTests.outboundNetworkDependenciesEndpoints;
getQuota is Microsoft.LoadTestService.Quotas.get;
listQuota is Microsoft.LoadTestService.Quotas.list;
checkAvailabilityQuota is Microsoft.LoadTestService.Quotas.checkAvailability;
}