2 * Copyright © 2019 IBM.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package org.onap.ccsdk.cds.blueprintsprocessor.designer.api
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
29 * ArtifactRequest.java Purpose: Provide Configuration Generator ArtifactRequest Model
31 * @author Brinda Santh
34 class AutoMapResponse {
35 var resourceAssignments: List<ResourceAssignment>? = null
36 var dataDictionaries: List<ResourceDictionary>? = null
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()