gooddata_sdk.catalog.data_source.declarative_model.data_source.CatalogDeclarativeDataSource

class gooddata_sdk.catalog.data_source.declarative_model.data_source.CatalogDeclarativeDataSource(*, id: str, name: str, type: str, url: Optional[str] = None, schema: str, enable_caching: Optional[bool] = None, pdm: CatalogDeclarativeTables = CatalogDeclarativeTables(tables=[]), cache_path: Optional[List[str]] = None, username: Optional[str] = None, parameters: Optional[List[CatalogParameter]] = None, decoded_parameters: Optional[List[CatalogParameter]] = None, permissions: List[CatalogDeclarativeDataSourcePermission] = NOTHING)

Bases: Base

__init__(*, id: str, name: str, type: str, url: Optional[str] = None, schema: str, enable_caching: Optional[bool] = None, pdm: CatalogDeclarativeTables = CatalogDeclarativeTables(tables=[]), cache_path: Optional[List[str]] = None, username: Optional[str] = None, parameters: Optional[List[CatalogParameter]] = None, decoded_parameters: Optional[List[CatalogParameter]] = None, permissions: List[CatalogDeclarativeDataSourcePermission] = NOTHING) None

Method generated by attrs for class CatalogDeclarativeDataSource.

Methods

__init__(*, id, name, type[, url, ...])

Method generated by attrs for class CatalogDeclarativeDataSource.

client_class()

data_source_folder(data_sources_folder, ...)

from_api(entity)

Creates object from entity passed by client class, which represents it as dictionary.

from_dict(data[, camel_case])

Creates object from dictionary.

load_from_disk(data_sources_folder, ...)

store_to_disk(data_sources_folder)

to_api([password, token, ...])

to_dict([camel_case])

Converts object into dictionary.

to_test_request([password, token])

Attributes

id

name

type

url

schema

enable_caching

pdm

cache_path

username

parameters

decoded_parameters

permissions

classmethod from_api(entity: Dict[str, Any]) T

Creates object from entity passed by client class, which represents it as dictionary.

classmethod from_dict(data: Dict[str, Any], camel_case: bool = True) T

Creates object from dictionary. It needs to be specified if the dictionary is in camelCase or snake_case.

to_dict(camel_case: bool = True) Dict[str, Any]

Converts object into dictionary. Optional argument if the dictionary should be camelCase or snake_case can be specified.