95c87e1294e6a3d16add39389c98939cc3dbf482
[policy/models.git] / models-examples / src / main / resources / policytypes / onap.policies.native.Drools.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_1_0
2 policy_types:
3     onap.policies.Native:
4         derived_from: tosca.policies.Root
5         description: a base policy type for all native PDP policies
6         version: 1.0.0
7         name: onap.policies.Native
8     onap.policies.native.Drools:
9         derived_from: onap.policies.Native
10         description: a base policy type for all native PDP policies
11         version: 1.0.0
12         name: onap.policies.native.Drools
13     onap.policies.native.drools.Controller:
14         derived_from: onap.policies.native.Drools
15         description: a policy type for a drools controller configuration
16         version: 1.0.0
17         name: onap.policies.native.drools.Controller
18         properties:
19             controllerName:
20                 type: string
21                 required: true
22                 description: the drools controller name
23             sourceTopics:
24                 type: list
25                 required: false
26                 description: source topics and applicable events
27                 entry_schema:
28                     type: onap.datatypes.dmaap.topic
29             sinkTopics:
30                 type: list
31                 required: false
32                 description: sink topics and applicable events
33                 entry_schema:
34                     type: onap.datatypes.dmaap.topic
35             customConfig:
36                 type: map
37                 required: false
38                 description: any use case specific configurations relevant to the drools controller
39                 entry_schema:
40                     type: string
41     onap.policies.native.drools.Artifact:
42         derived_from: onap.policies.native.Drools
43         description: a policy type for native drools artifact policies
44         version: 1.0.0
45         name: onap.policies.native.drools.Artifact
46         properties:
47             rulesArtifact:
48                 type: onap.datatypes.native.rules_artifact
49                 required: true
50                 description: the GAV information of the maven artifact
51             controller:
52                 type: onap.datatypes.drools.controller.relation
53                 required: true
54                 description: the drools controller to which the current native policy is assigned
55
56 data_types:
57     onap.datatypes.dmaap.topic:
58         derived_from: tosca.datatypes.Root
59         properties:
60             topicName:
61                 type: string
62                 required: true
63                 description: the dmaap topic name
64             events:
65                 type: list
66                 required: true
67                 description: events used by this topic
68                 entry_schema:
69                     type: onap.datatypes.dmaap.events
70     onap.datatypes.dmaap.events:
71         derived_from: tosca.datatypes.Root
72         properties:
73             eventClass:
74                 type: string
75                 required: true
76                 description: the event canonical class for serialization
77             eventFilter:
78                 type: string
79                 required: false
80                 description: the JSONPath based condition to filter out the events to serialize
81             customSerialization:
82                 type: onap.datatypes.dmaap.custom_serialization
83                 required: false
84                 description:  overrides the default serialization/deserialization mechanisms with custom ones
85     onap.datatypes.dmaap.custom_serialization:
86         derived_from: tosca.datatypes.Root
87         properties:
88             customSerializerClass:
89                 type: string
90                 required: true
91                 description: the class that contains the JSON parser serializer/deserializer.
92             jsonParser:
93                 type: string
94                 required: true
95                 description: static field in customSerialized class with the json parser (currently only gson supported)
96     onap.datatypes.native.rules_artifact:
97         derived_from: tosca.datatypes.Root
98         properties:
99             groupId:
100                 type: string
101                 required: true
102                 description: the groupId of the maven artifact
103             artifactId:
104                 type: string
105                 required: true
106                 description: the artifactId of the maven artifact
107             version:
108                 type: string
109                 required: true
110                 description: the version of the maven artifact
111     onap.datatypes.drools.controller.relation:
112         derived_from: tosca.datatypes.Root
113         properties:
114             name:
115                 type: string
116                 required: true
117                 description: the name of drools controller policy