llnw.proto 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. syntax = "proto3";
  2. package llnwApi.Delivery;
  3. service DeliveryService {
  4. rpc ListDelivery(ShortNameRequest)returns(DeliveryList);
  5. rpc ValidateDelivery(DeliveryRequest)returns(DeliveryEntity);
  6. rpc CreateDelivery(DeliveryRequest)returns(DeliveryEntity);
  7. rpc GetDelivery(IdRequest)returns(DeliveryEntity);
  8. rpc UpdateDelivery(DeliveryRequest)returns(DeliveryEntity);
  9. rpc DeleteDelivery(IdRequest)returns(DeliveryEntity);
  10. }
  11. message Base{
  12. string username = 1;
  13. string key = 2;
  14. }
  15. message ShortNameRequest{
  16. Base base = 1;
  17. string shortName = 2;
  18. }
  19. message DeliveryRequest{
  20. Base base = 1;
  21. DeliveryEntity delivery = 2;
  22. }
  23. message IdRequest{
  24. Base base = 1;
  25. string id = 2;
  26. }
  27. message ProtocolSetOptions{
  28. string name = 1;
  29. repeated string parameters = 2;
  30. string source = 3;
  31. }
  32. message ProtocolSet{
  33. string sourceProtocol = 1;
  34. string publishedProtocol = 2;
  35. repeated ProtocolSetOptions options = 3;
  36. }
  37. message DeliveryEntity{
  38. string uuid = 1;
  39. bool isEnabled = 2;
  40. string shortname = 3;
  41. string status = 4;
  42. string sourceHostname = 5;
  43. string publishedHostname = 6;
  44. string sourceUrlPath = 7;
  45. string publishedUrlPath = 8;
  46. repeated ProtocolSet protocolSets = 9;
  47. }
  48. message DeliveryList{
  49. repeated DeliveryEntity deliveries = 1;
  50. }