-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
base: main
Are you sure you want to change the base?
Generating Java SDK for 2024-12-09preview API version #44949
Conversation
API change check APIView has identified API level changes in this PR and created following API reviews. |
@@ -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"; |
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.
Why change to mgmt lib?
Change here would require a regen too. It is unlikely you have api-version change but no API change.
...er/src/main/java/com/azure/security/confidentialledger/ConfidentialLedgerServiceVersion.java
Show resolved
Hide resolved
@Generated | ||
public ConfidentialLedgerClientBuilder ledgerEndpoint(String ledgerEndpoint) { | ||
this.ledgerEndpoint = ledgerEndpoint; | ||
@Override | ||
public ConfidentialLedgerClientBuilder endpoint(String endpoint) { | ||
this.endpoint = endpoint; | ||
return this; | ||
} |
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.
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.
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.
This is already reviewed and approved earlier when we generated SDK on .net
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.
We should not have a breaking change here. We should rename the method to ledgerEndpoint
to maintain backward compatibility.
…s://github.com/amruthashree18/azure-sdk-for-java into amruthashree18/generateJavaSDK-20241209Preview
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.
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.
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.
there is no real change in this file, please remove the file from PR
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