in custos-client-sdks/custos-python-sdk/custos/server/core/UserProfileService_pb2_grpc.py [0:0]
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.createUserProfile = channel.unary_unary(
'/org.apache.custos.user.profile.service.UserProfileService/createUserProfile',
request_serializer=UserProfileService__pb2.UserProfileRequest.SerializeToString,
response_deserializer=UserProfileService__pb2.UserProfile.FromString,
)
self.updateUserProfile = channel.unary_unary(
'/org.apache.custos.user.profile.service.UserProfileService/updateUserProfile',
request_serializer=UserProfileService__pb2.UserProfileRequest.SerializeToString,
response_deserializer=UserProfileService__pb2.UserProfile.FromString,
)
self.getUserProfile = channel.unary_unary(
'/org.apache.custos.user.profile.service.UserProfileService/getUserProfile',
request_serializer=UserProfileService__pb2.UserProfileRequest.SerializeToString,
response_deserializer=UserProfileService__pb2.UserProfile.FromString,
)
self.deleteUserProfile = channel.unary_unary(
'/org.apache.custos.user.profile.service.UserProfileService/deleteUserProfile',
request_serializer=UserProfileService__pb2.UserProfileRequest.SerializeToString,
response_deserializer=UserProfileService__pb2.UserProfile.FromString,
)
self.getAllUserProfilesInTenant = channel.unary_unary(
'/org.apache.custos.user.profile.service.UserProfileService/getAllUserProfilesInTenant',
request_serializer=UserProfileService__pb2.UserProfileRequest.SerializeToString,
response_deserializer=UserProfileService__pb2.GetAllUserProfilesResponse.FromString,
)
self.findUserProfilesByAttributes = channel.unary_unary(
'/org.apache.custos.user.profile.service.UserProfileService/findUserProfilesByAttributes',
request_serializer=UserProfileService__pb2.UserProfileRequest.SerializeToString,
response_deserializer=UserProfileService__pb2.GetAllUserProfilesResponse.FromString,
)
self.createGroup = channel.unary_unary(
'/org.apache.custos.user.profile.service.UserProfileService/createGroup',
request_serializer=UserProfileService__pb2.GroupRequest.SerializeToString,
response_deserializer=UserProfileService__pb2.Group.FromString,
)
self.updateGroup = channel.unary_unary(
'/org.apache.custos.user.profile.service.UserProfileService/updateGroup',
request_serializer=UserProfileService__pb2.GroupRequest.SerializeToString,
response_deserializer=UserProfileService__pb2.Group.FromString,
)
self.deleteGroup = channel.unary_unary(
'/org.apache.custos.user.profile.service.UserProfileService/deleteGroup',
request_serializer=UserProfileService__pb2.GroupRequest.SerializeToString,
response_deserializer=UserProfileService__pb2.Group.FromString,
)
self.getGroup = channel.unary_unary(
'/org.apache.custos.user.profile.service.UserProfileService/getGroup',
request_serializer=UserProfileService__pb2.GroupRequest.SerializeToString,
response_deserializer=UserProfileService__pb2.Group.FromString,
)
self.getAllGroups = channel.unary_unary(
'/org.apache.custos.user.profile.service.UserProfileService/getAllGroups',
request_serializer=UserProfileService__pb2.GroupRequest.SerializeToString,
response_deserializer=UserProfileService__pb2.GetAllGroupsResponse.FromString,
)
self.getUserProfileAuditTrails = channel.unary_unary(
'/org.apache.custos.user.profile.service.UserProfileService/getUserProfileAuditTrails',
request_serializer=UserProfileService__pb2.GetUpdateAuditTrailRequest.SerializeToString,
response_deserializer=UserProfileService__pb2.GetUpdateAuditTrailResponse.FromString,
)
self.addUserToGroup = channel.unary_unary(
'/org.apache.custos.user.profile.service.UserProfileService/addUserToGroup',
request_serializer=UserProfileService__pb2.GroupMembership.SerializeToString,
response_deserializer=UserProfileService__pb2.Status.FromString,
)
self.removeUserFromGroup = channel.unary_unary(
'/org.apache.custos.user.profile.service.UserProfileService/removeUserFromGroup',
request_serializer=UserProfileService__pb2.GroupMembership.SerializeToString,
response_deserializer=UserProfileService__pb2.Status.FromString,
)
self.addChildGroupToParentGroup = channel.unary_unary(
'/org.apache.custos.user.profile.service.UserProfileService/addChildGroupToParentGroup',
request_serializer=UserProfileService__pb2.GroupToGroupMembership.SerializeToString,
response_deserializer=UserProfileService__pb2.Status.FromString,
)
self.removeChildGroupFromParentGroup = channel.unary_unary(
'/org.apache.custos.user.profile.service.UserProfileService/removeChildGroupFromParentGroup',
request_serializer=UserProfileService__pb2.GroupToGroupMembership.SerializeToString,
response_deserializer=UserProfileService__pb2.Status.FromString,
)
self.getAllGroupsOfUser = channel.unary_unary(
'/org.apache.custos.user.profile.service.UserProfileService/getAllGroupsOfUser',
request_serializer=UserProfileService__pb2.UserProfileRequest.SerializeToString,
response_deserializer=UserProfileService__pb2.GetAllGroupsResponse.FromString,
)
self.getAllParentGroupsOfGroup = channel.unary_unary(
'/org.apache.custos.user.profile.service.UserProfileService/getAllParentGroupsOfGroup',
request_serializer=UserProfileService__pb2.GroupRequest.SerializeToString,
response_deserializer=UserProfileService__pb2.GetAllGroupsResponse.FromString,
)
self.addUserGroupMembershipType = channel.unary_unary(
'/org.apache.custos.user.profile.service.UserProfileService/addUserGroupMembershipType',
request_serializer=UserProfileService__pb2.UserGroupMembershipTypeRequest.SerializeToString,
response_deserializer=UserProfileService__pb2.Status.FromString,
)
self.removeUserGroupMembershipType = channel.unary_unary(
'/org.apache.custos.user.profile.service.UserProfileService/removeUserGroupMembershipType',
request_serializer=UserProfileService__pb2.UserGroupMembershipTypeRequest.SerializeToString,
response_deserializer=UserProfileService__pb2.Status.FromString,
)
self.getAllChildUsers = channel.unary_unary(
'/org.apache.custos.user.profile.service.UserProfileService/getAllChildUsers',
request_serializer=UserProfileService__pb2.GroupRequest.SerializeToString,
response_deserializer=UserProfileService__pb2.GetAllUserProfilesResponse.FromString,
)
self.getAllChildGroups = channel.unary_unary(
'/org.apache.custos.user.profile.service.UserProfileService/getAllChildGroups',
request_serializer=UserProfileService__pb2.GroupRequest.SerializeToString,
response_deserializer=UserProfileService__pb2.GetAllGroupsResponse.FromString,
)
self.changeUserMembershipType = channel.unary_unary(
'/org.apache.custos.user.profile.service.UserProfileService/changeUserMembershipType',
request_serializer=UserProfileService__pb2.GroupMembership.SerializeToString,
response_deserializer=UserProfileService__pb2.Status.FromString,
)
self.hasAccess = channel.unary_unary(
'/org.apache.custos.user.profile.service.UserProfileService/hasAccess',
request_serializer=UserProfileService__pb2.GroupMembership.SerializeToString,
response_deserializer=UserProfileService__pb2.Status.FromString,
)