Merged
Conversation
Removed test for pub(crate) items as we now have dedicated tests for that scenario.
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request updates the Azure Blob Storage TypeSpec definitions and regenerates Rust code for the latest API version. The changes include updating to API version 2026-04-06, adding new error codes, converting several unions to enums, and restructuring client initialization patterns. The PR also removes tests for pub(crate) items as mentioned in the description.
Changes:
- Updated API versions from
2025-01-05to2026-04-06 - Converted extensible unions to non-extensible enums for many types
- Added comprehensive
StorageErrorCodeenum with 100+ error codes - Renamed models (e.g.,
BlobItemInternal→BlobItem,StorageError→Error) - Changed client initialization from explicit constructors to
customizeCodepattern - Updated response headers and removed many
dateresponse headers - Added new SKU types and versioned fields with
@addeddecorators
Reviewed changes
Copilot reviewed 6 out of 21 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| models.tsp | Added StorageErrorCode union, new SKU types, updated model names and XML names |
| main.tsp | Updated service versions to 2025-11-05, 2026-02-06, 2026-04-06 |
| client.tsp | Changed from explicit client initialization to customizeCode pattern, added scope exclusions |
| testing.rs | Updated model references from BlobItemInternal to BlobItem, ListBlobsFlatSegmentResponse to ListBlobsResponse |
| lib.rs | Removed pub(crate) test touching code |
| xml_helpers.rs | Removed unused XML helper structs |
| models_serde.rs | Removed ParquetConfiguration serialization |
| models_impl.rs | Removed Page impl for ListBlobsHierarchySegmentResponse, removed TryFrom impls for unused types |
| models.rs | Renamed models, added StorageErrorCode enum, removed query-related models |
| enums_serde.rs | Added/updated enum serialization for new types |
| enums.rs | Changed many extensible unions to non-extensible enums, added StorageErrorCode variants |
| *_client.rs | Removed explicit constructors, updated API version to 2026-04-06, changed method signatures |
heaths
approved these changes
Feb 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removed test for pub(crate) items as we now have dedicated tests for that scenario.