@require_admin_context
def volume_type_qos_disassociate_all(context, qos_specs_id):
 session = get_session()
 with session.begin():
  session.query(models.VolumeTypes).filter_by(qos_specs_id=qos_specs_id).update({'qos_specs_id': None, 'updated_at': timeutils.utcnow()})

@ require_admin_context def volume_type_qos_disassociate_all ( context , qos_specs_id ) : session = get_session ( ) with session . begin ( ) : session . query ( models . VolumeTypes ) . filter_by ( qos_specs_id = qos_specs_id ) . update ( { 'qos_specs_id' : None , 'updated_at' : timeutils . utcnow ( ) } )
disassociate all volume types associated with specified qos specs .