1 module yes-object-deletion {
3 namespace "urn:opnfv:params:xml:ns:yang:object-deletion";
6 import yang-based-event-stream {
9 "wiki.opnfv.org/display/ves/VES+goes+YES";
14 "wiki.opnfv.org/display/ves/VES+goes+YES";
18 "Open Platform for NFV (OPNFV) - Virtual Event Streaming (VES) project";
20 "wiki.opnfv.org/display/ves";
22 "This module contains a collection of YANG definitions for sending an
23 object creation notification.
25 Copyright 2020 highstreet technologies GmbH and others.
27 Licensed under the Apache License, Version 2.0 (the 'License');
28 you may not use this file except in compliance with the License.
29 You may obtain a copy of the License at
31 http://www.apache.org/licenses/LICENSE-2.0
33 Unless required by applicable law or agreed to in writing, software
34 distributed under the License is distributed on an 'AS IS' BASIS,
35 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
36 See the License for the specific language governing permissions and
37 limitations under the License.";
43 "ONAP SDN-R: wiki.onap.org/display/DW/SDN-R
44 VES: wiki.opnfv.org/display/ves/VES+Home
45 docs.onap.org/en/frankfurt/submodules/dcaegen2.git/docs/sections/services/ves-http
46 YES: wiki.opnfv.org/display/ves/VES+goes+YES";
52 grouping object-deletion-grp {
53 leaf object-reference {
54 type instance-identifier {
55 require-instance false;
59 "A reference to the object containing the attribute (leaf).";
64 "The YANG module, which defines the type of the attribute
65 identified by its namespace.";
69 "A set of data representing the deleted object instance.
70 TODO: does this make any sense?";
73 "An object class containing parameters for object deletion.";
79 augment "/yes:event-history/yes:event" {
80 when "derived-from-or-self(/yes:event-history/yes:event/yes:header/yes:domain, 'yod:object-deletion')" {
82 "The event header must indicate 'object-deletion'.";
84 if-feature yes:event-history;
85 list object-deletion {
86 uses object-deletion-grp;
88 "A single object for specific parameters, used for the any object
89 deletion (list item or container).";
92 "Adds to YES the specifics of object-deletion notifications.";
95 augment "/yes:yang-based-event-stream/yes:event" {
96 when "derived-from-or-self(/yes:yang-based-event-stream/yes:event/yes:header/yes:domain, 'yod:object-deletion')" {
98 "The event header must indicate 'object-deletion'.";
100 list object-deletion {
101 uses object-deletion-grp;
103 "A single object for specific parameters, used for the any object
104 deletion (list item or container).";
107 "Adds to YES the specifics of object-deletion notifications.";