summaryrefslogtreecommitdiff
path: root/keystoneclient/base.py
diff options
context:
space:
mode:
authorhenriquetruta <henrique@lsd.ufcg.edu.br>2015-02-19 12:04:26 -0300
committerhenriquetruta <henrique@lsd.ufcg.edu.br>2015-04-06 13:41:41 -0300
commit57b0fe2c8f471c99de01aa59907fb50d5067da1f (patch)
treed20c15269b176e699900f22baca9f0844c4751e1 /keystoneclient/base.py
parent96c038004fbd42b391926038ffd7429a7de12500 (diff)
downloadpython-keystoneclient-57b0fe2c8f471c99de01aa59907fb50d5067da1f.tar.gz
Inherited role domain calls on keystoneclient v3
This patch allows the user to perform the following API calls through the python-keystoneclient: Assign role to user on projects owned by a domain: PUT /OS-INHERIT/domains/{domain_id}/users/{user_id}/roles/inherited_to_projects List user's inherited project roles on a domain: GET /OS-INHERIT/domains/{domain_id}/users/{user_id}/roles/inherited_to_projects Check if user has an inherited project role on domain: HEAD /OS-INHERIT/domains/{domain_id}/users/{user_id}/roles/{role_id}/inherited_to_projects Revoke an inherited project role from user on domain: DELETE /OS-INHERIT/domains/{domain_id}/users/{user_id}/roles/{role_id}/inherited_to_projects These same operations regarding groups instead of users are also available. Co-Authored-By: Raildo Mascena <raildo@lsd.ufcg.edu.br> Co-Authored-By: Samuel Medeiros <samuel@lsd.ufcg.edu.br> Change-Id: I877168e3922cdd19868d508ef9fc34d0c7e7abcb Closes-bug: 1367866
Diffstat (limited to 'keystoneclient/base.py')
-rw-r--r--keystoneclient/base.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/keystoneclient/base.py b/keystoneclient/base.py
index 81d5e26..6f0e294 100644
--- a/keystoneclient/base.py
+++ b/keystoneclient/base.py
@@ -305,6 +305,8 @@ class CrudManager(Manager):
If a `base_url` is provided, the generated URL will be appended to it.
+ If a 'tail' is provided, it will be appended to the end of the URL.
+
"""
if dict_args_in_out is None:
dict_args_in_out = {}
@@ -317,6 +319,9 @@ class CrudManager(Manager):
if entity_id is not None:
url += '/%s' % entity_id
+ if dict_args_in_out.get('tail'):
+ url += dict_args_in_out['tail']
+
return url
@filter_kwargs