diff options
author | Serge Simard <serge@agilitae.com> | 2019-08-08 10:55:57 -0400 |
---|---|---|
committer | Serge Simard <serge@agilitae.com> | 2019-08-13 14:57:10 +0000 |
commit | 34c424689a52614fb414d65899282497fe25b164 (patch) | |
tree | 91fdafc99a280064f0ef19c1576fdcbbae303cfc /components/model-catalog | |
parent | 571c49342a905616298d923a9d29a201ae4ecd11 (diff) |
Resource Configuration Snapshots Executor and API
Issue-ID: CCSDK-1604
Signed-off-by: Serge Simard <serge@agilitae.com>
Change-Id: I349c649e941431b48a309123489d26fb22e0e50a
Signed-off-by: Serge Simard <serge@agilitae.com>
Diffstat (limited to 'components/model-catalog')
-rw-r--r-- | components/model-catalog/definition-type/starter-type/node_type/component-config-snapshots-executor.json | 90 |
1 files changed, 90 insertions, 0 deletions
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 |