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