Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
8265acfe
"src/include/gridwise_convolution_wrapper.hpp" did not exist on "0b41ca2d9e20ad41dc522942aaffb2ebc8ef9b92"
Unverified
Commit
8265acfe
authored
Jan 01, 2025
by
Antoine Kaufmann
Browse files
symphony/client: add ns member management calls
parent
f163d832
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
symphony/client/simbricks/client/client.py
symphony/client/simbricks/client/client.py
+13
-0
No files found.
symphony/client/simbricks/client/client.py
View file @
8265acfe
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment