'Creates a property definition in a namespace.
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#create-property'

def create_namespace_property(self, namespace, **kwargs):

    url = ('metadefs/namespaces/%s/properties' % namespace)
    data = json.dumps(kwargs)
    (resp, body) = self.post(url, data)
    self.expected_success(201, resp.status)
    body = json.loads(body)
    return rest_client.ResponseBody(resp, body)
