github.com/microsoft/moc@v0.17.1/rpc/cloudagent/cloud/etcdcluster/moc_cloudagent_etcdcluster.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/cloud"; 6 package moc.cloudagent.etcd; 7 8 import "google/protobuf/wrappers.proto"; 9 import "moc_common_common.proto"; 10 11 message EtcdClusterRequest { 12 repeated EtcdCluster EtcdClusters = 1; 13 Operation OperationType = 2; 14 } 15 16 message EtcdClusterResponse { 17 repeated EtcdCluster EtcdClusters = 1; 18 google.protobuf.BoolValue Result = 2; 19 string Error = 3; 20 } 21 22 message EtcdCluster { 23 string id = 1; 24 string name = 2; 25 string locationName = 3; 26 string groupName = 4; 27 // etcd ca certificate that works as RoT for client and peer connections 28 string caCertificate = 5 [(sensitive) = true]; 29 // etcd ca key associated with the ca certificate 30 string caKey = 6 [(sensitive) = true]; 31 Status status = 7; 32 } 33 34 service EtcdClusterAgent { 35 rpc Invoke(EtcdClusterRequest) returns (EtcdClusterResponse) {} 36 } 37