Jian Li | 841a8b9 | 2017-11-23 01:31:22 +0900 | [diff] [blame] | 1 | /* |
| 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 Li | f8e9fb6 | 2017-06-27 07:40:48 +0900 | [diff] [blame] | 16 | syntax = "proto3"; |
| 17 | option java_package = "org.onosproject.grpc.core.models"; |
| 18 | |
| 19 | package core; |
| 20 | |
| 21 | import "core/ApplicationIdProto.proto"; |
| 22 | import "app/ApplicationEnumsProto.proto"; |
| 23 | import "security/PermissionProto.proto"; |
Jian Li | 8780edc | 2017-08-26 02:44:29 +0900 | [diff] [blame] | 24 | import "core/VersionProto.proto"; |
Jian Li | f8e9fb6 | 2017-06-27 07:40:48 +0900 | [diff] [blame] | 25 | |
| 26 | // Corresponds to org.onosproject.core.Application. |
| 27 | message ApplicationProto { |
| 28 | core.ApplicationIdProto app_id = 1; |
Jian Li | 8780edc | 2017-08-26 02:44:29 +0900 | [diff] [blame] | 29 | core.VersionProto version = 2; |
Jian Li | f8e9fb6 | 2017-06-27 07:40:48 +0900 | [diff] [blame] | 30 | string title = 3; |
| 31 | string description = 4; |
| 32 | string category = 5; |
| 33 | string url = 6; |
| 34 | string readme = 7; |
| 35 | |
| 36 | // tag id 8 is reserved for app icon |
| 37 | reserved 8; |
| 38 | |
| 39 | string origin = 9; |
| 40 | app.ApplicationRoleProto role = 10; |
| 41 | repeated security.PermissionProto permissions = 11; |
| 42 | |
| 43 | // tag id 12 is reserved for features repo |
| 44 | // optional type will be added later |
| 45 | reserved 12; |
| 46 | repeated string features = 13; |
| 47 | repeated string required_apps = 14; |
| 48 | } |