llnw.proto 1.3 KB

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