zone.proto 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. syntax = "proto3";
  2. package cloudflareApi.cache.purge;
  3. option go_package = "./cloudflareApi/zone";
  4. option java_multiple_files = true;
  5. option java_package = "io.grpc.cloudflare.zone";
  6. option java_outer_classname = "zoneProto";
  7. service ZoneCloudflare {
  8. rpc ZoneIDByNameCloudflare (ZoneIDByNameRequestCloudflare) returns (ZoneIDByNameReplyCloudflare) {}
  9. rpc ZoneDetails (ZoneDetailsRequestCloudflare) returns (ZoneDetailsReplyCloudflare){}
  10. rpc GetZones (GetZonesRequestCloudflare) returns (GetZonesReplyCloudflare){}
  11. rpc EditZone (EditZoneRequestCloudflare) returns (EditZoneReplyCloudflare){}
  12. rpc DeleteZone (DeleteZoneRequestCloudflare) returns (DeleteZoneReplyCloudflare){}
  13. }
  14. message ZoneCloudflareEntity{
  15. string id = 1;
  16. string name = 2;
  17. // sint64 development_mode = 1;
  18. // string original_registrar = 1;
  19. // string original_dnshost = 1;
  20. // string created_on = 3;
  21. // string modified_on = 4;
  22. // string activated_on = 5;
  23. message Plan {
  24. string id = 1;
  25. string name = 2;
  26. sint64 price = 3;
  27. // string currency = 4;
  28. // string frequency = 5;
  29. // string legacy_id = 6;
  30. // bool is_subscribed = 7;
  31. // bool can_subscribe = 8;
  32. }
  33. Plan plan = 3;
  34. Plan plan_pending = 4;
  35. string status = 5;
  36. bool paused = 6;
  37. string type = 7;
  38. }
  39. message ZoneIDByNameRequestCloudflare {
  40. string apiKey = 1;
  41. string apiEmail = 2;
  42. string zoneName = 3;
  43. }
  44. message ZoneIDByNameReplyCloudflare {
  45. string zoneId = 1;
  46. }
  47. message ZoneDetailsRequestCloudflare {
  48. string apiKey = 1;
  49. string apiEmail = 2;
  50. string zoneId = 3;
  51. }
  52. message ZoneDetailsReplyCloudflare{
  53. ZoneCloudflareEntity result = 1;
  54. }
  55. message GetZonesRequestCloudflare {
  56. string apiKey = 1;
  57. string apiEmail = 2;
  58. string domain = 3;
  59. }
  60. message GetZonesReplyCloudflare{
  61. repeated ZoneCloudflareEntity result = 1;
  62. bool success = 2;
  63. }
  64. message EditZoneRequestCloudflare {
  65. string apiKey = 1;
  66. string apiEmail = 2;
  67. string zoneId = 3;
  68. optional bool paused = 4;
  69. optional string planId = 5;
  70. optional string type = 6;
  71. }
  72. message EditZoneReplyCloudflare{
  73. ZoneCloudflareEntity result = 1;
  74. bool success = 2;
  75. }
  76. message DeleteZoneRequestCloudflare {
  77. string apiKey = 1;
  78. string apiEmail = 2;
  79. string zoneId = 3;
  80. }
  81. message DeleteZoneReplyCloudflare{
  82. bool success = 1;
  83. string id = 2;
  84. }