github.com/microsoft/moc@v0.17.1/rpc/ipamagent/ipaddressmanager/ipaddress/moc_ipaddress_ipaddress.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/ipamagent"; 6 package moc.ipaddress; 7 8 import "google/protobuf/wrappers.proto"; 9 import "moc_common_common.proto"; 10 11 12 message IPAddressRequest { 13 repeated IPAddress IPAddresss = 1; 14 Operation OperationType = 2; 15 } 16 17 message IPAddressResponse { 18 repeated IPAddress IPAddresss = 1; 19 google.protobuf.BoolValue Result = 2; 20 string Error = 3; 21 } 22 23 enum IPAddressFamily { 24 IPV4 = 0; 25 IPV6 = 1; 26 } 27 28 message IPAddress { 29 string name = 1; 30 string id = 2; 31 string address = 3; 32 string cidr = 4; 33 int32 prefixLength = 5; 34 Status status = 8; 35 } 36 37 38 service IPAddressAgent { 39 rpc Get(IPAddressRequest) returns (IPAddressResponse) {} 40 rpc Create(IPAddressRequest) returns (IPAddressResponse) {} 41 rpc Delete(IPAddressRequest) returns (IPAddressResponse) {} 42 } 43