Skip to content

Commit

Permalink
Add AACS GA JAVA SDK (#37626)
Browse files Browse the repository at this point in the history
* add date

* remove empty sections for changelog

* CodeGen from PR 26353 in Azure/azure-rest-api-specs
Merge 22603c97054b46bc32729e274f459f0e6267824c into 89260be1a92c914b7b48af8e8f75938d5e76851d

* update

* update

* revert

* update

* update

* CodeGen from PR 26353 in Azure/azure-rest-api-specs
Merge 570de777401fab039adb0a2a326ba51850028700 into 90a65cb3135d42438a381eb8bb5461a2b99b199f

* update

* update blobUri

* update image

* update

* update

* update

* add

* add

* update

* update

* update

* verify

* update

* update

* add readme for samples

* update

* update

* add more

* remove

* update names

* update samples

* update aad

* update readme

* update url

* update product name

* update readme

* format

* add

* add

* remove

* update

* update readme

* update

* update product name

* update

* update

* update commit id

* update

* update url

* update readme

---------

Co-authored-by: SDKAuto <[email protected]>
  • Loading branch information
zhaiyutong and SDKAuto authored Nov 29, 2023
1 parent 419ebde commit 0ddfe8a
Show file tree
Hide file tree
Showing 59 changed files with 5,057 additions and 3,689 deletions.
2 changes: 1 addition & 1 deletion eng/emitter-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"dependencies": {
"@azure-tools/typespec-java": "0.11.2"
}
}
}
2 changes: 1 addition & 1 deletion eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ com.azure:azure-sdk-all;1.0.0;1.0.0
com.azure:azure-sdk-parent;1.6.0;1.6.0
com.azure:azure-client-sdk-parent;1.7.0;1.7.0
com.azure:azure-ai-anomalydetector;3.0.0-beta.5;3.0.0-beta.6
com.azure:azure-ai-contentsafety;1.0.0-beta.1;1.0.0-beta.2
com.azure:azure-ai-contentsafety;1.0.0-beta.1;1.0.0
com.azure:azure-ai-documentintelligence;1.0.0-beta.1;1.0.0-beta.2
com.azure:azure-ai-documenttranslator;1.0.0-beta.1;1.0.0-beta.2
com.azure:azure-ai-formrecognizer;4.1.3;4.2.0-beta.1
Expand Down
31 changes: 27 additions & 4 deletions sdk/contentsafety/azure-ai-contentsafety/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,39 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0 (Unreleased)

### Features Added

- Support AAD Authentication
- Support 8 severity level for AnalyzeText
### Breaking Changes
Contract change for AnalyzeText, AnalyzeImage, Blocklist management related methods
#### AnalyzeText
- AnalyzeTextOptions
- Renamed breakByBlocklists to haltOnBlocklistHit
- Add AnalyzeTextOutputType
- AnalyzeTextResult
- Renamed blocklistsMatchResults to blocklistsMatch
- Replaced TextAnalyzeSeverityResult by TextCategoriesAnalysis
#### AnalyzeImage
- AnalyzeImageOptions
- Replaced ImageData by ContentSafetyImageData
- Add AnalyzeImageOutputType
- AnalyzeImageResult
- Replaced ImageAnalyzeSeverityResult by ImageCategoriesAnalysis
#### Blocklist management
- Added BlocklistAsyncClient
- Renamed AddBlockItemsOptions to AddOrUpdateTextBlocklistItemsOptions
- Renamed AddBlockItemsResult to AddOrUpdateTextBlocklistItemsResult
- Renamed RemoveBlockItemsOptions to RemoveTextBlocklistItemsOptions
- Renamed TextBlockItemInfo to TextBlocklistItem

### Bugs Fixed

### Other Changes

#### Dependency Updates
- Upgraded `azure-core` from `1.43.0` to version `1.45.0`.
- Upgraded `azure-core-http-netty` from `1.13.7` to version `1.13.10`.
- Upgraded `azure-identity` from `1.10.1` to version `1.11.0`
## 1.0.0-beta.1 (2023-09-28)

- Azure AI ContentSafety client library for Java. This package contains Microsoft Azure ContentSafety client library.
Expand All @@ -18,4 +42,3 @@
* Text Analysis API: Scans text for sexual content, violence, hate, and self harm with multi-severity levels.
* Image Analysis API: Scans images for sexual content, violence, hate, and self harm with multi-severity levels.
* Text Blocklist Management APIs: The default AI classifiers are sufficient for most content safety needs; however, you might need to screen for terms that are specific to your use case. You can create blocklists of terms to use with the Text API.

179 changes: 113 additions & 66 deletions sdk/contentsafety/azure-ai-contentsafety/README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sdk/contentsafety/azure-ai-contentsafety/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo" : "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath" : "java",
"TagPrefix" : "java/contentsafety/azure-ai-contentsafety",
"Tag" : "java/contentsafety/azure-ai-contentsafety_10dc4f5dac"
"Tag" : "java/contentsafety/azure-ai-contentsafety_b28078ece6"
}
6 changes: 4 additions & 2 deletions sdk/contentsafety/azure-ai-contentsafety/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<groupId>com.azure</groupId>
<artifactId>azure-ai-contentsafety</artifactId>
<version>1.0.0-beta.2</version> <!-- {x-version-update;com.azure:azure-ai-contentsafety;current} -->
<version>1.0.0</version> <!-- {x-version-update;com.azure:azure-ai-contentsafety;current} -->
<packaging>jar</packaging>

<name>Microsoft Azure SDK for ContentSafety</name>
Expand Down Expand Up @@ -43,7 +43,8 @@
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.skip>true</jacoco.skip>
<jacoco.min.linecoverage>0.4</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0.3</jacoco.min.branchcoverage>
</properties>
<dependencies>
<dependency>
Expand Down Expand Up @@ -93,4 +94,5 @@
<scope>test</scope>
</dependency>
</dependencies>

</project>
Loading

0 comments on commit 0ddfe8a

Please sign in to comment.