Matteo Scandolo | 35113f7 | 2017-08-08 13:05:25 -0700 | [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 | |
| 16 | |
Scott Baker | 1bfb91b | 2017-03-20 11:00:23 -0700 | [diff] [blame] | 17 | from service import XOSService |
Zack Williams | 1ce6c38 | 2016-10-05 18:02:09 -0700 | [diff] [blame] | 18 | from services.exampleservice.models import ExampleService |
Scott Baker | 619de67 | 2016-06-20 12:49:38 -0700 | [diff] [blame] | 19 | |
Scott Baker | 1bfb91b | 2017-03-20 11:00:23 -0700 | [diff] [blame] | 20 | class XOSExampleService(XOSService): |
Scott Baker | 619de67 | 2016-06-20 12:49:38 -0700 | [diff] [blame] | 21 | provides = "tosca.nodes.ExampleService" |
| 22 | xos_model = ExampleService |
| 23 | copyin_props = ["view_url", "icon_url", "enabled", "published", "public_key", "private_key_fn", "versionNumber", "service_message"] |
| 24 | |
Scott Baker | 619de67 | 2016-06-20 12:49:38 -0700 | [diff] [blame] | 25 | |