Add passthrough attributes
[optf/osdf.git] / osdf / models / policy / placement / tosca_upload / onap.policies.optimization.VnfPolicy.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: a base policy type for all policies that govern optimization
7     - onap.policies.optimization.VnfPolicy:
8         derived_from: onap.policies.Optimization
9         properties:
10             policyScope:
11                 type: list
12                 description: scope where the policy is applicable
13                 required: true
14                 matchable: true
15                 entry_schema:
16                     type: string
17             policyType:
18                 type: list
19                 description: type of a policy
20                 required: true
21                 matchable: true
22                 entry_schema:
23                     type: string
24                     consraints:
25                     -   valid_values:
26                         - vnfPolicy
27             identity:
28                 type: string
29                 required: true
30             resources:
31                 type: list
32                 required: true
33                 entry_schema:
34                     type: string
35             applicableResources:
36                 type: list
37                 required: true
38                 entry_schema:
39                     type: string
40                     constraints:
41                     -   valid_values:
42                         - any
43                         - all
44             vnfProperties:
45                 type: list
46                 required: true
47                 entry_schema:
48                     type:policy.data.vnfProperties_properties
49 data_types:
50     policy.data.vnfProperties_properties:
51         derived_from: tosca.nodes.Root
52         properties:
53             inventoryProvider:
54                 type: string
55                 required: true
56             serviceType:
57                 type: string
58                 required: true
59             inventoryType:
60                 type: list
61                 required: true
62                 entry_schema:
63                     type: string
64                     constraints:
65                     -   valid_values:
66                         - serviceInstanceId
67                         - vnfName
68                         - cloudRegionId
69                         - vimId
70             customerId:
71                 type: string
72                 required: true
73             unique:
74                 type: string
75                 required: false
76             attributes:
77                 type: list
78                 required: false
79                 entry_schema:
80                     type:policy.data.vnfProperties_filteringAttributes
81             passthroughAttributes:
82                 type: list
83                 required: false
84                 entry_schema:
85                     type:policy.data.vnfProperties_passthroughAttributes
86     policy.data.vnfProperties_filteringAttributes:
87         derived_from: tosca.nodes.Root
88     policy.data.vnfProperties_passthroughAttributes:
89         derived_from: tosca.nodes.Root
90