Skip to content

Commit e54232b

Browse files
committed
docs(data-connectors): note get_source_metadata is Grain-only (501 otherwise)
1 parent 8fa6894 commit e54232b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

cloudglue/client/resources/data_connectors.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ def get_source_metadata(self, connector_id: str, url: str):
103103
Returns provider-specific metadata (e.g. Grain recording details) for a
104104
single file in a connected data source, without importing it.
105105
106+
Note: currently only supported for Grain connectors. Other connector
107+
types raise a CloudglueError with status 501 (Not Implemented).
108+
106109
Args:
107110
connector_id: The ID of the data connector.
108111
url: Connector URI to look up. Must match the connector's type.
@@ -111,7 +114,8 @@ def get_source_metadata(self, connector_id: str, url: str):
111114
SourceMetadataResponse object.
112115
113116
Raises:
114-
CloudglueError: If there is an error fetching source metadata.
117+
CloudglueError: If there is an error fetching source metadata
118+
(including 501 for non-Grain connectors).
115119
"""
116120
try:
117121
return self.api.get_data_connector_source_metadata(

0 commit comments

Comments
 (0)