Skip to content

Commit

Permalink
#804 change models - thumbnails to repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
D-GopalKrishna committed Jan 4, 2024
1 parent 0d04ed2 commit 5b69d72
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ class OSBRepositoryEntityDict(_OSBRepositoryEntityDictBase, total=False):
timestamp_created: typing.Optional[datetime.datetime]
timestamp_updated: typing.Optional[datetime.datetime]
tags: typing.Sequence["TagDict"]
thumbnail: typing.Optional[str]


class TOSBRepositoryEntity(typing.Protocol):
Expand All @@ -551,6 +552,7 @@ class TOSBRepositoryEntity(typing.Protocol):
timestamp_created: Date/time the Workspace is created
timestamp_updated: Date/time the Workspace is last updated
tags: The tags of the OSBRepositoryEntity.
thumbnail: The thumbnail of the OSBRepositoryEntity.
"""

Expand All @@ -572,6 +574,7 @@ class TOSBRepositoryEntity(typing.Protocol):
timestamp_created: typing.Optional[datetime.datetime]
timestamp_updated: typing.Optional[datetime.datetime]
tags: typing.Sequence["TTag"]
thumbnail: typing.Optional[str]

def __init__(
self,
Expand All @@ -587,6 +590,7 @@ def __init__(
timestamp_created: typing.Optional[datetime.datetime] = None,
timestamp_updated: typing.Optional[datetime.datetime] = None,
tags: typing.Optional[typing.Sequence["TTag"]] = None,
thumbnail: typing.Optional[str] = None,
) -> None:
"""
Construct.
Expand All @@ -606,6 +610,7 @@ def __init__(
timestamp_created: Date/time the Workspace is created
timestamp_updated: Date/time the Workspace is last updated
tags: The tags of the OSBRepositoryEntity.
thumbnail: The thumbnail of the OSBRepositoryEntity.
"""
...
Expand All @@ -625,6 +630,7 @@ def from_dict(
timestamp_created: typing.Optional[datetime.datetime] = None,
timestamp_updated: typing.Optional[datetime.datetime] = None,
tags: typing.Optional[typing.Sequence["TagDict"]] = None,
thumbnail: typing.Optional[str] = None,
) -> "TOSBRepositoryEntity":
"""
Construct from a dictionary (eg. a POST payload).
Expand All @@ -644,6 +650,7 @@ def from_dict(
timestamp_created: Date/time the Workspace is created
timestamp_updated: Date/time the Workspace is last updated
tags: The tags of the OSBRepositoryEntity.
thumbnail: The thumbnail of the OSBRepositoryEntity.
Returns:
Model instance based on the dictionary.
Expand Down Expand Up @@ -946,4 +953,4 @@ def to_str(self) -> str:
...


WorkspaceResourceEntity: TWorkspaceResourceEntity = models.WorkspaceResourceEntity # type: ignore
WorkspaceResourceEntity: TWorkspaceResourceEntity = models.WorkspaceResourceEntity # type: ignore

0 comments on commit 5b69d72

Please sign in to comment.