'Create a transfer object.'

def _create_qos_specs(self, name, values=None):

    if values:
        specs = dict(name=name, qos_specs=values)
    else:
        specs = {'name': name, 'consumer': 'back-end', 'specs': {'key1': 'value1', 'key2': 'value2'}}
    return db.qos_specs_create(self.ctxt, specs)['id']
