Skip to content

Commit aa17095

Browse files
azure-sdkryazhang-microsoftCopilot
authored
[AutoPR azure-confidentialledger]-generated-from-SDK Generation - Python-6435812 (#47499)
* 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. * Restore custom code and fix compatibility with new TypeSpec generation - 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> * Add 'deser' to cspell allowlist for confidentialledger 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> * Fix async redirect policy, renamed methods, and add api.md - 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 tests and update recordings for stable 2026-02-23 API - 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 tsp-location.yaml and docstring api_version default - 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> --------- Co-authored-by: Ryan Zhang <ryazhang@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Ryan Zhang <112638134+ryazhang-microsoft@users.noreply.github.com>
1 parent 0c5001a commit aa17095

31 files changed

Lines changed: 3618 additions & 709 deletions

.vscode/cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1849,6 +1849,7 @@
18491849
{
18501850
"filename": "sdk/confidentialledger/azure-confidentialledger/**",
18511851
"words": [
1852+
"deser",
18521853
"mrenclave",
18531854
"MRENCLAVE",
18541855
"oeverify"

sdk/confidentialledger/azure-confidentialledger/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Release History
22

3+
## 2.0.0 (2026-06-15)
4+
5+
### Features Added
6+
7+
- Stable release of the Azure Confidential Ledger client library based on API version `2026-02-23`.
8+
- Added user-defined functions support including `create_user_defined_endpoint`, `get_user_defined_endpoint`, and related operations.
9+
- Added user-defined roles support including `create_user_defined_role`, `update_user_defined_role`, `get_user_defined_role`, and `delete_user_defined_role`.
10+
- Added `create_or_update_ledger_user`, `delete_ledger_user`, `get_ledger_user`, and `list_ledger_users` operations.
11+
- Added redirect URL caching for write operations to reduce latency.
12+
13+
### Breaking Changes
14+
15+
- Removed the `azure.confidentialledger.certificate` namespace and the `ConfidentialLedgerCertificateClient`. Use the `azure-confidentialledger-certificate` package to access this client.
16+
- Changed the input parameter on `create_user_defined_role` and `update_user_defined_role` from a list of roles to a `Roles` model.
17+
- `get_user_defined_role()` returns a `Roles` model instead of a list of roles.
18+
319
## 2.0.0b3 (2026-06-05)
420

521
### Features Added
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
{
2-
"apiVersion": "2024-12-09-preview"
2+
"apiVersion": "2026-02-23",
3+
"apiVersions": {
4+
"ConfidentialLedger": "2026-02-23"
5+
},
6+
"commit": "8a3262d0e5c399e19b4e489368643a0e5b7f16e3",
7+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
8+
"typespec_src": "specification/confidentialledger/data-plane/ConfidentialLedger",
9+
"emitterVersion": "0.63.1",
10+
"httpClientPythonVersion": "^0.31.1"
311
}

0 commit comments

Comments
 (0)