c48ea6ef66d2fa0fc62b34ceb3dbca3024143a8c
[dcaegen2/services.git] /
1 /*
2  * ============LICENSE_START=======================================================
3  * BBS-RELOCATION-CPE-AUTHENTICATION-HANDLER
4  * ================================================================================
5  * Copyright (C) 2019 NOKIA Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.bbs.event.processor.model;
22
23 import com.google.gson.annotations.SerializedName;
24
25 import java.util.Map;
26
27 import org.immutables.gson.Gson;
28 import org.immutables.value.Value;
29
30 @Value.Immutable
31 @Gson.TypeAdapters(fieldNamingStrategy = true, emptyAsNulls = true)
32 public interface GeneratedAppConfigObject {
33
34     @SerializedName(value = "dmaap.protocol", alternate = "dmaap.protocol")
35     String dmaapProtocol();
36
37     @SerializedName(value = "dmaap.contentType", alternate = "dmaap.contentType")
38     String dmaapContentType();
39
40     @SerializedName(value = "dmaap.consumer.consumerId", alternate = "dmaap.consumer.consumerId")
41     String dmaapConsumerConsumerId();
42
43     @SerializedName(value = "dmaap.consumer.consumerGroup", alternate = "dmaap.consumer.consumerGroup")
44     String dmaapConsumerConsumerGroup();
45
46     @SerializedName(value = "dmaap.messageLimit", alternate = "dmaap.messageLimit")
47     int dmaapMessageLimit();
48
49     @SerializedName(value = "dmaap.timeoutMs", alternate = "dmaap.timeoutMs")
50     int dmaapTimeoutMs();
51
52     @SerializedName(value = "aai.host", alternate = "aai.host")
53     String aaiHost();
54
55     @SerializedName(value = "aai.port", alternate = "aai.port")
56     int aaiPort();
57
58     @SerializedName(value = "aai.protocol", alternate = "aai.protocol")
59     String aaiProtocol();
60
61     @SerializedName(value = "aai.username", alternate = "aai.username")
62     String aaiUsername();
63
64     @SerializedName(value = "aai.password", alternate = "aai.password")
65     String aaiPassword();
66
67     @SerializedName(value = "aai.aaiIgnoreSslCertificateErrors", alternate = "aai.aaiIgnoreSslCertificateErrors")
68     boolean aaiIgnoreSslCertificateErrors();
69
70     @SerializedName(value = "application.pipelinesPollingIntervalSec",
71             alternate = "application.pipelinesPollingIntervalSec")
72     int pipelinesPollingIntervalSec();
73
74     @SerializedName(value = "application.pipelinesTimeoutSec", alternate = "application.pipelinesTimeoutSec")
75     int pipelinesTimeoutSec();
76
77     @SerializedName(value = "application.cbsPollingIntervalSec",
78             alternate = "application.cbsPollingIntervalSec")
79     int cbsPollingIntervalSec();
80
81     @SerializedName(value = "application.reregistration.policyScope",
82             alternate = "application.reregistration.policyScope")
83     String reRegistrationPolicyScope();
84
85     @SerializedName(value = "application.reregistration.clControlName",
86             alternate = "application.reregistration.clControlName")
87     String reRegistrationClControlName();
88
89     @SerializedName(value = "application.cpe.authentication.policyScope",
90             alternate = "application.reregistration.policyScope")
91     String cpeAuthPolicyScope();
92
93     @SerializedName(value = "application.cpe.authentication.clControlName",
94             alternate = "application.reregistration.clControlName")
95     String cpeAuthClControlName();
96
97     @SerializedName(value = "application.reregistration.configKey", alternate = "application.reregistration.configKey")
98     String reRegConfigKey();
99
100     @SerializedName(value = "application.cpeAuth.configKey", alternate = "application.cpeAuth.configKey")
101     String cpeAuthConfigKey();
102
103     @SerializedName(value = "application.closeLoop.configKey", alternate = "application.closeLoop.configKey")
104     String closeLoopConfigKey();
105
106     @SerializedName(value = "streams_subscribes", alternate = "streams_subscribes")
107     Map<String, StreamsObject> streamSubscribesMap();
108
109     @SerializedName(value = "streams_publishes", alternate = "streams_publishes")
110     Map<String, StreamsObject> streamPublishesMap();
111
112     @Value.Immutable
113     @Gson.TypeAdapters(fieldNamingStrategy = true)
114     interface StreamsObject {
115
116         @SerializedName(value = "type", alternate = "type")
117         String type();
118
119         @SerializedName(value = "aaf_username", alternate = "aaf_username")
120         String aafUsername();
121
122         @SerializedName(value = "aaf_password", alternate = "aaf_password")
123         String aafPassword();
124
125         @SerializedName(value = "dmaap_info", alternate = "dmaap_info")
126         DmaapInfo dmaapInfo();
127     }
128
129     @Value.Immutable
130     @Gson.TypeAdapters(fieldNamingStrategy = true)
131     interface DmaapInfo {
132
133         @SerializedName(value = "client_id", alternate = "client_id")
134         String clientId();
135
136         @SerializedName(value = "client_role", alternate = "client_role")
137         String clientRole();
138
139         @SerializedName(value = "location", alternate = "location")
140         String location();
141
142         @SerializedName(value = "topic_url", alternate = "topic_url")
143         String topicUrl();
144     }
145 }