-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add AACS GA JAVA SDK #37626
Add AACS GA JAVA SDK #37626
Conversation
Merge 22603c97054b46bc32729e274f459f0e6267824c into 89260be1a92c914b7b48af8e8f75938d5e76851d
API change check APIView has identified API level changes in this PR and created following API reviews. |
...ai-contentsafety/src/main/java/com/azure/ai/contentsafety/models/ContentSafetyImageData.java
Outdated
Show resolved
Hide resolved
Analyze CI currently fails due to merge of an incorrect PR #37621. I've contacted the author to fix. |
Merge 570de777401fab039adb0a2a326ba51850028700 into 90a65cb3135d42438a381eb8bb5461a2b99b199f
products: | ||
- azure | ||
- azure-cognitive-services | ||
- azure-cognitive-services |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remember to change this line after Azure/azure-sdk-tools#7346 merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zhaiyutong FYI you should be good with azure-ai-content-safety here since that is how the product is registered. I dont believe the product needs to match the SDK package name exactly.
ContentSafetyClient contentSafetyClient = new ContentSafetyClientBuilder() | ||
.credential(new KeyCredential(key)) | ||
.endpoint(endpoint).buildClient(); | ||
``` | ||
|
||
#### Create a ContentSafetyClient with Microsoft Entra ID (formerly Azure Active Directory (AAD)) token credential | ||
- Step 1: Enable AAD for your resource |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe rename AAD
to Microsoft Entra ID
in your content as well?
As an example, [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-java/tree/main/sdk/identity/azure-identity#authenticate-with-defaultazurecredential) | ||
can be used to authenticate the client. | ||
|
||
DefaultAzureCredential will use the values from these environment variables. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DefaultAzureCredential will use the values from these environment variables. | |
`DefaultAzureCredential` will use the values from these environment variables. |
Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines