Skip to content

Generating Java SDK for 2024-12-09preview API version #44949

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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

amruthashree18
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.

@azure-sdk
Copy link
Collaborator

azure-sdk commented Apr 10, 2025

API change check

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

com.azure:azure-security-confidentialledger

@@ -185,7 +185,7 @@ public LedgersClient getLedgers() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
this.apiVersion = "2022-05-13";
this.apiVersion = "2024-12-09";
Copy link
Member

@weidongxu-microsoft weidongxu-microsoft Apr 15, 2025

Choose a reason for hiding this comment

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

Why change to mgmt lib?

Change here would require a regen too. It is unlikely you have api-version change but no API change.

Comment on lines 209 to 214
@Generated
public ConfidentialLedgerClientBuilder ledgerEndpoint(String ledgerEndpoint) {
this.ledgerEndpoint = ledgerEndpoint;
@Override
public ConfidentialLedgerClientBuilder endpoint(String endpoint) {
this.endpoint = endpoint;
return this;
}
Copy link
Member

@weidongxu-microsoft weidongxu-microsoft Apr 15, 2025

Choose a reason for hiding this comment

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

After the fix to ServiceVersion, this seems the only breaking changes in PR.

The cause is from your Swagger, previously it is {ledgerEndpoint} in stable, and now it is {endpoint} in preview.

Please discussion this with SDK arch.

Copy link
Member Author

Choose a reason for hiding this comment

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

This is already reviewed and approved earlier when we generated SDK on .net

Copy link
Member

Choose a reason for hiding this comment

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

We should not have a breaking change here. We should rename the method to ledgerEndpoint to maintain backward compatibility.

Copy link
Member

@weidongxu-microsoft weidongxu-microsoft left a comment

Choose a reason for hiding this comment

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

Please also update the CHANGELOG.md, about what's changed in the new api-version (new feature added?).

Also, please consider adding more test on your new features. This is not mandatory as this is a preview release.

Choose a reason for hiding this comment

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

there is no real change in this file, please remove the file from PR

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.

4 participants