Skip to content

[AutoPR azure-confidentialledger]-generated-from-SDK Generation - Python-6435812 - #47499

Merged
ryazhang-microsoft merged 10 commits into
mainfrom
sdkauto/azure-confidentialledger-6435812
Jul 14, 2026
Merged

[AutoPR azure-confidentialledger]-generated-from-SDK Generation - Python-6435812#47499
ryazhang-microsoft merged 10 commits into
mainfrom
sdkauto/azure-confidentialledger-6435812

Conversation

@azure-sdk

@azure-sdk azure-sdk commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Configurations: 'specification/confidentialledger/data-plane/ConfidentialLedger/tspconfig.yaml', SDK Release Type: stable, and CommitSHA: '8a3262d0e5c399e19b4e489368643a0e5b7f16e3' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6435812 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. Release plan information is not available. Create a release plan and link SDK pull request to the release plan. Refer aka.ms/azsdk/releaseplan-dashboard for more info.

Release Plan Details

Copilot AI review requested due to automatic review settings June 15, 2026 14:32
@azure-sdk
azure-sdk requested a review from PallabPaul as a code owner June 15, 2026 14:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This is an auto-generated regeneration of azure-confidentialledger from the Confidential Ledger data-plane TypeSpec configuration, updating the pinned spec commit and moving the package to a 2.0.0 release with refreshed generated client/models/operations and supporting utilities.

Changes:

  • Update the TypeSpec/spec source pointers (tsp-location.yaml, _metadata.json) and bump the library version to 2.0.0.
  • Regenerate core client/models/operations code and utilities (notably _utils/model_base.py, _utils/serialization.py, new _validation.py, and various model/operation updates).
  • Remove several previously shipped handwritten/custom surfaces (receipt verification module, redirect caching policy, patch-based convenience clients/pollers), and adjust/format some tests and packaging configuration.

Reviewed changes

Copilot reviewed 34 out of 34 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
sdk/confidentialledger/azure-confidentialledger/tsp-location.yaml Updates TypeSpec source directory + spec commit reference (but additionalDirectories now empty/ambiguous).
sdk/confidentialledger/azure-confidentialledger/tests/test_redirect_caching_policy.py Minor formatting tweak in assertions (tests still reference deleted redirect policy module).
sdk/confidentialledger/azure-confidentialledger/tests/test_client_configuration.py Minor formatting; still asserts disable_redirect_cleanup=True behavior.
sdk/confidentialledger/azure-confidentialledger/sdk_packaging.toml Removed; packaging metadata moved into pyproject.toml.
sdk/confidentialledger/azure-confidentialledger/pyproject.toml Reformat + dependency/version metadata updates; adds [packaging] section.
sdk/confidentialledger/azure-confidentialledger/CHANGELOG.md Adds a 2.0.0 entry, but currently contains placeholder/internal instruction text.
sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/receipt/py.typed Deleted (receipt subpackage removed).
sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/receipt/_utils.py Deleted (receipt subpackage removed).
sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/receipt/_receipt_verification.py Deleted (receipt subpackage removed).
sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/receipt/_receipt_models.py Deleted (receipt subpackage removed).
sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/receipt/_claims_models.py Deleted (receipt subpackage removed).
sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/receipt/_claims_digest_computation.py Deleted (receipt subpackage removed).
sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/receipt/init.py Deleted (receipt subpackage removed / public exports removed).
sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/models/_patch.py Updates typing for __all__ stub.
sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/models/_models.py Regenerated models; docstring wrapping fixes; role-related model adjustments and other changes.
sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/models/_enums.py Regenerated enums with docstring punctuation/formatting changes.
sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/models/init.py Updates exported model names (removes Roles, adds UserDefinedRole(s)).
sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/aio/_patch.py Replaced prior async convenience wrapper with an empty customization stub.
sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/aio/_operations/_patch.py Replaced prior async poller helpers with an empty customization stub.
sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/aio/_operations/_operations.py Regenerated async operations; adds list_tags and version validation hooks; introduces decompress handling for stream paths; renames some operations to *_stable.
sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/aio/_configuration.py Updates default API version and docstring wording (docstring currently inconsistent with implementation).
sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/aio/_client.py Regenerated async client; changes Self import strategy and pipeline policy composition (redirect/sensitive-header behavior changed).
sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/_version.py Bumps version to 2.0.0.
sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/_validation.py New helper decorator for API version validation of methods/params.
sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/_utils/serialization.py Updates Self import strategy; removes eval usage; adds deserializer fast-path for simple header/scalar cases.
sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/_utils/model_base.py Large regeneration/optimization changes to model serialization/deserialization and XML handling.
sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/_redirect_caching_policy.py Deleted; removes custom redirect caching + strict redirect target validation implementation.
sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/_patch.py Replaced prior sync convenience wrapper with an empty customization stub.
sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/_operations/_patch.py Replaced prior sync poller helpers with an empty customization stub.
sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/_configuration.py Updates default API version and docstring wording (docstring currently inconsistent with implementation).
sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/_client.py Regenerated sync client; changes Self import strategy and pipeline policy composition (redirect/sensitive-header behavior changed).
sdk/confidentialledger/azure-confidentialledger/apiview-properties.json Updates ApiView mapping entries (adds list_tags and new role models; renames some operations) and adds CrossLanguageVersion.
sdk/confidentialledger/azure-confidentialledger/_metadata.json Updates API version metadata and adds apiVersions, commit, emitter/tooling metadata.
Comments suppressed due to low confidence (4)

sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/_patch.py:22

  • azure.confidentialledger._patch no longer defines/export any of the previously public convenience types (e.g., ConfidentialLedgerCertificateCredential, and the higher-level ConfidentialLedgerClient wrapper that accepted endpoint, credential, and ledger_certificate_path). The current generated client surface only accepts ledger_endpoint and has no credential parameter, which will break existing usage (README + tests) and makes authenticated calls impossible without manual policy wiring.
__all__: list[str] = []  # Add all objects you want publicly available to users at this package level


def patch_sdk():
    """Do not remove from this file.

    `patch_sdk` is a last resort escape hatch that allows you to do customizations
    you can't accomplish using the techniques described in
    https://aka.ms/azsdk/python/dpcodegen/python/customize
    """

sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/aio/_patch.py:22

  • azure.confidentialledger.aio._patch is now empty, removing the async public convenience client/wrapper surface. As a result the async client currently has no credential-based constructor and no TLS certificate convenience behavior, which is a breaking API change and will break existing samples/tests.
__all__: list[str] = []  # Add all objects you want publicly available to users at this package level


def patch_sdk():
    """Do not remove from this file.

    `patch_sdk` is a last resort escape hatch that allows you to do customizations
    you can't accomplish using the techniques described in
    https://aka.ms/azsdk/python/dpcodegen/python/customize
    """

sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/_operations/_patch.py:22

  • This operations patch file is now empty, which removes the previously provided begin_* poller helpers (e.g., begin_get_ledger_entry, begin_get_receipt, begin_wait_for_commit). Those helpers are used by existing tests and are part of the public convenience surface for non-LRO polling. If the generated operations no longer include them, they need to remain implemented somewhere for backwards compatibility (or be called out as a breaking change in the 2.0.0 changelog + docs).
__all__: list[str] = []  # Add all objects you want publicly available to users at this package level


def patch_sdk():
    """Do not remove from this file.

    `patch_sdk` is a last resort escape hatch that allows you to do customizations
    you can't accomplish using the techniques described in
    https://aka.ms/azsdk/python/dpcodegen/python/customize
    """

sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/aio/_operations/_patch.py:22

  • This async operations patch file is now empty, removing the previously provided async begin_* poller helpers. Existing tests call await client.begin_get_ledger_entry(...) etc; without these helpers on the async client surface, this is a breaking change that should either be restored or explicitly documented in the 2.0.0 changelog (and reflected in samples/tests).
__all__: list[str] = []  # Add all objects you want publicly available to users at this package level


def patch_sdk():
    """Do not remove from this file.

    `patch_sdk` is a last resort escape hatch that allows you to do customizations
    you can't accomplish using the techniques described in
    https://aka.ms/azsdk/python/dpcodegen/python/customize
    """

Comment thread sdk/confidentialledger/azure-confidentialledger/tsp-location.yaml Outdated
Comment thread sdk/confidentialledger/azure-confidentialledger/pyproject.toml
Comment thread sdk/confidentialledger/azure-confidentialledger/pyproject.toml
Comment thread sdk/confidentialledger/azure-confidentialledger/CHANGELOG.md
ryazhang-microsoft and others added 2 commits June 16, 2026 07:52
- Restore custom _patch.py files (sync/async) with ConfidentialLedgerClient
  extending generated client with credential support and TLS cert handling
- Restore custom _operations/_patch.py files (sync/async) with LRO polling
  methods (begin_get_ledger_entry, begin_get_receipt, begin_create_ledger_entry,
  begin_wait_for_commit)
- Restore _redirect_caching_policy.py for write request redirect caching
- Restore receipt/ module for write transaction receipt verification
- Inject RedirectCachingPolicy and disable_redirect_cleanup via kwargs in
  custom client constructors (new generated code no longer includes these)
- Update test_client_configuration.py to test custom client behavior
- Update CHANGELOG.md with proper 2.0.0 stable release notes
- Update pyproject.toml: is_stable=true, Development Status 5

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Generated model_base.py uses _xml_deser_* function names (short for
deserialize). This is auto-generated code that cannot be modified.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ryazhang-microsoft and others added 4 commits June 16, 2026 09:25
- Use AsyncRedirectCachingPolicy in async client instead of sync version
- Rename create/update/delete_user_defined_role to *_stable in tests
- Generate and commit api.md and api.metadata.yml for consistency check

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Fix role order assertion (use sorted comparison)
- Fix UserDefinedRole access (use dict instead of .roles attribute)
- Add cleanup for pre-existing test role
- Support configurable identity endpoint via env var
- Update test recordings for new api-version

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Fix additionalDirectories trailing space in tsp-location.yaml
- Fix docstring default api_version from None to 2026-02-23 in sync and async configuration

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ryazhang-microsoft
ryazhang-microsoft enabled auto-merge (squash) July 1, 2026 16:27
@ryazhang-microsoft ryazhang-microsoft self-assigned this Jul 13, 2026
@ryazhang-microsoft

Copy link
Copy Markdown
Member

Friendly ping @danieljurek @benbp @mikeharder 👋 — this azure-confidentialledger SDK PR is part of GA release plan 2123 (target: July 2026) and is ready for your review. Could you please take a look when you have a chance? Thanks!

Comment thread .vscode/cspell.json
@ryazhang-microsoft
ryazhang-microsoft enabled auto-merge (squash) July 14, 2026 11:36
@ryazhang-microsoft
ryazhang-microsoft merged commit aa17095 into main Jul 14, 2026
23 checks passed
@ryazhang-microsoft
ryazhang-microsoft deleted the sdkauto/azure-confidentialledger-6435812 branch July 14, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants