blob: 0aa8082d4be6d2f9ceafc32d28e0f5d87ab9d6ac [file] [log] [blame]
Skip Wonnellab6c2c02017-08-14 17:47:10 -05001/*-
2 * ============LICENSE_START=======================================================
3 * ONAP : APPC
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Copyright (C) 2017 Amdocs
8 * =============================================================================
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 *
21 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 * ============LICENSE_END=========================================================
23 */
24
25module artifact-handler {
26 yang-version 1;
27
Patrick Brady07567592017-12-13 11:09:30 -080028 namespace "org.onap.appc:artifacthandler";
Skip Wonnellab6c2c02017-08-14 17:47:10 -050029 prefix artifacthandler;
30
Skip Wonnellab6c2c02017-08-14 17:47:10 -050031 organization "AT&T, Inc.";
32
33 description
34 "Defines APPC interface to push reference data and templates.";
35
36 revision "2017-03-21" {
37 description
38 "Initial draft";
39 }
40
41 grouping configuration-document-information {
42 uses request-information;
43 uses document-parameters;
44 }
45
46 grouping request-information {
47 container request-information {
48 leaf request-id {
49 type string;
50 }
51 leaf request-action {
52 type enumeration {
mojahidi3df31822017-08-29 18:20:26 +053053 enum "StoreSdcDocumentRequest";
Skip Wonnellab6c2c02017-08-14 17:47:10 -050054 }
55 }
56 leaf request-sub-action {
57 type enumeration {
58 enum "STOREDOCUMENT";
59 }
60 }
61 leaf source {
62 type string;
63 }
64 }
65 }
66 grouping document-parameters {
67 container document-parameters {
68 leaf service-uuid {
69 type string;
70 mandatory true;
71 }
72 leaf distribution-id {
73 type string;
74 }
75 leaf service-name {
76 type string;
77 }
78 leaf service-description {
79 type string;
80 }
81 leaf service-artifacts {
82 type string;
83 }
84 leaf resource-uuid {
85 type string;
86 }
87 leaf resource-instance-name {
88 type string;
89 }
90 leaf resource-name {
91 type string;
92 }
93 leaf resource-version {
94 type string;
95 }
96 leaf resource-type {
97 type string;
98 }
99 leaf artifact-uuid {
100 type string;
101 }
102 leaf artifact-name {
103 type string;
104 }
105 leaf artifact-type {
106 type string;
107 }
108 leaf artifact-version {
109 type string;
110 }
111 leaf artifact-description {
112 type string;
113 }
114 leaf artifact-contents {
115 type string;
116 }
117 }
118 }
119 rpc uploadartifact {
120 description "upload the artifact into APPC";
121 input {
122 uses configuration-document-information;
123 }
124 output {
125 container config-document-response {
126 leaf request-id {
127 type string;
128 }
129 leaf status {
130 type string;
131 }
132 leaf error-reason {
133 type string;
134 }
135 }
136 }
137 }
138}