onkarkundargi | 72cfd36 | 2020-02-27 12:34:37 +0530 | [diff] [blame] | 1 | // 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 | |
| 15 | syntax = "proto3"; |
| 16 | import "google/api/annotations.proto"; |
| 17 | |
| 18 | option java_package = "org.opencord.voltha"; |
| 19 | option java_outer_classname = "VolthaProto"; |
| 20 | option csharp_namespace = "Opencord.Voltha.Voltha"; |
| 21 | |
| 22 | option go_package = "github.com/opencord/nem-ondemand-proxy/protos/nem_ondemand_api"; |
| 23 | package on_demand_api; |
| 24 | |
| 25 | // The greeting service definition. |
| 26 | service NemService { |
| 27 | // On Demand API for Omci Test Action |
| 28 | rpc 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 |
| 38 | message OnuID { |
| 39 | string id = 1; |
| 40 | } |
| 41 | |
| 42 | message ResponseTest |
| 43 | { |
| 44 | string result = 1; |
| 45 | } |
| 46 | // Omci Test Response message format |
| 47 | message TestCode{ |
| 48 | enum TestResponseResult { |
| 49 | SUCCESS = 0; |
| 50 | FAILURE = 1; |
| 51 | } |
| 52 | TestResponseResult result = 1; |
| 53 | } |