catalog_data_source.

store_declarative_pdm

store_declarative_pdm(data_source_id: str, layout_root_path: Path = Path.cwd())

Stores the physical data model layout in directory hierarchy for a given data source.

gooddata_layouts
└── organization_id
        └── data_sources
                └── data_source_a
                        └── pdm
                            ├── table_A.yaml
                            └── table_B.yaml

Parameters

nametypedescription
data_source_idstringData source identification string. e.g. "demo"
layout_root_pathOptional[Path]Path to the root of the layout directory. Defaults to Path.cwd().().

Returns

None

Example

# Store declarative PDM in directory hierarchy
sdk.catalog_data_source.store_declarative_pdm(data_source_id="123",layour_root_path=Path.cwd())