def get_all_by_namespace(context, namespace_name, session):
 namespace = namespace_api.get(context, namespace_name, session)
 db_recs = session.query(models.MetadefResourceType).join(models.MetadefResourceType.associations).filter_by(namespace_id=namespace['id']).values(models.MetadefResourceType.name, models.MetadefNamespaceResourceType.properties_target, models.MetadefNamespaceResourceType.prefix, models.MetadefNamespaceResourceType.created_at, models.MetadefNamespaceResourceType.updated_at)
 model_dict_list = []
 for (name, properties_target, prefix, created_at, updated_at) in db_recs:
  model_dict_list.append(_set_model_dict(name, properties_target, prefix, created_at, updated_at))
 return model_dict_list

def get_all_by_namespace ( context , namespace_name , session ) : namespace = namespace_api . get ( context , namespace_name , session ) db_recs = session . query ( models . MetadefResourceType ) . join ( models . MetadefResourceType . associations ) . filter_by ( namespace_id = namespace [ 'id' ] ) . values ( models . MetadefResourceType . name , models . MetadefNamespaceResourceType . properties_target , models . MetadefNamespaceResourceType . prefix , models . MetadefNamespaceResourceType . created_at , models . MetadefNamespaceResourceType . updated_at ) model_dict_list = [ ] for ( name , properties_target , prefix , created_at , updated_at ) in db_recs : model_dict_list . append ( _set_model_dict ( name , properties_target , prefix , created_at , updated_at ) ) return model_dict_list
list resource_type associations by namespace .