Skip to content

Fix imports for new _generated folder structure in azure-storage-blob#8

Merged
l0lawrence merged 3 commits intostorageblobtspfrom
copilot/fix-imports-for-folder-location
Jan 23, 2026
Merged

Fix imports for new _generated folder structure in azure-storage-blob#8
l0lawrence merged 3 commits intostorageblobtspfrom
copilot/fix-imports-for-folder-location

Conversation

Copy link
Copy Markdown

Copilot AI commented Jan 23, 2026

Updates all import statements in azure-storage-blob to use the new _generated folder structure from the storageblobtsp branch, where generated code is now organized under _generated/azure/storage/blobs/.

New Structure

_generated/
└── azure/
    └── storage/
        └── blobs/
            ├── models/
            ├── operations/
            ├── aio/
            └── _utils/
                └── serialization.py

Changes Made

Updated imports across 23 files (both .py and .pyi) to use the new path structure:

Old import pattern:

from ._generated.models import ...
from ._generated.aio import AzureBlobStorage
from ._generated.operations import ...
from ._generated import AzureBlobStorage

New import pattern:

from ._generated.azure.storage.blobs.models import ...
from ._generated.azure.storage.blobs.aio import BlobClient as AzureBlobStorage
from ._generated.azure.storage.blobs.operations import ...
from ._generated.azure.storage.blobs import BlobClient as AzureBlobStorage

Files Updated

  • Core modules: __init__.py, _blob_client.py, _blob_service_client.py, _container_client.py
  • Helper modules: _list_blobs_helper.py, _models.py, _upload_helpers.py, _download.py, _serialize.py, _deserialize.py
  • Client helpers: _blob_client_helpers.py, _container_client_helpers.py
  • All async equivalents in aio/ folder
  • Type stub files (.pyi)

All import paths now correctly reference the reorganized generated code structure where the main client class was renamed from AzureBlobStorage to BlobClient and moved into a nested folder hierarchy.

Original prompt

on this branch can we fix the imports to take into count the new location of the folders under _generated in azure-storage-blob

The user has attached the following file paths as relevant context:

  • .github\copilot-instructions.md
  • eng\common\instructions\azsdk-tools\verify-setup.instructions.md
  • eng\common\instructions\azsdk-tools\local-sdk-workflow.instructions.md

Created from VS Code.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Fix imports to account for new folder location in azure-storage-blob Verify import paths for _generated/_utils folder structure in azure-storage-blob Jan 23, 2026
Copilot AI requested a review from l0lawrence January 23, 2026 18:24
@l0lawrence l0lawrence changed the base branch from main to storageblobtsp January 23, 2026 18:29
Copy link
Copy Markdown
Owner

@l0lawrence l0lawrence left a comment

Choose a reason for hiding this comment

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

@copilot no I want to make changes off of the storageblobtsp branch

Copy link
Copy Markdown
Author

Copilot AI commented Jan 23, 2026

@copilot no I want to make changes off of the storageblobtsp branch

I've switched to the storageblobtsp branch. The _generated folder structure has changed - the generated code is now under _generated/azure/storage/blobs/ instead of directly under _generated/. I'll update all the imports in the non-generated code to use the new structure.

Copilot AI and others added 2 commits January 23, 2026 18:45
Copilot AI changed the title Verify import paths for _generated/_utils folder structure in azure-storage-blob Fix imports for new _generated folder structure in azure-storage-blob Jan 23, 2026
Copilot AI requested a review from l0lawrence January 23, 2026 18:49
@l0lawrence l0lawrence marked this pull request as ready for review January 23, 2026 18:56
@l0lawrence l0lawrence requested a review from annatisch as a code owner January 23, 2026 18:56
@l0lawrence l0lawrence merged commit 29927e8 into storageblobtsp Jan 23, 2026
3 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.

2 participants