"src/include/gridwise_convolution_wrapper.hpp" did not exist on "0b41ca2d9e20ad41dc522942aaffb2ebc8ef9b92"
Unverified Commit 8265acfe authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

symphony/client: add ns member management calls

parent f163d832
......@@ -244,6 +244,19 @@ class NSClient:
async with self.get(url="/all") as resp:
return await resp.json()
async def get_members(self) -> dict[str,list[dict]]:
async with self.get(url="/members") as resp:
return await resp.json()
async def get_role_members(self, role: str) -> list[dict]:
async with self.get(url=f"/members/{role}") as resp:
return await resp.json()
async def add_member(self, role: str, username: str) -> None:
req_json = {"username": username}
async with self.post(url=f"/members/{role}", json=req_json) as resp:
await resp.json()
class SimBricksClient:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment