X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fauthconn.py;h=0df8911c70f08b1b56ba180e1c1603cd98a484bb;hp=8f2f128c1555945267f3872a530f973ed1a0c7d0;hb=4015b4734a923c29c04bf9b30f5a06604dd2f0a4;hpb=2d5a515d32cf20f526e5922fae130868c9710dc3 diff --git a/osm_nbi/authconn.py b/osm_nbi/authconn.py index 8f2f128..0df8911 100644 --- a/osm_nbi/authconn.py +++ b/osm_nbi/authconn.py @@ -223,6 +223,7 @@ class Authconn: Create a project. :param project: project name. + :return: the internal id of the created project :raises AuthconnOperationException: if project creation failed. """ raise AuthconnNotImplementedException("Should have implemented this") @@ -236,14 +237,24 @@ class Authconn: """ raise AuthconnNotImplementedException("Should have implemented this") - def get_project_list(self): + def get_project_list(self, filter_q={}): """ Get all the projects. + :param filter_q: dictionary to filter project list. :return: list of projects """ raise AuthconnNotImplementedException("Should have implemented this") + def update_project(self, project_id, new_name): + """ + Change the name of a project + :param project_id: project to be changed + :param new_name: new name + :return: None + """ + raise AuthconnNotImplementedException("Should have implemented this") + def assign_role_to_user(self, user, project, role): """ Assigning a role to a user in a project.