Adding 'name' to yamls and json in model
[policy/models.git] / models-examples / src / main / resources / policytypes / onap.policies.optimization.resource.VnfPolicy.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_1_0
2 policy_types:
3    onap.policies.optimization.resource.VnfPolicy:
4       derived_from: onap.policies.optimization.Resource
5       version: 1.0.0
6       name: onap.policies.optimization.resource.VnfPolicy
7       properties:
8          applicableResources:
9             type: list
10             required: true
11             entry_schema:
12                type: string
13                constraints:
14                -  valid_values:
15                   - any
16                   - all
17          vnfProperties:
18             type: list
19             required: true
20             entry_schema:
21                type: policy.data.vnfProperties_properties
22 data_types:
23    policy.data.vnfProperties_properties:
24       derived_from: tosca.nodes.Root
25       properties:
26          inventoryProvider:
27             type: string
28             required: true
29          serviceType:
30             type: string
31             required: true
32          inventoryType:
33             type: list
34             required: true
35             entry_schema:
36                type: string
37                constraints:
38                -  valid_values:
39                   - serviceInstanceId
40                   - vnfName
41                   - cloudRegionId
42                   - vimId
43          customerId:
44             type: string
45             required: true