certificate.proto 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. }
  35. message UniversalCertificateRequestCloudflare {
  36. string apiKey = 1;
  37. string apiEmail = 2;
  38. string zoneName = 3;
  39. bool enable = 4;
  40. }
  41. message CreateCertificateReplyCloudflare{
  42. bool success = 1;
  43. string id = 2;
  44. }
  45. message DeleteCertificateReplyCloudflare{
  46. bool success = 1;
  47. string id = 2;
  48. }
  49. message EditCertificateReplyCloudflare{
  50. bool success = 1;
  51. string id = 2;
  52. }
  53. message UniversalCertificateReplyCloudflare{
  54. bool success = 1;
  55. bool enabled = 2;
  56. }