summaryrefslogtreecommitdiffstats
path: root/models-tosca/src/test/resources/onap.policies.NoVersion.yaml
blob: 5923eb22dee5b625a79b530aa5223056300251cb (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
tosca_definitions_version: tosca_simple_yaml_1_0_0
policy_types:
   onap.policies.Optimization:
      derived_from: tosca.policies.Root
      version: 1.0.0
      description: The base policy type for all policies that govern optimization
   onap.policies.NoVersion:
      derived_from: onap.policies.Optimization
      properties:
         applicableResources:
            type: list
            required: true
            entry_schema:
               type: string
               constraints:
               -  valid_values:
                  - any
                  - all
         affinityProperties:
            type: policy.data.affinityProperties_properties
            required: true
data_types:
   policy.data.affinityProperties_properties:
      derived_from: tosca.nodes.Root
      properties:
         qualifier:
            type: string
            constraints:
            -  valid_values:
               - same
               - different
         category:
            type: string
            required: true