Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core ReadOnly Properties #1909

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions cognite/client/data_classes/data_modeling/cdm/v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -3845,9 +3845,6 @@ class CogniteAssetApply(
source_created_user (str | None): User identifier from the source system on who created the source data. This identifier is not guaranteed to match the user identifiers in CDF
source_updated_user (str | None): User identifier from the source system on who last updated the source data. This identifier is not guaranteed to match the user identifiers in CDF
parent (DirectRelationReference | tuple[str, str] | None): Parent of this asset
root (DirectRelationReference | tuple[str, str] | None): Asset at the top of the hierarchy.
path (list[DirectRelationReference | tuple[str, str]] | None): Materialized path of this asset
path_last_updated_time (datetime | None): Last time the path was updated for this asset
asset_class (DirectRelationReference | tuple[str, str] | None): Class of this asset
type_ (DirectRelationReference | tuple[str, str] | None): Type of this asset
existing_version (int | None): Fail the ingestion request if the node's version is greater than or equal to this value. If no existingVersion is specified, the ingestion will always overwrite any existing data for the node (for the specified container or node). If existingVersion is set to 0, the upsert will behave as an insert, so it will fail the bulk if the item already exists. If skipOnVersionConflict is set on the ingestion request, then the item will be skipped instead of failing the ingestion request.
Expand All @@ -3872,9 +3869,6 @@ def __init__(
source_created_user: str | None = None,
source_updated_user: str | None = None,
parent: DirectRelationReference | tuple[str, str] | None = None,
root: DirectRelationReference | tuple[str, str] | None = None,
path: list[DirectRelationReference | tuple[str, str]] | None = None,
path_last_updated_time: datetime | None = None,
asset_class: DirectRelationReference | tuple[str, str] | None = None,
type_: DirectRelationReference | tuple[str, str] | None = None,
existing_version: int | None = None,
Expand Down Expand Up @@ -3909,9 +3903,6 @@ def __init__(
type=type,
)
self.parent = DirectRelationReference.load(parent) if parent else None
self.root = DirectRelationReference.load(root) if root else None
self.path = [DirectRelationReference.load(path) for path in path] if path else None
self.path_last_updated_time = path_last_updated_time
self.asset_class = DirectRelationReference.load(asset_class) if asset_class else None
self.type_ = DirectRelationReference.load(type_) if type_ else None

Expand Down Expand Up @@ -4045,9 +4036,6 @@ def as_write(self) -> CogniteAssetApply:
source_created_user=self.source_created_user,
source_updated_user=self.source_updated_user,
parent=self.parent,
root=self.root,
path=self.path, # type: ignore[arg-type]
path_last_updated_time=self.path_last_updated_time,
asset_class=self.asset_class,
type_=self.type_,
existing_version=self.version,
Expand Down