|
14 | 14 | from gooddata_api_client.model.declarative_attribute_hierarchy import DeclarativeAttributeHierarchy |
15 | 15 | from gooddata_api_client.model.declarative_dashboard_plugin import DeclarativeDashboardPlugin |
16 | 16 | from gooddata_api_client.model.declarative_filter_context import DeclarativeFilterContext |
| 17 | +from gooddata_api_client.model.declarative_memory_item import DeclarativeMemoryItem |
17 | 18 | from gooddata_api_client.model.declarative_metric import DeclarativeMetric |
18 | 19 | from gooddata_api_client.model.declarative_visualization_object import DeclarativeVisualizationObject |
19 | 20 |
|
|
24 | 25 | ) |
25 | 26 | from gooddata_sdk.catalog.workspace.declarative_model.workspace.analytics_model.base import ( |
26 | 27 | CatalogAnalyticsBase, |
| 28 | + CatalogAnalyticsBaseMeta, |
27 | 29 | CatalogAnalyticsObjectBase, |
28 | 30 | ) |
29 | 31 | from gooddata_sdk.catalog.workspace.declarative_model.workspace.analytics_model.export_definition import ( |
@@ -78,6 +80,7 @@ class CatalogDeclarativeAnalyticsLayer(Base): |
78 | 80 | metrics: list[CatalogDeclarativeMetric] = attr.field(factory=list) |
79 | 81 | visualization_objects: list[CatalogDeclarativeVisualizationObject] = attr.field(factory=list) |
80 | 82 | export_definitions: list[CatalogDeclarativeExportDefinition] = attr.field(factory=list) |
| 83 | + memory_items: list[CatalogMemoryItems] = attr.field(factory=list) |
81 | 84 |
|
82 | 85 | @staticmethod |
83 | 86 | def client_class() -> type[DeclarativeAnalyticsLayer]: |
@@ -311,3 +314,18 @@ class CatalogDeclarativeAttributeHierarchy(CatalogAnalyticsBase): |
311 | 314 | @staticmethod |
312 | 315 | def client_class() -> type[DeclarativeAttributeHierarchy]: |
313 | 316 | return DeclarativeAttributeHierarchy |
| 317 | + |
| 318 | + |
| 319 | +@define(auto_attribs=True, kw_only=True) |
| 320 | +class CatalogMemoryItems(CatalogAnalyticsBaseMeta): |
| 321 | + instruction: str |
| 322 | + strategy: str |
| 323 | + title: str |
| 324 | + tags: list[str] |
| 325 | + description: str |
| 326 | + is_disabled: bool |
| 327 | + keywords: list[str] |
| 328 | + |
| 329 | + @staticmethod |
| 330 | + def client_class() -> type[DeclarativeMemoryItem]: |
| 331 | + return DeclarativeMemoryItem |
0 commit comments