12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- syntax = "proto3";
- package cloudflareApi.loadBalancerPool;
- option go_package = "./cloudflareApi/loadBalancerPool";
- option java_multiple_files = true;
- option java_package = "io.grpc.cloudflare.loadBalancerPool";
- option java_outer_classname = "loadBalancerProto";
- service LoadBalancerPoolCloudflare {
- rpc List(ListRequest)returns(LoadBalancerPoolList){}
- rpc Create(LoadBalancerPoolRequest)returns(LoadBalancerPool){}
- rpc Update(LoadBalancerPoolRequest)returns(LoadBalancerPool){}
- rpc Delete(IdRequest)returns(Empty){}
- rpc Get(IdRequest)returns(LoadBalancerPool){}
- }
- message LoadBalancerPoolOrigin{
- string name = 1;
- string address = 2;
- bool enabled = 3;
- float weight = 4;
- map<string, string>header = 5;
- }
- message LoadBalancerPool{
- string id = 1;
- string name = 2;
- repeated LoadBalancerPoolOrigin origins = 3;
- bool enabled = 4;
- }
- message LoadBalancerPoolList{
- repeated LoadBalancerPool loadBalancerPools = 1;
- }
- message Empty{}
- message ListRequest {
- string apiKey = 1;
- string apiEmail = 2;
- }
- message LoadBalancerPoolRequest {
- string apiKey = 1;
- string apiEmail = 2;
- LoadBalancerPool loadBalancerPool = 4;
- }
- message IdRequest {
- string apiKey = 1;
- string apiEmail = 2;
- string id = 3;
- }
|