Resource Resolution Service: Primary DB
[ccsdk/cds.git] / ms / blueprintsprocessor / functions / resource-resolution / src / main / kotlin / org / onap / ccsdk / apps / blueprintsprocessor / functions / resource / resolution / ResourceSourceProperties.kt
1 /*
2  * Copyright © 2017-2018 AT&T Intellectual Property.
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
17 package org.onap.ccsdk.apps.blueprintsprocessor.functions.resource.resolution
18
19 open class ResourceSourceProperties {
20
21 }
22
23 open class InputResourceSource : ResourceSourceProperties() {
24     lateinit var key: String
25     lateinit var keyDependencies: MutableList<String>
26 }
27
28 open class DefaultResourceSource : ResourceSourceProperties() {
29     lateinit var key: String
30     lateinit var keyDependencies: MutableList<String>
31 }
32
33 open class DatabaseResourceSource : ResourceSourceProperties() {
34     lateinit var type: String
35     lateinit var query: String
36     var inputKeyMapping: MutableMap<String, String>? = null
37     var outputKeyMapping: MutableMap<String, String>? = null
38     lateinit var keyDependencies: MutableList<String>
39 }
40
41 open class RestResourceSource : ResourceSourceProperties() {
42     lateinit var type: String
43     lateinit var urlPath: String
44     lateinit var path: String
45     lateinit var expressionType: String
46     var inputKeyMapping: MutableMap<String, String>? = null
47     var outputKeyMapping: MutableMap<String, String>? = null
48     lateinit var keyDependencies: MutableList<String>
49 }
50
51 open class CapabilityResourceSource : ResourceSourceProperties() {
52     lateinit var type: String
53     lateinit var instanceName: String
54     lateinit var path: String
55     lateinit var expressionType: String
56     var inputKeyMapping: MutableMap<String, String>? = null
57     var outputKeyMapping: MutableMap<String, String>? = null
58     lateinit var keyDependencies: MutableList<String>
59 }