Skip to content

Commit a6af1d3

Browse files
azure-sdkshanefujsChenxiJiang333
authored
[AutoPR azure-mgmt-storagediscovery]-generated-from-SDK Generation - Python-5386365 (#43138)
* Configurations: 'specification/storagediscovery/Microsoft.StorageDiscovery.Management/tspconfig.yaml', API Version: 2025-09-01, SDK Release Type: stable, and CommitSHA: 'c55f9f1458e736f79703a72ee5c9a4caf242a85b' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5386365 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Update CHANGELOG for version 1.0.0 release Updated versioning to reflect general availability. * Update version to 1.0.0 * format changelog * Update CHANGELOG.md --------- Co-authored-by: shanefujs <[email protected]> Co-authored-by: ChenxiJiang333 <[email protected]> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent 4d39ad0 commit a6af1d3

18 files changed

+39
-37
lines changed

sdk/storagediscovery/azure-mgmt-storagediscovery/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 (2025-09-29)
4+
5+
### Features Added
6+
7+
- First GA
8+
39
## 1.0.0b2 (2025-09-03)
410

511
### Features Added
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"apiVersion": "2025-06-01-preview",
3-
"commit": "14849ffc5bc0c78ba942bcafa05e19e6162bb089",
2+
"apiVersion": "2025-09-01",
3+
"commit": "c55f9f1458e736f79703a72ee5c9a4caf242a85b",
44
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
55
"typespec_src": "specification/storagediscovery/Microsoft.StorageDiscovery.Management",
6-
"emitterVersion": "0.49.0"
6+
"emitterVersion": "0.51.2"
77
}

sdk/storagediscovery/azure-mgmt-storagediscovery/azure/mgmt/storagediscovery/_client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ class StorageDiscoveryMgmtClient:
4343
:keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
4444
None.
4545
:paramtype cloud_setting: ~azure.core.AzureClouds
46-
:keyword api_version: The API version to use for this operation. Default value is
47-
"2025-06-01-preview". Note that overriding this default value may result in unsupported
48-
behavior.
46+
:keyword api_version: The API version to use for this operation. Default value is "2025-09-01".
47+
Note that overriding this default value may result in unsupported behavior.
4948
:paramtype api_version: str
5049
"""
5150

sdk/storagediscovery/azure-mgmt-storagediscovery/azure/mgmt/storagediscovery/_configuration.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ class StorageDiscoveryMgmtClientConfiguration: # pylint: disable=too-many-insta
3333
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
3434
None.
3535
:type cloud_setting: ~azure.core.AzureClouds
36-
:keyword api_version: The API version to use for this operation. Default value is
37-
"2025-06-01-preview". Note that overriding this default value may result in unsupported
38-
behavior.
36+
:keyword api_version: The API version to use for this operation. Default value is "2025-09-01".
37+
Note that overriding this default value may result in unsupported behavior.
3938
:paramtype api_version: str
4039
"""
4140

@@ -47,7 +46,7 @@ def __init__(
4746
cloud_setting: Optional["AzureClouds"] = None,
4847
**kwargs: Any
4948
) -> None:
50-
api_version: str = kwargs.pop("api_version", "2025-06-01-preview")
49+
api_version: str = kwargs.pop("api_version", "2025-09-01")
5150

5251
if credential is None:
5352
raise ValueError("Parameter 'credential' must not be None.")

sdk/storagediscovery/azure-mgmt-storagediscovery/azure/mgmt/storagediscovery/_utils/serialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ def serialize_data(self, data, data_type, **kwargs):
787787

788788
# If dependencies is empty, try with current data class
789789
# It has to be a subclass of Enum anyway
790-
enum_type = self.dependencies.get(data_type, data.__class__)
790+
enum_type = self.dependencies.get(data_type, cast(type, data.__class__))
791791
if issubclass(enum_type, Enum):
792792
return Serializer.serialize_enum(data, enum_obj=enum_type)
793793

sdk/storagediscovery/azure-mgmt-storagediscovery/azure/mgmt/storagediscovery/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "1.0.0b2"
9+
VERSION = "1.0.0"

