Skip to content

Commit d1897a7

Browse files
azure-sdkmsyyc
andauthored
[AutoPR azure-mgmt-mysqlflexibleservers]-generated-from-SDK Generation - Python-5660102 (#44388)
* add compatible test case * Configurations: 'specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/readme.md', API Version: 2025-06-01-preview, SDK Release Type: beta, and CommitSHA: '038477df423d5f67548f984616e6550b97f13ec7' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5660102 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Configurations: 'specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/readme.md', API Version: 2025-06-01-preview, SDK Release Type: beta, and CommitSHA: '342e8540894e2ba2dc214cc30f3bb2ff2e21a50c' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5662911 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Configurations: 'specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/readme.md', API Version: 2025-06-01-preview, SDK Release Type: beta, and CommitSHA: '342e8540894e2ba2dc214cc30f3bb2ff2e21a50c' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5662955 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * update changelog --------- Co-authored-by: Yuchao Yan <[email protected]>
1 parent 206deda commit d1897a7

18 files changed

+656
-89
lines changed

sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/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.1.0b2 (2025-12-12)
4+
5+
### Bugs Fixed
6+
7+
- Set default value of `lro_options` same as old version to keep compatibility for some LRO APIs
8+
39
## 1.1.0b1 (2025-11-19)
410

511
### Features Added
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"apiVersion": "2025-06-01-preview",
3-
"commit": "b61ac84b569118b89c1ebce6bdb94600c58e1066",
3+
"commit": "342e8540894e2ba2dc214cc30f3bb2ff2e21a50c",
44
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
55
"typespec_src": "specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers",
66
"emitterVersion": "0.53.1",
77
"autorest": "3.10.2",
88
"use": [
9-
"@autorest/python@6.42.0",
9+
"@autorest/python@6.43.0",
1010
"@autorest/[email protected]"
1111
],
12-
"autorest_command": "autorest specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.42.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
12+
"autorest_command": "autorest specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.43.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1313
"readme": "specification/mysql/resource-manager/Microsoft.DBforMySQL/FlexibleServers/readme.md"
1414
}

sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/_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.1.0b1"
9+
VERSION = "1.1.0b2"

sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_azure_ad_administrators_operations.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,9 +428,7 @@ def get_long_running_output(pipeline_response):
428428
return deserialized
429429

430430
if polling is True:
431-
polling_method: AsyncPollingMethod = cast(
432-
AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
433-
)
431+
polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs))
434432
elif polling is False:
435433
polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
436434
else:

sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_configurations_operations.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -437,9 +437,7 @@ def get_long_running_output(pipeline_response):
437437
return deserialized
438438

439439
if polling is True:
440-
polling_method: AsyncPollingMethod = cast(
441-
AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
442-
)
440+
polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs))
443441
elif polling is False:
444442
polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
445443
else:
@@ -655,9 +653,7 @@ def get_long_running_output(pipeline_response):
655653
return deserialized
656654

657655
if polling is True:
658-
polling_method: AsyncPollingMethod = cast(
659-
AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
660-
)
656+
polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs))
661657
elif polling is False:
662658
polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
663659
else:

sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_databases_operations.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,7 @@ def get_long_running_output(pipeline_response):
418418
return deserialized
419419

420420
if polling is True:
421-
polling_method: AsyncPollingMethod = cast(
422-
AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
423-
)
421+
polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs))
424422
elif polling is False:
425423
polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
426424
else:
@@ -540,9 +538,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
540538
return cls(pipeline_response, None, {}) # type: ignore
541539

542540
if polling is True:
543-
polling_method: AsyncPollingMethod = cast(
544-
AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
545-
)
541+
polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs))
546542
elif polling is False:
547543
polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
548544
else:

sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_firewall_rules_operations.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,7 @@ def get_long_running_output(pipeline_response):
421421
return deserialized
422422

423423
if polling is True:
424-
polling_method: AsyncPollingMethod = cast(
425-
AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
426-
)
424+
polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs))
427425
elif polling is False:
428426
polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
429427
else:
@@ -543,9 +541,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
543541
return cls(pipeline_response, None, {}) # type: ignore
544542

545543
if polling is True:
546-
polling_method: AsyncPollingMethod = cast(
547-
AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
548-
)
544+
polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs))
549545
elif polling is False:
550546
polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
551547
else:

sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_maintenances_operations.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,7 @@ def get_long_running_output(pipeline_response):
414414
return deserialized
415415

416416
if polling is True:
417-
polling_method: AsyncPollingMethod = cast(
418-
AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
419-
)
417+
polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs))
420418
elif polling is False:
421419
polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
422420
else:

sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/aio/operations/_servers_operations.py

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -478,9 +478,7 @@ def get_long_running_output(pipeline_response):
478478
return deserialized
479479

480480
if polling is True:
481-
polling_method: AsyncPollingMethod = cast(
482-
AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
483-
)
481+
polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs))
484482
elif polling is False:
485483
polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
486484
else:
@@ -684,9 +682,7 @@ def get_long_running_output(pipeline_response):
684682
return deserialized
685683

686684
if polling is True:
687-
polling_method: AsyncPollingMethod = cast(
688-
AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
689-
)
685+
polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs))
690686
elif polling is False:
691687
polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
692688
else:
@@ -1124,9 +1120,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
11241120
return cls(pipeline_response, None, {}) # type: ignore
11251121

11261122
if polling is True:
1127-
polling_method: AsyncPollingMethod = cast(
1128-
AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
1129-
)
1123+
polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs))
11301124
elif polling is False:
11311125
polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
11321126
else:
@@ -1521,9 +1515,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
15211515
return cls(pipeline_response, None, {}) # type: ignore
15221516

15231517
if polling is True:
1524-
polling_method: AsyncPollingMethod = cast(
1525-
AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
1526-
)
1518+
polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs))
15271519
elif polling is False:
15281520
polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
15291521
else:
@@ -1635,9 +1627,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
16351627
return cls(pipeline_response, None, {}) # type: ignore
16361628

16371629
if polling is True:
1638-
polling_method: AsyncPollingMethod = cast(
1639-
AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
1640-
)
1630+
polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs))
16411631
elif polling is False:
16421632
polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
16431633
else:
@@ -1749,9 +1739,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
17491739
return cls(pipeline_response, None, {}) # type: ignore
17501740

17511741
if polling is True:
1752-
polling_method: AsyncPollingMethod = cast(
1753-
AsyncPollingMethod, AsyncARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
1754-
)
1742+
polling_method: AsyncPollingMethod = cast(AsyncPollingMethod, AsyncARMPolling(lro_delay, **kwargs))
17551743
elif polling is False:
17561744
polling_method = cast(AsyncPollingMethod, AsyncNoPolling())
17571745
else:

sdk/mysqlflexibleservers/azure-mgmt-mysqlflexibleservers/azure/mgmt/mysqlflexibleservers/operations/_azure_ad_administrators_operations.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -583,9 +583,7 @@ def get_long_running_output(pipeline_response):
583583
return deserialized
584584

585585
if polling is True:
586-
polling_method: PollingMethod = cast(
587-
PollingMethod, ARMPolling(lro_delay, lro_options={"final-state-via": "location"}, **kwargs)
588-
)
586+
polling_method: PollingMethod = cast(PollingMethod, ARMPolling(lro_delay, **kwargs))
589587
elif polling is False:
590588
polling_method = cast(PollingMethod, NoPolling())
591589
else:

0 commit comments

Comments
 (0)