'Create a transfer object.'

def _create_qos_specs(self, name, consumer='back-end', values=None):

    if (values is None):
        values = {'key1': 'value1', 'key2': 'value2'}
    specs = {'name': name, 'consumer': consumer, 'specs': values}
    return db.qos_specs_create(self.ctxt, specs)['id']
