From 94abc162091b1a8ee5974359f30151724c072238 Mon Sep 17 00:00:00 2001
From: Miles Yucht <miles@databricks.com>
Date: Mon, 19 Feb 2024 13:22:22 +0100
Subject: [PATCH] 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
---
 docs/gen-client-docs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/gen-client-docs.py b/docs/gen-client-docs.py
index 40446e71..47449e27 100644
--- a/docs/gen-client-docs.py
+++ b/docs/gen-client-docs.py
@@ -278,7 +278,7 @@ def class_methods(self, inst) -> list[MethodDoc]:
 
     def service_docs(self, client_inst) -> list[ServiceDoc]:
         client_prefix = 'w' if isinstance(client_inst, WorkspaceClient) else 'a'
-        ignore_client_fields = ('config', 'dbutils', 'api_client', 'files', 'get_workspace_client')
+        ignore_client_fields = ('config', 'dbutils', 'api_client', 'files', 'get_workspace_client', 'get_workspace_id')
         all = []
         for service_name, service_inst in inspect.getmembers(client_inst):
             if service_name.startswith('_'):