Add metadata to properties
[policy/models.git] / models-examples / src / main / resources / policytypes / onap.policies.Optimization.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 policy_types:
3    onap.policies.Optimization:
4       derived_from: tosca.policies.Root
5       version: 1.0.0
6       description: The base policy type for all policies that govern optimization
7       properties:
8          scope:
9             description: Scope for the policy - could be for a specific release.
10             type: list
11             metadata:
12                matchable: true
13             required: true
14             entry_schema:
15                type: string
16          services:
17             description: One or more services that the policy applies to.
18             type: list
19             metadata:
20                matchable: true
21             required: true
22             entry_schema:
23                type: string
24          resources:
25             description: One or more VNF resources that the policy applies to.
26             type: list
27             metadata:
28                matchable: true
29             required: true
30             entry_schema:
31                type: string
32          geography:
33             description: One or more geographic regions
34             type: list
35             metadata:
36                matchable: true
37             required: true
38             entry_schema:
39                type: string
40                constraints:
41                -  valid_values:
42                   - US
43                   - International
44          identity:
45             description: Used internally for identification
46             type: string
47             required: true