diff options
author | Michael Lando <ml636r@att.com> | 2017-02-19 10:28:42 +0200 |
---|---|---|
committer | Michael Lando <ml636r@att.com> | 2017-02-19 10:51:01 +0200 |
commit | 451a3400b76511393c62a444f588a4ed15f4a549 (patch) | |
tree | e4f5873a863d1d3e55618eab48b83262f874719d /catalog-ui/server-mock/mock-data/resource/resource.json | |
parent | 5abfe4e1fb5fae4bbd5fbc340519f52075aff3ff (diff) |
Initial OpenECOMP SDC commit
Change-Id: I0924d5a6ae9cdc161ae17c68d3689a30d10f407b
Signed-off-by: Michael Lando <ml636r@att.com>
Diffstat (limited to 'catalog-ui/server-mock/mock-data/resource/resource.json')
-rw-r--r-- | catalog-ui/server-mock/mock-data/resource/resource.json | 153 |
1 files changed, 153 insertions, 0 deletions
diff --git a/catalog-ui/server-mock/mock-data/resource/resource.json b/catalog-ui/server-mock/mock-data/resource/resource.json new file mode 100644 index 0000000000..bc04f40730 --- /dev/null +++ b/catalog-ui/server-mock/mock-data/resource/resource.json @@ -0,0 +1,153 @@ +{ + "uniqueId": "my-resource.1.0.0", + "isAbstract": false, + "resourceName": "my-resource", + "resourceVersion": "1.0.0", + "isHighestVersion": false, + "vendorName": "vendorName", + "vendorRelease": "vendorRelease", + "contactId": "contactId", + "olderVersions": [ + "bla" + ], + "resourceIconSrc": "images/resource-icons/firewall.png", + "icon":"icon-red2", + "creatorUserId": "jh0003", + "creatorFullName": "Jimmy Hendrix", + "lastUpdaterUserId": "jh000322", + "lastUpdaterFullName": "JHaval Jimmy Hendrix", + "creationDate": 1431525184379, + "lastUpdateDate": 1431525184394, + "description": "Description bla bla", + "tags": [ + "some tag", + "tag2", + "tag3", + "tag4" + ], + "category": "Infrastructure", + "lifecycleState": "CERTIFIED", + "derivedFrom": [ + "template1" + ], + "artifacts": { + "db_content": { + "uniqueId": "my-resource.1.0.0.db_content", + "artifactType": "puppet", + "artifactRef": "http://swift OR CATALOG FE /myfile", + "artifactName": "some Artifact Name1", + "artifactRepository": "SWIFT", + "artifactData": "base 64 dajfvsd fsdfsfs s==", + "artifactChecksum": "base 64 dsdsd==", + "userIdCreator": "jh0003", + "userIdLastUpdater": "jh0003", + "creatorFullName": "Jimmy Hendrix", + "updaterFullName": "Jimmy Hendrix", + "creationDate": 1431525184377, + "lastUpdateDate": 1431525184377 + }, + "db_content_2": { + "uniqueId": "my-resource.1.0.0.db_content_2", + "artifactType": "puppet", + "artifactRef": "http://swift OR CATALOG FE /myfile", + "artifactName": "some Artifact Name2", + "artifactRepository": "SWIFT", + "artifactData": "base 64 dajfvsd fsdfsfs s==", + "artifactChecksum": "base 64 dsdsd==", + "userIdCreator": "jh0003", + "userIdLastUpdater": "jh0003", + "creatorFullName": "Jimmy Hendrix", + "updaterFullName": "Jimmy Hendrix", + "creationDate": 1431525184377, + "lastUpdateDate": 1431525184377 + }, + "db_content_3": { + "uniqueId": "my-resource.1.0.0.db_content_3", + "artifactType": "puppet", + "artifactRef": "http://swift OR CATALOG FE /myfile", + "artifactName": "some Artifact Name3", + "artifactRepository": "SWIFT", + "artifactData": "base 64 dajfvsd fsdfsfs s==", + "artifactChecksum": "base 64 dsdsd==", + "userIdCreator": "jh0003", + "userIdLastUpdater": "jh0003", + "creatorFullName": "Jimmy Hendrix", + "updaterFullName": "Jimmy Hendrix", + "creationDate": 1431525184377, + "lastUpdateDate": 1431525184377 + } + }, + "properties": { + "disk_size": { + "uniqueId": "uniqueId_1", + "type": "integer", + "required": false, + "defaultValue": "10", + "description": "Size of the local disk, in Gigabytes (GB), available to applications running on the Compute node.", + "constraints": [ + { + "inRange": [ + "100" + ] + } + ], + "isPassword": false + }, + "num_cpus": { + "uniqueId": "uniqueId_2", + "type": "integer", + "required": false, + "defaultValue": "2", + "description": "Number of (actual or virtual) CPUs associated with the Compute node.", + "constraints": [ + { + "inRange": [ + "1", + "4" + ] + } + ], + "isPassword": false + } + }, + "attributes": { + "tmp": {} + }, + "interfaces": { + "tmp": { + "operations": {} + } + }, + "capabilities": { + "host": { + "uniqueId": "capability.tosca.nodes.Compute.1.0.host", + "type": "tosca.capabilities.Container", + "validSourceTypes": [ + "tosca.nodes.SC" + ] + } + }, + "requirements": { + "host": { + "uniqueId": "tosca.nodes.SoftwareComponent.1.0.host", + "capability": "tosca.capabilities.Container", + "node": "tosca.nodes.Compute", + "requirementImpl": { + "uniqueId": "requirementImpl.my-resource.1.0.host", + "nodeId": "tosca.nodes.Compute.1.0", + "requirementProperties": { + "host": { + "uniqueId": "capabilityInst.requirementImpl.my-resource.1.0.host.host", + "properties": { + "disk_size": "10", + "num_cpus": "2" + } + } + } + } + } + }, + "defaultCapabilities": [ + "defaultCapabilities" + ] +} |