@@ -543,27 +543,21 @@ def create_meaning(self, id, label, type, description=None,
543543
544544 def list_logs (self ):
545545 """
546- List all logs on the DSS instance
546+ List all available log files on the DSS instance
547+ This call requires an API key with admin rights
547548
548- Note: this call requires an API key with admin rights
549-
550- Returns:
551- A list of log names
549+ :returns: A list of log names
552550 """
553551 return self ._perform_json (
554552 "GET" , "/admin/logs/" )
555553
556554 def get_log (self , name ):
557555 """
558- Get a specific log
559-
560- Note: this call requires an API key with admin rights
556+ Get the contents of a specific log file
557+ This call requires an API key with admin rights
561558
562- Args:
563- name: the name of the desired log
564-
565- Returns:
566- The full log, as a string
559+ :param str name: the name of the desired log file (obtained with :meth:`list_logs`)
560+ :returns: The full content of the log file, as a string
567561 """
568562 return self ._perform_json (
569563 "GET" , "/admin/logs/%s" % name )
@@ -574,24 +568,25 @@ def get_log(self, name):
574568
575569 def get_variables (self ):
576570 """
577- Get the DSS instance's variables
571+ Get the DSS instance's variables, as a Python dictionary
578572
579- Note: this call requires an API key with admin rights
573+ This call requires an API key with admin rights
580574
581- Returns:
582- A JSON object
575+ :returns: a Python dictionary of the instance-level variables
583576 """
584577 return self ._perform_json (
585578 "GET" , "/admin/variables/" )
586579
587580 def set_variables (self , variables ):
588581 """
589- Set the DSS instance's variables
582+ Updates the DSS instance's variables
590583
591- Note: this call requires an API key with admin rights
592-
593- Args:
594- variables: the new state of all variables of the instance, as a JSON object
584+ This call requires an API key with admin rights
585+
586+ It is not possible to update a single variable, you must set all of them at once. Thus, you
587+ should only use a ``variables`` parameter that has been obtained using :meth:`get_variables`.
588+
589+ :param dict variables: the new dictionary of all variables of the instance
595590
596591 """
597592 return self ._perform_empty (
@@ -604,12 +599,11 @@ def set_variables(self, variables):
604599
605600 def get_general_settings (self ):
606601 """
607- Get a handle to interact with the general settings.
602+ Gets a handle to interact with the general settings.
608603
609- Note: this call requires an API key with admin rights
604+ This call requires an API key with admin rights
610605
611- Returns:
612- A :class:`dataikuapi.dss.admin.DSSGeneralSettings`
606+ :returns: a :class:`dataikuapi.dss.admin.DSSGeneralSettings` handle
613607 """
614608 return DSSGeneralSettings (self )
615609
@@ -633,9 +627,8 @@ def prepare_project_import(self, f):
633627 """
634628 Prepares import of a project archive
635629
636- @param: fp: the input stream, as a file-like object
637-
638- Returns a handle for the prepared import
630+ :param file-like fp: the input stream, as a file-like object
631+ :returns: a :class:`TemporaryImportHandle` to interact with the prepared import
639632 """
640633 val = self ._perform_json_upload (
641634 "POST" , "/projects/import/upload" ,
0 commit comments