update link to upper-constraints.txt
[optf/osdf.git] / osdf / models / policy / placement / tosca / distancePolicy-v20181031.yml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 node_types:
3     policy.nodes.distancePolicy:
4         derived_from: policy.nodes.Root
5         properties:
6             policyScope:
7                 type: list
8                 description: scope where the policy is applicable
9                 required: true
10                 matchable: true
11                 entry_schema:
12                     type: string
13             policyType:
14                 type: list
15                 description: type of a policy
16                 required: true
17                 matchable: true
18                 entry_schema:
19                     type: string
20                     consraints:
21                     -   valid_values:
22                         - distance_to_location
23             identity:
24                 type: string
25                 required: true
26             resources:
27                 type: list
28                 required: true
29                 entry_schema:
30                     type: string
31             applicableResources:
32                 type: list
33                 required: true
34                 entry_schema:
35                     type: string
36                     constraints:
37                     -   valid_values:
38                         - any
39                         - all
40             distanceProperties:
41                 type: policy.data.distanceProperties_properties
42                 required: true
43 data_types:
44     policy.data.distanceProperties_properties:
45         derived_from: tosca.nodes.Root
46         properties:
47             locationInfo:
48                 type: string
49                 required: true
50             distance:
51                 type: policy.data.distance_properties
52                 required: true
53     policy.data.distance_properties:
54         derived_from: tosca.nodes.Root
55         properties:
56             value:
57                 type: string
58                 required: true
59             operator:
60                 type: list
61                 required: true
62                 entry_schema:
63                     type: string
64                     constraints:
65                     -   valid_values:
66                         - <
67                         - <=
68                         - '>'
69                         - '>='
70                         - '='
71             unit:
72                 type: list
73                 required: true
74                 entry_schema:
75                     type: string
76                     constraints:
77                     -   valid_values:
78                         - km