Initial commit for OpenECOMP SDN-C northbound
[sdnc/northbound.git] / asdcApi / model / src / main / yang / ASDC-API.yang
1
2 module ASDC-API {
3     yang-version "1";
4
5     namespace "org:openecomp:sdnc";
6
7     prefix asdc-api;
8
9     import asdc-api-common { prefix asdc-api-common; }
10
11
12     import asdc-license-model { prefix asdc-license-model; }
13
14     import ietf-inet-types {
15         prefix inet;
16         revision-date "2010-09-24";
17         }
18
19     organization
20         "OpenECOMP";
21
22     contact
23         "Dan Timoney";
24
25     description
26         "SDC Interface";
27
28     revision 2017-02-01 {
29         description "database definitions";
30     }
31
32     // Containers
33     container artifacts {
34         list artifact {
35             key "artifact-name artifact-version";
36
37             uses asdc-api-common:artifact-fields;
38         }
39     }
40
41
42
43     container vf-license-model-versions {
44         list vf-license-model-version {
45             key artifact-version;
46             uses asdc-api-common:artifact-fields;
47             uses asdc-license-model:vf-license-model-grouping;
48         }
49     }
50
51
52     // RPCs
53
54     rpc vf-license-model-update {
55         input {
56             uses asdc-api-common:artifact-fields;
57             uses asdc-license-model:vf-license-model-grouping;
58         }
59         output {
60             uses asdc-api-common:asdc-api-response;
61         }
62     }
63 }