github.com/microsoft/moc@v0.17.1/rpc/nodeagent/storage/container/moc_nodeagent_container.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/nodeagent/storage"; 6 package moc.nodeagent.storage; 7 8 import "google/protobuf/wrappers.proto"; 9 import "moc_common_common.proto"; 10 import "google/protobuf/empty.proto"; 11 import "moc_common_notification.proto"; 12 import "moc_common_storageinfo.proto"; 13 14 enum ContainerType { 15 UNKNOWN = 0; 16 SAN = 1; 17 CSV = 2; 18 SMB = 3; 19 DAS = 4; 20 } 21 22 message ContainerRequest { 23 repeated Container Containers = 1; 24 Operation OperationType = 2; 25 } 26 27 message ContainerResponse { 28 repeated Container Containers = 1; 29 google.protobuf.BoolValue Result = 2; 30 string Error = 3; 31 } 32 33 message Container { 34 string name = 1; 35 string id = 2; 36 string path = 4 [(sensitive) = true]; 37 Status status = 5; 38 Entity entity = 6; 39 Tags tags = 7; 40 StorageContainerInfo info = 8; 41 } 42 43 service ContainerAgent { 44 rpc Invoke(ContainerRequest) returns (ContainerResponse) {} 45 rpc CheckNotification(google.protobuf.Empty) returns (NotificationResponse) {} 46 } 47 48