certificate.proto 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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 ListZoneCertificates (ListZoneCertificatesRequestCloudflare) returns (ListZoneCertificatesReplyCloudflare) {}
  13. rpc EditCertificate (EditCertificateRequestCloudflare) returns (EditCertificateReplyCloudflare) {}
  14. rpc EditCertificateV2 (EditCertificateRequestCloudflareV2) returns (EditCertificateReplyCloudflare) {}
  15. rpc UniversalCertificate(UniversalCertificateRequestCloudflare) returns(UniversalCertificateReplyCloudflare) {}
  16. }
  17. message ZoneCustomSSL{
  18. string id = 1;
  19. repeated string hosts = 2;
  20. string issuer = 3;
  21. string signature = 4;
  22. string status = 5;
  23. string bundleMethod = 6;
  24. string zoneId = 7;
  25. string uploadedOn = 8;
  26. string modifiedOn = 9;
  27. string expiresOn = 10;
  28. int32 priority = 11;
  29. }
  30. message CreateCertificateRequestCloudflare {
  31. string apiKey = 1;
  32. string apiEmail = 2;
  33. string zoneName = 3;
  34. string certificate = 4;
  35. string privateKey = 5;
  36. }
  37. message CreateCertificateRequestCloudflareV2 {
  38. string apiKey = 1;
  39. string apiEmail = 2;
  40. string zoneName = 3;
  41. string certificate = 4;
  42. string privateKey = 5;
  43. string bundleMethod = 6;
  44. bool noSni = 7;
  45. }
  46. message DeleteCertificateRequestCloudflare {
  47. string apiKey = 1;
  48. string apiEmail = 2;
  49. string zoneName = 3;
  50. string certificateId = 4;
  51. }
  52. message ListZoneCertificatesRequestCloudflare {
  53. string apiKey = 1;
  54. string apiEmail = 2;
  55. string zoneId = 3;
  56. }
  57. message ListZoneCertificatesReplyCloudflare {
  58. repeated ZoneCustomSSL result = 1;
  59. bool success = 2;
  60. }
  61. message EditCertificateRequestCloudflare {
  62. string apiKey = 1;
  63. string apiEmail = 2;
  64. string zoneName = 3;
  65. string certificateId = 4;
  66. string certificate = 5;
  67. string privateKey = 6;
  68. }
  69. message EditCertificateRequestCloudflareV2 {
  70. string apiKey = 1;
  71. string apiEmail = 2;
  72. string zoneName = 3;
  73. string certificateId = 4;
  74. string certificate = 5;
  75. string privateKey = 6;
  76. string bundleMethod = 7;
  77. bool noSni = 8;
  78. }
  79. message UniversalCertificateRequestCloudflare {
  80. string apiKey = 1;
  81. string apiEmail = 2;
  82. string zoneName = 3;
  83. bool enable = 4;
  84. }
  85. message CreateCertificateReplyCloudflare{
  86. bool success = 1;
  87. string id = 2;
  88. }
  89. message DeleteCertificateReplyCloudflare{
  90. bool success = 1;
  91. string id = 2;
  92. }
  93. message EditCertificateReplyCloudflare{
  94. bool success = 1;
  95. string id = 2;
  96. }
  97. message UniversalCertificateReplyCloudflare{
  98. bool success = 1;
  99. bool enabled = 2;
  100. }