github.com/microsoft/moc@v0.17.1/rpc/common/admin/recovery/moc_common_recovery.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/common/admin"; 6 package moc.common.admin; 7 8 import "google/protobuf/wrappers.proto"; 9 10 enum Operation { 11 BACKUP = 0; 12 RESTORE = 1; 13 } 14 15 message RecoveryRequest{ 16 Operation OperationType = 1; 17 // Path to back to or restore from. Can be a relative path for registry 18 string Path = 2; 19 // Config file path. Must be on hard disk. 20 string ConfigFilePath = 3; 21 // Type of data store 22 string StoreType = 4; 23 } 24 25 message RecoveryResponse { 26 google.protobuf.BoolValue Result = 2; 27 string Error = 3; 28 } 29 30 service RecoveryAgent { 31 rpc Invoke(RecoveryRequest) returns (RecoveryResponse) {} 32 } 33