# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc

from nebius.api.nebius.maintenance.v1alpha1 import maintenance_pb2 as nebius_dot_maintenance_dot_v1alpha1_dot_maintenance__pb2
from nebius.api.nebius.maintenance.v1alpha1 import maintenance_service_pb2 as nebius_dot_maintenance_dot_v1alpha1_dot_maintenance__service__pb2


class MaintenanceServiceStub(object):
    """A set of methods for managing maintenance operations.
    """

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

        Args:
            channel: A grpc.Channel.
        """
        self.Get = channel.unary_unary(
                '/nebius.maintenance.v1alpha1.MaintenanceService/Get',
                request_serializer=nebius_dot_maintenance_dot_v1alpha1_dot_maintenance__service__pb2.GetMaintenanceRequest.SerializeToString,
                response_deserializer=nebius_dot_maintenance_dot_v1alpha1_dot_maintenance__pb2.Maintenance.FromString,
                )
        self.List = channel.unary_unary(
                '/nebius.maintenance.v1alpha1.MaintenanceService/List',
                request_serializer=nebius_dot_maintenance_dot_v1alpha1_dot_maintenance__service__pb2.ListMaintenancesRequest.SerializeToString,
                response_deserializer=nebius_dot_maintenance_dot_v1alpha1_dot_maintenance__service__pb2.ListMaintenancesResponse.FromString,
                )
        self.Update = channel.unary_unary(
                '/nebius.maintenance.v1alpha1.MaintenanceService/Update',
                request_serializer=nebius_dot_maintenance_dot_v1alpha1_dot_maintenance__service__pb2.UpdateMaintenanceRequest.SerializeToString,
                response_deserializer=nebius_dot_maintenance_dot_v1alpha1_dot_maintenance__service__pb2.UpdateMaintenanceResponse.FromString,
                )


class MaintenanceServiceServicer(object):
    """A set of methods for managing maintenance operations.
    """

    def Get(self, request, context):
        """Returns the specified maintenance operation.
        To get the list of upcoming and past maintenance operations, make a [List] request.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def List(self, request, context):
        """Retrieves the list of maintenance operations that belong
        to the specified container.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def Update(self, request, context):
        """Updates the specified maintenance operation.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')


def add_MaintenanceServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'Get': grpc.unary_unary_rpc_method_handler(
                    servicer.Get,
                    request_deserializer=nebius_dot_maintenance_dot_v1alpha1_dot_maintenance__service__pb2.GetMaintenanceRequest.FromString,
                    response_serializer=nebius_dot_maintenance_dot_v1alpha1_dot_maintenance__pb2.Maintenance.SerializeToString,
            ),
            'List': grpc.unary_unary_rpc_method_handler(
                    servicer.List,
                    request_deserializer=nebius_dot_maintenance_dot_v1alpha1_dot_maintenance__service__pb2.ListMaintenancesRequest.FromString,
                    response_serializer=nebius_dot_maintenance_dot_v1alpha1_dot_maintenance__service__pb2.ListMaintenancesResponse.SerializeToString,
            ),
            'Update': grpc.unary_unary_rpc_method_handler(
                    servicer.Update,
                    request_deserializer=nebius_dot_maintenance_dot_v1alpha1_dot_maintenance__service__pb2.UpdateMaintenanceRequest.FromString,
                    response_serializer=nebius_dot_maintenance_dot_v1alpha1_dot_maintenance__service__pb2.UpdateMaintenanceResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'nebius.maintenance.v1alpha1.MaintenanceService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


 # This class is part of an EXPERIMENTAL API.
class MaintenanceService(object):
    """A set of methods for managing maintenance operations.
    """

    @staticmethod
    def Get(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/nebius.maintenance.v1alpha1.MaintenanceService/Get',
            nebius_dot_maintenance_dot_v1alpha1_dot_maintenance__service__pb2.GetMaintenanceRequest.SerializeToString,
            nebius_dot_maintenance_dot_v1alpha1_dot_maintenance__pb2.Maintenance.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def List(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/nebius.maintenance.v1alpha1.MaintenanceService/List',
            nebius_dot_maintenance_dot_v1alpha1_dot_maintenance__service__pb2.ListMaintenancesRequest.SerializeToString,
            nebius_dot_maintenance_dot_v1alpha1_dot_maintenance__service__pb2.ListMaintenancesResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def Update(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/nebius.maintenance.v1alpha1.MaintenanceService/Update',
            nebius_dot_maintenance_dot_v1alpha1_dot_maintenance__service__pb2.UpdateMaintenanceRequest.SerializeToString,
            nebius_dot_maintenance_dot_v1alpha1_dot_maintenance__service__pb2.UpdateMaintenanceResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
