123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- syntax = "proto3";
- package cloudflareApi.loadBalancer;
- option go_package = "./cloudflareApi/loadBalancer";
- option java_multiple_files = true;
- option java_package = "io.grpc.cloudflare.loadBalancer";
- option java_outer_classname = "loadBalancerProto";
- service LoadBalancerCloudflare {
- rpc List(ListRequest)returns(LoadBalancerList){}
- rpc Create(LoadBalancerRequest)returns(LoadBalancer){}
- rpc Update(LoadBalancerRequest)returns(LoadBalancer){}
- rpc Delete(DeleteRequest)returns(Empty){}
- }
- message LoadBalancer{
- string id = 1;
- string name = 2;
- repeated string default_pools = 3;
- string fallback_pool = 4;
- bool proxied = 5;
- }
- message LoadBalancerList{
- repeated LoadBalancer loadBalancers = 1;
- }
- message Empty{}
- message ListRequest {
- string apiKey = 1;
- string apiEmail = 2;
- string zoneId = 3;
- }
- message LoadBalancerRequest {
- string apiKey = 1;
- string apiEmail = 2;
- string zoneId = 3;
- LoadBalancer loadBalancer = 4;
- }
- message DeleteRequest {
- string apiKey = 1;
- string apiEmail = 2;
- string zoneId = 3;
- string id = 4;
- }
|