From d90db450984b10d36338ebeaf4f80ce3633c50c0 Mon Sep 17 00:00:00 2001 From: Cor Zuurmond Date: Fri, 15 Nov 2024 10:42:49 +0100 Subject: [PATCH] Convert Dashboard objects to dict in create and update Lakeview calls --- databricks/sdk/service/dashboards.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/databricks/sdk/service/dashboards.py b/databricks/sdk/service/dashboards.py index 1b02d8c8..a36850a7 100755 --- a/databricks/sdk/service/dashboards.py +++ b/databricks/sdk/service/dashboards.py @@ -1144,7 +1144,7 @@ def create(self, *, dashboard: Optional[Dashboard] = None) -> Dashboard: :returns: :class:`Dashboard` """ - body = dashboard + body = dashboard.as_dict() headers = {'Accept': 'application/json', 'Content-Type': 'application/json', } res = self._api.do('POST', '/api/2.0/lakeview/dashboards', body=body, headers=headers) @@ -1528,7 +1528,7 @@ def update(self, dashboard_id: str, *, dashboard: Optional[Dashboard] = None) -> :returns: :class:`Dashboard` """ - body = dashboard + body = dashboard.as_dict() headers = {'Accept': 'application/json', 'Content-Type': 'application/json', } res = self._api.do('PATCH',