5259ee1c9924ae7d491a949112108464e4e374a1
[ccsdk/cds.git] / ms / blueprintsprocessor / modules / inbounds / designer-api / src / main / kotlin / org / onap / ccsdk / cds / blueprintsprocessor / designer / api / DesignerApiData.kt
1 /*
2  *  Copyright © 2019 IBM.
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.cds.blueprintsprocessor.designer.api
18
19 import com.fasterxml.jackson.annotation.JsonFormat
20 import com.fasterxml.jackson.annotation.JsonInclude
21 import com.fasterxml.jackson.annotation.JsonTypeInfo
22 import com.fasterxml.jackson.annotation.JsonTypeName
23 import org.onap.ccsdk.cds.blueprintsprocessor.designer.api.domain.ResourceDictionary
24 import org.onap.ccsdk.cds.controllerblueprints.resource.dict.ResourceAssignment
25 import java.io.Serializable
26 import java.util.*
27
28 /**
29  * ArtifactRequest.java Purpose: Provide Configuration Generator ArtifactRequest Model
30  *
31  * @author Brinda Santh
32  * @version 1.0
33  */
34 class AutoMapResponse {
35     var resourceAssignments: List<ResourceAssignment>? = null
36     var dataDictionaries: List<ResourceDictionary>? = null
37 }
38
39
40 @JsonInclude(JsonInclude.Include.NON_NULL)
41 @JsonTypeName("errorMessage")
42 @JsonTypeInfo(include = JsonTypeInfo.As.WRAPPER_OBJECT, use = JsonTypeInfo.Id.NAME)
43 class ErrorMessage(var message: String?, var code: Int?, var debugMessage: String?) : Serializable {
44     @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
45     var timestamp = Date()
46 }