gooddata_sdk.catalog.CatalogDataset

class gooddata_sdk.catalog.CatalogDataset(dataset: dict[str, Any], attributes: list[CatalogAttribute], facts: list[CatalogFact])

Bases: gooddata_sdk.catalog.CatalogEntry

__init__(dataset: dict[str, Any], attributes: list[CatalogAttribute], facts: list[CatalogFact]) None

Methods

__init__(dataset, attributes, facts)

filter_dataset(valid_objects)

Filters dataset so that it contains only attributes and facts that are part of the provided valid objects structure.

find_label_attribute(id_obj)

Attributes

attributes

data_type

description

facts

id

obj_id

title

type

filter_dataset(valid_objects: Dict[str, Set[str]]) Optional[gooddata_sdk.catalog.CatalogDataset]

Filters dataset so that it contains only attributes and facts that are part of the provided valid objects structure.

Parameters

valid_objects – mapping of object type to a set of valid object ids

Returns

CatalogDataset containing only valid attributes and facts; None if all of the attributes and facts were filtered out