Commit b27577f0 authored by Tross Yvormes's avatar Tross Yvormes
Browse files

Update to 0.2.0

parent b08d7078
This diff is collapsed.
......@@ -66,6 +66,11 @@ class V1Stub(object):
request_serializer=grpc__mumble_dot_MurmurRPC__pb2.Server.SerializeToString,
response_deserializer=grpc__mumble_dot_MurmurRPC__pb2.Server.Event.FromString,
)
self.ServerGetAllUsers = channel.unary_unary(
'/MurmurRPC.V1/ServerGetAllUsers',
request_serializer=grpc__mumble_dot_MurmurRPC__pb2.Server.SerializeToString,
response_deserializer=grpc__mumble_dot_MurmurRPC__pb2.DatabaseUser.List.FromString,
)
self.ContextActionAdd = channel.unary_unary(
'/MurmurRPC.V1/ContextActionAdd',
request_serializer=grpc__mumble_dot_MurmurRPC__pb2.ContextAction.SerializeToString,
......@@ -246,6 +251,11 @@ class V1Stub(object):
request_serializer=grpc__mumble_dot_MurmurRPC__pb2.DatabaseUser.SerializeToString,
response_deserializer=grpc__mumble_dot_MurmurRPC__pb2.Void.FromString,
)
self.DatabaseUserGroups = channel.unary_unary(
'/MurmurRPC.V1/DatabaseUserGroups',
request_serializer=grpc__mumble_dot_MurmurRPC__pb2.DatabaseUser.SerializeToString,
response_deserializer=grpc__mumble_dot_MurmurRPC__pb2.Group.List.FromString,
)
self.RedirectWhisperGroupAdd = channel.unary_unary(
'/MurmurRPC.V1/RedirectWhisperGroupAdd',
request_serializer=grpc__mumble_dot_MurmurRPC__pb2.RedirectWhisperGroup.SerializeToString,
......@@ -369,24 +379,21 @@ class V1Servicer(object):
def ServerEvents(self, request, context):
"""ServerEvents returns a stream of events that happen on the given server.
ServerGetAllUsers(Server) returns a list of all user IDs that exist on
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ServerGetAllUsers(self, request, context):
"""ServerGetAllUsers(Server) returns a list of all user IDs that exist on
the server.
rpc ServerGetAllUsers(Server) returns (TESTDatabaseUser.IDList);
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def ContextActionAdd(self, request, context):
"""message IDList {
The server the users belong to.
optional Server server = 1;
The user IDs.
repeated uint32 user_ids = 2;
}
"""
ContextActions
......@@ -723,6 +730,13 @@ class V1Servicer(object):
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def DatabaseUserGroups(self, request, context):
"""DatabaseUserGroups returns a list of the groups the user is in.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def RedirectWhisperGroupAdd(self, request, context):
"""
Audio
......@@ -865,6 +879,11 @@ def add_V1Servicer_to_server(servicer, server):
request_deserializer=grpc__mumble_dot_MurmurRPC__pb2.Server.FromString,
response_serializer=grpc__mumble_dot_MurmurRPC__pb2.Server.Event.SerializeToString,
),
'ServerGetAllUsers': grpc.unary_unary_rpc_method_handler(
servicer.ServerGetAllUsers,
request_deserializer=grpc__mumble_dot_MurmurRPC__pb2.Server.FromString,
response_serializer=grpc__mumble_dot_MurmurRPC__pb2.DatabaseUser.List.SerializeToString,
),
'ContextActionAdd': grpc.unary_unary_rpc_method_handler(
servicer.ContextActionAdd,
request_deserializer=grpc__mumble_dot_MurmurRPC__pb2.ContextAction.FromString,
......@@ -1045,6 +1064,11 @@ def add_V1Servicer_to_server(servicer, server):
request_deserializer=grpc__mumble_dot_MurmurRPC__pb2.DatabaseUser.FromString,
response_serializer=grpc__mumble_dot_MurmurRPC__pb2.Void.SerializeToString,
),
'DatabaseUserGroups': grpc.unary_unary_rpc_method_handler(
servicer.DatabaseUserGroups,
request_deserializer=grpc__mumble_dot_MurmurRPC__pb2.DatabaseUser.FromString,
response_serializer=grpc__mumble_dot_MurmurRPC__pb2.Group.List.SerializeToString,
),
'RedirectWhisperGroupAdd': grpc.unary_unary_rpc_method_handler(
servicer.RedirectWhisperGroupAdd,
request_deserializer=grpc__mumble_dot_MurmurRPC__pb2.RedirectWhisperGroup.FromString,
......
......@@ -697,15 +697,7 @@ service V1 {
rpc ServerEvents(Server) returns(stream Server.Event);
// ServerGetAllUsers(Server) returns a list of all user IDs that exist on
// the server.
// rpc ServerGetAllUsers(Server) returns (TESTDatabaseUser.IDList);
// message IDList {
// The server the users belong to.
// optional Server server = 1;
// The user IDs.
// repeated uint32 user_ids = 2;
// }
rpc ServerGetAllUsers(Server) returns (DatabaseUser.List);
//
// ContextActions
......@@ -876,6 +868,8 @@ service V1 {
rpc DatabaseUserVerify(DatabaseUser.Verify) returns(DatabaseUser);
// DatabaseUserRemoveAllGroups removes the given user from all groups.
rpc DatabaseUserRemoveAllGroups(DatabaseUser) returns (Void);
// DatabaseUserGroups returns a list of the groups the user is in.
rpc DatabaseUserGroups(DatabaseUser) returns(Group.List);
//
// Audio
......
Supports Markdown
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