Skip to content

Commit 7a99268

Browse files
Add a method to create code envs in the global cache of an api node
1 parent c948318 commit 7a99268

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dataikuapi/apinode_admin_client.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,9 @@ def auth(self):
3636

3737
def get_metrics(self):
3838
return self._perform_json("GET", "metrics")
39+
40+
def create_code_env(self, file_dir, language):
41+
self._perform_empty("POST", "codeenvs", params={
42+
"fileDir": file_dir,
43+
"language": language
44+
})

0 commit comments

Comments
 (0)