{RDBMS} Update Python SDK for PostgreSQL flexible servers to version API to 2025-08-01#32517
{RDBMS} Update Python SDK for PostgreSQL flexible servers to version API to 2025-08-01#32517
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
|
@evelyn-ys Please trigger tests |
There was a problem hiding this comment.
Pull request overview
This pull request updates the Azure CLI PostgreSQL flexible servers SDK from version 1.1.0b2 to version 2.0.0, introducing API version 2025-08-01. The changes involve updating method names, API endpoints, and parameter signatures to align with the new SDK version.
Key Changes:
- Updated package dependency from
azure-mgmt-postgresqlflexibleservers==1.1.0b2to version2.0.0across all platform-specific requirement files - Renamed API methods to match new SDK conventions (e.g.,
execute→check_with_location,begin_create→begin_create_or_update,ServerForUpdate→ServerForPatch) - Updated client factory methods to use renamed operation groups (e.g.,
location_based_capabilities→capabilities_by_location) - Modified test expectations including migration names, PostgreSQL versions (16→17), SKU names, and test locations (eastus2euap/southcentralus → canadacentral)
- Added
default_database_nameparameter toClustermodel for elastic clusters
Reviewed changes
Copilot reviewed 16 out of 48 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| setup.py | Updated package version from 1.1.0b2 to 2.0.0 |
| requirements.py3.*.txt | Updated package version across Windows, Linux, and Darwin platforms |
| validators.py | Updated name availability check methods from execute/execute to check_with_location/check_globally |
| flexible_server_custom_postgres.py | Updated model class from ServerForUpdate to ServerForPatch, changed begin_create to begin_create_or_update, added default_database_name to Cluster model, removed unused cf_availability_without_location references |
| flexible_server_custom_common.py | Updated server list method from list() to list_by_subscription() |
| flexible_server_virtual_network.py | Changed private DNS zone suffix method from execute() to get() |
| flexible_server_commands.py | Updated operation group names and removed deprecated operations |
| _client_factory.py | Updated client factory methods to use renamed operation groups |
| _flexible_server_location_capabilities_util.py | Changed capability list method from execute to list |
| _flexible_server_util.py | Updated default location from 'eastus' to 'canadacentral' for testing |
| test_rdbms_flexible_commands.py | Updated test expectations including PostgreSQL version 17, new SKU names, and location changes |
| test_rdbms_flexible_commands_postgres_migration.py | Updated migration test UUIDs to match new test recordings |
| test recording YAML files | Updated API version in URIs from 2024-11-01-preview to 2025-08-01 and refreshed response data |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/azure-cli/azure/cli/command_modules/rdbms/flexible_server_commands.py
Show resolved
Hide resolved
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
@yonzhan @evelyn-ys please merge |
Related command
Description
Update CLI to use latest Python SDK version 2.0.0 using new package import from https://pypi.org/project/azure-mgmt-postgresqlflexibleservers/
Testing Guide
History Notes
[Component Name 1] BREAKING CHANGE:
az command a: Make some customer-facing breaking change[Component Name 2]
az command b: Add some customer-facing featureThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.