Rework tosca converter
[clamp.git] / src / test / resources / http-cache / example / policy / api / v1 / policytypes / onap.policies.controlloop.operational.common.Drools / versions / 1.0.0?connectionTimeToLive=5000 / .file
1 tosca_definitions_version: tosca_simple_yaml_1_1_0
2 policy_types:
3     onap.policies.controlloop.operational.common.Drools:
4         derived_from: onap.policies.controlloop.operational.Common
5         type_version: 1.0.0
6         version: 1.0.0
7         description: Operational policies for Drools PDP
8         properties:
9             controllerName:
10                 type: string
11                 description: Drools controller properties
12                 required: false
13     onap.policies.controlloop.operational.Common:
14         derived_from: tosca.policies.Root
15         version: 1.0.0
16         description: |
17             Operational Policy for Control Loop execution. Originated in Frankfurt to support TOSCA Compliant
18             Policy Types. This does NOT support the legacy Policy YAML policy type.
19         properties:
20             id:
21                 type: string
22                 description: The unique control loop id.
23                 required: true
24             timeout:
25                 type: integer
26                 description: |
27                     Overall timeout for executing all the operations. This timeout should equal or exceed the total
28                     timeout for each operation listed.
29                 required: true
30             abatement:
31                 type: boolean
32                 description: Whether an abatement event message will be expected for the control loop from DCAE.
33                 required: true
34                 default: false
35             trigger:
36                 type: string
37                 description: Initial operation to execute upon receiving an Onset event message for the Control Loop.
38                 required: true
39             operations:
40                 type: list
41                 description: List of operations to be performed when Control Loop is triggered.
42                 required: true
43                 entry_schema:
44                     type: onap.datatype.controlloop.Operation
45 data_types:
46     onap.datatype.controlloop.Target:
47         derived_from: tosca.datatypes.Root
48         description: Definition for a entity in A&AI to perform a control loop operation on
49         properties:
50             targetType:
51                 type: string
52                 description: Category for the target type
53                 required: true
54                 constraints:
55                 - valid_values: [VNF, VM, VFMODULE, PNF]
56             entityIds:
57                 type: map
58                 description: |
59                     Map of values that identify the resource. If none are provided, it is assumed that the
60                     entity that generated the ONSET event will be the target.
61                 required: false
62                 entry_schema:
63                     type: string
64
65     onap.datatype.controlloop.Actor:
66         derived_from: tosca.datatypes.Root
67         description: An actor/operation/target definition
68         properties:
69             actor:
70                 type: string
71                 description: The actor performing the operation.
72                 required: true
73             operation:
74                 type: string
75                 description: The operation the actor is performing.
76                 required: true
77             target:
78                 type: onap.datatype.controlloop.Target
79                 description: The resource the operation should be performed on.
80                 required: true
81                 metadata:
82                     clamp_possible_values: <string:see clamp project for syntax>
83             payload:
84                 type: map
85                 description: Name/value pairs of payload information passed by Policy to the actor
86                 required: false
87                 entry_schema:
88                     type: string
89
90     onap.datatype.controlloop.Operation:
91         derived_from: tosca.datatypes.Root
92         description: An operation supported by an actor
93         properties:
94             id:
95                 type: string
96                 description: Unique identifier for the operation
97                 required: true
98             description:
99                 type: string
100                 description: A user-friendly description of the intent for the operation
101                 required: false
102             operation:
103                 type: onap.datatype.controlloop.Actor
104                 description: The definition of the operation to be performed.
105                 required: true
106                 metadata:
107                     clamp_possible_values: <string:see clamp project for syntax>
108             timeout:
109                 type: integer
110                 description: The amount of time for the actor to perform the operation.
111                 required: true
112             retries:
113                 type: integer
114                 description: The number of retries the actor should attempt to perform the operation.
115                 required: true
116                 default: 0
117             success:
118                 type: string
119                 description: Points to the operation to invoke on success. A value of "final_success" indicates and end to the operation.
120                 required: false
121                 default: final_success
122             failure:
123                 type: string
124                 description: Points to the operation to invoke on Actor operation failure.
125                 required: false
126                 default: final_failure
127             failure_timeout:
128                 type: string
129                 description: Points to the operation to invoke when the time out for the operation occurs.
130                 required: false
131                 default: final_failure_timeout
132             failure_retries:
133                 type: string
134                 description: Points to the operation to invoke when the current operation has exceeded its max retries.
135                 required: false
136                 default: final_failure_retries
137             failure_exception:
138                 type: string
139                 description: Points to the operation to invoke when the current operation causes an exception.
140                 required: false
141                 default: final_failure_exception
142             failure_guard:
143                 type: string
144                 description: Points to the operation to invoke when the current operation is blocked due to guard policy enforcement.
145                 required: false
146                 default: final_failure_guard