Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 def add_vip(self):
     return vip.VIP(self.dto['vips'], {}, self.auth)