logPush.proto 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 GetOwnershipTokenByZoneId(GetOwnershipChallengeRequestByZoneId) returns (GetOwnershipChallengeReply) {}
  12. }
  13. message LogPushJobEntity {
  14. int64 id = 1;
  15. string dataSet = 2;
  16. string destinationConf = 3;
  17. bool enabled = 4;
  18. string errorMessage = 5;
  19. string name = 6;
  20. }
  21. message OwnershipChallengeEntity {
  22. string filename = 1;
  23. bool valid = 2;
  24. string message = 3;
  25. }
  26. message ListLogPushJobRequestByZoneId {
  27. string apiKey = 1;
  28. string apiEmail = 2;
  29. string zoneId = 3;
  30. string dataSet = 4;
  31. }
  32. message ListLogPushJobReplay {
  33. repeated LogPushJobEntity result = 1;
  34. }
  35. message CreateLogPushJobRequestByZoneId {
  36. string apiKey = 1;
  37. string apiEmail = 2;
  38. string zoneId = 3;
  39. string dataSet = 4;
  40. string destinationConf = 5;
  41. string ownershipChallenge = 6;
  42. }
  43. message CreateLogPushJobReplay {
  44. LogPushJobEntity result = 1;
  45. }
  46. message DeleteLogPushJobRequestByZoneId {
  47. string apiKey = 1;
  48. string apiEmail = 2;
  49. string zoneId = 3;
  50. int64 jobId = 4;
  51. }
  52. message DeleteLogPushJobReplay {
  53. bool success = 1;
  54. string message = 2;
  55. }
  56. message GetOwnershipChallengeRequestByZoneId {
  57. string apiKey = 1;
  58. string apiEmail = 2;
  59. string zoneId = 3;
  60. string destinationConf = 4;
  61. }
  62. message GetOwnershipChallengeReply {
  63. OwnershipChallengeEntity result = 1;
  64. }