logPush.proto 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. syntax = "proto3";
  2. package cloudflareApi.logPush;
  3. option go_package = "./cloudflareApi/logPush";
  4. option java_multiple_files = true;
  5. option java_package = "io.grpc.cloudflare.logPush";
  6. option java_outer_classname = "logPushProto";
  7. service LogPushCloudflare {
  8. rpc ListLogPushJobsByZoneId(ListLogPushJobRequestByZoneId) returns (ListLogPushJobReplay) {}
  9. rpc CreateLogPushJobByZoneId(CreateLogPushJobRequestByZoneId) returns (CreateLogPushJobReplay) {}
  10. rpc DeleteLogPushJobByZoneId(DeleteLogPushJobRequestByZoneId) returns (DeleteLogPushJobReplay) {}
  11. rpc GetOwnershipChallengeByZoneId(GetOwnershipChallengeRequestByZoneId) returns (GetOwnershipChallengeReply) {}
  12. rpc CheckDestinationExist(CheckDestinationExistRequest) returns (CheckDestinationExistReply) {}
  13. rpc ValidateOwnershipChallenge(ValidateOwnershipChallengeRequest) returns (ValidateOwnershipChallengeReply) {}
  14. }
  15. message LogPushJobEntity {
  16. int64 id = 1;
  17. string dataSet = 2;
  18. string destinationConf = 3;
  19. bool enabled = 4;
  20. string errorMessage = 5;
  21. string name = 6;
  22. }
  23. message OwnershipChallengeEntity {
  24. string filename = 1;
  25. bool valid = 2;
  26. string message = 3;
  27. }
  28. message ListLogPushJobRequestByZoneId {
  29. string apiKey = 1;
  30. string apiEmail = 2;
  31. string zoneId = 3;
  32. string dataSet = 4;
  33. }
  34. message ListLogPushJobReplay {
  35. repeated LogPushJobEntity result = 1;
  36. }
  37. message CreateLogPushJobRequestByZoneId {
  38. string apiKey = 1;
  39. string apiEmail = 2;
  40. string zoneId = 3;
  41. string dataSet = 4;
  42. string destinationConf = 5;
  43. string ownershipChallenge = 6;
  44. }
  45. message CreateLogPushJobReplay {
  46. LogPushJobEntity result = 1;
  47. }
  48. message DeleteLogPushJobRequestByZoneId {
  49. string apiKey = 1;
  50. string apiEmail = 2;
  51. string zoneId = 3;
  52. int64 jobId = 4;
  53. }
  54. message DeleteLogPushJobReplay {
  55. bool success = 1;
  56. string message = 2;
  57. }
  58. message GetOwnershipChallengeRequestByZoneId {
  59. string apiKey = 1;
  60. string apiEmail = 2;
  61. string zoneId = 3;
  62. string destinationConf = 4;
  63. }
  64. message GetOwnershipChallengeReply {
  65. OwnershipChallengeEntity result = 1;
  66. }
  67. message CheckDestinationExistRequest {
  68. string apiKey = 1;
  69. string apiEmail = 2;
  70. string zoneId = 3;
  71. string destinationConf = 4;
  72. }
  73. message CheckDestinationExistReply {
  74. bool exists = 1;
  75. }
  76. message ValidateOwnershipChallengeRequest {
  77. string apiKey = 1;
  78. string apiEmail = 2;
  79. string zoneId = 3;
  80. string destinationConf = 4;
  81. string ownershipChallenge = 5;
  82. }
  83. message ValidateOwnershipChallengeReply {
  84. bool valid = 1;
  85. }