File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -516,3 +516,22 @@ def list_running_notebooks(self, as_objects=True):
516516 else :
517517 return list
518518
519+ ########################################################
520+ # Tags
521+ ########################################################
522+
523+ def get_tags (self ):
524+ """
525+ List the tags of this project.
526+
527+ Returns:
528+ a dictionary containing the tags with a color
529+ """
530+ return self .client ._perform_json ("GET" , "/projects/%s/tags" % self .project_key )
531+
532+ def set_tags (self , tags = {}):
533+ """
534+ Set the tags of this project.
535+ @param obj: must be a modified version of the object returned by list_tags
536+ """
537+ return self .client ._perform_empty ("PUT" , "/projects/%s/tags" % self .project_key , body = tags )
You can’t perform that action at this time.
0 commit comments