purge.proto 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. syntax = "proto3";
  2. package cloudflareApi.cache.purge;
  3. option go_package = "./cloudflareApi/cache/purge";
  4. option java_multiple_files = true;
  5. option java_package = "io.grpc.cloudflare.cache.purge";
  6. option java_outer_classname = "purgeProto";
  7. service PurgeCloudflare {
  8. // Sends a greeting
  9. rpc PurgeCloudflare (PurgeRequestCloudflare) returns (PurgeReplyCloudflare) {}
  10. rpc PurgeCloudflareByPrefix (PurgeRequestCloudflarePrefix) returns (PurgeReplyCloudflare) {}
  11. rpc PurgeCloudflareEverything (PurgeRequestCloudflareEverything) returns (PurgeReplyCloudflare) {}
  12. }
  13. message PurgeRequestCloudflare {
  14. string apiKey = 1;
  15. string apiEmail = 2;
  16. string zoneId = 3;
  17. repeated string purgeList = 4;
  18. }
  19. message PurgeRequestCloudflarePrefix {
  20. string apiKey = 1;
  21. string apiEmail = 2;
  22. string zoneId = 3;
  23. repeated string prefixList = 4;
  24. }
  25. message PurgeRequestCloudflareEverything {
  26. string apiKey = 1;
  27. string apiEmail = 2;
  28. string zoneId = 3;
  29. }
  30. // The response message containing the greetings
  31. message PurgeReplyCloudflare {
  32. bool result = 1;
  33. }