certificate.proto 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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 CreateCertificateV2 (CreateCertificateRequestCloudflareV2) returns (CreateCertificateReplyCloudflare) {}
  11. rpc DeleteCertificate (DeleteCertificateRequestCloudflare) returns (DeleteCertificateReplyCloudflare) {}
  12. rpc EditCertificate (EditCertificateRequestCloudflare) returns (EditCertificateReplyCloudflare) {}
  13. rpc EditCertificateV2 (EditCertificateRequestCloudflareV2) returns (EditCertificateReplyCloudflare) {}
  14. rpc UniversalCertificate(UniversalCertificateRequestCloudflare) returns(UniversalCertificateReplyCloudflare) {}
  15. }
  16. message CreateCertificateRequestCloudflare {
  17. string apiKey = 1;
  18. string apiEmail = 2;
  19. string zoneName = 3;
  20. string certificate = 4;
  21. string privateKey = 5;
  22. }
  23. message CreateCertificateRequestCloudflareV2 {
  24. string apiKey = 1;
  25. string apiEmail = 2;
  26. string zoneName = 3;
  27. string certificate = 4;
  28. string privateKey = 5;
  29. string bundleMethod = 6;
  30. bool noSni = 7;
  31. }
  32. message DeleteCertificateRequestCloudflare {
  33. string apiKey = 1;
  34. string apiEmail = 2;
  35. string zoneName = 3;
  36. string certificateId = 4;
  37. }
  38. message EditCertificateRequestCloudflare {
  39. string apiKey = 1;
  40. string apiEmail = 2;
  41. string zoneName = 3;
  42. string certificateId = 4;
  43. string certificate = 5;
  44. string privateKey = 6;
  45. }
  46. message EditCertificateRequestCloudflareV2 {
  47. string apiKey = 1;
  48. string apiEmail = 2;
  49. string zoneName = 3;
  50. string certificateId = 4;
  51. string certificate = 5;
  52. string privateKey = 6;
  53. string bundleMethod = 7;
  54. bool noSni = 8;
  55. }
  56. message UniversalCertificateRequestCloudflare {
  57. string apiKey = 1;
  58. string apiEmail = 2;
  59. string zoneName = 3;
  60. bool enable = 4;
  61. }
  62. message CreateCertificateReplyCloudflare{
  63. bool success = 1;
  64. string id = 2;
  65. }
  66. message DeleteCertificateReplyCloudflare{
  67. bool success = 1;
  68. string id = 2;
  69. }
  70. message EditCertificateReplyCloudflare{
  71. bool success = 1;
  72. string id = 2;
  73. }
  74. message UniversalCertificateReplyCloudflare{
  75. bool success = 1;
  76. bool enabled = 2;
  77. }