2  * ============LICENSE_START=======================================================
 
   3  * dcaegen2-collectors-veshv
 
   4  * ================================================================================
 
   5  * Copyright (C) 2019 NOKIA
 
   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
 
  11  *      http://www.apache.org/licenses/LICENSE-2.0
 
  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=========================================================
 
  20 package org.onap.dcae.collectors.veshv.config.impl
 
  22 import arrow.core.None
 
  23 import arrow.core.Option
 
  24 import com.google.gson.annotations.SerializedName
 
  25 import org.onap.dcae.collectors.veshv.utils.logging.LogLevel
 
  26 import org.onap.dcaegen2.services.sdk.model.streams.dmaap.KafkaSink
 
  29  * @author Pawel Biniek <pawel.biniek@nokia.com>
 
  30  * @since February 2019
 
  32 internal data class PartialConfiguration(
 
  33         @SerializedName("server.listenPort")
 
  34         val listenPort: Option<Int> = None,
 
  35         @SerializedName("server.idleTimeoutSec")
 
  36         val idleTimeoutSec: Option<Long> = None,
 
  38         @SerializedName("cbs.firstRequestDelaySec")
 
  39         val firstRequestDelaySec: Option<Long> = None,
 
  40         @SerializedName("cbs.requestIntervalSec")
 
  41         val requestIntervalSec: Option<Long> = None,
 
  43         @SerializedName("security.sslDisable")
 
  44         val sslDisable: Option<Boolean> = None,
 
  45         @SerializedName("security.keys.keyStoreFile")
 
  46         val keyStoreFile: Option<String> = None,
 
  47         @SerializedName("security.keys.keyStorePasswordFile")
 
  48         val keyStorePasswordFile: Option<String> = None,
 
  49         @SerializedName("security.keys.trustStoreFile")
 
  50         val trustStoreFile: Option<String> = None,
 
  51         @SerializedName("security.keys.trustStorePasswordFile")
 
  52         val trustStorePasswordFile: Option<String> = None,
 
  54         @SerializedName("logLevel")
 
  55         val logLevel: Option<LogLevel> = None,
 
  58         var streamPublishers: Option<List<KafkaSink>> = None