33cb42c7222a820eb3a074029a0abd11c29e986b
[it/dep.git] / smo-install / test / pythonsdk / src / oransdk / policy / templates / create_instance_k8s.json.j2
1 {
2   "data_types": {
3     "onap.datatypes.ToscaConceptIdentifier": {
4       "key": {
5         "version": "0.0.0",
6         "name": "onap.datatypes.ToscaConceptIdentifier"
7       },
8       "derived_from": "tosca.datatypes.Root",
9       "properties": {
10         "version": {
11           "required": true,
12           "status": null,
13           "metadata": null,
14           "entry_schema": null,
15           "constraints": null,
16           "description": null,
17           "type_version": "0.0.0",
18           "key_schema": null,
19           "type": "string",
20           "name": "version",
21           "default_value": null
22         },
23         "name": {
24           "required": true,
25           "status": null,
26           "metadata": null,
27           "entry_schema": null,
28           "constraints": null,
29           "description": null,
30           "type_version": "0.0.0",
31           "key_schema": null,
32           "type": "string",
33           "name": "name",
34           "default_value": null
35         }
36       },
37       "metadata": {},
38       "constraints": [],
39       "description": null,
40       "version": "0.0.0",
41       "type_version": null,
42       "defined_name": "onap.datatypes.ToscaConceptIdentifier",
43       "defined_version": null,
44       "type": null,
45       "name": "onap.datatypes.ToscaConceptIdentifier"
46     }
47   },
48   "topology_template": {
49     "policies_as_map": {},
50     "policies": null,
51     "description": null,
52     "node_templates": {
53       "org.onap.domain.database.PMSH_K8SMicroserviceAutomationCompositionElement": {
54         "type_identifier": {
55           "version": "1.0.0",
56           "name": "org.onap.policy.clamp.acm.K8SMicroserviceAutomationCompositionElement"
57         },
58         "key": {
59           "version": "1.2.3",
60           "name": "org.onap.domain.database.PMSH_K8SMicroserviceAutomationCompositionElement"
61         },
62         "derived_from": null,
63         "identifier": {
64           "version": "1.2.3",
65           "name": "org.onap.domain.database.PMSH_K8SMicroserviceAutomationCompositionElement"
66         },
67         "properties": {
68           "participantType": {
69             "version": "2.3.4",
70             "name": "org.onap.policy.clamp.acm.KubernetesParticipant"
71           },
72           "participant_id": {
73             "version": "1.0.0",
74             "name": "K8sParticipant0"
75           },
76           "provider": "ONAP",
77           "chart": "{\"chartId\":{\"name\":\"{{chartName}}\",\"version\":\"{{chartVersion}}\"},\"namespace\":\"nonrtric\",\"releaseName\":\"{{releaseName}}\",\"repository\":{\"repoName\":\"chartmuseum\",\"address\":\"{{chartmuseumIp}}\",\"protocol\":\"http\",\"port\":{{chartmuseumPort}}}}"
78         },
79         "metadata": {},
80         "description": "Automation composition element for the K8S microservice for PMSH",
81         "requirements": null,
82         "version": "1.2.3",
83         "type_version": "1.0.0",
84         "capabilities": null,
85         "defined_name": "org.onap.domain.database.PMSH_K8SMicroserviceAutomationCompositionElement",
86         "defined_version": "1.2.3",
87         "type": "org.onap.policy.clamp.acm.K8SMicroserviceAutomationCompositionElement",
88         "name": "org.onap.domain.database.PMSH_K8SMicroserviceAutomationCompositionElement"
89       },
90       "org.onap.policy.clamp.acm.KubernetesParticipant": {
91         "type_identifier": {
92           "version": "1.0.1",
93           "name": "org.onap.policy.clamp.acm.Participant"
94         },
95         "key": {
96           "version": "2.3.4",
97           "name": "org.onap.policy.clamp.acm.KubernetesParticipant"
98         },
99         "derived_from": null,
100         "identifier": {
101           "version": "2.3.4",
102           "name": "org.onap.policy.clamp.acm.KubernetesParticipant"
103         },
104         "properties": {
105           "provider": "Ericsson"
106         },
107         "metadata": {},
108         "description": "Participant for K8S",
109         "requirements": null,
110         "version": "2.3.4",
111         "type_version": "1.0.1",
112         "capabilities": null,
113         "defined_name": "org.onap.policy.clamp.acm.KubernetesParticipant",
114         "defined_version": "2.3.4",
115         "type": "org.onap.policy.clamp.acm.Participant",
116         "name": "org.onap.policy.clamp.acm.KubernetesParticipant"
117       },
118       "org.onap.domain.sample.GenericK8s_AutomationCompositionDefinition": {
119         "type_identifier": {
120           "version": "1.0.1",
121           "name": "org.onap.policy.clamp.acm.AutomationComposition"
122         },
123         "key": {
124           "version": "1.2.3",
125           "name": "org.onap.domain.sample.GenericK8s_AutomationCompositionDefinition"
126         },
127         "derived_from": null,
128         "identifier": {
129           "version": "1.2.3",
130           "name": "org.onap.domain.sample.GenericK8s_AutomationCompositionDefinition"
131         },
132         "properties": {
133           "elements": [
134             {
135               "version": "1.2.3",
136               "name": "org.onap.domain.database.PMSH_K8SMicroserviceAutomationCompositionElement"
137             }],
138           "provider": "ONAP"
139         },
140         "metadata": {},
141         "description": "Automation composition for Hello World",
142         "requirements": null,
143         "version": "1.2.3",
144         "type_version": "1.0.1",
145         "capabilities": null,
146         "defined_name": "org.onap.domain.sample.GenericK8s_AutomationCompositionDefinition",
147         "defined_version": "1.2.3",
148         "type": "org.onap.policy.clamp.acm.AutomationComposition",
149         "name": "org.onap.domain.sample.GenericK8s_AutomationCompositionDefinition"
150       }
151     },
152     "inputs": {}
153   },
154   "policy_types": null,
155   "tosca_definitions_version": "tosca_simple_yaml_1_3",
156   "name": "{{instanceName}}",
157   "node_types": {
158     "org.onap.policy.clamp.acm.AutomationComposition": {
159       "key": {
160         "version": "1.0.1",
161         "name": "org.onap.policy.clamp.acm.AutomationComposition"
162       },
163       "derived_from": "tosca.nodetypes.Root",
164       "properties": {
165         "elements": {
166           "required": true,
167           "status": null,
168           "metadata": {
169             "common": "true"
170           },
171           "entry_schema": {
172             "constraints": null,
173             "description": null,
174             "type_version": "0.0.0",
175             "type": "onap.datatypes.ToscaConceptIdentifier",
176             "name": null
177           },
178           "constraints": null,
179           "description": "Specifies a list of automation composition element definitions that make up this automation composition definition",
180           "type_version": "0.0.0",
181           "key_schema": null,
182           "type": "list",
183           "name": "elements",
184           "default_value": null
185         },
186         "provider": {
187           "required": false,
188           "status": null,
189           "metadata": {
190             "common": "true"
191           },
192           "entry_schema": null,
193           "constraints": null,
194           "description": "Specifies the organization that provides the automation composition element",
195           "type_version": "0.0.0",
196           "key_schema": null,
197           "type": "string",
198           "name": "provider",
199           "default_value": null
200         }
201       },
202       "metadata": {},
203       "description": null,
204       "requirements": null,
205       "version": "1.0.1",
206       "type_version": null,
207       "defined_name": "org.onap.policy.clamp.acm.AutomationComposition",
208       "defined_version": "1.0.1",
209       "type": null,
210       "name": "org.onap.policy.clamp.acm.AutomationComposition"
211     },
212     "org.onap.policy.clamp.acm.AutomationCompositionElement": {
213       "key": {
214         "version": "1.0.1",
215         "name": "org.onap.policy.clamp.acm.AutomationCompositionElement"
216       },
217       "derived_from": "tosca.nodetypes.Root",
218       "properties": {
219         "runningToPassiveTimeout": {
220           "required": false,
221           "status": null,
222           "metadata": {
223             "common": "true"
224           },
225           "entry_schema": null,
226           "constraints": [
227             {
228               "valid_values": null,
229               "greater_or_equal": "0",
230               "equal": null,
231               "greater_than": null,
232               "range_values": null,
233               "less_than": null,
234               "less_or_equal": null
235             }],
236           "description": "The maximum time in seconds to wait for a state chage from running to passive",
237           "type_version": "0.0.0",
238           "key_schema": null,
239           "type": "integer",
240           "name": "runningToPassiveTimeout",
241           "default_value": 60
242         },
243         "participantType": {
244           "required": true,
245           "status": null,
246           "metadata": {
247             "common": "true"
248           },
249           "entry_schema": null,
250           "constraints": null,
251           "description": "The identity of the participant type that hosts this type of Automation Composition Element",
252           "type_version": "0.0.0",
253           "key_schema": null,
254           "type": "onap.datatypes.ToscaConceptIdentifier",
255           "name": "participantType",
256           "default_value": null
257         },
258         "startPhase": {
259           "required": false,
260           "status": null,
261           "metadata": {
262             "common": "true"
263           },
264           "entry_schema": null,
265           "constraints": [
266             {
267               "valid_values": null,
268               "greater_or_equal": "0",
269               "equal": null,
270               "greater_than": null,
271               "range_values": null,
272               "less_than": null,
273               "less_or_equal": null
274             }],
275           "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",
276           "type_version": "0.0.0",
277           "key_schema": null,
278           "type": "integer",
279           "name": "startPhase",
280           "default_value": null
281         },
282         "passiveToUninitializedTimeout": {
283           "required": false,
284           "status": null,
285           "metadata": {
286             "common": "true"
287           },
288           "entry_schema": null,
289           "constraints": [
290             {
291               "valid_values": null,
292               "greater_or_equal": "0",
293               "equal": null,
294               "greater_than": null,
295               "range_values": null,
296               "less_than": null,
297               "less_or_equal": null
298             }],
299           "description": "The maximum time in seconds to wait for a state chage from passive to uninitialized",
300           "type_version": "0.0.0",
301           "key_schema": null,
302           "type": "integer",
303           "name": "passiveToUninitializedTimeout",
304           "default_value": 60
305         },
306         "uninitializedToPassiveTimeout": {
307           "required": false,
308           "status": null,
309           "metadata": {
310             "common": "true"
311           },
312           "entry_schema": null,
313           "constraints": [
314             {
315               "valid_values": null,
316               "greater_or_equal": "0",
317               "equal": null,
318               "greater_than": null,
319               "range_values": null,
320               "less_than": null,
321               "less_or_equal": null
322             }],
323           "description": "The maximum time in seconds to wait for a state chage from uninitialized to passive",
324           "type_version": "0.0.0",
325           "key_schema": null,
326           "type": "integer",
327           "name": "uninitializedToPassiveTimeout",
328           "default_value": 60
329         },
330         "participant_id": {
331           "required": false,
332           "status": null,
333           "metadata": {
334             "common": "true"
335           },
336           "entry_schema": null,
337           "constraints": null,
338           "description": null,
339           "type_version": "0.0.0",
340           "key_schema": null,
341           "type": "onap.datatypes.ToscaConceptIdentifier",
342           "name": "participant_id",
343           "default_value": null
344         },
345         "provider": {
346           "required": false,
347           "status": null,
348           "metadata": {
349             "common": "true"
350           },
351           "entry_schema": null,
352           "constraints": null,
353           "description": "Specifies the organization that provides the automation composition element",
354           "type_version": "0.0.0",
355           "key_schema": null,
356           "type": "string",
357           "name": "provider",
358           "default_value": null
359         },
360         "passiveToRunningTimeout": {
361           "required": false,
362           "status": null,
363           "metadata": {
364             "common": "true"
365           },
366           "entry_schema": null,
367           "constraints": [
368             {
369               "valid_values": null,
370               "greater_or_equal": "0",
371               "equal": null,
372               "greater_than": null,
373               "range_values": null,
374               "less_than": null,
375               "less_or_equal": null
376             }],
377           "description": "The maximum time in seconds to wait for a state chage from passive to running",
378           "type_version": "0.0.0",
379           "key_schema": null,
380           "type": "integer",
381           "name": "passiveToRunningTimeout",
382           "default_value": 60
383         }
384       },
385       "metadata": {},
386       "description": null,
387       "requirements": null,
388       "version": "1.0.1",
389       "type_version": null,
390       "defined_name": "org.onap.policy.clamp.acm.AutomationCompositionElement",
391       "defined_version": "1.0.1",
392       "type": null,
393       "name": "org.onap.policy.clamp.acm.AutomationCompositionElement"
394     },
395     "org.onap.policy.clamp.acm.K8SMicroserviceAutomationCompositionElement": {
396       "key": {
397         "version": "1.0.1",
398         "name": "org.onap.policy.clamp.acm.K8SMicroserviceAutomationCompositionElement"
399       },
400       "derived_from": "org.onap.policy.clamp.acm.AutomationCompositionElement",
401       "properties": {
402         "templates": {
403           "required": false,
404           "status": null,
405           "metadata": null,
406           "entry_schema": null,
407           "constraints": null,
408           "description": null,
409           "type_version": "0.0.0",
410           "key_schema": null,
411           "type": "list",
412           "name": "templates",
413           "default_value": null
414         },
415         "requirements": {
416           "required": false,
417           "status": null,
418           "metadata": null,
419           "entry_schema": null,
420           "constraints": null,
421           "description": null,
422           "type_version": "0.0.0",
423           "key_schema": null,
424           "type": "string",
425           "name": "requirements",
426           "default_value": null
427         },
428         "values": {
429           "required": false,
430           "status": null,
431           "metadata": null,
432           "entry_schema": null,
433           "constraints": null,
434           "description": null,
435           "type_version": "0.0.0",
436           "key_schema": null,
437           "type": "string",
438           "name": "values",
439           "default_value": null
440         },
441         "configs": {
442           "required": false,
443           "status": null,
444           "metadata": null,
445           "entry_schema": null,
446           "constraints": null,
447           "description": null,
448           "type_version": "0.0.0",
449           "key_schema": null,
450           "type": "list",
451           "name": "configs",
452           "default_value": null
453         },
454         "chart": {
455           "required": true,
456           "status": null,
457           "metadata": null,
458           "entry_schema": null,
459           "constraints": null,
460           "description": null,
461           "type_version": "0.0.0",
462           "key_schema": null,
463           "type": "string",
464           "name": "chart",
465           "default_value": null
466         }
467       },
468       "metadata": {},
469       "description": null,
470       "requirements": null,
471       "version": "1.0.1",
472       "type_version": null,
473       "defined_name": "org.onap.policy.clamp.acm.K8SMicroserviceAutomationCompositionElement",
474       "defined_version": "1.0.1",
475       "type": null,
476       "name": "org.onap.policy.clamp.acm.K8SMicroserviceAutomationCompositionElement"
477     },
478     "org.onap.policy.clamp.acm.Participant": {
479       "key": {
480         "version": "1.0.1",
481         "name": "org.onap.policy.clamp.acm.Participant"
482       },
483       "derived_from": "tosca.nodetypes.Root",
484       "properties": {
485         "provider": {
486           "required": false,
487           "status": null,
488           "metadata": null,
489           "entry_schema": null,
490           "constraints": null,
491           "description": null,
492           "type_version": "0.0.0",
493           "key_schema": null,
494           "type": "string",
495           "name": "provider",
496           "default_value": null
497         }
498       },
499       "metadata": {},
500       "description": null,
501       "requirements": null,
502       "version": "1.0.1",
503       "type_version": null,
504       "defined_name": "org.onap.policy.clamp.acm.Participant",
505       "defined_version": "1.0.1",
506       "type": null,
507       "name": "org.onap.policy.clamp.acm.Participant"
508     }
509   }
510 }