def get_all(context, namespace_name, session, filters=None, marker=None, limit=None, sort_key='created_at', sort_dir='desc'):
 namespace = namespace_api.get(context, namespace_name, session)
 query = session.query(models.MetadefTag).filter_by(namespace_id=namespace['id'])
 marker_tag = None
 if (marker is not None):
  marker_tag = _get(context, marker, session)
 sort_keys = ['created_at', 'id']
 (sort_keys.insert(0, sort_key) if (sort_key not in sort_keys) else sort_keys)
 query = paginate_query(query=query, model=models.MetadefTag, limit=limit, sort_keys=sort_keys, marker=marker_tag, sort_dir=sort_dir)
 metadef_tag = query.all()
 metadef_tag_list = []
 for tag in metadef_tag:
  metadef_tag_list.append(tag.to_dict())
 return metadef_tag_list

def get_all ( context , namespace_name , session , filters = None , marker = None , limit = None , sort_key = 'created_at' , sort_dir = 'desc' ) : namespace = namespace_api . get ( context , namespace_name , session ) query = session . query ( models . MetadefTag ) . filter_by ( namespace_id = namespace [ 'id' ] ) marker_tag = None if ( marker is not None ) : marker_tag = _get ( context , marker , session ) sort_keys = [ 'created_at' , 'id' ] ( sort_keys . insert ( 0 , sort_key ) if ( sort_key not in sort_keys ) else sort_keys ) query = paginate_query ( query = query , model = models . MetadefTag , limit = limit , sort_keys = sort_keys , marker = marker_tag , sort_dir = sort_dir ) metadef_tag = query . all ( ) metadef_tag_list = [ ] for tag in metadef_tag : metadef_tag_list . append ( tag . to_dict ( ) ) return metadef_tag_list
return a list of all available services .