blob: 549e27a02bd3c86b5e6c3c9af15e75456e99a27b [file] [log] [blame]
Oleksiy Petrenkoe03e2c72018-08-10 13:24:32 +03001from keystonev3.common import send
2
3
4@send('get')
5def region_get_details(region_id, **kwargs):
6 url = '/regions/{}'.format(region_id)
7 return url, None
8
9
10@send('patch')
11def region_update(region_id, **kwargs):
12 url = '/regions/{}'.format(region_id)
13 json = {
14 'region': kwargs
15 }
16 return url, json
17
18
19@send('delete')
20def region_delete(region_id, **kwargs):
21 url = '/regions/{}'.format(region_id)
22 return url, None
23
24
25@send('post')
26def region_create(**kwargs):
27 url = '/regions'
28 json = {
29 'region': kwargs
30 }
31 return url, json