Skip to content

Commit 94abc16

Browse files
authored
Add get_workspace_id to docgen blocklist (#549)
## Changes Doc generation is done automatically for all services in the `WorkspaceClient` and `AccountClient` classes. However, `get_workspace_id()` does not need to go through the same process, as its docs will appear on the `WorkspaceClient` doc page anyways: https://databricks-sdk-py--549.org.readthedocs.build/en/549/clients/workspace.html#databricks.sdk.WorkspaceClient.get_workspace_id. ## Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> - [ ] `make test` run locally - [ ] `make fmt` applied - [ ] relevant integration tests applied
1 parent 94fc5e4 commit 94abc16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/gen-client-docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def class_methods(self, inst) -> list[MethodDoc]:
278278

279279
def service_docs(self, client_inst) -> list[ServiceDoc]:
280280
client_prefix = 'w' if isinstance(client_inst, WorkspaceClient) else 'a'
281-
ignore_client_fields = ('config', 'dbutils', 'api_client', 'files', 'get_workspace_client')
281+
ignore_client_fields = ('config', 'dbutils', 'api_client', 'files', 'get_workspace_client', 'get_workspace_id')
282282
all = []
283283
for service_name, service_inst in inspect.getmembers(client_inst):
284284
if service_name.startswith('_'):

0 commit comments

Comments
 (0)