certificate.proto 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. }
  13. message CreateCertificateRequestCloudflare {
  14. string apiKey = 1;
  15. string apiEmail = 2;
  16. string zoneName = 3;
  17. string certificate = 4;
  18. string privateKey = 5;
  19. }
  20. message DeleteCertificateRequestCloudflare {
  21. string apiKey = 1;
  22. string apiEmail = 2;
  23. string zoneName = 3;
  24. string certificateId = 4;
  25. }
  26. message EditCertificateRequestCloudflare {
  27. string apiKey = 1;
  28. string apiEmail = 2;
  29. string zoneName = 3;
  30. string certificateId = 4;
  31. string certificate = 5;
  32. string privateKey = 6;
  33. }
  34. message CreateCertificateReplyCloudflare{
  35. bool success = 1;
  36. string id = 2;
  37. }
  38. message DeleteCertificateReplyCloudflare{
  39. bool success = 1;
  40. string id = 2;
  41. }
  42. message EditCertificateReplyCloudflare{
  43. bool success = 1;
  44. string id = 2;
  45. }