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

from kessel.inventory.v1beta1.resources import k8s_policies_service_pb2 as kessel_dot_inventory_dot_v1beta1_dot_resources_dot_k8s__policies__service__pb2


class KesselK8sPolicyServiceStub(object):
    """Missing associated documentation comment in .proto file."""

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

        Args:
            channel: A grpc.Channel.
        """
        self.CreateK8sPolicy = channel.unary_unary(
                '/kessel.inventory.v1beta1.resources.KesselK8sPolicyService/CreateK8sPolicy',
                request_serializer=kessel_dot_inventory_dot_v1beta1_dot_resources_dot_k8s__policies__service__pb2.CreateK8sPolicyRequest.SerializeToString,
                response_deserializer=kessel_dot_inventory_dot_v1beta1_dot_resources_dot_k8s__policies__service__pb2.CreateK8sPolicyResponse.FromString,
                _registered_method=True)
        self.UpdateK8sPolicy = channel.unary_unary(
                '/kessel.inventory.v1beta1.resources.KesselK8sPolicyService/UpdateK8sPolicy',
                request_serializer=kessel_dot_inventory_dot_v1beta1_dot_resources_dot_k8s__policies__service__pb2.UpdateK8sPolicyRequest.SerializeToString,
                response_deserializer=kessel_dot_inventory_dot_v1beta1_dot_resources_dot_k8s__policies__service__pb2.UpdateK8sPolicyResponse.FromString,
                _registered_method=True)
        self.DeleteK8sPolicy = channel.unary_unary(
                '/kessel.inventory.v1beta1.resources.KesselK8sPolicyService/DeleteK8sPolicy',
                request_serializer=kessel_dot_inventory_dot_v1beta1_dot_resources_dot_k8s__policies__service__pb2.DeleteK8sPolicyRequest.SerializeToString,
                response_deserializer=kessel_dot_inventory_dot_v1beta1_dot_resources_dot_k8s__policies__service__pb2.DeleteK8sPolicyResponse.FromString,
                _registered_method=True)


class KesselK8sPolicyServiceServicer(object):
    """Missing associated documentation comment in .proto file."""

    def CreateK8sPolicy(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def UpdateK8sPolicy(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def DeleteK8sPolicy(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')


def add_KesselK8sPolicyServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'CreateK8sPolicy': grpc.unary_unary_rpc_method_handler(
                    servicer.CreateK8sPolicy,
                    request_deserializer=kessel_dot_inventory_dot_v1beta1_dot_resources_dot_k8s__policies__service__pb2.CreateK8sPolicyRequest.FromString,
                    response_serializer=kessel_dot_inventory_dot_v1beta1_dot_resources_dot_k8s__policies__service__pb2.CreateK8sPolicyResponse.SerializeToString,
            ),
            'UpdateK8sPolicy': grpc.unary_unary_rpc_method_handler(
                    servicer.UpdateK8sPolicy,
                    request_deserializer=kessel_dot_inventory_dot_v1beta1_dot_resources_dot_k8s__policies__service__pb2.UpdateK8sPolicyRequest.FromString,
                    response_serializer=kessel_dot_inventory_dot_v1beta1_dot_resources_dot_k8s__policies__service__pb2.UpdateK8sPolicyResponse.SerializeToString,
            ),
            'DeleteK8sPolicy': grpc.unary_unary_rpc_method_handler(
                    servicer.DeleteK8sPolicy,
                    request_deserializer=kessel_dot_inventory_dot_v1beta1_dot_resources_dot_k8s__policies__service__pb2.DeleteK8sPolicyRequest.FromString,
                    response_serializer=kessel_dot_inventory_dot_v1beta1_dot_resources_dot_k8s__policies__service__pb2.DeleteK8sPolicyResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'kessel.inventory.v1beta1.resources.KesselK8sPolicyService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))
    server.add_registered_method_handlers('kessel.inventory.v1beta1.resources.KesselK8sPolicyService', rpc_method_handlers)


 # This class is part of an EXPERIMENTAL API.
class KesselK8sPolicyService(object):
    """Missing associated documentation comment in .proto file."""

    @staticmethod
    def CreateK8sPolicy(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,
            '/kessel.inventory.v1beta1.resources.KesselK8sPolicyService/CreateK8sPolicy',
            kessel_dot_inventory_dot_v1beta1_dot_resources_dot_k8s__policies__service__pb2.CreateK8sPolicyRequest.SerializeToString,
            kessel_dot_inventory_dot_v1beta1_dot_resources_dot_k8s__policies__service__pb2.CreateK8sPolicyResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def UpdateK8sPolicy(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,
            '/kessel.inventory.v1beta1.resources.KesselK8sPolicyService/UpdateK8sPolicy',
            kessel_dot_inventory_dot_v1beta1_dot_resources_dot_k8s__policies__service__pb2.UpdateK8sPolicyRequest.SerializeToString,
            kessel_dot_inventory_dot_v1beta1_dot_resources_dot_k8s__policies__service__pb2.UpdateK8sPolicyResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def DeleteK8sPolicy(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,
            '/kessel.inventory.v1beta1.resources.KesselK8sPolicyService/DeleteK8sPolicy',
            kessel_dot_inventory_dot_v1beta1_dot_resources_dot_k8s__policies__service__pb2.DeleteK8sPolicyRequest.SerializeToString,
            kessel_dot_inventory_dot_v1beta1_dot_resources_dot_k8s__policies__service__pb2.DeleteK8sPolicyResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)
