cyborg/db/sqlalchemy/api.py
def deployable_get_by_filters_sort(self, context, filters, limit=None,
                                       marker=None, join_columns=None,
                                       sort_key=None, sort_dir=None):
        """Return deployables that match all filters sorted by the given
        keys. Deleted deployables will be returned by default, unless
        there's a filter that says otherwise.
        """
        raise NotImplementedError() # TODO

        if limit == 0:
            return []

        query_prefix = model_query(context, models.Deployable)
        filters = copy.deepcopy(filters)

        exact_match_filter_names = ['uuid', 'name',
                                    'parent_uuid', 'root_uuid',
                                    'address', 'host',
                                    'board', 'vendor', 'version',
                                    'type', 'interface_type', 'assignable',
                                    'instance_uuid', 'availability',
                                    'accelerator_id']

        # Filter the query
        query_prefix = self._exact_deployable_filter(query_prefix,
                                                     filters,
                                                     exact_match_filter_names)
        if query_prefix is None:
            return []
        return _paginate_query(context, models.Deployable, limit, marker,
                               sort_key, sort_dir, query_prefix)
Return deployables that match all filters sorted by the given
        keys. Deleted deployables will be returned by default, unless
        there's a filter that says otherwise.
        
Return deployables that match all filters sorted by the given
keys. Deleted deployables will be returned by default, unless
there's a filter that says otherwise.
Return deployables that match all filters sorted by the given keys . Deleted deployables will be returned by default unless there ' s a filter that says otherwise .
def deployable_get_by_filters_sort(self, context, filters, limit=None,
                                       marker=None, join_columns=None,
                                       sort_key=None, sort_dir=None):
        raise NotImplementedError() 
        if limit == 0:
            return []
        query_prefix = model_query(context, models.Deployable)
        filters = copy.deepcopy(filters)
        exact_match_filter_names = ['uuid', 'name',
                                    'parent_uuid', 'root_uuid',
                                    'address', 'host',
                                    'board', 'vendor', 'version',
                                    'type', 'interface_type', 'assignable',
                                    'instance_uuid', 'availability',
                                    'accelerator_id']
        query_prefix = self._exact_deployable_filter(query_prefix,
                                                     filters,
                                                     exact_match_filter_names)
        if query_prefix is None:
            return []
        return _paginate_query(context, models.Deployable, limit, marker,
                               sort_key, sort_dir, query_prefix)
def deployable_get_by_filters_sort ( self , context , filters , limit = None , marker = None , join_columns = None , sort_key = None , sort_dir = None ) : raise NotImplementedError ( ) if limit == 0 : return [ ] query_prefix = model_query ( context , models . Deployable ) filters = copy . deepcopy ( filters ) exact_match_filter_names = [ 'uuid' , 'name' , 'parent_uuid' , 'root_uuid' , 'address' , 'host' , 'board' , 'vendor' , 'version' , 'type' , 'interface_type' , 'assignable' , 'instance_uuid' , 'availability' , 'accelerator_id' ] query_prefix = self . _exact_deployable_filter ( query_prefix , filters , exact_match_filter_names ) if query_prefix is None : return [ ] return _paginate_query ( context , models . Deployable , limit , marker , sort_key , sort_dir , query_prefix )
Return deployables that match all filters sorted by the given
keys.
Return deployables that match all filters sorted by the given keys .
"""Return deployables that match all filters sorted by the given
        keys. Deleted deployables will be returned by default, unless
        there's a filter that says otherwise.
        """ # TODO # Filter the query
self
context
filters
limit
marker
join_columns
sort_key
sort_dir