Skip to content

Commit 9cab6f9

Browse files
committed
Deprecate get_variables and rename it to get_global_variables
[ch64060]
1 parent 51a981e commit 9cab6f9

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

dataikuapi/dssclient.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import json
1+
import json, warnings
22

33
from requests import Session
44
from requests import exceptions
@@ -760,11 +760,18 @@ def get_global_usage_summary(self, with_per_project=False):
760760
########################################################
761761

762762
def get_variables(self):
763+
"""
764+
Deprecated. Use get_global_variables
765+
"""
766+
warnings.warn("get_variables is deprecated, please use get_global_variables", DeprecationWarning)
767+
return self.get_global_variables()
768+
769+
def get_global_variables(self):
763770
"""
764771
Get the DSS instance's variables, as a Python dictionary
765772
766773
This call requires an API key with admin rights
767-
774+
768775
:returns: a Python dictionary of the instance-level variables
769776
"""
770777
return self._perform_json(

0 commit comments

Comments
 (0)