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

nametypedescription
declarative_data_sourcesCatalogDeclarativeDataSourcesDeclarative data source object. Can be retrieved by get_declarative_data_sources.
credentials_pathOptional[Path]Path to the Credentials. Optional, defaults to None.
test_data_sourcesOptional[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)