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