From 34c424689a52614fb414d65899282497fe25b164 Mon Sep 17 00:00:00 2001 From: Serge Simard Date: Thu, 8 Aug 2019 10:55:57 -0400 Subject: Resource Configuration Snapshots Executor and API Issue-ID: CCSDK-1604 Signed-off-by: Serge Simard Change-Id: I349c649e941431b48a309123489d26fb22e0e50a Signed-off-by: Serge Simard --- .../component-config-snapshots-executor.json | 90 ++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 components/model-catalog/definition-type/starter-type/node_type/component-config-snapshots-executor.json (limited to 'components') diff --git a/components/model-catalog/definition-type/starter-type/node_type/component-config-snapshots-executor.json b/components/model-catalog/definition-type/starter-type/node_type/component-config-snapshots-executor.json new file mode 100644 index 000000000..1cc366637 --- /dev/null +++ b/components/model-catalog/definition-type/starter-type/node_type/component-config-snapshots-executor.json @@ -0,0 +1,90 @@ +{ + "description": "This is Resource configuration snapshots Execution Component.", + "version": "1.0.0", + "attributes": { + "config-snapshot-status": { + "required": true, + "type": "string" + }, + "config-snapshot-message": { + "required": true, + "type": "string" + }, + "config-snapshot-value": { + "required": false, + "type": "string" + } + }, + "capabilities": { + "component-node": { + "type": "tosca.capabilities.Node" + } + }, + "interfaces": { + "ComponentConfigSnapshotsExecutor": { + "operations": { + "process": { + "inputs": { + "operation": { + "description": "Operation to perform: fetch, store, diff. (required)", + "required": true, + "type": "string", + "constraints": [ + { + "valid_values": [ + "fetch", + "store", + "diff" + ] + } + ] + }, + "resource-id": { + "description": "Identifier for the resource config to operate on. (required)", + "required": true, + "type": "string" + }, + "resource-type": { + "description": "Type of the resource config to operate on, e.g. PNF, VNF, etc. (required)", + "required": true, + "type": "string" + }, + "resource-status" : { + "description": "Status of the resource to fetch or store, either RUNNING or CANDIDATE. (optional)", + "required" : false, + "type" : "string", + "default": "RUNNING", + "constraints": [ + { + "valid_values": [ + "RUNNING", + "CANDIDATE" + ] + } + ] + }, + "resource-snapshot": { + "description": "The resource config snapshot to store for the resource identified by id/type/status. (store operation only)", + "required": false, + "type": "string" + }, + "diff-content-type": { + "description": "Specify the type of content expected, to perform comparison on. (diff operation only)", + "required": false, + "type": "string", + "constraints": [ + { + "valid_values": [ + "xml", + "json" + ] + } + ] + } + } + } + } + } + }, + "derived_from": "tosca.nodes.Component" +} \ No newline at end of file -- cgit 1.2.3-korg