|
@@ -14,17 +14,72 @@ class DeliveryServiceStub(object):
|
|
|
Args:
|
|
|
channel: A grpc.Channel.
|
|
|
"""
|
|
|
- self.ListDeliveryServiceInstances = channel.unary_unary(
|
|
|
- '/llnwApi.Delivery.DeliveryService/ListDeliveryServiceInstances',
|
|
|
- request_serializer=llnw__pb2.ShortName.SerializeToString,
|
|
|
+ self.ListDelivery = channel.unary_unary(
|
|
|
+ '/llnwApi.Delivery.DeliveryService/ListDelivery',
|
|
|
+ request_serializer=llnw__pb2.ShortNameRequest.SerializeToString,
|
|
|
response_deserializer=llnw__pb2.DeliveryList.FromString,
|
|
|
)
|
|
|
+ self.ValidateDelivery = channel.unary_unary(
|
|
|
+ '/llnwApi.Delivery.DeliveryService/ValidateDelivery',
|
|
|
+ request_serializer=llnw__pb2.DeliveryRequest.SerializeToString,
|
|
|
+ response_deserializer=llnw__pb2.DeliveryEntity.FromString,
|
|
|
+ )
|
|
|
+ self.CreateDelivery = channel.unary_unary(
|
|
|
+ '/llnwApi.Delivery.DeliveryService/CreateDelivery',
|
|
|
+ request_serializer=llnw__pb2.DeliveryRequest.SerializeToString,
|
|
|
+ response_deserializer=llnw__pb2.DeliveryEntity.FromString,
|
|
|
+ )
|
|
|
+ self.GetDelivery = channel.unary_unary(
|
|
|
+ '/llnwApi.Delivery.DeliveryService/GetDelivery',
|
|
|
+ request_serializer=llnw__pb2.IdRequest.SerializeToString,
|
|
|
+ response_deserializer=llnw__pb2.DeliveryEntity.FromString,
|
|
|
+ )
|
|
|
+ self.UpdateDelivery = channel.unary_unary(
|
|
|
+ '/llnwApi.Delivery.DeliveryService/UpdateDelivery',
|
|
|
+ request_serializer=llnw__pb2.DeliveryRequest.SerializeToString,
|
|
|
+ response_deserializer=llnw__pb2.DeliveryEntity.FromString,
|
|
|
+ )
|
|
|
+ self.DeleteDelivery = channel.unary_unary(
|
|
|
+ '/llnwApi.Delivery.DeliveryService/DeleteDelivery',
|
|
|
+ request_serializer=llnw__pb2.IdRequest.SerializeToString,
|
|
|
+ response_deserializer=llnw__pb2.DeliveryEntity.FromString,
|
|
|
+ )
|
|
|
|
|
|
|
|
|
class DeliveryServiceServicer(object):
|
|
|
"""Missing associated documentation comment in .proto file."""
|
|
|
|
|
|
- def ListDeliveryServiceInstances(self, request, context):
|
|
|
+ def ListDelivery(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 ValidateDelivery(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 CreateDelivery(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 GetDelivery(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 UpdateDelivery(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 DeleteDelivery(self, request, context):
|
|
|
"""Missing associated documentation comment in .proto file."""
|
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
|
context.set_details('Method not implemented!')
|
|
@@ -33,11 +88,36 @@ class DeliveryServiceServicer(object):
|
|
|
|
|
|
def add_DeliveryServiceServicer_to_server(servicer, server):
|
|
|
rpc_method_handlers = {
|
|
|
- 'ListDeliveryServiceInstances': grpc.unary_unary_rpc_method_handler(
|
|
|
- servicer.ListDeliveryServiceInstances,
|
|
|
- request_deserializer=llnw__pb2.ShortName.FromString,
|
|
|
+ 'ListDelivery': grpc.unary_unary_rpc_method_handler(
|
|
|
+ servicer.ListDelivery,
|
|
|
+ request_deserializer=llnw__pb2.ShortNameRequest.FromString,
|
|
|
response_serializer=llnw__pb2.DeliveryList.SerializeToString,
|
|
|
),
|
|
|
+ 'ValidateDelivery': grpc.unary_unary_rpc_method_handler(
|
|
|
+ servicer.ValidateDelivery,
|
|
|
+ request_deserializer=llnw__pb2.DeliveryRequest.FromString,
|
|
|
+ response_serializer=llnw__pb2.DeliveryEntity.SerializeToString,
|
|
|
+ ),
|
|
|
+ 'CreateDelivery': grpc.unary_unary_rpc_method_handler(
|
|
|
+ servicer.CreateDelivery,
|
|
|
+ request_deserializer=llnw__pb2.DeliveryRequest.FromString,
|
|
|
+ response_serializer=llnw__pb2.DeliveryEntity.SerializeToString,
|
|
|
+ ),
|
|
|
+ 'GetDelivery': grpc.unary_unary_rpc_method_handler(
|
|
|
+ servicer.GetDelivery,
|
|
|
+ request_deserializer=llnw__pb2.IdRequest.FromString,
|
|
|
+ response_serializer=llnw__pb2.DeliveryEntity.SerializeToString,
|
|
|
+ ),
|
|
|
+ 'UpdateDelivery': grpc.unary_unary_rpc_method_handler(
|
|
|
+ servicer.UpdateDelivery,
|
|
|
+ request_deserializer=llnw__pb2.DeliveryRequest.FromString,
|
|
|
+ response_serializer=llnw__pb2.DeliveryEntity.SerializeToString,
|
|
|
+ ),
|
|
|
+ 'DeleteDelivery': grpc.unary_unary_rpc_method_handler(
|
|
|
+ servicer.DeleteDelivery,
|
|
|
+ request_deserializer=llnw__pb2.IdRequest.FromString,
|
|
|
+ response_serializer=llnw__pb2.DeliveryEntity.SerializeToString,
|
|
|
+ ),
|
|
|
}
|
|
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
|
'llnwApi.Delivery.DeliveryService', rpc_method_handlers)
|
|
@@ -49,7 +129,7 @@ class DeliveryService(object):
|
|
|
"""Missing associated documentation comment in .proto file."""
|
|
|
|
|
|
@staticmethod
|
|
|
- def ListDeliveryServiceInstances(request,
|
|
|
+ def ListDelivery(request,
|
|
|
target,
|
|
|
options=(),
|
|
|
channel_credentials=None,
|
|
@@ -59,8 +139,93 @@ class DeliveryService(object):
|
|
|
wait_for_ready=None,
|
|
|
timeout=None,
|
|
|
metadata=None):
|
|
|
- return grpc.experimental.unary_unary(request, target, '/llnwApi.Delivery.DeliveryService/ListDeliveryServiceInstances',
|
|
|
- llnw__pb2.ShortName.SerializeToString,
|
|
|
+ return grpc.experimental.unary_unary(request, target, '/llnwApi.Delivery.DeliveryService/ListDelivery',
|
|
|
+ llnw__pb2.ShortNameRequest.SerializeToString,
|
|
|
llnw__pb2.DeliveryList.FromString,
|
|
|
options, channel_credentials,
|
|
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
|
+
|
|
|
+ @staticmethod
|
|
|
+ def ValidateDelivery(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.DeliveryService/ValidateDelivery',
|
|
|
+ llnw__pb2.DeliveryRequest.SerializeToString,
|
|
|
+ llnw__pb2.DeliveryEntity.FromString,
|
|
|
+ options, channel_credentials,
|
|
|
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
|
+
|
|
|
+ @staticmethod
|
|
|
+ def CreateDelivery(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.DeliveryService/CreateDelivery',
|
|
|
+ llnw__pb2.DeliveryRequest.SerializeToString,
|
|
|
+ llnw__pb2.DeliveryEntity.FromString,
|
|
|
+ options, channel_credentials,
|
|
|
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
|
+
|
|
|
+ @staticmethod
|
|
|
+ def GetDelivery(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.DeliveryService/GetDelivery',
|
|
|
+ llnw__pb2.IdRequest.SerializeToString,
|
|
|
+ llnw__pb2.DeliveryEntity.FromString,
|
|
|
+ options, channel_credentials,
|
|
|
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
|
+
|
|
|
+ @staticmethod
|
|
|
+ def UpdateDelivery(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.DeliveryService/UpdateDelivery',
|
|
|
+ llnw__pb2.DeliveryRequest.SerializeToString,
|
|
|
+ llnw__pb2.DeliveryEntity.FromString,
|
|
|
+ options, channel_credentials,
|
|
|
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
|
+
|
|
|
+ @staticmethod
|
|
|
+ def DeleteDelivery(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.DeliveryService/DeleteDelivery',
|
|
|
+ llnw__pb2.IdRequest.SerializeToString,
|
|
|
+ llnw__pb2.DeliveryEntity.FromString,
|
|
|
+ options, channel_credentials,
|
|
|
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|