Skip to content

Commit

Permalink
fix: ThreeDModel does not return data_set_id (#1366)
Browse files Browse the repository at this point in the history
  • Loading branch information
mithilacognite authored Sep 19, 2023
1 parent f9c9e5c commit 66ad0b0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ Changes are grouped as follows
- `Fixed` for any bug fixes.
- `Security` in case of vulnerabilities.

## [6.25.3] - 2023-09-19
### Added
- Support for setting and retrieving `data_set_id` in data class `client.data_classes.ThreeDModel`.

## [6.25.2] - 2023-09-12
### Fixed
- Using the `HasData` filter would raise an API error in CDF.
Expand Down
2 changes: 1 addition & 1 deletion cognite/client/_version.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import annotations

__version__ = "6.25.2"
__version__ = "6.25.3"

__api_subversion__ = "V20220125"
3 changes: 3 additions & 0 deletions cognite/client/data_classes/three_d.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class ThreeDModel(CogniteResource):
name (str | None): The name of the model.
id (int | None): The ID of the model.
created_time (int | None): The creation time of the resource, in milliseconds since January 1, 1970 at 00:00 UTC.
data_set_id (int | None): The id of the dataset this 3D model belongs to.
metadata (dict[str, str] | None): Custom, application specific metadata. String key -> String value. Limits: Maximum length of key is 32 bytes, value 512 bytes, up to 16 key-value pairs.
cognite_client (CogniteClient | None): The client to associate with this object.
"""
Expand All @@ -70,12 +71,14 @@ def __init__(
name: str | None = None,
id: int | None = None,
created_time: int | None = None,
data_set_id: int | None = None,
metadata: dict[str, str] | None = None,
cognite_client: CogniteClient | None = None,
) -> None:
self.name = name
self.id = id
self.created_time = created_time
self.data_set_id = data_set_id
self.metadata = metadata
self._cognite_client = cast("CogniteClient", cognite_client)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "cognite-sdk"

version = "6.25.2"
version = "6.25.3"

description = "Cognite Python SDK"
readme = "README.md"
Expand Down

0 comments on commit 66ad0b0

Please sign in to comment.