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