Exemple #1
0
 def get_pool_members(self, query=None):
     headers = {
         'Accept': vendor_media_type.APPLICATION_POOL_MEMBER_COLLECTION_JSON
     }
     _, members = self.auth.do_request(self.dto['poolMembers'],
                                       'GET',
                                       headers=headers,
                                       query=query)
     members = [
         pool_member.PoolMember(self.dto['poolMembers'], m, self.auth)
         for m in members
     ]
     return members
Exemple #2
0
 def add_pool_member(self):
     return pool_member.PoolMember(self.dto['poolMembers'], {}, self.auth)