Align Confidential Ledger API version defaults with generated configuration and fix management plane docstrings #43677
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The data-plane client's patched default (2022-05-13) was stale relative to generated configuration (2024-12-09-preview), and management plane docstrings incorrectly claimed 2020-12-01-preview while actual default is 2024-09-19-preview.
Changes
Data-plane clients (
azure-confidentialledger/_patch.py,aio/_patch.py):api_versionto2024-12-09-previewto match generated_configuration.pyManagement-plane clients (
azure-mgmt-confidentialledger/_confidential_ledger.py,aio/_confidential_ledger.py):2024-09-19-preview(not 2020-12-01-preview)2025-06-10-previewfor opt-in useTests (
tests/test_api_version.py):Example
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
pypi.org/home/REDACTED/work/azure-sdk-for-python/azure-sdk-for-python/.venv/bin/python /home/REDACTED/work/azure-sdk-for-python/azure-sdk-for-python/.venv/lib/python3.9/site-packages/pip/__pip-REDACTED__.py install --ignore-installed --no-user --prefix /tmp/pip-build-env-lo7xwq46/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i REDACTED -- setuptools>=77.0.3 wheel(dns block)/home/REDACTED/work/azure-sdk-for-python/azure-sdk-for-python/.venv/bin/python /home/REDACTED/work/azure-sdk-for-python/azure-sdk-for-python/.venv/bin/pip install isodate azure-core typing-extensions cryptography(dns block)scanning-api.github.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
Summary
Align data-plane ConfidentialLedgerClient default api_version to latest preview (2024-12-09-preview) and fix management plane client docstring to reflect actual default (2024-09-19-preview) and mention newer spec (2025-06-10-preview). This resolves documented drift between generated configuration and patched client plus misleading docstrings.
Background / Citations
Risks
Changes (Unified Diffs)
(Consider analogous change for aio version below)
Tests
Add unit test verifying new default:
Docstring reflection test for management client:
Validation Steps
Rollback
Revert diff hunks if downstream integration tests fail; restore previous api_version string...
This pull request was created as a result of the following prompt from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.