'Create a keypair.
For a full list of available parameters, please refer to the official
API reference:
https://developer.openstack.org/api-ref/compute/#create-or-import-keypair'

def create_keypair(self, **kwargs):

    post_body = json.dumps({'keypair': kwargs})
    (resp, body) = self.post('os-keypairs', body=post_body)
    body = json.loads(body)
    schema = self.get_schema(self.schema_versions_info)
    self.validate_response(schema.create_keypair, resp, body)
    return rest_client.ResponseBody(resp, body)
