blob: a6132a31c0fb5cd4304c599f536e7bdb713bbf57 [file] [log] [blame]
Jian Li841a8b92017-11-23 01:31:22 +09001/*
2 * Copyright 2017-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
Jian Li8780edc2017-08-26 02:44:29 +090016syntax="proto3";
17option java_package = "org.onosproject.grpc.nb.app";
18
19package nb.app;
20
21import "core/ApplicationProto.proto";
22import "core/ApplicationIdProto.proto";
23import "app/ApplicationEnumsProto.proto";
24import "security/PermissionProto.proto";
25
26message getApplicationsRequest {
27}
28
29message getApplicationsReply {
30 repeated .core.ApplicationProto application = 1;
31}
32
33message getIdRequest {
34 string name = 1;
35}
36
37message getIdReply {
38 .core.ApplicationIdProto application_id = 1;
39}
40
41message getApplicationRequest {
42 .core.ApplicationIdProto application_id = 1;
43}
44
45message getApplicationReply {
46 .core.ApplicationProto application = 1;
47}
48
49message getStateRequest {
50 .core.ApplicationIdProto application_id = 1;
51}
52
53message getStateReply {
54 .app.ApplicationStateProto state = 1;
55}
56
57message getPermissionsRequest {
58 .core.ApplicationIdProto application_id = 1;
59}
60
61message getPermissionsReply {
62 repeated .security.PermissionProto permission = 1;
63}
64
65service ApplicationService {
66 rpc getApplications(getApplicationsRequest) returns (getApplicationsReply) {}
67 rpc getId(getIdRequest) returns (getIdReply) {}
68 rpc getApplication(getApplicationRequest) returns (getApplicationReply) {}
69 rpc getState(getStateRequest) returns (getStateReply) {}
70 rpc getPermissions(getPermissionsRequest) returns (getPermissionsReply) {}
71}