# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc

from ..uac import SystemAdmin_pb2 as uac_dot_SystemAdmin__pb2


class SystemAdminServiceStub(object):
  # missing associated documentation comment in .proto file
  pass

  def __init__(self, channel):
    """Constructor.

    Args:
      channel: A grpc.Channel.
    """
    self.listSystemAdmins = channel.unary_unary(
        '/ai.verta.uac.SystemAdminService/listSystemAdmins',
        request_serializer=uac_dot_SystemAdmin__pb2.ListSystemAdmins.SerializeToString,
        response_deserializer=uac_dot_SystemAdmin__pb2.ListSystemAdmins.Response.FromString,
        )
    self.addSystemAdmin = channel.unary_unary(
        '/ai.verta.uac.SystemAdminService/addSystemAdmin',
        request_serializer=uac_dot_SystemAdmin__pb2.AddSystemAdmin.SerializeToString,
        response_deserializer=uac_dot_SystemAdmin__pb2.AddSystemAdmin.Response.FromString,
        )
    self.removeSystemAdmin = channel.unary_unary(
        '/ai.verta.uac.SystemAdminService/removeSystemAdmin',
        request_serializer=uac_dot_SystemAdmin__pb2.RemoveSystemAdmin.SerializeToString,
        response_deserializer=uac_dot_SystemAdmin__pb2.RemoveSystemAdmin.Response.FromString,
        )
    self.createOrUpdatePypiConfiguration = channel.unary_unary(
        '/ai.verta.uac.SystemAdminService/createOrUpdatePypiConfiguration',
        request_serializer=uac_dot_SystemAdmin__pb2.PypiConfiguration.SerializeToString,
        response_deserializer=uac_dot_SystemAdmin__pb2.PypiConfiguration.FromString,
        )
    self.deletePypiConfiguration = channel.unary_unary(
        '/ai.verta.uac.SystemAdminService/deletePypiConfiguration',
        request_serializer=uac_dot_SystemAdmin__pb2.DeletePypiConfiguration.SerializeToString,
        response_deserializer=uac_dot_SystemAdmin__pb2.DeletePypiConfiguration.Response.FromString,
        )
    self.listPypiConfiguration = channel.unary_unary(
        '/ai.verta.uac.SystemAdminService/listPypiConfiguration',
        request_serializer=uac_dot_SystemAdmin__pb2.ListPypiConfiguration.SerializeToString,
        response_deserializer=uac_dot_SystemAdmin__pb2.ListPypiConfiguration.Response.FromString,
        )
    self.enablePypiConfiguration = channel.unary_unary(
        '/ai.verta.uac.SystemAdminService/enablePypiConfiguration',
        request_serializer=uac_dot_SystemAdmin__pb2.EnablePypiConfiguration.SerializeToString,
        response_deserializer=uac_dot_SystemAdmin__pb2.EnablePypiConfiguration.Response.FromString,
        )
    self.createOrUpdateKafkaConfiguration = channel.unary_unary(
        '/ai.verta.uac.SystemAdminService/createOrUpdateKafkaConfiguration',
        request_serializer=uac_dot_SystemAdmin__pb2.KafkaConfiguration.SerializeToString,
        response_deserializer=uac_dot_SystemAdmin__pb2.KafkaConfiguration.FromString,
        )
    self.deleteKafkaConfiguration = channel.unary_unary(
        '/ai.verta.uac.SystemAdminService/deleteKafkaConfiguration',
        request_serializer=uac_dot_SystemAdmin__pb2.DeleteKafkaConfiguration.SerializeToString,
        response_deserializer=uac_dot_SystemAdmin__pb2.DeleteKafkaConfiguration.Response.FromString,
        )
    self.listKafkaConfiguration = channel.unary_unary(
        '/ai.verta.uac.SystemAdminService/listKafkaConfiguration',
        request_serializer=uac_dot_SystemAdmin__pb2.ListKafkaConfiguration.SerializeToString,
        response_deserializer=uac_dot_SystemAdmin__pb2.ListKafkaConfiguration.Response.FromString,
        )
    self.enableKafkaConfiguration = channel.unary_unary(
        '/ai.verta.uac.SystemAdminService/enableKafkaConfiguration',
        request_serializer=uac_dot_SystemAdmin__pb2.EnableKafkaConfiguration.SerializeToString,
        response_deserializer=uac_dot_SystemAdmin__pb2.EnableKafkaConfiguration.Response.FromString,
        )


