Skip to content

Commit 88a0354

Browse files
[Storage] [STG 99] Merge STG 99 Beta into main (Azure#41318)
1 parent 0f1bc64 commit 88a0354

File tree

102 files changed

+857
-637
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+857
-637
lines changed

sdk/storage/azure-storage-blob/CHANGELOG.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# Release History
22

3-
## 12.26.0 (Unreleased)
3+
## 12.27.0b1 (2025-06-10)
44

55
### Features Added
6-
7-
### Bugs Fixed
8-
- Fixed an issue where `BlobClient`'s `start_copy_from_url` with `incremental_copy=True` results in `TypeError`.
6+
- Added support for service version 2025-11-05.
7+
- Added support for better error handling for copy operations.
98

109
## 12.26.0b1 (2025-05-06)
1110

sdk/storage/azure-storage-blob/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "python",
44
"TagPrefix": "python/storage/azure-storage-blob",
5-
"Tag": "python/storage/azure-storage-blob_01573d6981"
5+
"Tag": "python/storage/azure-storage-blob_e1b13301f6"
66
}

sdk/storage/azure-storage-blob/azure/storage/blob/_generated/_azure_blob_storage.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
from . import models as _models
1818
from ._configuration import AzureBlobStorageConfiguration
19-
from ._serialization import Deserializer, Serializer
19+
from ._utils.serialization import Deserializer, Serializer
2020
from .operations import (
2121
AppendBlobOperations,
2222
BlobOperations,
@@ -48,14 +48,15 @@ class AzureBlobStorage: # pylint: disable=client-accepts-api-version-keyword
4848
:param base_url: Service URL. Required. Default value is "".
4949
:type base_url: str
5050
:keyword version: Specifies the version of the operation to use for this request. Default value
51-
is "2025-07-05". Note that overriding this default value may result in unsupported behavior.
51+
is "2025-11-05". Note that overriding this default value may result in unsupported behavior.
5252
:paramtype version: str
5353
"""
5454

5555
def __init__( # pylint: disable=missing-client-constructor-parameter-credential
5656
self, url: str, base_url: str = "", **kwargs: Any
5757
) -> None:
5858
self._config = AzureBlobStorageConfiguration(url=url, **kwargs)
59+
5960
_policies = kwargs.pop("policies", None)
6061
if _policies is None:
6162
_policies = [

sdk/storage/azure-storage-blob/azure/storage/blob/_generated/_configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ class AzureBlobStorageConfiguration: # pylint: disable=too-many-instance-attrib
2323
desired operation. Required.
2424
:type url: str
2525
:keyword version: Specifies the version of the operation to use for this request. Default value
26-
is "2025-07-05". Note that overriding this default value may result in unsupported behavior.
26+
is "2025-11-05". Note that overriding this default value may result in unsupported behavior.
2727
:paramtype version: str
2828
"""
2929

3030
def __init__(self, url: str, **kwargs: Any) -> None:
31-
version: Literal["2025-07-05"] = kwargs.pop("version", "2025-07-05")
31+
version: Literal["2025-11-05"] = kwargs.pop("version", "2025-11-05")
3232

3333
if url is None:
3434
raise ValueError("Parameter 'url' must not be None.")
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
# Code generated by Microsoft (R) AutoRest Code Generator.
5+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
6+
# --------------------------------------------------------------------------

sdk/storage/azure-storage-blob/azure/storage/blob/_generated/aio/_azure_blob_storage.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from azure.core.rest import AsyncHttpResponse, HttpRequest
1616

1717
from .. import models as _models
18-
from .._serialization import Deserializer, Serializer
18+
from .._utils.serialization import Deserializer, Serializer
1919
from ._configuration import AzureBlobStorageConfiguration
2020
from .operations import (
2121
AppendBlobOperations,
@@ -48,14 +48,15 @@ class AzureBlobStorage: # pylint: disable=client-accepts-api-version-keyword
4848
:param base_url: Service URL. Required. Default value is "".
4949
:type base_url: str
5050
:keyword version: Specifies the version of the operation to use for this request. Default value
51-
is "2025-07-05". Note that overriding this default value may result in unsupported behavior.
51+
is "2025-11-05". Note that overriding this default value may result in unsupported behavior.
5252
:paramtype version: str
5353
"""
5454

5555
def __init__( # pylint: disable=missing-client-constructor-parameter-credential
5656
self, url: str, base_url: str = "", **kwargs: Any
5757
) -> None:
5858
self._config = AzureBlobStorageConfiguration(url=url, **kwargs)
59+
5960
_policies = kwargs.pop("policies", None)
6061
if _policies is None:
6162
_policies = [

sdk/storage/azure-storage-blob/azure/storage/blob/_generated/aio/_configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ class AzureBlobStorageConfiguration: # pylint: disable=too-many-instance-attrib
2323
desired operation. Required.
2424
:type url: str
2525
:keyword version: Specifies the version of the operation to use for this request. Default value
26-
is "2025-07-05". Note that overriding this default value may result in unsupported behavior.
26+
is "2025-11-05". Note that overriding this default value may result in unsupported behavior.
2727
:paramtype version: str
2828
"""
2929

3030
def __init__(self, url: str, **kwargs: Any) -> None:
31-
version: Literal["2025-07-05"] = kwargs.pop("version", "2025-07-05")
31+
version: Literal["2025-11-05"] = kwargs.pop("version", "2025-11-05")
3232

3333
if url is None:
3434
raise ValueError("Parameter 'url' must not be None.")

sdk/storage/azure-storage-blob/azure/storage/blob/_generated/aio/operations/_append_blob_operations.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# Code generated by Microsoft (R) AutoRest Code Generator.
77
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
88
# --------------------------------------------------------------------------
9+
from collections.abc import MutableMapping
910
import datetime
10-
import sys
1111
from typing import Any, Callable, Dict, IO, Literal, Optional, TypeVar, Union
1212

1313
from azure.core import AsyncPipelineClient
@@ -25,7 +25,7 @@
2525
from azure.core.utils import case_insensitive_dict
2626

2727
from ... import models as _models
28-
from ..._serialization import Deserializer, Serializer
28+
from ..._utils.serialization import Deserializer, Serializer
2929
from ...operations._append_blob_operations import (
3030
build_append_block_from_url_request,
3131
build_append_block_request,
@@ -34,10 +34,6 @@
3434
)
3535
from .._configuration import AzureBlobStorageConfiguration
3636

37-
if sys.version_info >= (3, 9):
38-
from collections.abc import MutableMapping
39-
else:
40-
from typing import MutableMapping # type: ignore
4137
T = TypeVar("T")
4238
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
4339

@@ -85,7 +81,7 @@ async def create(
8581
:type content_length: int
8682
:param timeout: The timeout parameter is expressed in seconds. For more information, see
8783
:code:`<a
88-
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
84+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
8985
Timeouts for Blob Service Operations.</a>`. Default value is None.
9086
:type timeout: int
9187
:param metadata: Optional. Specifies a user-defined name-value pair associated with the blob.
@@ -274,7 +270,7 @@ async def append_block(
274270
:type body: IO[bytes]
275271
:param timeout: The timeout parameter is expressed in seconds. For more information, see
276272
:code:`<a
277-
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
273+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
278274
Timeouts for Blob Service Operations.</a>`. Default value is None.
279275
:type timeout: int
280276
:param transactional_content_md5: Specify the transactional md5 for the body, to be validated
@@ -472,7 +468,7 @@ async def append_block_from_url(
472468
:type source_contentcrc64: bytes
473469
:param timeout: The timeout parameter is expressed in seconds. For more information, see
474470
:code:`<a
475-
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
471+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
476472
Timeouts for Blob Service Operations.</a>`. Default value is None.
477473
:type timeout: int
478474
:param transactional_content_md5: Specify the transactional md5 for the body, to be validated
@@ -649,7 +645,7 @@ async def seal(
649645
650646
:param timeout: The timeout parameter is expressed in seconds. For more information, see
651647
:code:`<a
652-
href="https://docs.microsoft.com/en-us/rest/api/storageservices/fileservices/setting-timeouts-for-blob-service-operations">Setting
648+
href="https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations">Setting
653649
Timeouts for Blob Service Operations.</a>`. Default value is None.
654650
:type timeout: int
655651
:param request_id_parameter: Provides a client-generated, opaque value with a 1 KB character

0 commit comments

Comments
 (0)