gooddata_sdk.catalog.workspace.entity_model.content_objects.dataset.CatalogDataset

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

Bases: gooddata_sdk.catalog.entity.CatalogEntity

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

Methods

__init__(entity, 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.workspace.entity_model.content_objects.dataset.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