Remove redundant methods from codebase
[aai/babel.git] / src / main / java / org / onap / aai / babel / csar / vnfcatalog / VendorImageConfiguration.java
1 /**
2  * ============LICENSE_START=======================================================
3  * org.onap.aai
4  * ================================================================================
5  * Copyright (c) 2017-2019 AT&T Intellectual Property. All rights reserved.
6  * Copyright (c) 2017-2019 European Software Marketing Ltd.
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *       http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END=========================================================
20  */
21
22 package org.onap.aai.babel.csar.vnfcatalog;
23
24 import com.google.gson.annotations.SerializedName;
25
26 /**
27  * This class represents Vendor Image data gleaned from tosca files within a csar file.
28  *
29  * <p>
30  * Example: Where the value application property is 'VM00' this comes from the VNFConfiguration NodeTemplate under a
31  * path:
32  *
33  * <pre>
34  * node_templates:
35  *     vFW_VNF_Configuration:
36  *         type: org.openecomp.nodes.VnfConfiguration
37  *         properties:
38  *             allowed_flavors:
39  *                 ATT_part_12345_for_FortiGate-VM00: Note the value of this element is dynamic
40  *                     vendor_info:
41  *                         vendor_model: VM00
42  * </pre>
43  *
44  * Where the value applicationVendor property is 'ATT (Tosca)' this comes from the VNFConfiguration NodeTemplate under a
45  * path:
46  *
47  * <pre>
48  * node_templates:
49  *     vFW_VNF_Configuration:
50  *         type: org.openecomp.nodes.VnfConfiguration
51  *         metadata:
52  *             resourceVendor: ATT (Tosca)
53  * </pre>
54  *
55  * Where the value applicationVersion property is '3.16.9' this comes from the MultiFlavorVFC NodeTemplate under a path:
56  *
57  * <pre>
58  *  node_templates:
59  *     vWAN_VFC:
60  *         type: org.openecomp.resource.abstract.nodes.MultiFlavorVFC
61  *         properties:
62  *             images:
63  *                 3.16.1: Note the value of this element is dynamic - represents the name of each image
64  *                     software_version: 3.16.1
65  * </pre>
66  */
67 class VendorImageConfiguration {
68
69     private String application;
70
71     @SerializedName("application-vendor")
72     private String applicationVendor;
73
74     @SerializedName("application-version")
75     private String applicationVersion;
76
77     VendorImageConfiguration(String application, String applicationVendor, String applicationVersion) {
78         this.application = application;
79         this.applicationVendor = applicationVendor;
80         this.applicationVersion = applicationVersion;
81     }
82
83     @Override
84     public String toString() {
85         return "VendorImage [" + application + ", " + applicationVendor + ", " + applicationVersion + "]";
86     }
87
88 }