summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorBrinda Santh Muthuramalingam <brindasanth@in.ibm.com>2019-08-13 15:52:55 +0000
committerGerrit Code Review <gerrit@onap.org>2019-08-13 15:52:55 +0000
commit82bc5bf7beb713c14757d73de595b419366fc9c4 (patch)
tree5e7c1968b22d60bd79f0f5eed67f00aaff2ea8a9 /components
parent13904e48fc907f4c5013593a60ad6efbfcc42822 (diff)
parent34c424689a52614fb414d65899282497fe25b164 (diff)
Merge "Resource Configuration Snapshots Executor and API"
Diffstat (limited to 'components')
-rw-r--r--components/model-catalog/definition-type/starter-type/node_type/component-config-snapshots-executor.json90
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