feat: Add create_time and mime_type to ArtifactVersion

PiperOrigin-RevId: 819396924
This commit is contained in:
Google Team Member
2025-10-14 14:21:02 -07:00
committed by Copybara-Service
parent cb6d583cad
commit 85c95a8cbf
@@ -15,7 +15,6 @@ from __future__ import annotations
from abc import ABC
from abc import abstractmethod
from datetime import datetime
from typing import Any
from typing import Optional
@@ -29,10 +28,6 @@ class ArtifactVersion(BaseModel):
version: int
"""The version number of the artifact."""
create_time: float = Field(default_factory=lambda: datetime.now().timestamp())
"""The creation time of the artifact version."""
mime_type: Optional[str] = None
"""The MIME type of the artifact version."""
canonical_uri: str
"""The canonical URI of the artifact version."""
custom_metadata: dict[str, Any] = Field(default_factory=dict)