Fix missing capability cli models.
[ccsdk/cds.git] / components / model-catalog / blueprint-model / test-blueprint / capability_cli / Definitions / capability-cli-blueprint.json
1 {
2   "tosca_definitions_version": "controller_blueprint_1_0_0",
3   "metadata": {
4     "template_author": "Brinda Santh Muthuramalingam",
5     "author-email": "brindasanth@in.ibm.com",
6     "user-groups": "ADMIN, OPERATION",
7     "template_name": "capability-cli",
8     "template_version": "1.0.0",
9     "template_tags": "brinda, tosca"
10   },
11   "imports": [
12     {
13       "file": "Definitions/data_types.json"
14     },
15     {
16       "file": "Definitions/relationship_types.json"
17     },
18     {
19       "file": "Definitions/artifact_types.json"
20     },
21     {
22       "file": "Definitions/node_types.json"
23     },
24     {
25       "file": "Definitions/policy_types.json"
26     }
27   ],
28   "dsl_definitions": {
29     "config-deploy-properties": {
30       "resolution-key": {
31         "get_input": "resolution-key"
32       }
33     },
34     "device-properties": {
35       "type": "basic-auth",
36       "host": {
37         "get_input": "hostname"
38       },
39       "username": {
40         "get_input": "username"
41       },
42       "password": {
43         "get_input": "password"
44       }
45     }
46   },
47   "topology_template": {
48     "workflows": {
49       "check": {
50         "inputs": {
51           "hostname": {
52             "required": true,
53             "type": "string"
54           },
55           "username": {
56             "required": true,
57             "type": "string"
58           },
59           "password": {
60             "required": true,
61             "type": "string"
62           },
63           "data": {
64             "required": true,
65             "type": "json"
66           }
67         },
68         "steps": {
69           "activate-process": {
70             "description": "Check CLI",
71             "target": "check",
72             "activities": [
73               {
74                 "call_operation": "ComponentScriptExecutor.process"
75               }
76             ]
77           }
78         }
79       }
80     },
81     "node_templates": {
82       "check": {
83         "type": "component-script-executor",
84         "interfaces": {
85           "ComponentScriptExecutor": {
86             "operations": {
87               "process": {
88                 "implementation": {
89                   "primary": "component-script"
90                 },
91                 "inputs": {
92                   "script-type": "kotlin",
93                   "script-class-reference": "cba.scripts.capability.cli.Check"
94                 },
95                 "outputs": {
96                   "response-data": "",
97                   "status": "success"
98                 }
99               }
100             }
101           }
102         },
103         "artifacts": {
104           "command-template": {
105             "type": "artifact-template-velocity",
106             "file": "Templates/check-command-template.vtl"
107           }
108         }
109       }
110     }
111   }
112 }