catalog_data_source.
put_declarative_data_sources
put_declarative_data_sources(declarative_data_sources: CatalogDeclarativeDataSources, credentials_path: Optional[Path] = None, test_data_sources: bool = False)
Sets all data sources, including their related physical data model.
Parameters
name | type | description |
---|---|---|
declarative_data_sources | CatalogDeclarativeDataSources | Declarative data source object. Can be retrieved by get_declarative_data_sources. |
credentials_path | Optional[Path] | Path to the Credentials. Optional, defaults to None. |
test_data_sources | Optional[bool] | If True, the connection of data sources is tested. Defaults to False. |
Returns
None
Example
# get declarative data sources.
data_sources = sdk.catalog_data_source.get_declarative_data_sources()
# Modification
data_sources.data_sources.clear()
# Put data sources back on server
sdk.catalog_data_source.put_declarative_data_sources(declarative_data_sources=data_sources)