databricks / databricks-sdk-py

Databricks SDK for Python (Beta)
https://databricks-sdk-py.readthedocs.io/
Apache License 2.0
318 stars 103 forks source link

[ISSUE] `catalog.ListConnectionsRequest` does not exist #654

Open themattmorris opened 1 month ago

themattmorris commented 1 month ago

Description This page points to a change that was added in the recent release that w.connections.list now requires catalog.ListConnectionsRequest instance positional argument. The function signature does not suggest this, and catalog.ListConnectionsRequest type does not exist. This may be a documentation only bug, because I can still list connections with w.connections.list() only.

Reproduction

from databricks.sdk.service import catalog

catalog.ListConnectionsRequest()

Expected behavior The docs to align with the codebase.

Is it a regression? It still works without the positional argument as in earlier versions.

Debug Logs

from databricks.sdk.service import catalog
catalog.ListConnectionsRequest()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'databricks.sdk.service.catalog' has no attribute 'ListConnectionsRequest'. Did you mean: 'ListConnectionsResponse'?

Other Information