From 8dab830b3854769e746e960f10e3a5fa5d7188dc Mon Sep 17 00:00:00 2001 From: "databricks-ci-ghec-1[bot]" <184311507+databricks-ci-ghec-1[bot]@users.noreply.github.com> Date: Mon, 2 Mar 2026 10:24:25 +0000 Subject: [PATCH] Update SDK to 86481d2fa23e3fb65128ea34b045fe585f7643f1 --- .codegen/_openapi_sha | 2 +- databricks/sdk/service/database.py | 9 ++++++--- docs/workspace/database/database.rst | 9 ++++++--- 3 files changed, 13 insertions(+), 7 deletions(-) mode change 100644 => 100755 databricks/sdk/service/database.py mode change 100644 => 100755 docs/workspace/database/database.rst diff --git a/.codegen/_openapi_sha b/.codegen/_openapi_sha index 4e0a18f57..12c62ec0b 100755 --- a/.codegen/_openapi_sha +++ b/.codegen/_openapi_sha @@ -1 +1 @@ -4ad0f0856225e3ebc6bb11392d09d63a19e6d140 \ No newline at end of file +86481d2fa23e3fb65128ea34b045fe585f7643f1 \ No newline at end of file diff --git a/databricks/sdk/service/database.py b/databricks/sdk/service/database.py old mode 100644 new mode 100755 index 1e8511f03..b6dff6520 --- a/databricks/sdk/service/database.py +++ b/databricks/sdk/service/database.py @@ -1887,10 +1887,13 @@ def generate_database_credential( """Generates a credential that can be used to access database instances. :param claims: List[:class:`RequestedClaims`] (optional) - The returned token will be scoped to the union of instance_names and instances containing the - specified UC tables, so instance_names is allowed to be empty. + A set of UC permissions to add to the credential. We verify that the caller has the necessary + permissions in UC and include a reference in the token. Postgres uses that token to give the + connecting user additional grants to the Postgres resources that correspond to the UC resources. The + UC resources need to be something that have a Postgres counterpart. For example, a synced table or a + table in a UC database catalog. :param instance_names: List[str] (optional) - Instances to which the token will be scoped. + Instances to request a credential for. At least one of instance_names or claims must be specified. :param request_id: str (optional) :returns: :class:`DatabaseCredential` diff --git a/docs/workspace/database/database.rst b/docs/workspace/database/database.rst old mode 100644 new mode 100755 index c65abaf4b..9ce91817f --- a/docs/workspace/database/database.rst +++ b/docs/workspace/database/database.rst @@ -133,10 +133,13 @@ Generates a credential that can be used to access database instances. :param claims: List[:class:`RequestedClaims`] (optional) - The returned token will be scoped to the union of instance_names and instances containing the - specified UC tables, so instance_names is allowed to be empty. + A set of UC permissions to add to the credential. We verify that the caller has the necessary + permissions in UC and include a reference in the token. Postgres uses that token to give the + connecting user additional grants to the Postgres resources that correspond to the UC resources. The + UC resources need to be something that have a Postgres counterpart. For example, a synced table or a + table in a UC database catalog. :param instance_names: List[str] (optional) - Instances to which the token will be scoped. + Instances to request a credential for. At least one of instance_names or claims must be specified. :param request_id: str (optional) :returns: :class:`DatabaseCredential`