forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Cognitive Services - Azure AI Content Safety] Address comments of sd…
…k languages on GA (Azure#26353) * Split the client and rename the variables. * Update JS package-dir config in tspconfig (Azure#26) * Add projected name. * add doc. * add body annotation. * add * add projected name. * update * Add projected name for python. * rename to options. * rename for java * update * update * update files (Azure#35) * update * update --------- Co-authored-by: MinjueWu <597922968@qq.com> Co-authored-by: zhaiyutong <mo.huainian@163.com> Co-authored-by: YUTONG_ZHAI <32332316+zhaiyutong@users.noreply.github.com> Co-authored-by: Yutong Zhai <yutongzhai@microsoft.com>
- Loading branch information
1 parent
4428e09
commit 164375e
Showing
5 changed files
with
66 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters