'Lists all resource types.
For a full list of available parameters, please refer to the official
API reference:
http://developer.openstack.org/api-ref/image/v2/metadefs-index.html#list-resource-types'

def list_resource_types(self):

    url = 'metadefs/resource_types'
    (resp, body) = self.get(url)
    self.expected_success(200, resp.status)
    body = json.loads(body)
    return rest_client.ResponseBody(resp, body)
