a44d366c3a6f7ba44e4e32bb691e121a6bd8b691
[ccsdk/cds.git] /
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 @file:Suppress("unused")
17
18 package org.onap.ccsdk.apps.blueprintsprocessor.functions.resource.resolution
19
20 open class ResourceSourceProperties
21
22 open class InputResourceSource : ResourceSourceProperties() {
23     lateinit var key: String
24     lateinit var keyDependencies: MutableList<String>
25 }
26
27 open class DefaultResourceSource : ResourceSourceProperties() {
28     lateinit var key: String
29     lateinit var keyDependencies: MutableList<String>
30 }
31
32 open class DatabaseResourceSource : ResourceSourceProperties() {
33     lateinit var type: String
34     lateinit var query: String
35     var inputKeyMapping: MutableMap<String, String>? = null
36     var outputKeyMapping: MutableMap<String, String>? = null
37     lateinit var keyDependencies: MutableList<String>
38 }
39
40 open class RestResourceSource : ResourceSourceProperties() {
41     lateinit var type: String
42     lateinit var urlPath: String
43     lateinit var path: String
44     lateinit var expressionType: String
45     var inputKeyMapping: MutableMap<String, String>? = null
46     var outputKeyMapping: MutableMap<String, String>? = null
47     lateinit var keyDependencies: MutableList<String>
48 }
49
50 open class CapabilityResourceSource : ResourceSourceProperties() {
51     lateinit var type: String
52     lateinit var instanceName: String
53     var instanceDependencies: List<String>? = null
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 }