github.com/microsoft/moc@v0.17.1/rpc/cloudagent/network/loadbalancer/moc_cloudagent_loadbalancer.proto (about)

     1  // Copyright (c) Microsoft Corporation.
     2  // Licensed under the Apache v2.0 license.
     3  
     4  syntax = "proto3";
     5  option go_package = "github.com/microsoft/moc/rpc/cloudagent/network";
     6  package moc.cloudagent.network;
     7  
     8  import "google/protobuf/wrappers.proto";
     9  import "moc_common_common.proto";
    10  import "moc_common_networkcommon.proto";
    11  
    12  message LoadBalancerRequest {
    13  	repeated LoadBalancer LoadBalancers = 1;
    14  	Operation OperationType = 2;
    15  }
    16  
    17  message LoadBalancerResponse {
    18  	repeated LoadBalancer LoadBalancers = 1;
    19  	google.protobuf.BoolValue Result = 2;
    20  	string  Error = 3;
    21  }
    22  
    23  message LoadbalancerInboundNatRule {
    24  	string name = 1;
    25  	uint32 frontendPort = 2;
    26  	uint32 backendPort = 3;
    27  	Protocol protocol = 4;
    28  }
    29  
    30  message LoadBalancingRule {
    31  	uint32 frontendPort = 1;
    32  	uint32 backendPort = 2;
    33  	Protocol protocol = 3;
    34  }
    35  
    36  message LoadBalancer {
    37  	string name = 1;
    38  	string id = 2;
    39  	string frontendIP = 3 [(sensitive) = true];
    40  	repeated string backendpoolnames = 4;
    41  	string networkid = 5;
    42  	repeated LoadBalancingRule loadbalancingrules = 6;
    43  	string nodefqdn = 7 [(sensitive) = true];
    44  	string groupName = 8;
    45  	string locationName = 9;
    46  	Status status = 10;
    47  	Tags tags = 11;
    48  	uint32 replicationCount = 12;
    49  	repeated LoadbalancerInboundNatRule inboundNatRules = 13;
    50  }
    51  
    52  service LoadBalancerAgent {
    53  	rpc Invoke(LoadBalancerRequest) returns (LoadBalancerResponse) {}
    54  }
    55