blob: c28e84dde447f8789210905938ea1c30d5fff9e7 [file] [log] [blame]
onkarkundargi72cfd362020-02-27 12:34:37 +05301// Copyright 2015 gRPC authors.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15syntax = "proto3";
16import "google/api/annotations.proto";
17
18option java_package = "org.opencord.voltha";
19option java_outer_classname = "VolthaProto";
20option csharp_namespace = "Opencord.Voltha.Voltha";
21
22option go_package = "github.com/opencord/nem-ondemand-proxy/protos/nem_ondemand_api";
23package on_demand_api;
24
25// The greeting service definition.
26service NemService {
27 // On Demand API for Omci Test Action
28rpc OmciTest(OnuID) returns(ResponseTest) {
29 option (google.api.http) = {
30 post: "/api/v1/start_omci_test"
31 body: "*"
32 };
33}
34}
35
36
37// OnDemandTestAPi Request paramaters
38message OnuID {
39 string id = 1;
40}
41
42message ResponseTest
43{
44string result = 1;
45}
46// Omci Test Response message format
47message TestCode{
48 enum TestResponseResult {
49 SUCCESS = 0;
50 FAILURE = 1;
51 }
52 TestResponseResult result = 1;
53}