Matteo Scandolo | 5eb20bb | 2017-08-08 13:05:26 -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 | |
Andrea Campanella | 45536f7 | 2017-02-23 15:20:06 +0100 | [diff] [blame] | 17 | # Note: Tosca derived_from isn't working the way I think it should, it's not |
| 18 | # inheriting from the parent template. Until we get that figured out, use |
| 19 | # m4 macros do our inheritance |
| 20 | |
| 21 | define(xos_base_props, |
| 22 | no-delete: |
| 23 | type: boolean |
| 24 | default: false |
| 25 | description: Do not allow Tosca to delete this object |
| 26 | no-create: |
| 27 | type: boolean |
| 28 | default: false |
| 29 | description: Do not allow Tosca to create this object |
| 30 | no-update: |
| 31 | type: boolean |
| 32 | default: false |
| 33 | description: Do not allow Tosca to update this object |
| 34 | replaces: |
| 35 | type: string |
| 36 | required: false |
| 37 | descrption: Replaces/renames this object) |
| 38 | # Service |
| 39 | define(xos_base_service_caps, |
| 40 | scalable: |
| 41 | type: tosca.capabilities.Scalable |
| 42 | service: |
| 43 | type: tosca.capabilities.xos.Service) |
| 44 | define(xos_base_service_props, |
| 45 | kind: |
| 46 | type: string |
| 47 | default: generic |
| 48 | description: Type of service. |
| 49 | view_url: |
| 50 | type: string |
| 51 | required: false |
| 52 | description: URL to follow when icon is clicked in the Service Directory. |
| 53 | icon_url: |
| 54 | type: string |
| 55 | required: false |
| 56 | description: ICON to display in the Service Directory. |
| 57 | enabled: |
| 58 | type: boolean |
| 59 | default: true |
| 60 | published: |
| 61 | type: boolean |
| 62 | default: true |
| 63 | description: If True then display this Service in the Service Directory. |
| 64 | public_key: |
| 65 | type: string |
| 66 | required: false |
| 67 | description: Public key to install into Instances to allows Services to SSH into them. |
| 68 | private_key_fn: |
| 69 | type: string |
| 70 | required: false |
| 71 | description: Location of private key file |
| 72 | versionNumber: |
| 73 | type: string |
| 74 | required: false |
| 75 | description: Version number of Service.) |
| 76 | # Subscriber |
| 77 | define(xos_base_subscriber_caps, |
| 78 | subscriber: |
| 79 | type: tosca.capabilities.xos.Subscriber) |
| 80 | define(xos_base_subscriber_props, |
| 81 | kind: |
| 82 | type: string |
| 83 | default: generic |
| 84 | description: Kind of subscriber |
| 85 | service_specific_id: |
| 86 | type: string |
| 87 | required: false |
| 88 | description: Service specific ID opaque to XOS but meaningful to service) |
| 89 | define(xos_base_tenant_props, |
| 90 | kind: |
| 91 | type: string |
| 92 | default: generic |
| 93 | description: Kind of tenant |
| 94 | service_specific_id: |
| 95 | type: string |
| 96 | required: false |
| 97 | description: Service specific ID opaque to XOS but meaningful to service) |
| 98 | |
| 99 | # end m4 macros |
| 100 | |