loadBalancerPool.proto 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. syntax = "proto3";
  2. package cloudflareApi.loadBalancerPool;
  3. option go_package = "./cloudflareApi/loadBalancerPool";
  4. option java_multiple_files = true;
  5. option java_package = "io.grpc.cloudflare.loadBalancerPool";
  6. option java_outer_classname = "loadBalancerProto";
  7. service LoadBalancerPoolCloudflare {
  8. rpc List(ListRequest)returns(LoadBalancerPoolList){}
  9. rpc Create(LoadBalancerPoolRequest)returns(LoadBalancerPool){}
  10. rpc Update(LoadBalancerPoolRequest)returns(LoadBalancerPool){}
  11. rpc Delete(IdRequest)returns(Empty){}
  12. rpc Get(IdRequest)returns(LoadBalancerPool){}
  13. }
  14. message LoadBalancerPoolOrigin{
  15. string name = 1;
  16. string address = 2;
  17. bool enabled = 3;
  18. float weight = 4;
  19. map<string, string>header = 5;
  20. }
  21. message LoadBalancerPool{
  22. string id = 1;
  23. string name = 2;
  24. repeated LoadBalancerPoolOrigin origins = 3;
  25. bool enabled = 4;
  26. }
  27. message LoadBalancerPoolList{
  28. repeated LoadBalancerPool loadBalancerPools = 1;
  29. }
  30. message Empty{}
  31. message ListRequest {
  32. string apiKey = 1;
  33. string apiEmail = 2;
  34. }
  35. message LoadBalancerPoolRequest {
  36. string apiKey = 1;
  37. string apiEmail = 2;
  38. LoadBalancerPool loadBalancerPool = 4;
  39. }
  40. message IdRequest {
  41. string apiKey = 1;
  42. string apiEmail = 2;
  43. string id = 3;
  44. }