(self, request, tenant_id)
return json.dumps({'values': [sp.to_json() for sp in sp_list], 'metadata': metadata})
Get the list of suppressions for this tenant.
Get the list of suppressions for this tenant.
Get the list of suppressions for this tenant .
def get_suppressions(self, request, tenant_id):
        """
        Get the list of suppressions for this tenant.
        """
        sp_list = self._entity_cache_for_tenant(
            tenant_id).suppressions.values()
        metadata = {
            'count': len(sp_list),
            'limit': 100,
            'marker': None,
            'next_marker': None,
            'next_href': None
        }
        request.setResponseCode(200)
        return json.dumps({'values': [sp.to_json() for sp in sp_list], 'metadata': metadata})
def get_suppressions ( self , request , tenant_id ) : sp_list = self . _entity_cache_for_tenant ( tenant_id ) . suppressions . values ( ) metadata = { 'count' : len ( sp_list ) , 'limit' : 100 , 'marker' : None , 'next_marker' : None , 'next_href' : None } request . setResponseCode ( 200 ) return json . dumps ( { 'values' : [ sp . to_json ( ) for sp in sp_list ] , 'metadata' : metadata } )