github.com/microsoft/moc@v0.17.1/rpc/cloudagent/cloud/node/moc_cloudagent_node.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.node; 7 8 import "google/protobuf/wrappers.proto"; 9 import "moc_common_common.proto"; 10 import "moc_common_nodeinfo.proto"; 11 12 message NodeRequest { 13 repeated Node Nodes = 1; 14 Operation OperationType = 2; 15 } 16 17 message NodeResponse { 18 repeated Node Nodes = 1; 19 google.protobuf.BoolValue Result = 2; 20 string Error = 3; 21 } 22 23 enum NodeState { 24 Unknown = 0; 25 Active = 1; 26 Inactive = 2; 27 Poweroff = 3; 28 } 29 30 message Node { 31 string name = 1; 32 string id = 2; 33 string fqdn = 3; 34 Status status = 4; 35 string locationName = 5; 36 string certificate = 6 [(sensitive) = true]; 37 int32 port = 7; 38 int32 authorizerPort = 8; 39 NodeState runningState = 9; 40 moc.common.NodeInfo info = 10; 41 Tags tags = 11; 42 } 43 44 service NodeAgent { 45 rpc Invoke(NodeRequest) returns (NodeResponse) {} 46 } 47