Skip to content

Commit fe8720d

Browse files
committed
add endpoint to build code studio template
1 parent bdc75da commit fe8720d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

dataikuapi/dss/admin.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,6 +1333,19 @@ def get_settings(self):
13331333
settings = self.client._perform_json("GET", "/admin/code-studios/%s" % (self.template_id))
13341334
return DSSCodeStudioTemplateSettings(self.client, self.template_id, settings)
13351335

1336+
########################################################
1337+
# Building
1338+
########################################################
1339+
1340+
def build(self):
1341+
"""
1342+
Build or rebuild the template.
1343+
1344+
:returns: a :class:`~dataikuapi.dss.future.DSSFuture` handle to the task of building the image
1345+
"""
1346+
future_response = self.client._perform_json("POST", "/admin/code-studios/%s/build" % (self.template_id))
1347+
return DSSFuture(self.client, future_response.get('jobId', None), future_response)
1348+
13361349
class DSSCodeStudioTemplateSettings(object):
13371350
"""
13381351
The settings of a code studio template

0 commit comments

Comments
 (0)