-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Expand file tree
/
Copy pathclient.tsp
More file actions
47 lines (39 loc) · 1.2 KB
/
client.tsp
File metadata and controls
47 lines (39 loc) · 1.2 KB
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
import "./main.tsp";
import "@azure-tools/typespec-client-generator-core";
using Azure.ClientGenerator.Core;
using Azure.Core;
using Microsoft.OnlineExperimentation;
@@clientName(Microsoft.OnlineExperimentation,
"OnlineExperimentationMgmtClient",
"java"
);
@@clientName(Microsoft.OnlineExperimentation,
"OnlineExperimentationMgmtClient",
"python"
);
// CSharp
@@clientName(Azure.ResourceManager.ResourceProvisioningState,
"OnlineExperimentationProvisioningState",
"csharp"
);
@@alternateType(OnlineExperimentationWorkspaceProperties.workspaceId,
uuid,
"csharp"
);
@@clientName(PrivateEndpointConnection,
"OnlineExperimentationPrivateEndpointConnection",
"csharp"
);
@@clientName(PrivateLinkResource, "OnlineExperimentationPrivateLink", "csharp");
// we add this model in this namespace in order to replace some models with this model via alternateType decorator
namespace Azure.ResourceManager.Models {
/** represents a reference to an existing resource by its id */
model SubResource {
/** the id */
id?: armResourceIdentifier;
}
}
@@alternateType(Azure.ResourceManager.PrivateEndpointConnectionProperties.privateEndpoint,
Azure.ResourceManager.Models.SubResource,
"csharp"
);