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
def add_pool_member(self): return pool_member.PoolMember(self.dto['poolMembers'], {}, self.auth)