v0.26.0 - June 11, 2026
What's New
-
sap_cloud_sdk.admsmodule — full-featured sync and async Python client for the SAP Advanced Document Management Service (ADM), backed by IAS X.509 client-credentials authentication and OData V4.Clients
AdmsClient(sync) andAsyncAdmsClient(async) with sub-namespacesdocuments,relations,jobs, andconfigcreate_client()/create_async_client()factories that load IAS bindings from a mounted secret volume withCLOUD_SDK_CFG_ADMS_DEFAULT_*environment-variable fallback
Document API
- Document CRUD:
create,get,update,delete - Content download URL generation; scan-state handling (
PENDING/CLEAN/INFECTED) get_all()transparently queriesDocumentRelation?$expand=Document(the ADM service has no top-level Document collection)update()returns the full entity (follows up with aGETafterUpdateDocument)- Fields:
DocumentStateText,DocumentContentHash; size fields typed asint
DocumentRelation API
- Full draft lifecycle:
create_draft,validate_draft,activate_draft,discard_draft delete_business_object_node— removes all relations for a BO node (requires system-user scope)get_change_logs()andget_bo_node_change_logs()— read-only audit trails- New model:
DraftAdministrativeData(returned by draft lifecycle responses) - New fields:
is_active_entity,has_active_entity,has_draft_entity,document_relation_is_output_relevant,draft_messages,doc_relation_changed_by_user_name,doc_relation_changed_at_date_time
Configuration API
AllowedDomain,DocumentType,BusinessObjectNodeType,DocumentTypeBusinessObjectTypeMap: full CRUD includingget_by_idandupdate(PATCH)FileExtensionPolicyCRUD:get_all,create,get,deleteApplicationTenantCRUD:get_all,create,get,deletemark_default(mapping_id)— sets a DocType↔BOType map as default
Jobs API
ZIP_DOWNLOADandDELETE_USER_DATAjob orchestration viaAdminServiceget_statussync/async parity — both acceptuse_admin_serviceparameter
OData query options — tiered dataclasses replace scattered keyword arguments:
ConfigQueryOptions(filter,top,skip)RelationQueryOptions(+select,expand)DocumentQueryOptions(+orderby)
Authentication & token cache
IasTokenFetcher—client_credentials(cached) andjwt-bearerOBO (intentionally not cached; OBO tokens are user-scoped and must not be shared across pods)- Pluggable
TokenCacheprotocol withInMemoryTokenCache(thread-safe);TokenCacheandInMemoryTokenCacheexported fromsap_cloud_sdk.adms