diff --git a/CHANGELOG.md b/CHANGELOG.md index 57a3c4851..12d308009 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,10 @@ Changes are grouped as follows - `Fixed` for any bug fixes. - `Security` in case of vulnerabilities. +## [7.70.4] - 2024-12-11 +### Fixed +- Added missing `diagramParsingACl` to capabilities. + ## [7.70.3] - 2024-12-11 ### Fixed - Aggregation requests with custom properties, like a metadata key, are no longer converted to camelCase diff --git a/cognite/client/_version.py b/cognite/client/_version.py index d71cebc18..a9241b258 100644 --- a/cognite/client/_version.py +++ b/cognite/client/_version.py @@ -1,5 +1,5 @@ from __future__ import annotations -__version__ = "7.70.3" +__version__ = "7.70.4" __api_subversion__ = "20230101" diff --git a/cognite/client/data_classes/capabilities.py b/cognite/client/data_classes/capabilities.py index 9990d3e9a..596e9694a 100644 --- a/cognite/client/data_classes/capabilities.py +++ b/cognite/client/data_classes/capabilities.py @@ -605,6 +605,20 @@ class Scope: ID = IDScope +@dataclass +class DiagramParsingAcl(Capability): + _capability_name = "diagramParsingAcl" + actions: Sequence[Action] + scope: AllScope = field(default_factory=AllScope) + + class Action(Capability.Action): # type: ignore [misc] + Read = "READ" + Write = "WRITE" + + class Scope: + All = AllScope + + @dataclass class DigitalTwinAcl(Capability): _capability_name = "digitalTwinAcl" diff --git a/pyproject.toml b/pyproject.toml index 5a937116b..ec0f7d5e5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "cognite-sdk" -version = "7.70.3" +version = "7.70.4" description = "Cognite Python SDK" readme = "README.md" diff --git a/tests/tests_unit/test_data_classes/test_capabilities.py b/tests/tests_unit/test_data_classes/test_capabilities.py index 21af7a2ae..39c21435a 100644 --- a/tests/tests_unit/test_data_classes/test_capabilities.py +++ b/tests/tests_unit/test_data_classes/test_capabilities.py @@ -52,6 +52,7 @@ def all_acls(): }, {"datasetsAcl": {"actions": ["READ", "WRITE", "OWNER"], "scope": {"all": {}}}}, {"datasetsAcl": {"actions": ["READ", "WRITE", "OWNER"], "scope": {"idScope": {"ids": ["2918026428"]}}}}, + {"diagramParsingAcl": {"actions": ["READ", "WRITE"], "scope": {"all": {}}}}, {"digitalTwinAcl": {"actions": ["READ", "WRITE"], "scope": {"all": {}}}}, {"documentFeedbackAcl": {"actions": ["CREATE", "READ", "DELETE"], "scope": {"all": {}}}}, {"documentPipelinesAcl": {"actions": ["READ", "WRITE"], "scope": {"all": {}}}},