certificate.proto 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. syntax = "proto3";
  2. package cloudflareApi.cache.Certificate;
  3. option go_package = "./cloudflareApi/certificate";
  4. option java_multiple_files = true;
  5. option java_package = "io.grpc.cloudflare.certificate";
  6. option java_outer_classname = "certificateProto";
  7. service CertificateCloudflare {
  8. // Sends a greeting
  9. rpc CreateCertificate (CreateCertificateRequestCloudflare) returns (CreateCertificateReplyCloudflare) {}
  10. rpc DeleteCertificate (DeleteCertificateRequestCloudflare) returns (DeleteCertificateReplyCloudflare) {}
  11. rpc EditCertificate (EditCertificateRequestCloudflare) returns (EditCertificateReplyCloudflare) {}
  12. rpc UniversalCertificate(UniversalCertificateRequestCloudflare) returns(UniversalCertificateReplyCloudflare) {}
  13. }
  14. message CreateCertificateRequestCloudflare {
  15. string apiKey = 1;
  16. string apiEmail = 2;
  17. string zoneName = 3;
  18. string certificate = 4;
  19. string privateKey = 5;
  20. }
  21. message DeleteCertificateRequestCloudflare {
  22. string apiKey = 1;
  23. string apiEmail = 2;
  24. string zoneName = 3;
  25. string certificateId = 4;
  26. }
  27. message EditCertificateRequestCloudflare {
  28. string apiKey = 1;
  29. string apiEmail = 2;
  30. string zoneName = 3;
  31. string certificateId = 4;
  32. string certificate = 5;
  33. string privateKey = 6;
  34. string bundleMethod = 7;
  35. bool noSni = 8;
  36. }
  37. message UniversalCertificateRequestCloudflare {
  38. string apiKey = 1;
  39. string apiEmail = 2;
  40. string zoneName = 3;
  41. bool enable = 4;
  42. }
  43. message CreateCertificateReplyCloudflare{
  44. bool success = 1;
  45. string id = 2;
  46. }
  47. message DeleteCertificateReplyCloudflare{
  48. bool success = 1;
  49. string id = 2;
  50. }
  51. message EditCertificateReplyCloudflare{
  52. bool success = 1;
  53. string id = 2;
  54. }
  55. message UniversalCertificateReplyCloudflare{
  56. bool success = 1;
  57. bool enabled = 2;
  58. }