Skip to content

Commit 1690279

Browse files
committed
Added more docstrings
1 parent f683134 commit 1690279

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

simvue/api/objects/run.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def new(
9393
@property
9494
@staging_check
9595
def name(self) -> str:
96+
"""Retrieve name associated with this run"""
9697
return self._get_attribute("name")
9798

9899
def delete(self, **kwargs) -> dict[str, typing.Any]:
@@ -105,28 +106,33 @@ def delete(self, **kwargs) -> dict[str, typing.Any]:
105106
def name(
106107
self, name: typing.Annotated[str, pydantic.Field(pattern=NAME_REGEX)]
107108
) -> None:
109+
"""Set the name for this run."""
108110
self._staging["name"] = name
109111

110112
@property
111113
@staging_check
112114
def tags(self) -> list[str]:
115+
"""Retrieve the tags associated with this run."""
113116
return self._get_attribute("tags")
114117

115118
@tags.setter
116119
@write_only
117120
@pydantic.validate_call
118121
def tags(self, tags: list[str]) -> None:
122+
"""Set the tags for this run."""
119123
self._staging["tags"] = tags
120124

121125
@property
122126
@staging_check
123127
def status(self) -> Status:
128+
"""Get the run status."""
124129
return self._get_attribute("status")
125130

126131
@status.setter
127132
@write_only
128133
@pydantic.validate_call
129134
def status(self, status: Status) -> None:
135+
"""Set the run status."""
130136
self._staging["status"] = status
131137

132138
@property
@@ -145,6 +151,7 @@ def ttl(self, time_seconds: pydantic.NonNegativeInt | None) -> None:
145151
@property
146152
@staging_check
147153
def folder(self) -> str:
154+
"""Get the folder associated with this run."""
148155
return self._get_attribute("folder")
149156

150157
@folder.setter
@@ -153,43 +160,51 @@ def folder(self) -> str:
153160
def folder(
154161
self, folder: typing.Annotated[str, pydantic.Field(pattern=FOLDER_REGEX)]
155162
) -> None:
163+
"""Set the folder for this run."""
156164
self._staging["folder"] = folder
157165

158166
@property
159167
@staging_check
160168
def metadata(self) -> dict[str, typing.Any]:
169+
"""Get the metadata for this run."""
161170
return self._get_attribute("metadata")
162171

163172
@metadata.setter
164173
@write_only
165174
@pydantic.validate_call
166175
def metadata(self, metadata: dict[str, typing.Any]) -> None:
176+
"""Set the metadata for this run."""
167177
self._staging["metadata"] = metadata
168178

169179
@property
170180
@staging_check
171181
def description(self) -> str:
182+
"""Get the description for this run."""
172183
return self._get_attribute("description")
173184

174185
@description.setter
175186
@write_only
176187
@pydantic.validate_call
177188
def description(self, description: str | None) -> None:
189+
"""Set the description for this run."""
178190
self._staging["description"] = description
179191

180192
@property
181193
def system(self) -> dict[str, typing.Any]:
194+
"""Get the system metadata for this run."""
182195
return self._get_attribute("system")
183196

184197
@system.setter
185198
@write_only
186199
@pydantic.validate_call
187200
def system(self, system: dict[str, typing.Any]) -> None:
201+
"""Set the system metadata for this run."""
188202
self._staging["system"] = system
189203

190204
@property
191205
@staging_check
192206
def heartbeat_timeout(self) -> int | None:
207+
"""Get the timeout for the heartbeat of this run."""
193208
return self._get_attribute("heartbeat_timeout")
194209

195210
@heartbeat_timeout.setter

0 commit comments

Comments
 (0)