Oleksiy Petrenko | e03e2c7 | 2018-08-10 13:24:32 +0300 | [diff] [blame] | 1 | from keystonev3.common import send |
| 2 | |
| 3 | try: |
| 4 | from urllib.parse import urlencode |
| 5 | except ImportError: |
| 6 | from urllib import urlencode |
| 7 | |
| 8 | |
| 9 | @send('get') |
| 10 | def project_list(**kwargs): |
| 11 | url = '/projects?{}'.format(urlencode(kwargs)) |
| 12 | return url, None |
| 13 | |
| 14 | |
| 15 | @send('get') |
| 16 | def domain_list(**kwargs): |
| 17 | url = '/domains?{}'.format(urlencode(kwargs)) |
| 18 | return url, None |
| 19 | |
| 20 | |
| 21 | @send('get') |
| 22 | def endpoint_list(**kwargs): |
| 23 | url = '/endpoints?{}'.format(urlencode(kwargs)) |
| 24 | return url, None |
| 25 | |
| 26 | |
| 27 | @send('get') |
| 28 | def service_list(**kwargs): |
| 29 | url = '/services?{}'.format(urlencode(kwargs)) |
| 30 | return url, None |
| 31 | |
| 32 | |
| 33 | @send('get') |
| 34 | def user_list(**kwargs): |
| 35 | url = '/users?{}'.format(urlencode(kwargs)) |
| 36 | return url, None |
| 37 | |
| 38 | |
| 39 | @send('get') |
| 40 | def role_list(**kwargs): |
| 41 | url = '/roles?{}'.format(urlencode(kwargs)) |
| 42 | return url, None |
| 43 | |
| 44 | |
| 45 | @send('get') |
| 46 | def role_assignment_list(**kwargs): |
| 47 | url = '/role_assignments?{}'.format(urlencode(kwargs)) |
| 48 | return url, None |
| 49 | |
| 50 | |
| 51 | @send('get') |
| 52 | def role_inference_rule_list(**kwargs): |
| 53 | url = '/role_inferences' |
| 54 | return url, None |
| 55 | |
| 56 | |
| 57 | @send('get') |
| 58 | def region_list(**kwargs): |
| 59 | url = '/regions?{}'.format(urlencode(kwargs)) |
| 60 | return url, None |
| 61 | |
| 62 | |
| 63 | @send('get') |
| 64 | def group_list(**kwargs): |
| 65 | url = '/groups?{}'.format(urlencode(kwargs)) |
| 66 | return url, None |