File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff 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+
13361349class DSSCodeStudioTemplateSettings (object ):
13371350 """
13381351 The settings of a code studio template
You can’t perform that action at this time.
0 commit comments