blob: 549e27a02bd3c86b5e6c3c9af15e75456e99a27b [file] [log] [blame]
from keystonev3.common import send
@send('get')
def region_get_details(region_id, **kwargs):
url = '/regions/{}'.format(region_id)
return url, None
@send('patch')
def region_update(region_id, **kwargs):
url = '/regions/{}'.format(region_id)
json = {
'region': kwargs
}
return url, json
@send('delete')
def region_delete(region_id, **kwargs):
url = '/regions/{}'.format(region_id)
return url, None
@send('post')
def region_create(**kwargs):
url = '/regions'
json = {
'region': kwargs
}
return url, json