CLAMP-CDS integration to display all CDS actions for blueprint in CL
[clamp.git] / src / test / resources / tosca / operational-policy-json-schema.json
index d6870dc..b43f6f9 100644 (file)
@@ -87,7 +87,6 @@
                                                                                "basicCategoryTitle": "recipe",
                                                                                "required": [
                                                                                        "id",
-                                                                                       "recipe",
                                                                                        "retry",
                                                                                        "timeout",
                                                                                        "actor",
                                                                                                "title": "Policy ID",
                                                                                                "type": "string"
                                                                                        },
-                                                                                       "recipe": {
-                                                                                               "title": "Recipe",
-                                                                                               "type": "string",
-                                                                                               "enum": [
-                                                                                                       "Restart",
-                                                                                                       "Rebuild",
-                                                                                                       "Migrate",
-                                                                                                       "Health-Check",
-                                                                                                       "ModifyConfig",
-                                                                                                       "VF Module Create",
-                                                                                                       "VF Module Delete",
-                                                                                                       "Reroute"
-                                                                                               ]
-                                                                                       },
                                                                                        "retry": {
                                                                                                "default": "0",
                                                                                                "title": "Number of Retry",
                                                                                                "format": "number"
                                                                                        },
                                                                                        "actor": {
+                                                                                               "type": "object",
                                                                                                "title": "Actor",
-                                                                                               "type": "string",
-                                                                                               "enum": [
-                                                                                                       "APPC",
-                                                                                                       "SO",
-                                                                                                       "VFC",
-                                                                                                       "SDNC",
-                                                                                                       "SDNR"
+                                                                                               "anyOf": [
+                                                                                                       {
+                                                                                                               "title": "APPC",
+                                                                                                               "properties": {
+                                                                                                                       "actor": {
+                                                                                                                               "title": "actor",
+                                                                                                                               "type": "string",
+                                                                                                                               "default": "APPC",
+                                                                                                                               "options": {
+                                                                                                                                       "hidden": true
+                                                                                                                               }
+                                                                                                                       },
+                                                                                                                       "type": {
+                                                                                                                               "title": "recipe",
+                                                                                                                               "type": "string",
+                                                                                                                               "default": "",
+                                                                                                                               "enum": [
+                                                                                                                                       "Restart",
+                                                                                                                                       "Rebuild",
+                                                                                                                                       "Migrate",
+                                                                                                                                       "Health-Check",
+                                                                                                                                       "ModifyConfig"
+                                                                                                                               ]
+                                                                                                                       },
+                                                                                                                       "payload": {
+                                                                                                                               "title": "Payload (YAML)",
+                                                                                                                               "type": "string",
+                                                                                                                               "format": "textarea"
+                                                                                                                       }
+                                                                                                               }
+                                                                                                       },
+                                                                                                       {
+                                                                                                               "title": "SO",
+                                                                                                               "properties": {
+                                                                                                                       "actor": {
+                                                                                                                               "title": "actor",
+                                                                                                                               "type": "string",
+                                                                                                                               "default": "SO",
+                                                                                                                               "options": {
+                                                                                                                                       "hidden": true
+                                                                                                                               }
+                                                                                                                       },
+                                                                                                                       "type": {
+                                                                                                                               "title": "recipe",
+                                                                                                                               "type": "string",
+                                                                                                                               "default": "",
+                                                                                                                               "enum": [
+                                                                                                                                       "VF Module Create",
+                                                                                                                                       "VF Module Delete"
+                                                                                                                               ]
+                                                                                                                       },
+                                                                                                                       "payload": {
+                                                                                                                               "title": "Payload (YAML)",
+                                                                                                                               "type": "string",
+                                                                                                                               "format": "textarea"
+                                                                                                                       }
+                                                                                                               }
+                                                                                                       },
+                                                                                                       {
+                                                                                                               "title": "SDNC",
+                                                                                                               "properties": {
+                                                                                                                       "actor": {
+                                                                                                                               "title": "actor",
+                                                                                                                               "type": "string",
+                                                                                                                               "default": "SDNC",
+                                                                                                                               "options": {
+                                                                                                                                       "hidden": true
+                                                                                                                               }
+                                                                                                                       },
+                                                                                                                       "type": {
+                                                                                                                               "title": "recipe",
+                                                                                                                               "type": "string",
+                                                                                                                               "default": "",
+                                                                                                                               "enum": [
+                                                                                                                                       "Reroute",
+                                                                                                                                       "BandwidthOnDemand"
+                                                                                                                               ]
+                                                                                                                       },
+                                                                                                                       "payload": {
+                                                                                                                               "title": "Payload (YAML)",
+                                                                                                                               "type": "string",
+                                                                                                                               "format": "textarea"
+                                                                                                                       }
+                                                                                                               }
+                                                                                                       },
+                                                                                                       {
+                                                                                                               "title": "VFC",
+                                                                                                               "properties": {
+                                                                                                                       "actor": {
+                                                                                                                               "title": "actor",
+                                                                                                                               "type": "string",
+                                                                                                                               "default": "VFC",
+                                                                                                                               "options": {
+                                                                                                                                       "hidden": true
+                                                                                                                               }
+                                                                                                                       },
+                                                                                                                       "type": {
+                                                                                                                               "title": "recipe",
+                                                                                                                               "type": "string",
+                                                                                                                               "required": [
+                                                                                                                                       "payload"
+                                                                                                                               ],
+                                                                                                                               "default": "",
+                                                                                                                               "enum": [
+                                                                                                                                       "ModifyConfig"
+                                                                                                                               ]
+                                                                                                                       },
+                                                                                                                       "payload": {
+                                                                                                                               "title": "Payload (YAML)",
+                                                                                                                               "type": "string",
+                                                                                                                               "format": "textarea"
+                                                                                                                       }
+                                                                                                               }
+                                                                                                       },
+                                                                                                       {
+                                                                                                               "title": "CDS",
+                                                                                                               "properties": {
+                                                                                                                       "actor": {
+                                                                                                                               "title": "actor",
+                                                                                                                               "type": "string",
+                                                                                                                               "default": "CDS",
+                                                                                                                               "options": {
+                                                                                                                                       "hidden": true
+                                                                                                                               }
+                                                                                                                       },
+                                                                                                                       "type": {
+                                                                                                                               "title": "recipe",
+                                                                                                                               "type": "object",
+                                                                                                                               "required": [
+                                                                                                                                       "payload"
+                                                                                                                               ],
+                                                                                                                               "anyOf": [
+                                                                                                                                       {
+                                                                                                                                               "title": "user-defined",
+                                                                                                                                               "properties": {
+                                                                                                                                                       "type": {
+                                                                                                                                                               "title": "Payload (YAML)",
+                                                                                                                                                               "type": "string",
+                                                                                                                                                               "format": "textarea"
+                                                                                                                                                       }
+                                                                                                                                               }
+                                                                                                                                       },
+                                                                                                                                       {
+                                                                                                                                               "title": "resource-assignment",
+                                                                                                                                               "properties": {
+                                                                                                                                                       "type": {
+                                                                                                                                                               "title": "Payload (YAML)",
+                                                                                                                                                               "type": "string",
+                                                                                                                                                               "default": "'artifact_name : \"baseconfiguration\"\nartifact_version : \"1.0.0\"\nmode : async\ndata : '\\'{\"resource-assignment-properties\":{\"request-id\":\"\",\"service-instance-id\":\"\",\"vnf-id\":\"\",\"action-name\":\"\",\"scope-type\":\"\",\"hostname\":\"\",\"vnf_name\":\"\"}}\\''",
+                                                                                                                                                               "format": "textarea"
+                                                                                                                                                       }
+                                                                                                                                               }
+                                                                                                                                       },
+                                                                                                                                       {
+                                                                                                                                               "title": "activate",
+                                                                                                                                               "properties": {
+                                                                                                                                                       "type": {
+                                                                                                                                                               "title": "Payload (YAML)",
+                                                                                                                                                               "type": "string",
+                                                                                                                                                               "default": "'artifact_name : \"baseconfiguration\"\nartifact_version : \"1.0.0\"\nmode : async\ndata : '\\'{\"resource-assignment-properties\":{\"request-id\":\"\",\"service-instance-id\":\"\",\"vnf-id\":\"\",\"action-name\":\"\",\"scope-type\":\"\",\"hostname\":\"\",\"vnf_name\":\"\"}}\\''",
+                                                                                                                                                               "format": "textarea"
+                                                                                                                                                       }
+                                                                                                                                               }
+                                                                                                                                       },
+                                                                                                                                       {
+                                                                                                                                               "title": "activate-restconf",
+                                                                                                                                               "properties": {
+                                                                                                                                                       "type": {
+                                                                                                                                                               "title": "Payload (YAML)",
+                                                                                                                                                               "type": "string",
+                                                                                                                                                               "default": "'artifact_name : \"baseconfiguration\"\nartifact_version : \"1.0.0\"\nmode : async\ndata : '\\'{\"resource-assignment-properties\":{\"request-id\":\"\",\"service-instance-id\":\"\",\"vnf-id\":\"\",\"action-name\":\"\",\"scope-type\":\"\",\"hostname\":\"\",\"vnf_name\":\"\"}}\\''",
+                                                                                                                                                               "format": "textarea"
+                                                                                                                                                       }
+                                                                                                                                               }
+                                                                                                                                       },
+                                                                                                                                       {
+                                                                                                                                               "title": "activate-cli",
+                                                                                                                                               "properties": {
+                                                                                                                                                       "type": {
+                                                                                                                                                               "title": "Payload (YAML)",
+                                                                                                                                                               "type": "string",
+                                                                                                                                                               "default": "'artifact_name : \"baseconfiguration\"\nartifact_version : \"1.0.0\"\nmode : async\ndata : '\\'{\"resource-assignment-properties\":{\"request-id\":\"\",\"service-instance-id\":\"\",\"vnf-id\":\"\",\"action-name\":\"\",\"scope-type\":\"\",\"hostname\":\"\",\"vnf_name\":\"\"}}\\''",
+                                                                                                                                                               "format": "textarea"
+                                                                                                                                                       }
+                                                                                                                                               }
+                                                                                                                                       },
+                                                                                                                                       {
+                                                                                                                                               "title": "assign-activate",
+                                                                                                                                               "properties": {
+                                                                                                                                                       "type": {
+                                                                                                                                                               "title": "Payload (YAML)",
+                                                                                                                                                               "type": "string",
+                                                                                                                                                               "default": "'artifact_name : \"baseconfiguration\"\nartifact_version : \"1.0.0\"\nmode : async\ndata : '\\'{\"resource-assignment-properties\":{\"request-id\":\"\",\"service-instance-id\":\"\",\"vnf-id\":\"\",\"action-name\":\"\",\"scope-type\":\"\",\"hostname\":\"\",\"vnf_name\":\"\"}}\\''",
+                                                                                                                                                               "format": "textarea"
+                                                                                                                                                       }
+                                                                                                                                               }
+                                                                                                                                       },
+                                                                                                                                       {
+                                                                                                                                               "title": "imperative-test-wf",
+                                                                                                                                               "properties": {
+                                                                                                                                                       "type": {
+                                                                                                                                                               "title": "Payload (YAML)",
+                                                                                                                                                               "type": "string",
+                                                                                                                                                               "default": "'artifact_name : \"baseconfiguration\"\nartifact_version : \"1.0.0\"\nmode : async\ndata : '\\'{\"resource-assignment-properties\":{\"request-id\":\"\",\"service-instance-id\":\"\",\"vnf-id\":\"\",\"action-name\":\"\",\"scope-type\":\"\",\"hostname\":\"\",\"vnf_name\":\"\"}}\\''",
+                                                                                                                                                               "format": "textarea"
+                                                                                                                                                       }
+                                                                                                                                               }
+                                                                                                                                       }
+                                                                                                                               ]
+                                                                                                                       }
+                                                                                                               }
+                                                                                                       }
                                                                                                ]
                                                                                        },
-                                                                                       "payload": {
-                                                                                               "title": "Payload (YAML)",
-                                                                                               "type": "string",
-                                                                                               "format": "textarea"
-                                                                                       },
                                                                                        "success": {
                                                                                                "default": "final_success",
                                                                                                "title": "When Success",