-
Notifications
You must be signed in to change notification settings - Fork 5.7k
[Cognitive Services - Azure AI Content Safety] Address comments of sdk languages on GA #26353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
22603c9
Split the client and rename the variables.
JieZhou000 e78d0b9
Update JS package-dir config in tspconfig (#26)
lemonicetea 86d8146
Add projected name.
JieZhou000 266ff3c
add doc.
JieZhou000 8314231
Merge pull request #27 from mengaims/zhojie/csharp_1
JieZhou000 c06404f
add body annotation.
JieZhou000 28a1844
Merge pull request #28 from mengaims/zhojie/csharp-2
JieZhou000 c60dbf5
add
zhaiyutong 82bde69
add projected name.
JieZhou000 27161e1
update
zhaiyutong bdd7cf8
Add projected name for python.
JieZhou000 09d8cdf
rename to options.
JieZhou000 5b210b8
Merge pull request #31 from mengaims/zhojie/python_0
JieZhou000 a9d7727
rename for java
JieZhou000 2fa8f10
Merge pull request #32 from mengaims/zhojie/java_0
JieZhou000 ca02f98
update
zhaiyutong 570de77
Merge pull request #29 from mengaims/yutongzhai/java-projected-name
zhaiyutong 4093694
update
yutong-zzzz 27f520c
Merge pull request #33 from mengaims/yutongzhai/remove-java-bloburi
zhaiyutong 802ea57
update
zhaiyutong b8277ee
Merge pull request #34 from mengaims/yutongzhai/fix-version
zhaiyutong 343a71a
update files (#35)
zhaiyutong File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.