Merge "Add debugging of REST call"
[policy/drools-applications.git] / controlloop / common / model-impl / sdc / src / main / resources / definitions.yaml
1 # Copyright 2018 AT&T Intellectual Property. All rights reserved
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #         http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 Service:
15   type: Object
16   properties:
17     serviceUUID:
18       type: string
19       pattern: "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
20     serviceInvariantUUID:
21       type: string
22       pattern: "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
23     serviceName:
24       type: string
25     serviceVersion:
26       type: string
27 Resource:
28   type: Object
29   properties:
30     resourceUUID:
31       type: string
32       pattern: "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
33     resourceInvariantUUID:
34       type: string
35       pattern: "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
36     resourceName:
37       type: string
38     resourceVersion:
39       type: string
40     resourceType:
41       type: string
42       valid_values:
43         - VF
44         - VFC
45         - CP
46         - VL
47 ServiceInstance:
48   type: Object
49   properties:
50     personaModelUUID:
51       type: string
52       pattern: "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
53     serviceUUID:
54       type: string
55       pattern: "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
56     serviceInstanceUUID:
57       type: string
58       pattern: "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
59     widgetModelUUID:
60       type: string
61       pattern: "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
62     widgetModelVersion:
63       type: string
64     serviceName:
65       type: string
66     serviceInstanceName:
67       type: string
68 ResourceInstance:
69   type: object
70   properties:
71     resourceInstanceName:
72       type: string
73     resourceName:
74       type: string
75     resourceInvariantUUID:
76       type: string
77       pattern: "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
78     resourceVersion:
79       type: string
80     resourceType:
81       type: string
82       valid_values:
83         - VF
84         - VFC
85         - CP
86         - VL
87     resourceUUID:
88       type: string
89       pattern: "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"