Skip to content

Commit f608ae4

Browse files
azure-sdkKajalSethiChenxiJiang333
authored
[AutoPR azure-mgmt-dellstorage]-generated-from-SDK Generation - Python-5707778 (#44521)
* Configurations: 'specification/dell/Dell.Storage.Management/tspconfig.yaml', API Version: 2025-03-21, SDK Release Type: stable, and CommitSHA: 'be36de931322b23890d3353e06bcc6ad34212877' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5707778 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md --------- Co-authored-by: KajalSethi <141897294+KajalSethi@users.noreply.github.com> Co-authored-by: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com>
1 parent 87b444a commit f608ae4

38 files changed

+427
-262
lines changed

sdk/dell/azure-mgmt-dellstorage/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release History
22

3+
## 1.0.0 (2026-01-19)
4+
5+
### Features Added
6+
7+
- Model `DellStorageMgmtClient` added parameter `cloud_setting` in method `__init__`
8+
39
## 1.0.0b1 (2025-05-07)
410

511
### Other Changes
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
include _meta.json
2-
recursive-include tests *.py *.json
3-
recursive-include samples *.py *.md
41
include *.md
5-
include azure/__init__.py
6-
include azure/mgmt/__init__.py
72
include LICENSE
83
include azure/mgmt/dellstorage/py.typed
4+
recursive-include tests *.py
5+
recursive-include samples *.py *.md
6+
include azure/__init__.py
7+
include azure/mgmt/__init__.py
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"commit": "a3baecd6571d7e4b979a7aef527d29a3509d4dc7",
2+
"apiVersion": "2025-03-21",
3+
"commit": "be36de931322b23890d3353e06bcc6ad34212877",
34
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
45
"typespec_src": "specification/dell/Dell.Storage.Management",
5-
"@azure-tools/typespec-python": "0.44.1"
6+
"emitterVersion": "0.56.1"
67
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore

sdk/dell/azure-mgmt-dellstorage/azure/mgmt/dellstorage/_client.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
from .operations import FileSystemsOperations, Operations
2323

2424
if TYPE_CHECKING:
25+
from azure.core import AzureClouds
2526
from azure.core.credentials import TokenCredential
2627

2728

@@ -38,19 +39,27 @@ class DellStorageMgmtClient:
3839
:type subscription_id: str
3940
:param base_url: Service host. Default value is None.
4041
:type base_url: str
41-
:keyword api_version: The API version to use for this operation. Default value is
42-
"2025-03-21-preview". Note that overriding this default value may result in unsupported
43-
behavior.
42+
:keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
43+
None.
44+
:paramtype cloud_setting: ~azure.core.AzureClouds
45+
:keyword api_version: The API version to use for this operation. Default value is "2025-03-21".
46+
Note that overriding this default value may result in unsupported behavior.
4447
:paramtype api_version: str
4548
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
4649
Retry-After header is present.
4750
"""
4851

4952
def __init__(
50-
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
53+
self,
54+
credential: "TokenCredential",
55+
subscription_id: str,
56+
base_url: Optional[str] = None,
57+
*,
58+
cloud_setting: Optional["AzureClouds"] = None,
59+
**kwargs: Any
5160
) -> None:
5261
_endpoint = "{endpoint}"
53-
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
62+
_cloud = cloud_setting or settings.current.azure_cloud # type: ignore
5463
_endpoints = get_arm_endpoints(_cloud)
5564
if not base_url:
5665
base_url = _endpoints["resource_manager"]
@@ -59,6 +68,7 @@ def __init__(
5968
credential=credential,
6069
subscription_id=subscription_id,
6170
base_url=cast(str, base_url),
71+
cloud_setting=cloud_setting,
6272
credential_scopes=credential_scopes,
6373
**kwargs
6474
)

sdk/dell/azure-mgmt-dellstorage/azure/mgmt/dellstorage/_configuration.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
from typing import Any, TYPE_CHECKING
9+
from typing import Any, Optional, TYPE_CHECKING
1010

1111
from azure.core.pipeline import policies
1212
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
1313

1414
from ._version import VERSION
1515

1616
if TYPE_CHECKING:
17+
from azure.core import AzureClouds
1718
from azure.core.credentials import TokenCredential
1819

1920

@@ -29,9 +30,11 @@ class DellStorageMgmtClientConfiguration: # pylint: disable=too-many-instance-a
2930
:type subscription_id: str
3031
:param base_url: Service host. Default value is "https://management.azure.com".
3132
:type base_url: str
32-
:keyword api_version: The API version to use for this operation. Default value is
33-
"2025-03-21-preview". Note that overriding this default value may result in unsupported
34-
behavior.
33+
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
34+
None.
35+
:type cloud_setting: ~azure.core.AzureClouds
36+
:keyword api_version: The API version to use for this operation. Default value is "2025-03-21".
37+
Note that overriding this default value may result in unsupported behavior.
3538
:paramtype api_version: str
3639
"""
3740

@@ -40,9 +43,10 @@ def __init__(
4043
credential: "TokenCredential",
4144
subscription_id: str,
4245
base_url: str = "https://management.azure.com",
46+
cloud_setting: Optional["AzureClouds"] = None,
4347
**kwargs: Any
4448
) -> None:
45-
api_version: str = kwargs.pop("api_version", "2025-03-21-preview")
49+
api_version: str = kwargs.pop("api_version", "2025-03-21")
4650

4751
if credential is None:
4852
raise ValueError("Parameter 'credential' must not be None.")
@@ -52,6 +56,7 @@ def __init__(
5256
self.credential = credential
5357
self.subscription_id = subscription_id
5458
self.base_url = base_url
59+
self.cloud_setting = cloud_setting
5560
self.api_version = api_version
5661
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
5762
kwargs.setdefault("sdk_moniker", "mgmt-dellstorage/{}".format(VERSION))

sdk/dell/azure-mgmt-dellstorage/azure/mgmt/dellstorage/_patch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
88
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
99
"""
10-
from typing import List
1110

12-
__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
11+
12+
__all__: list[str] = [] # Add all objects you want publicly available to users at this package level
1313

1414

1515
def patch_sdk():

0 commit comments

Comments
 (0)