in custos-client-sdks/custos-python-sdk/build/lib/custos/server/core/UserProfileService_pb2_grpc.py [0:0]
def add_UserProfileServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'createUserProfile': grpc.unary_unary_rpc_method_handler(
servicer.createUserProfile,
request_deserializer=UserProfileService__pb2.UserProfileRequest.FromString,
response_serializer=UserProfileService__pb2.UserProfile.SerializeToString,
),
'updateUserProfile': grpc.unary_unary_rpc_method_handler(
servicer.updateUserProfile,
request_deserializer=UserProfileService__pb2.UserProfileRequest.FromString,
response_serializer=UserProfileService__pb2.UserProfile.SerializeToString,
),
'getUserProfile': grpc.unary_unary_rpc_method_handler(
servicer.getUserProfile,
request_deserializer=UserProfileService__pb2.UserProfileRequest.FromString,
response_serializer=UserProfileService__pb2.UserProfile.SerializeToString,
),
'deleteUserProfile': grpc.unary_unary_rpc_method_handler(
servicer.deleteUserProfile,
request_deserializer=UserProfileService__pb2.UserProfileRequest.FromString,
response_serializer=UserProfileService__pb2.UserProfile.SerializeToString,
),
'getAllUserProfilesInTenant': grpc.unary_unary_rpc_method_handler(
servicer.getAllUserProfilesInTenant,
request_deserializer=UserProfileService__pb2.UserProfileRequest.FromString,
response_serializer=UserProfileService__pb2.GetAllUserProfilesResponse.SerializeToString,
),
'findUserProfilesByAttributes': grpc.unary_unary_rpc_method_handler(
servicer.findUserProfilesByAttributes,
request_deserializer=UserProfileService__pb2.UserProfileRequest.FromString,
response_serializer=UserProfileService__pb2.GetAllUserProfilesResponse.SerializeToString,
),
'createGroup': grpc.unary_unary_rpc_method_handler(
servicer.createGroup,
request_deserializer=UserProfileService__pb2.GroupRequest.FromString,
response_serializer=UserProfileService__pb2.Group.SerializeToString,
),
'updateGroup': grpc.unary_unary_rpc_method_handler(
servicer.updateGroup,
request_deserializer=UserProfileService__pb2.GroupRequest.FromString,
response_serializer=UserProfileService__pb2.Group.SerializeToString,
),
'deleteGroup': grpc.unary_unary_rpc_method_handler(
servicer.deleteGroup,
request_deserializer=UserProfileService__pb2.GroupRequest.FromString,
response_serializer=UserProfileService__pb2.Group.SerializeToString,
),
'getGroup': grpc.unary_unary_rpc_method_handler(
servicer.getGroup,
request_deserializer=UserProfileService__pb2.GroupRequest.FromString,
response_serializer=UserProfileService__pb2.Group.SerializeToString,
),
'getAllGroups': grpc.unary_unary_rpc_method_handler(
servicer.getAllGroups,
request_deserializer=UserProfileService__pb2.GroupRequest.FromString,
response_serializer=UserProfileService__pb2.GetAllGroupsResponse.SerializeToString,
),
'getUserProfileAuditTrails': grpc.unary_unary_rpc_method_handler(
servicer.getUserProfileAuditTrails,
request_deserializer=UserProfileService__pb2.GetUpdateAuditTrailRequest.FromString,
response_serializer=UserProfileService__pb2.GetUpdateAuditTrailResponse.SerializeToString,
),
'addUserToGroup': grpc.unary_unary_rpc_method_handler(
servicer.addUserToGroup,
request_deserializer=UserProfileService__pb2.GroupMembership.FromString,
response_serializer=UserProfileService__pb2.Status.SerializeToString,
),
'removeUserFromGroup': grpc.unary_unary_rpc_method_handler(
servicer.removeUserFromGroup,
request_deserializer=UserProfileService__pb2.GroupMembership.FromString,
response_serializer=UserProfileService__pb2.Status.SerializeToString,
),
'addChildGroupToParentGroup': grpc.unary_unary_rpc_method_handler(
servicer.addChildGroupToParentGroup,
request_deserializer=UserProfileService__pb2.GroupToGroupMembership.FromString,
response_serializer=UserProfileService__pb2.Status.SerializeToString,
),
'removeChildGroupFromParentGroup': grpc.unary_unary_rpc_method_handler(
servicer.removeChildGroupFromParentGroup,
request_deserializer=UserProfileService__pb2.GroupToGroupMembership.FromString,
response_serializer=UserProfileService__pb2.Status.SerializeToString,
),
'getAllGroupsOfUser': grpc.unary_unary_rpc_method_handler(
servicer.getAllGroupsOfUser,
request_deserializer=UserProfileService__pb2.UserProfileRequest.FromString,
response_serializer=UserProfileService__pb2.GetAllGroupsResponse.SerializeToString,
),
'getAllParentGroupsOfGroup': grpc.unary_unary_rpc_method_handler(
servicer.getAllParentGroupsOfGroup,
request_deserializer=UserProfileService__pb2.GroupRequest.FromString,
response_serializer=UserProfileService__pb2.GetAllGroupsResponse.SerializeToString,
),
'addUserGroupMembershipType': grpc.unary_unary_rpc_method_handler(
servicer.addUserGroupMembershipType,
request_deserializer=UserProfileService__pb2.UserGroupMembershipTypeRequest.FromString,
response_serializer=UserProfileService__pb2.Status.SerializeToString,
),
'removeUserGroupMembershipType': grpc.unary_unary_rpc_method_handler(
servicer.removeUserGroupMembershipType,
request_deserializer=UserProfileService__pb2.UserGroupMembershipTypeRequest.FromString,
response_serializer=UserProfileService__pb2.Status.SerializeToString,
),
'getAllChildUsers': grpc.unary_unary_rpc_method_handler(
servicer.getAllChildUsers,
request_deserializer=UserProfileService__pb2.GroupRequest.FromString,
response_serializer=UserProfileService__pb2.GetAllUserProfilesResponse.SerializeToString,
),
'getAllChildGroups': grpc.unary_unary_rpc_method_handler(
servicer.getAllChildGroups,
request_deserializer=UserProfileService__pb2.GroupRequest.FromString,
response_serializer=UserProfileService__pb2.GetAllGroupsResponse.SerializeToString,
),
'changeUserMembershipType': grpc.unary_unary_rpc_method_handler(
servicer.changeUserMembershipType,
request_deserializer=UserProfileService__pb2.GroupMembership.FromString,
response_serializer=UserProfileService__pb2.Status.SerializeToString,
),
'hasAccess': grpc.unary_unary_rpc_method_handler(
servicer.hasAccess,
request_deserializer=UserProfileService__pb2.GroupMembership.FromString,
response_serializer=UserProfileService__pb2.Status.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'org.apache.custos.user.profile.service.UserProfileService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))