class SystemAdminServiceServicer(object):
  # missing associated documentation comment in .proto file
  pass

  def listSystemAdmins(self, request, context):
    """List system admins
    Only available for system admins themselves
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def addSystemAdmin(self, request, context):
    """Adds the given user to the list of system administrators
    Only available for system admins themselves
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def removeSystemAdmin(self, request, context):
    """Removes the given user from the list of system administrators
    The current user can never be removed
    The root user (defined by email via config) can never be removed
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def createOrUpdatePypiConfiguration(self, request, context):
    # missing associated documentation comment in .proto file
    pass
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def deletePypiConfiguration(self, request, context):
    # missing associated documentation comment in .proto file
    pass
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def listPypiConfiguration(self, request, context):
    # missing associated documentation comment in .proto file
    pass
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def enablePypiConfiguration(self, request, context):
    # missing associated documentation comment in .proto file
    pass
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def createOrUpdateKafkaConfiguration(self, request, context):
    # missing associated documentation comment in .proto file
    pass
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def deleteKafkaConfiguration(self, request, context):
    # missing associated documentation comment in .proto file
    pass
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def listKafkaConfiguration(self, request, context):
    # missing associated documentation comment in .proto file
    pass
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def enableKafkaConfiguration(self, request, context):
    # missing associated documentation comment in .proto file
    pass
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')


def add_SystemAdminServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'listSystemAdmins': grpc.unary_unary_rpc_method_handler(
          servicer.listSystemAdmins,
          request_deserializer=uac_dot_SystemAdmin__pb2.ListSystemAdmins.FromString,
          response_serializer=uac_dot_SystemAdmin__pb2.ListSystemAdmins.Response.SerializeToString,
      ),
      'addSystemAdmin': grpc.unary_unary_rpc_method_handler(
          servicer.addSystemAdmin,
          request_deserializer=uac_dot_SystemAdmin__pb2.AddSystemAdmin.FromString,
          response_serializer=uac_dot_SystemAdmin__pb2.AddSystemAdmin.Response.SerializeToString,
      ),
      'removeSystemAdmin': grpc.unary_unary_rpc_method_handler(
          servicer.removeSystemAdmin,
          request_deserializer=uac_dot_SystemAdmin__pb2.RemoveSystemAdmin.FromString,
          response_serializer=uac_dot_SystemAdmin__pb2.RemoveSystemAdmin.Response.SerializeToString,
      ),
      'createOrUpdatePypiConfiguration': grpc.unary_unary_rpc_method_handler(
          servicer.createOrUpdatePypiConfiguration,
          request_deserializer=uac_dot_SystemAdmin__pb2.PypiConfiguration.FromString,
          response_serializer=uac_dot_SystemAdmin__pb2.PypiConfiguration.SerializeToString,
      ),
      'deletePypiConfiguration': grpc.unary_unary_rpc_method_handler(
          servicer.deletePypiConfiguration,
          request_deserializer=uac_dot_SystemAdmin__pb2.DeletePypiConfiguration.FromString,
          response_serializer=uac_dot_SystemAdmin__pb2.DeletePypiConfiguration.Response.SerializeToString,
      ),
      'listPypiConfiguration': grpc.unary_unary_rpc_method_handler(
          servicer.listPypiConfiguration,
          request_deserializer=uac_dot_SystemAdmin__pb2.ListPypiConfiguration.FromString,
          response_serializer=uac_dot_SystemAdmin__pb2.ListPypiConfiguration.Response.SerializeToString,
      ),
      'enablePypiConfiguration': grpc.unary_unary_rpc_method_handler(
          servicer.enablePypiConfiguration,
          request_deserializer=uac_dot_SystemAdmin__pb2.EnablePypiConfiguration.FromString,
          response_serializer=uac_dot_SystemAdmin__pb2.EnablePypiConfiguration.Response.SerializeToString,
      ),
      'createOrUpdateKafkaConfiguration': grpc.unary_unary_rpc_method_handler(
          servicer.createOrUpdateKafkaConfiguration,
          request_deserializer=uac_dot_SystemAdmin__pb2.KafkaConfiguration.FromString,
          response_serializer=uac_dot_SystemAdmin__pb2.KafkaConfiguration.SerializeToString,
      ),
      'deleteKafkaConfiguration': grpc.unary_unary_rpc_method_handler(
          servicer.deleteKafkaConfiguration,
          request_deserializer=uac_dot_SystemAdmin__pb2.DeleteKafkaConfiguration.FromString,
          response_serializer=uac_dot_SystemAdmin__pb2.DeleteKafkaConfiguration.Response.SerializeToString,
      ),
      'listKafkaConfiguration': grpc.unary_unary_rpc_method_handler(
          servicer.listKafkaConfiguration,
          request_deserializer=uac_dot_SystemAdmin__pb2.ListKafkaConfiguration.FromString,
          response_serializer=uac_dot_SystemAdmin__pb2.ListKafkaConfiguration.Response.SerializeToString,
      ),
      'enableKafkaConfiguration': grpc.unary_unary_rpc_method_handler(
          servicer.enableKafkaConfiguration,
          request_deserializer=uac_dot_SystemAdmin__pb2.EnableKafkaConfiguration.FromString,
          response_serializer=uac_dot_SystemAdmin__pb2.EnableKafkaConfiguration.Response.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'ai.verta.uac.SystemAdminService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
