@@ -93,6 +93,7 @@ def new(
93
93
@property
94
94
@staging_check
95
95
def name (self ) -> str :
96
+ """Retrieve name associated with this run"""
96
97
return self ._get_attribute ("name" )
97
98
98
99
def delete (self , ** kwargs ) -> dict [str , typing .Any ]:
@@ -105,28 +106,33 @@ def delete(self, **kwargs) -> dict[str, typing.Any]:
105
106
def name (
106
107
self , name : typing .Annotated [str , pydantic .Field (pattern = NAME_REGEX )]
107
108
) -> None :
109
+ """Set the name for this run."""
108
110
self ._staging ["name" ] = name
109
111
110
112
@property
111
113
@staging_check
112
114
def tags (self ) -> list [str ]:
115
+ """Retrieve the tags associated with this run."""
113
116
return self ._get_attribute ("tags" )
114
117
115
118
@tags .setter
116
119
@write_only
117
120
@pydantic .validate_call
118
121
def tags (self , tags : list [str ]) -> None :
122
+ """Set the tags for this run."""
119
123
self ._staging ["tags" ] = tags
120
124
121
125
@property
122
126
@staging_check
123
127
def status (self ) -> Status :
128
+ """Get the run status."""
124
129
return self ._get_attribute ("status" )
125
130
126
131
@status .setter
127
132
@write_only
128
133
@pydantic .validate_call
129
134
def status (self , status : Status ) -> None :
135
+ """Set the run status."""
130
136
self ._staging ["status" ] = status
131
137
132
138
@property
@@ -145,6 +151,7 @@ def ttl(self, time_seconds: pydantic.NonNegativeInt | None) -> None:
145
151
@property
146
152
@staging_check
147
153
def folder (self ) -> str :
154
+ """Get the folder associated with this run."""
148
155
return self ._get_attribute ("folder" )
149
156
150
157
@folder .setter
@@ -153,43 +160,51 @@ def folder(self) -> str:
153
160
def folder (
154
161
self , folder : typing .Annotated [str , pydantic .Field (pattern = FOLDER_REGEX )]
155
162
) -> None :
163
+ """Set the folder for this run."""
156
164
self ._staging ["folder" ] = folder
157
165
158
166
@property
159
167
@staging_check
160
168
def metadata (self ) -> dict [str , typing .Any ]:
169
+ """Get the metadata for this run."""
161
170
return self ._get_attribute ("metadata" )
162
171
163
172
@metadata .setter
164
173
@write_only
165
174
@pydantic .validate_call
166
175
def metadata (self , metadata : dict [str , typing .Any ]) -> None :
176
+ """Set the metadata for this run."""
167
177
self ._staging ["metadata" ] = metadata
168
178
169
179
@property
170
180
@staging_check
171
181
def description (self ) -> str :
182
+ """Get the description for this run."""
172
183
return self ._get_attribute ("description" )
173
184
174
185
@description .setter
175
186
@write_only
176
187
@pydantic .validate_call
177
188
def description (self , description : str | None ) -> None :
189
+ """Set the description for this run."""
178
190
self ._staging ["description" ] = description
179
191
180
192
@property
181
193
def system (self ) -> dict [str , typing .Any ]:
194
+ """Get the system metadata for this run."""
182
195
return self ._get_attribute ("system" )
183
196
184
197
@system .setter
185
198
@write_only
186
199
@pydantic .validate_call
187
200
def system (self , system : dict [str , typing .Any ]) -> None :
201
+ """Set the system metadata for this run."""
188
202
self ._staging ["system" ] = system
189
203
190
204
@property
191
205
@staging_check
192
206
def heartbeat_timeout (self ) -> int | None :
207
+ """Get the timeout for the heartbeat of this run."""
193
208
return self ._get_attribute ("heartbeat_timeout" )
194
209
195
210
@heartbeat_timeout .setter
0 commit comments