diff options
author | Dan Timoney <dtimoney@att.com> | 2019-04-04 14:39:36 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-04-04 14:39:36 +0000 |
commit | 4002c9b2afb3f6c71ad97c5031e98c72940e256f (patch) | |
tree | 6e8b8957b74932c4f2c6acf54c47a8606de8a537 /ms/blueprintsprocessor/modules/commons | |
parent | 835c347f632c32d67ad5051b8dd93b059e1eadaf (diff) | |
parent | 0007063cc856483e36dd49718dea5dda80ed6809 (diff) |
Merge "Improve step data access."
Diffstat (limited to 'ms/blueprintsprocessor/modules/commons')
-rw-r--r-- | ms/blueprintsprocessor/modules/commons/processor-core/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/core/api/data/BlueprintProcessorData.kt | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/ms/blueprintsprocessor/modules/commons/processor-core/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/core/api/data/BlueprintProcessorData.kt b/ms/blueprintsprocessor/modules/commons/processor-core/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/core/api/data/BlueprintProcessorData.kt index badd70065..c2698c026 100644 --- a/ms/blueprintsprocessor/modules/commons/processor-core/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/core/api/data/BlueprintProcessorData.kt +++ b/ms/blueprintsprocessor/modules/commons/processor-core/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/core/api/data/BlueprintProcessorData.kt @@ -18,6 +18,7 @@ package org.onap.ccsdk.cds.blueprintsprocessor.core.api.data import com.fasterxml.jackson.annotation.JsonFormat +import com.fasterxml.jackson.databind.JsonNode import com.fasterxml.jackson.databind.node.ObjectNode import io.swagger.annotations.ApiModelProperty import java.util.* @@ -35,6 +36,7 @@ open class ExecutionServiceInput { lateinit var actionIdentifiers: ActionIdentifiers @get:ApiModelProperty(required = true) lateinit var payload: ObjectNode + var stepData: StepData? = null } open class ExecutionServiceOutput { @@ -46,6 +48,7 @@ open class ExecutionServiceOutput { lateinit var status: Status @get:ApiModelProperty(required = true) lateinit var payload: ObjectNode + var stepData: StepData? = null } const val ACTION_MODE_ASYNC = "async" @@ -96,28 +99,9 @@ open class Status { var message: String = "success" } -open class BluePrintManagementInput { - @get:ApiModelProperty(required = true) - lateinit var commonHeader: CommonHeader - @get:ApiModelProperty(required = false) - lateinit var blueprintName: String - @get:ApiModelProperty(required = false) - lateinit var blueprintVersion: String - @get:ApiModelProperty(required = true) - lateinit var fileChunk: FileChunk -} - -open class FileChunk { - @get:ApiModelProperty(required = true) - lateinit var chunk: ByteArray -} - -open class BluePrintManagementOutput { - @get:ApiModelProperty(required = true) - lateinit var commonHeader: CommonHeader - @get:ApiModelProperty(required = true) - var status: Status = Status() +open class StepData { + lateinit var name: String + var properties: MutableMap<String, JsonNode> = mutableMapOf() } - |