Migrate "ms/controllerblueprints" from ccsdk/apps
[ccsdk/cds.git] / ms / blueprintsprocessor / modules / commons / rest-lib / src / main / kotlin / org / onap / ccsdk / apps / blueprintsprocessor / rest / BluePrintRestLibData.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.rest
18
19 open class RestClientProperties {
20     lateinit var type: String
21     lateinit var url: String
22 }
23
24 open class BasicAuthRestClientProperties : RestClientProperties() {
25     lateinit var password: String
26     lateinit var username: String
27 }
28
29 open class TokenAuthRestClientProperties : RestClientProperties() {
30     var token: String? = null
31 }
32
33 open class SSLBasicAuthRestClientProperties : RestClientProperties() {
34     lateinit var keyStoreInstance: String // JKS, PKCS12
35     lateinit var sslTrust: String
36     lateinit var sslTrustPassword: String
37     lateinit var sslKey: String
38     lateinit var sslKeyPassword: String
39 }
40
41 open class DME2RestClientProperties : RestClientProperties() {
42     lateinit var service: String
43     lateinit var subContext: String
44     lateinit var version: String
45     lateinit var envContext: String
46     lateinit var routeOffer: String
47     var partner: String? = null
48     lateinit var appId: String
49 }
50
51 open class PolicyManagerRestClientProperties : RestClientProperties() {
52     lateinit var env: String
53     lateinit var clientAuth: String
54     lateinit var authorisation: String
55 }