Add validator to check atleast one non null field check
[nonrtric/plt/rappmanager.git] / participants / participant-impl-dme / src / test / resources / participant-dme.yaml
1 # ============LICENSE_START=======================================================
2 # Copyright (C) 2023 Nordix Foundation.
3 # ================================================================================
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #     http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #
16 # SPDX-License-Identifier: Apache-2.0
17 # ============LICENSE_END=========================================================
18 tosca_definitions_version: tosca_simple_yaml_1_3
19 data_types:
20   onap.datatypes.ToscaConceptIdentifier:
21     derived_from: tosca.datatypes.Root
22     properties:
23       name:
24         type: string
25         required: true
26       version:
27         type: string
28         required: true
29   org.onap.datatypes.policy.clamp.acm.DMEAutomationCompositionElement.InfoTypeEntity:
30     version: 1.0.0
31     derived_from: tosca.datatypes.Root
32     properties:
33       infoTypeEntityId:
34         type: onap.datatypes.ToscaConceptIdentifier
35         required: true
36         description: The name and version of a Configuration Entity to be handled by
37           the DME Automation Composition Element
38       infoTypeId:
39         type: string
40         required: true
41         description: Id of the info type
42       payload:
43         type: string
44         required: true
45         description: Json payload of info type
46   org.onap.datatypes.policy.clamp.acm.DMEAutomationCompositionElement.DataProducerEntity:
47     version: 1.0.0
48     derived_from: tosca.datatypes.Root
49     properties:
50       dataProducerEntityId:
51         type: onap.datatypes.ToscaConceptIdentifier
52         required: true
53         description: The name and version of a Configuration Entity to be handled by
54           the DME Automation Composition Element
55       dataProducerId:
56         type: string
57         required: true
58         description: Id of the info type
59       payload:
60         type: string
61         required: true
62         description: Json payload of info type
63   org.onap.datatypes.policy.clamp.acm.DMEAutomationCompositionElement.DataConsumerEntity:
64     version: 1.0.0
65     derived_from: tosca.datatypes.Root
66     properties:
67       dataConsumerEntityId:
68         type: onap.datatypes.ToscaConceptIdentifier
69         required: true
70         description: The name and version of a Configuration Entity to be handled by
71           the DME Automation Composition Element
72       dataConsumerId:
73         type: string
74         required: true
75         description: Id of the info type
76       payload:
77         type: string
78         required: true
79         description: Json payload of info type
80
81 node_types:
82   org.onap.policy.clamp.acm.Participant:
83     version: 1.0.1
84     derived_from: tosca.nodetypes.Root
85     properties:
86       provider:
87         type: string
88         required: false
89   org.onap.policy.clamp.acm.AutomationCompositionElement:
90     version: 1.0.1
91     derived_from: tosca.nodetypes.Root
92     properties:
93       provider:
94         type: string
95         required: false
96       startPhase:
97         type: integer
98         required: false
99         constraints:
100           - greater-or-equal: 0
101         metadata:
102           common: true
103         description: A value indicating the start phase in which this automation composition element will be started, the
104           first start phase is zero. Automation Composition Elements are started in their start_phase order and stopped
105           in reverse start phase order. Automation Composition Elements with the same start phase are started and
106           stopped simultaneously
107   org.onap.policy.clamp.acm.AutomationComposition:
108     version: 1.0.1
109     derived_from: tosca.nodetypes.Root
110     properties:
111       provider:
112         type: string
113         required: false
114       elements:
115         type: list
116         required: true
117         entry_schema:
118           type: onap.datatypes.ToscaConceptIdentifier
119   org.onap.policy.clamp.acm.DMEAutomationCompositionElement:
120     version: 1.0.1
121     derived_from: org.onap.policy.clamp.acm.AutomationCompositionElement
122     properties:
123       infoTypeEntities:
124         type: list
125         required: true
126         entry_schema:
127           type: org.onap.datatypes.policy.clamp.acm.DMEAutomationCompositionElement.InfoTypeEntity
128           type_version: 1.0.0
129         description: The configuration entities of DME
130       dataProducerEntities:
131         type: list
132         required: true
133         entry_schema:
134           type: org.onap.datatypes.policy.clamp.acm.DMEAutomationCompositionElement.DataProducerEntity
135           type_version: 1.0.0
136         description: The configuration entities of DME
137       dataConsumerEntities:
138         type: list
139         required: true
140         entry_schema:
141           type: org.onap.datatypes.policy.clamp.acm.DMEAutomationCompositionElement.DataConsumerEntity
142           type_version: 1.0.0
143         description: The configuration entities of DME
144 topology_template:
145   node_templates:
146     org.onap.policy.clamp.acm.DMEAutomationCompositionParticipant:
147       version: 2.3.4
148       type: org.onap.policy.clamp.acm.Participant
149       type_version: 1.0.1
150       description: Participant for DME
151       properties:
152         provider: ONAP
153
154     onap.policy.clamp.ac.element.DMEAutomationCompositionElement:
155       version: 1.2.3
156       type: org.onap.policy.clamp.acm.DMEAutomationCompositionElement
157       type_version: 1.0.1
158       description: Automation composition element for the DME Requests
159       properties:
160         provider: ONAP
161         participantType:
162           name: org.onap.policy.clamp.acm.DMEParticipant
163           version: 2.3.4
164         infoTypeEntities:
165           - infoTypeEntityId:
166               name: infoType1
167               version: 1.0.1
168             infoTypeId: json-file-data-from-filestore
169             payload: '{"info_job_data_schema": {"schema": "http://json-schema.org/draft-07/schema#","title":
170             "json-file-data-from-filestore","description": "json-file-data-from-filestore","type":
171             "object"}}'
172         dataProducerEntities:
173           - dataProducerEntityId:
174               name: producerType1
175               version: 1.0.1
176             dataProducerId: json-file-data-producer
177             payload: '{"info_job_callback_url": "http://localhost/jsonproducerjobcallback","info_producer_supervision_callback_url":
178             "http://localhost/jsonproducersupervisioncallback","supported_info_types": ["json-file-data-from-filestore"]}'
179         dataConsumerEntities:
180           - dataConsumerEntityId:
181               name: consumerType1
182               version: 1.0.1
183             dataConsumerId: json-file-consumer
184             payload: '{"info_type_id": "json-file-data-from-filestore","job_owner": "console","status_notification_uri":
185             "http://callback.nonrtric:80/post","job_definition": {"db-url": "http://influxdb2.nonrtric:8086","db-org":
186             "est","db-bucket": "pm-bucket","db-token": "token","filterType": "pmdata","filter":
187             {}}}'
188
189
190     onap.policy.clamp.ac.element.AutomationCompositionDefinition:
191       version: 1.2.3
192       type: org.onap.policy.clamp.acm.AutomationComposition
193       type_version: 1.0.1
194       description: Automation composition for DME request
195       properties:
196         provider: ONAP
197         elements:
198           - name: onap.policy.clamp.ac.element.DMEAutomationCompositionElement
199             version: 1.2.3