llnwCERT.proto 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. }
  12. message Base{
  13. string username = 1;
  14. string key = 2;
  15. }
  16. message CreateSSLCertRequest{
  17. Base base = 1;
  18. string shortname = 2;
  19. string cert = 3;
  20. string certKey = 4;
  21. string certName = 5;
  22. }
  23. message PublishSSLCertRequest{
  24. Base base = 1;
  25. string uuid = 2;
  26. }
  27. message UpdateSSLCertRequest{
  28. Base base = 1;
  29. string shortname = 2;
  30. string uuid = 3;
  31. string cert = 4;
  32. string certKey = 5;
  33. string certName = 6;
  34. }
  35. message DeleteSSLCertRequest{
  36. Base base = 1;
  37. string uuid = 2;
  38. }
  39. message WithdrawSSLCertRequest{
  40. Base base = 1;
  41. string uuid = 2;
  42. }
  43. message CreateSSLCertResponse{
  44. string uuid = 1;
  45. }
  46. message PublishSSLCertResponse{
  47. bool isSuccess = 1;
  48. }
  49. message UpdateSSLCertResponse{
  50. bool isSuccess = 1;
  51. }
  52. message DeleteSSLCertResponse{
  53. bool isSuccess = 1;
  54. }
  55. message WithdrawSSLCertResponse{
  56. bool isSuccess = 1;
  57. }