|
@@ -0,0 +1,132 @@
|
|
|
+# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
|
+"""Client and server classes corresponding to protobuf-defined services."""
|
|
|
+import grpc
|
|
|
+
|
|
|
+import llnwCERT_pb2 as llnwCERT__pb2
|
|
|
+
|
|
|
+
|
|
|
+class CertDeliveryServiceStub(object):
|
|
|
+ """Missing associated documentation comment in .proto file."""
|
|
|
+
|
|
|
+ def __init__(self, channel):
|
|
|
+ """Constructor.
|
|
|
+
|
|
|
+ Args:
|
|
|
+ channel: A grpc.Channel.
|
|
|
+ """
|
|
|
+ self.CreateSSLCert = channel.unary_unary(
|
|
|
+ '/llnwApi.Delivery.CERT.CertDeliveryService/CreateSSLCert',
|
|
|
+ request_serializer=llnwCERT__pb2.CreateSSLCertRequest.SerializeToString,
|
|
|
+ response_deserializer=llnwCERT__pb2.CreateSSLCertResponse.FromString,
|
|
|
+ )
|
|
|
+ self.UpdateSSLCert = channel.unary_unary(
|
|
|
+ '/llnwApi.Delivery.CERT.CertDeliveryService/UpdateSSLCert',
|
|
|
+ request_serializer=llnwCERT__pb2.UpdateSSLCertRequest.SerializeToString,
|
|
|
+ response_deserializer=llnwCERT__pb2.UpdateSSLCertResponse.FromString,
|
|
|
+ )
|
|
|
+ self.DeleteSSLCert = channel.unary_unary(
|
|
|
+ '/llnwApi.Delivery.CERT.CertDeliveryService/DeleteSSLCert',
|
|
|
+ request_serializer=llnwCERT__pb2.DeleteSSLCertRequest.SerializeToString,
|
|
|
+ response_deserializer=llnwCERT__pb2.DeleteSSLCertResponse.FromString,
|
|
|
+ )
|
|
|
+
|
|
|
+
|
|
|
+class CertDeliveryServiceServicer(object):
|
|
|
+ """Missing associated documentation comment in .proto file."""
|
|
|
+
|
|
|
+ def CreateSSLCert(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 UpdateSSLCert(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 DeleteSSLCert(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_CertDeliveryServiceServicer_to_server(servicer, server):
|
|
|
+ rpc_method_handlers = {
|
|
|
+ 'CreateSSLCert': grpc.unary_unary_rpc_method_handler(
|
|
|
+ servicer.CreateSSLCert,
|
|
|
+ request_deserializer=llnwCERT__pb2.CreateSSLCertRequest.FromString,
|
|
|
+ response_serializer=llnwCERT__pb2.CreateSSLCertResponse.SerializeToString,
|
|
|
+ ),
|
|
|
+ 'UpdateSSLCert': grpc.unary_unary_rpc_method_handler(
|
|
|
+ servicer.UpdateSSLCert,
|
|
|
+ request_deserializer=llnwCERT__pb2.UpdateSSLCertRequest.FromString,
|
|
|
+ response_serializer=llnwCERT__pb2.UpdateSSLCertResponse.SerializeToString,
|
|
|
+ ),
|
|
|
+ 'DeleteSSLCert': grpc.unary_unary_rpc_method_handler(
|
|
|
+ servicer.DeleteSSLCert,
|
|
|
+ request_deserializer=llnwCERT__pb2.DeleteSSLCertRequest.FromString,
|
|
|
+ response_serializer=llnwCERT__pb2.DeleteSSLCertResponse.SerializeToString,
|
|
|
+ ),
|
|
|
+ }
|
|
|
+ generic_handler = grpc.method_handlers_generic_handler(
|
|
|
+ 'llnwApi.Delivery.CERT.CertDeliveryService', rpc_method_handlers)
|
|
|
+ server.add_generic_rpc_handlers((generic_handler,))
|
|
|
+
|
|
|
+
|
|
|
+ # This class is part of an EXPERIMENTAL API.
|
|
|
+class CertDeliveryService(object):
|
|
|
+ """Missing associated documentation comment in .proto file."""
|
|
|
+
|
|
|
+ @staticmethod
|
|
|
+ def CreateSSLCert(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, '/llnwApi.Delivery.CERT.CertDeliveryService/CreateSSLCert',
|
|
|
+ llnwCERT__pb2.CreateSSLCertRequest.SerializeToString,
|
|
|
+ llnwCERT__pb2.CreateSSLCertResponse.FromString,
|
|
|
+ options, channel_credentials,
|
|
|
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
|
+
|
|
|
+ @staticmethod
|
|
|
+ def UpdateSSLCert(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, '/llnwApi.Delivery.CERT.CertDeliveryService/UpdateSSLCert',
|
|
|
+ llnwCERT__pb2.UpdateSSLCertRequest.SerializeToString,
|
|
|
+ llnwCERT__pb2.UpdateSSLCertResponse.FromString,
|
|
|
+ options, channel_credentials,
|
|
|
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
|
+
|
|
|
+ @staticmethod
|
|
|
+ def DeleteSSLCert(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, '/llnwApi.Delivery.CERT.CertDeliveryService/DeleteSSLCert',
|
|
|
+ llnwCERT__pb2.DeleteSSLCertRequest.SerializeToString,
|
|
|
+ llnwCERT__pb2.DeleteSSLCertResponse.FromString,
|
|
|
+ options, channel_credentials,
|
|
|
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|