-
Notifications
You must be signed in to change notification settings - Fork 1
update legacy OpenAPI services crates #86
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: legacy
Are you sure you want to change the base?
Conversation
* limit vmware to just latest API for dev * fix test * begin updating to azure_core 0.22 * use latest and wait for 0.23 * models check * gen * just mod util for now * more renames * gen * do not gen into_stream or into_future for RequestBuilder * typespec_macros::Model * remove transport & retry * get subscription_id from env var * add Cargo.lock --------- Co-authored-by: Cameron Taggart <cameron.tagg>
Decouples paging from model types by removing pageable support in core and stopping generation of Continuable implementations. Updates paging to extract continuation tokens directly from the response payload using the configured nextLink, improving robustness when the field is optional or absent in the model. Keeps IntoFuture generation disabled pending LRO alignment and fixes a headers() lifetime lint. Regenerates VMware management APIs and adjusts dependencies accordingly.
Improves ergonomics and readability by adopting idiomatic patterns (e.g., is_ok_and, assert!, delegating PartialOrd to Ord), simplifying option handling, and removing redundant returns and unused imports. Boxes the struct enum variant to reduce enum size and avoid potential recursion size issues. Streamlines glob iteration and error handling, and tidies output formatting and error conversions. Enhances maintainability while aligning with modern Rust and clippy recommendations.
Encapsulates pager token emission in a dedicated helper, simplifying struct tokenization and improving readability and reuse. Preserves behavior for pageable models while preparing for future pager customization; updates internal wiring and naming only.
| for cloud in clouds.value { | ||
| println!("{:?}", cloud.tracked_resource.resource.id); | ||
| let clouds_client = client.private_clouds_client(); | ||
| let mut cloud_pager = clouds_client.list_in_subscription(subscription_id).pager()?; |
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 can probably just be clouds. This example can go back to just listing clouds. I was trying out other APIs.
|
Hi @cataggar. Thank you for your interest in helping to improve the Azure SDK experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days. |
The updates the
legacybranch generated services crates that are generated from the OpenAPI specs to use themainbranch SDKs.