Skip to content
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

Merged
merged 58 commits into from
Nov 29, 2023
Merged

Add AACS GA JAVA SDK #37626

merged 58 commits into from
Nov 29, 2023

Conversation

zhaiyutong
Copy link
Member

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:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

zhaiyutong and others added 4 commits September 22, 2023 10:04
Merge 22603c97054b46bc32729e274f459f0e6267824c into 89260be1a92c914b7b48af8e8f75938d5e76851d
@azure-sdk
Copy link
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

azure-ai-contentsafety

@weidongxu-microsoft
Copy link
Member

Analyze CI currently fails due to merge of an incorrect PR #37621. I've contacted the author to fix.

SDKAuto and others added 3 commits November 14, 2023 07:54
Merge 570de777401fab039adb0a2a326ba51850028700 into 90a65cb3135d42438a381eb8bb5461a2b99b199f
products:
- azure
- azure-cognitive-services
- azure-cognitive-services
Copy link
Member

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.

Copy link
Member

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
Copy link
Member

@haolingdong-msft haolingdong-msft Nov 29, 2023

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
DefaultAzureCredential will use the values from these environment variables.
`DefaultAzureCredential` will use the values from these environment variables.

@mengaims mengaims self-requested a review November 29, 2023 09:10
@mengaims mengaims merged commit 0ddfe8a into Azure:main Nov 29, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants