loadBalancer.proto 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. syntax = "proto3";
  2. package cloudflareApi.loadBalancer;
  3. option go_package = "./cloudflareApi/loadBalancer";
  4. option java_multiple_files = true;
  5. option java_package = "io.grpc.cloudflare.loadBalancer";
  6. option java_outer_classname = "loadBalancerProto";
  7. service LoadBalancerCloudflare {
  8. rpc List(ListRequest)returns(LoadBalancerList){}
  9. rpc Create(LoadBalancerRequest)returns(LoadBalancer){}
  10. rpc Update(LoadBalancerRequest)returns(LoadBalancer){}
  11. rpc Delete(DeleteRequest)returns(Empty){}
  12. }
  13. message LoadBalancer{
  14. string id = 1;
  15. string name = 2;
  16. repeated string default_pools = 3;
  17. string fallback_pool = 4;
  18. bool proxied = 5;
  19. }
  20. message LoadBalancerList{
  21. repeated LoadBalancer loadBalancers = 1;
  22. }
  23. message Empty{}
  24. message ListRequest {
  25. string apiKey = 1;
  26. string apiEmail = 2;
  27. string zoneId = 3;
  28. }
  29. message LoadBalancerRequest {
  30. string apiKey = 1;
  31. string apiEmail = 2;
  32. string zoneId = 3;
  33. LoadBalancer loadBalancer = 4;
  34. }
  35. message DeleteRequest {
  36. string apiKey = 1;
  37. string apiEmail = 2;
  38. string zoneId = 3;
  39. string id = 4;
  40. }