145ec784eb52f8198fa756b354ece5401f17bd38
[it/dep.git] / smo-install / test / pythonsdk / src / oransdk / policy / templates / commission_k8s.json.j2
1 {
2   "data_types": {
3     "onap.datatypes.ToscaConceptIdentifier": {
4       "derived_from": "tosca.datatypes.Root",
5       "properties": {
6         "version": {
7           "required": true,
8           "type": "string"
9         },
10         "name": {
11           "required": true,
12           "type": "string"
13         }
14       }
15     }
16   },
17   "topology_template": {
18     "node_templates": {
19       "org.onap.domain.database.PMSH_K8SMicroserviceAutomationCompositionElement": {
20         "properties": {
21           "participantType": {
22             "version": "2.3.4",
23             "name": "org.onap.policy.clamp.acm.KubernetesParticipant"
24           },
25           "participant_id": {
26             "version": "1.0.0",
27             "name": "K8sParticipant0"
28           },
29           "provider": "ONAP",
30           "chart": {
31             "repository": {
32               "address": "{{chartmuseumIp}}",
33               "repoName": "chartmuseum",
34               "port": {{chartmuseumPort}},
35               "protocol": "http"
36             },
37             "namespace": "nonrtric",
38             "chartId": {
39               "version": "{{chartVersion}}",
40               "name": "{{chartName}}"
41             },
42             "releaseName": "{{releaseName}}"
43           }
44         },
45         "description": "Automation composition element for the K8S microservice for PMSH",
46         "version": "1.2.3",
47         "type_version": "1.0.0",
48         "type": "org.onap.policy.clamp.acm.K8SMicroserviceAutomationCompositionElement"
49       },
50       "org.onap.policy.clamp.acm.KubernetesParticipant": {
51         "properties": {
52           "provider": "Ericsson"
53         },
54         "description": "Participant for K8S",
55         "version": "2.3.4",
56         "type_version": "1.0.1",
57         "type": "org.onap.policy.clamp.acm.Participant"
58       },
59       "org.onap.domain.sample.GenericK8s_AutomationCompositionDefinition": {
60         "properties": {
61           "elements": [
62             {
63               "version": "1.2.3",
64               "name": "org.onap.domain.database.PMSH_K8SMicroserviceAutomationCompositionElement"
65             }],
66           "provider": "ONAP"
67         },
68         "description": "Automation composition for Hello World",
69         "version": "1.2.3",
70         "type_version": "1.0.1",
71         "type": "org.onap.policy.clamp.acm.AutomationComposition"
72       }
73     }
74   },
75   "tosca_definitions_version": "tosca_simple_yaml_1_3",
76   "node_types": {
77     "org.onap.policy.clamp.acm.AutomationComposition": {
78       "derived_from": "tosca.nodetypes.Root",
79       "properties": {
80         "elements": {
81           "required": true,
82           "metadata": {
83             "common": true
84           },
85           "entry_schema": {
86             "type": "onap.datatypes.ToscaConceptIdentifier"
87           },
88           "description": "Specifies a list of automation composition element definitions that make up this automation composition definition",
89           "type": "list"
90         },
91         "provider": {
92           "required": false,
93           "metadata": {
94             "common": true
95           },
96           "description": "Specifies the organization that provides the automation composition element",
97           "type": "string"
98         }
99       },
100       "version": "1.0.1"
101     },
102     "org.onap.policy.clamp.acm.AutomationCompositionElement": {
103       "derived_from": "tosca.nodetypes.Root",
104       "properties": {
105         "runningToPassiveTimeout": {
106           "required": false,
107           "metadata": {
108             "common": true
109           },
110           "default": 60,
111           "constraints": [
112             {
113               "greater_or_equal": 0
114             }],
115           "description": "The maximum time in seconds to wait for a state chage from running to passive",
116           "type": "integer"
117         },
118         "participantType": {
119           "required": true,
120           "metadata": {
121             "common": true
122           },
123           "description": "The identity of the participant type that hosts this type of Automation Composition Element",
124           "type": "onap.datatypes.ToscaConceptIdentifier"
125         },
126         "startPhase": {
127           "required": false,
128           "metadata": {
129             "common": true
130           },
131           "constraints": [
132             {
133               "greater_or_equal": 0
134             }],
135           "description": "A value indicating the start phase in which this automation composition element will be started, the first start phase is zero. Automation Composition Elements are started in their start_phase order and stopped in reverse start phase order. Automation Composition Elements with the same start phase are started and stopped simultaneously",
136           "type": "integer"
137         },
138         "passiveToUninitializedTimeout": {
139           "required": false,
140           "metadata": {
141             "common": true
142           },
143           "default": 60,
144           "constraints": [
145             {
146               "greater_or_equal": 0
147             }],
148           "description": "The maximum time in seconds to wait for a state chage from passive to uninitialized",
149           "type": "integer"
150         },
151         "uninitializedToPassiveTimeout": {
152           "required": false,
153           "metadata": {
154             "common": true
155           },
156           "default": 60,
157           "constraints": [
158             {
159               "greater_or_equal": 0
160             }],
161           "description": "The maximum time in seconds to wait for a state chage from uninitialized to passive",
162           "type": "integer"
163         },
164         "participant_id": {
165           "metadata": {
166             "common": true
167           },
168           "requred": true,
169           "type": "onap.datatypes.ToscaConceptIdentifier"
170         },
171         "provider": {
172           "required": false,
173           "metadata": {
174             "common": true
175           },
176           "description": "Specifies the organization that provides the automation composition element",
177           "type": "string"
178         },
179         "passiveToRunningTimeout": {
180           "required": false,
181           "metadata": {
182             "common": true
183           },
184           "default": 60,
185           "constraints": [
186             {
187               "greater_or_equal": 0
188             }],
189           "description": "The maximum time in seconds to wait for a state chage from passive to running",
190           "type": "integer"
191         }
192       },
193       "version": "1.0.1"
194     },
195     "org.onap.policy.clamp.acm.K8SMicroserviceAutomationCompositionElement": {
196       "derived_from": "org.onap.policy.clamp.acm.AutomationCompositionElement",
197       "properties": {
198         "templates": {
199           "required": false,
200           "entry_schema": null,
201           "type": "list"
202         },
203         "requirements": {
204           "requred": false,
205           "type": "string"
206         },
207         "values": {
208           "requred": true,
209           "type": "string"
210         },
211         "configs": {
212           "required": false,
213           "type": "list"
214         },
215         "chart": {
216           "required": true,
217           "type": "string"
218         }
219       },
220       "version": "1.0.1"
221     },
222     "org.onap.policy.clamp.acm.Participant": {
223       "derived_from": "tosca.nodetypes.Root",
224       "properties": {
225         "provider": {
226           "requred": false,
227           "type": "string"
228         }
229       },
230       "version": "1.0.1"
231     }
232   }
233 }