Fetches the visibility override status of the documents passed.
from glean.api_client import Glean
import os
with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
) as glean:
res = glean.client.governance.documents.visibilityoverrides.list()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
doc_ids |
List[str] | ➖ | List of doc-ids which will have their hide status fetched. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.GetDocumentVisibilityOverridesResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.GleanError | 4XX, 5XX | */* |
Sets the visibility-override state of the documents specified, effectively hiding or un-hiding documents.
from glean.api_client import Glean
import os
with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
) as glean:
res = glean.client.governance.documents.visibilityoverrides.create()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
visibility_overrides |
List[models.DocumentVisibilityOverride] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.UpdateDocumentVisibilityOverridesResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.GleanError | 4XX, 5XX | */* |