sdk/storagediscovery/azure-mgmt-storagediscovery/azure/mgmt/storagediscovery/aio/_client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ class StorageDiscoveryMgmtClient:
4343
:keyword cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
4444
None.
4545
:paramtype cloud_setting: ~azure.core.AzureClouds
46-
:keyword api_version: The API version to use for this operation. Default value is
47-
"2025-06-01-preview". Note that overriding this default value may result in unsupported
48-
behavior.
46+
:keyword api_version: The API version to use for this operation. Default value is "2025-09-01".
47+
Note that overriding this default value may result in unsupported behavior.
4948
:paramtype api_version: str
5049
"""
5150

sdk/storagediscovery/azure-mgmt-storagediscovery/azure/mgmt/storagediscovery/aio/_configuration.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ class StorageDiscoveryMgmtClientConfiguration: # pylint: disable=too-many-insta
3333
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
3434
None.
3535
:type cloud_setting: ~azure.core.AzureClouds
36-
:keyword api_version: The API version to use for this operation. Default value is
37-
"2025-06-01-preview". Note that overriding this default value may result in unsupported
38-
behavior.
36+
:keyword api_version: The API version to use for this operation. Default value is "2025-09-01".
37+
Note that overriding this default value may result in unsupported behavior.
3938
:paramtype api_version: str
4039
"""
4140

@@ -47,7 +46,7 @@ def __init__(
4746
cloud_setting: Optional["AzureClouds"] = None,
4847
**kwargs: Any
4948
) -> None:
50-
api_version: str = kwargs.pop("api_version", "2025-06-01-preview")
49+
api_version: str = kwargs.pop("api_version", "2025-09-01")
5150

5251
if credential is None:
5352
raise ValueError("Parameter 'credential' must not be None.")

sdk/storagediscovery/azure-mgmt-storagediscovery/azure/mgmt/storagediscovery/operations/_operations.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def build_storage_discovery_workspaces_get_request( # pylint: disable=name-too-
5050
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
5151
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
5252

53-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01-preview"))
53+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01"))
5454
accept = _headers.pop("Accept", "application/json")
5555

5656
# Construct URL
@@ -81,7 +81,7 @@ def build_storage_discovery_workspaces_create_or_update_request( # pylint: disa
8181
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
8282

8383
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
84-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01-preview"))
84+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01"))
8585
accept = _headers.pop("Accept", "application/json")
8686

8787
# Construct URL
@@ -114,7 +114,7 @@ def build_storage_discovery_workspaces_update_request( # pylint: disable=name-t
114114
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
115115

116116
content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None))
117-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01-preview"))
117+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01"))
118118
accept = _headers.pop("Accept", "application/json")
119119

120120
# Construct URL
@@ -145,7 +145,7 @@ def build_storage_discovery_workspaces_delete_request( # pylint: disable=name-t
145145
) -> HttpRequest:
146146
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
147147

148-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01-preview"))
148+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01"))
149149
# Construct URL
150150
_url = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageDiscovery/storageDiscoveryWorkspaces/{storageDiscoveryWorkspaceName}"
151151
path_format_arguments = {
@@ -170,7 +170,7 @@ def build_storage_discovery_workspaces_list_by_resource_group_request( # pylint
170170
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
171171
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
172172

173-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01-preview"))
173+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01"))
174174
accept = _headers.pop("Accept", "application/json")
175175

176176
# Construct URL
@@ -197,7 +197,7 @@ def build_storage_discovery_workspaces_list_by_subscription_request( # pylint:
197197
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
198198
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
199199

200-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01-preview"))
200+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01"))
201201
accept = _headers.pop("Accept", "application/json")
202202

203203
# Construct URL
@@ -221,7 +221,7 @@ def build_operations_list_request(**kwargs: Any) -> HttpRequest:
221221
_headers = case_insensitive_dict(kwargs.pop("headers", {}) or {})
222222
_params = case_insensitive_dict(kwargs.pop("params", {}) or {})
223223

224-
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-06-01-preview"))
224+
api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-09-01"))
225225
accept = _headers.pop("Accept", "application/json")
226226

227227
# Construct URL

sdk/storagediscovery/azure-mgmt-storagediscovery/generated_samples/operation_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ def main():
3535
print(item)
3636

3737

38-
# x-ms-original-file: 2025-06-01-preview/Operation_List.json
38+
# x-ms-original-file: 2025-09-01/Operation_List.json
3939
if __name__ == "__main__":
4040
main()

0 commit comments

Comments
 (0)