diff options
author | Rodrigo Duarte Sousa <rodrigodsousa@gmail.com> | 2014-05-01 11:07:59 -0300 |
---|---|---|
committer | Rodrigo Duarte Sousa <rodrigods@lsd.ufcg.edu.br> | 2014-05-27 14:08:50 +0000 |
commit | 0b0d2d3a9a909fcd00b1fda777201bd7c4608978 (patch) | |
tree | 7d9171c6ebdb0c555d6cd46d74fb38df532b8061 /keystoneclient/exceptions.py | |
parent | f06efe9c4e99a717681907eb4bb5f8c2b6dfef75 (diff) | |
download | python-keystoneclient-0b0d2d3a9a909fcd00b1fda777201bd7c4608978.tar.gz |
Add /role_assignments endpoint support
This patch adds role assignments list support
to keystoneclient.
Created RoleAssignment resource and RoleAssignmentManager
classes. RoleAssignmentManager only implements the list()
method, the other inherited methods from base.CrudManager
raises a MethodNotImplemented error with customized messages.
This bp is complimented with the OSC part:
https://blueprints.launchpad.net/python-openstackclient/+spec/roles-assignment-list
Change-Id: I164b58b67ff42320238e943ddfa9d0a8aadd0a6d
Implements: blueprint roles-assignment-support
Closes-Bug: #1246310
Diffstat (limited to 'keystoneclient/exceptions.py')
-rw-r--r-- | keystoneclient/exceptions.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/keystoneclient/exceptions.py b/keystoneclient/exceptions.py index 31f25cb..f441daf 100644 --- a/keystoneclient/exceptions.py +++ b/keystoneclient/exceptions.py @@ -62,6 +62,10 @@ class VersionNotAvailable(DiscoveryFailure): """Discovery failed as the version you requested is not available.""" +class MethodNotImplemented(ClientException): + """Method not implemented by the keystoneclient API.""" + + class MissingAuthPlugin(ClientException): """An authenticated request is required but no plugin available.""" |