blob: c28e84dde447f8789210905938ea1c30d5fff9e7 [file] [log] [blame]
// Copyright 2015 gRPC authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
import "google/api/annotations.proto";
option java_package = "org.opencord.voltha";
option java_outer_classname = "VolthaProto";
option csharp_namespace = "Opencord.Voltha.Voltha";
option go_package = "github.com/opencord/nem-ondemand-proxy/protos/nem_ondemand_api";
package on_demand_api;
// The greeting service definition.
service NemService {
// On Demand API for Omci Test Action
rpc OmciTest(OnuID) returns(ResponseTest) {
option (google.api.http) = {
post: "/api/v1/start_omci_test"
body: "*"
};
}
}
// OnDemandTestAPi Request paramaters
message OnuID {
string id = 1;
}
message ResponseTest
{
string result = 1;
}
// Omci Test Response message format
message TestCode{
enum TestResponseResult {
SUCCESS = 0;
FAILURE = 1;
}
TestResponseResult result = 1;
}