-
Notifications
You must be signed in to change notification settings - Fork 5.1k
/
client.tsp
32 lines (28 loc) · 1.2 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
import "@azure-tools/typespec-client-generator-core";
import "./main.tsp";
using Azure.ClientGenerator.Core;
@TypeSpec.Versioning.useDependency(Azure.Core.Versions.v1_0_Preview_2)
@TypeSpec.Versioning.useDependency(ContentSafety.Versions.v2023_10_01)
namespace Customizations;
@client({
name: "ContentSafetyClient",
service: ContentSafety,
})
interface ContentSafetyClient {
analyzeText is ContentSafety.TextOperations.analyzeText;
analyzeImage is ContentSafety.ImageOperations.analyzeImage;
}
@client({
name: "BlocklistClient",
service: ContentSafety,
})
interface BlocklistClient {
addOrUpdateBlocklistItems is ContentSafety.TextBlocklists.addOrUpdateBlocklistItems;
createOrUpdateTextBlocklist is ContentSafety.TextBlocklists.createOrUpdateTextBlocklist;
deleteTextBlocklist is ContentSafety.TextBlocklists.deleteTextBlocklist;
getTextBlocklist is ContentSafety.TextBlocklists.getTextBlocklist;
getTextBlocklistItem is ContentSafety.TextBlocklists.getTextBlocklistItem;
listTextBlocklistItems is ContentSafety.TextBlocklists.listTextBlocklistItems;
listTextBlocklists is ContentSafety.TextBlocklists.listTextBlocklists;
removeBlocklistItems is ContentSafety.TextBlocklists.removeBlocklistItems;
}