1 package org.onap.ccsdk.cds.blueprintsprocessor.functions.k8s.instance
3 import com.fasterxml.jackson.annotation.JsonAlias
4 import com.fasterxml.jackson.annotation.JsonIgnoreProperties
5 import com.fasterxml.jackson.annotation.JsonProperty
7 @JsonIgnoreProperties(ignoreUnknown = true)
8 class K8sConfigValueResponse {
9 @get:JsonProperty("rb-name")
10 var rbName: String? = null
12 @get:JsonProperty("rb-version")
13 var rbVersion: String? = null
15 @get:JsonProperty("instance-id")
16 var instanceId: String? = null
18 @get:JsonProperty("profile-name")
19 var profileName: String? = null
21 @get:JsonProperty("description")
22 var description: String? = null
24 @get:JsonProperty("template-name")
25 var templateName: String? = null
27 @get:JsonProperty("config-name")
28 var configName: String? = null
30 @get:JsonProperty("config-version")
31 @get:JsonAlias("config-verion")
32 var configVersion: Int? = null
34 @get:JsonProperty("config-tag")
35 var configTag: String? = null
37 @get:JsonProperty("values")
38 var values: Map<String, Object>? = null
40 override fun toString(): String {
41 return "$templateName:$configName"
44 override fun equals(other: Any?): Boolean {
45 if (this === other) return true
46 if (javaClass != other?.javaClass) return false
50 override fun hashCode(): Int {
51 return javaClass.hashCode()
55 @JsonIgnoreProperties(ignoreUnknown = true)
56 class K8sConfigValueTag {
57 @get:JsonProperty("config-version")
58 var configVersion: Int? = null
60 @get:JsonProperty("config-tag")
61 var configTag: String? = null
63 override fun toString(): String {
64 return "$configVersion:$configTag"
67 override fun equals(other: Any?): Boolean {
68 if (this === other) return true
69 if (javaClass != other?.javaClass) return false
73 override fun hashCode(): Int {
74 return javaClass.hashCode()