(self, request, tenant_id)
return json.dumps({'values': [np.to_json() for np in np_list], 'metadata': metadata})
Get all notification plans
Get all notification plans
Get all notification plans
def get_notification_plans(self, request, tenant_id):
        """
        Get all notification plans
        """
        np_list = self._entity_cache_for_tenant(
            tenant_id).notification_plans.values()
        metadata = {'count': len(np_list),
                    'limit': 100,
                    'marker': None,
                    'next_marker': None,
                    'next_href': None}
        request.setResponseCode(200)
        return json.dumps({'values': [np.to_json() for np in np_list], 'metadata': metadata})
def get_notification_plans ( self , request , tenant_id ) : np_list = self . _entity_cache_for_tenant ( tenant_id ) . notification_plans . values ( ) metadata = { 'count' : len ( np_list ) , 'limit' : 100 , 'marker' : None , 'next_marker' : None , 'next_href' : None } request . setResponseCode ( 200 ) return json . dumps ( { 'values' : [ np . to_json ( ) for np in np_list ] , 'metadata' : metadata } )