llnwCERT.proto 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. syntax = "proto3";
  2. package llnwApi.Delivery.CERT;
  3. option java_multiple_files = true;
  4. option java_package = "io.grpc.llnw.delivery.CERT";
  5. service CertDeliveryService {
  6. rpc CreateSSLCert(CreateSSLCertRequest)returns(CreateSSLCertResponse){};
  7. rpc PublishSSLCert(PublishSSLCertRequest)returns(PublishSSLCertResponse){};
  8. rpc UpdateSSLCert(UpdateSSLCertRequest)returns(UpdateSSLCertResponse){};
  9. rpc DeleteSSLCert(DeleteSSLCertRequest)returns(DeleteSSLCertResponse){};
  10. rpc WithdrawSSLCert(WithdrawSSLCertRequest)returns(WithdrawSSLCertResponse){};
  11. rpc ListSSLCert(ListSSLCertRequest)returns(ListSSLCertResponse){};
  12. }
  13. message Base{
  14. string username = 1;
  15. string key = 2;
  16. }
  17. message Cert{
  18. string certName = 1;
  19. string certStatus = 2;
  20. }
  21. message CertList{
  22. repeated Cert cert = 1;
  23. }
  24. message CreateSSLCertRequest{
  25. Base base = 1;
  26. string shortname = 2;
  27. string cert = 3;
  28. string certKey = 4;
  29. string certName = 5;
  30. }
  31. message PublishSSLCertRequest{
  32. Base base = 1;
  33. string uuid = 2;
  34. }
  35. message UpdateSSLCertRequest{
  36. Base base = 1;
  37. string shortname = 2;
  38. string uuid = 3;
  39. string cert = 4;
  40. string certKey = 5;
  41. string certName = 6;
  42. }
  43. message DeleteSSLCertRequest{
  44. Base base = 1;
  45. string uuid = 2;
  46. }
  47. message WithdrawSSLCertRequest{
  48. Base base = 1;
  49. string uuid = 2;
  50. }
  51. message CreateSSLCertResponse{
  52. string uuid = 1;
  53. }
  54. message PublishSSLCertResponse{
  55. bool isSuccess = 1;
  56. }
  57. message UpdateSSLCertResponse{
  58. bool isSuccess = 1;
  59. }
  60. message DeleteSSLCertResponse{
  61. bool isSuccess = 1;
  62. }
  63. message WithdrawSSLCertResponse{
  64. bool isSuccess = 1;
  65. }
  66. message ListSSLCertRequest{
  67. Base base = 1;
  68. string shortname = 2;
  69. }
  70. message ListSSLCertResponse{
  71. CertList certList =1;
  72. }