def get_vips(self, query=None): headers = {'Accept': vendor_media_type.APPLICATION_VIP_COLLECTION_JSON} _, vips = self.auth.do_request(self.dto['vips'], 'GET', headers=headers, query=query) vips = [vip.VIP(self.dto['vips'], v, self.auth) for v in vips] return vips
def add_vip(self): return vip.VIP(self.dto['vips'], {}, self.auth)