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