Add the api reference for roles_client in v3

add the api reference for roles_client.py in v3

Change-Id: Ifb20455a50bcedbfe549af006116c1a2f724cc9a
This commit is contained in:
linanbj
2019-08-28 11:15:11 +08:00
parent 9ba51cd694
commit 941a9470bb

View File

@@ -42,8 +42,12 @@ class RolesClient(rest_client.RestClient):
return rest_client.ResponseBody(resp, body)
def list_roles(self, **params):
"""Get the list of Roles."""
"""Get the list of Roles.
For a full list of available parameters, please refer to the official
API reference:
https://docs.openstack.org/api-ref/identity/v3/index.html#list-roles
"""
url = 'roles'
if params:
url += '?%s' % urllib.urlencode(params)