Skip to content

Commit 2cf8fb5

Browse files
committed
Adding set_offline_client method to DSSClient.
1 parent 44db93c commit 2cf8fb5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

dataikuapi/dssclient.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,19 @@ def get_licensing_status(self):
989989
"""
990990
return self._perform_json("GET", "/admin/licensing/status")
991991

992+
def set_offline_license(self, license_path):
993+
"""
994+
Sets a new licence for DSS
995+
996+
:param license_path: path to the license file
997+
:return: None
998+
"""
999+
with open(license_path, "r") as lf:
1000+
license = lf.read()
1001+
self._perform_empty(
1002+
"POST", "/admin/licensing/set-offline-license", params={"license": license})
1003+
1004+
9921005
########################################################
9931006
# Internal Request handling
9941007
########################################################

0 commit comments

Comments
 (0)