summaryrefslogtreecommitdiffstats
path: root/catalog-ui/server-mock/mock-data/resource/resource.json
blob: bc04f407303b2afe2b46b68e51e81ea66e1358da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
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"
    ]
}