aboutsummaryrefslogtreecommitdiffstats
path: root/ms/blueprintsprocessor/functions/resource-resolution/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/ResourceSourceDSL.kt
diff options
context:
space:
mode:
Diffstat (limited to 'ms/blueprintsprocessor/functions/resource-resolution/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/ResourceSourceDSL.kt')
-rw-r--r--ms/blueprintsprocessor/functions/resource-resolution/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/ResourceSourceDSL.kt104
1 files changed, 52 insertions, 52 deletions
diff --git a/ms/blueprintsprocessor/functions/resource-resolution/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/ResourceSourceDSL.kt b/ms/blueprintsprocessor/functions/resource-resolution/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/ResourceSourceDSL.kt
index a681b4f68..62ec2bdf4 100644
--- a/ms/blueprintsprocessor/functions/resource-resolution/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/ResourceSourceDSL.kt
+++ b/ms/blueprintsprocessor/functions/resource-resolution/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/resource/resolution/ResourceSourceDSL.kt
@@ -18,8 +18,8 @@ package org.onap.ccsdk.cds.blueprintsprocessor.functions.resource.resolution
import com.fasterxml.jackson.databind.JsonNode
import org.onap.ccsdk.cds.blueprintsprocessor.services.execution.ComponentScriptExecutor
-import org.onap.ccsdk.cds.controllerblueprints.core.BlueprintConstants
-import org.onap.ccsdk.cds.controllerblueprints.core.BlueprintTypes
+import org.onap.ccsdk.cds.controllerblueprints.core.BluePrintConstants
+import org.onap.ccsdk.cds.controllerblueprints.core.BluePrintTypes
import org.onap.ccsdk.cds.controllerblueprints.core.asJsonPrimitive
import org.onap.ccsdk.cds.controllerblueprints.core.asJsonString
import org.onap.ccsdk.cds.controllerblueprints.core.asJsonType
@@ -30,30 +30,30 @@ import org.onap.ccsdk.cds.controllerblueprints.core.dsl.PropertiesAssignmentBuil
import org.onap.ccsdk.cds.controllerblueprints.core.dsl.nodeType
import kotlin.reflect.KClass
-fun BlueprintTypes.nodeTypeSourceInput(): NodeType {
+fun BluePrintTypes.nodeTypeSourceInput(): NodeType {
return nodeType(
- id = "source-input", version = BlueprintConstants.DEFAULT_VERSION_NUMBER,
- derivedFrom = BlueprintConstants.MODEL_TYPE_NODE_RESOURCE_SOURCE,
+ id = "source-input", version = BluePrintConstants.DEFAULT_VERSION_NUMBER,
+ derivedFrom = BluePrintConstants.MODEL_TYPE_NODE_RESOURCE_SOURCE,
description = "This is Input Resource Source Node Type"
) {}
}
-fun BlueprintTypes.nodeTypeSourceDefault(): NodeType {
+fun BluePrintTypes.nodeTypeSourceDefault(): NodeType {
return nodeType(
- id = "source-default", version = BlueprintConstants.DEFAULT_VERSION_NUMBER,
- derivedFrom = BlueprintConstants.MODEL_TYPE_NODE_RESOURCE_SOURCE,
+ id = "source-default", version = BluePrintConstants.DEFAULT_VERSION_NUMBER,
+ derivedFrom = BluePrintConstants.MODEL_TYPE_NODE_RESOURCE_SOURCE,
description = "This is Default Resource Source Node Type"
) {}
}
-fun BlueprintTypes.nodeTypeSourceDb(): NodeType {
+fun BluePrintTypes.nodeTypeSourceDb(): NodeType {
return nodeType(
- id = "source-db", version = BlueprintConstants.DEFAULT_VERSION_NUMBER,
- derivedFrom = BlueprintConstants.MODEL_TYPE_NODE_RESOURCE_SOURCE,
+ id = "source-db", version = BluePrintConstants.DEFAULT_VERSION_NUMBER,
+ derivedFrom = BluePrintConstants.MODEL_TYPE_NODE_RESOURCE_SOURCE,
description = "This is Database Resource Source Node Type"
) {
property(
- "type", BlueprintConstants.DATA_TYPE_STRING,
+ "type", BluePrintConstants.DATA_TYPE_STRING,
true, ""
) {
defaultValue("SQL".asJsonPrimitive())
@@ -62,42 +62,42 @@ fun BlueprintTypes.nodeTypeSourceDb(): NodeType {
}
}
property(
- "endpoint-selector", BlueprintConstants.DATA_TYPE_STRING,
+ "endpoint-selector", BluePrintConstants.DATA_TYPE_STRING,
false, ""
)
property(
- "query", BlueprintConstants.DATA_TYPE_STRING,
+ "query", BluePrintConstants.DATA_TYPE_STRING,
true, ""
)
property(
- "input-key-mapping", BlueprintConstants.DATA_TYPE_MAP,
+ "input-key-mapping", BluePrintConstants.DATA_TYPE_MAP,
true, ""
) {
- entrySchema(BlueprintConstants.DATA_TYPE_STRING)
+ entrySchema(BluePrintConstants.DATA_TYPE_STRING)
}
property(
- "output-key-mapping", BlueprintConstants.DATA_TYPE_MAP,
+ "output-key-mapping", BluePrintConstants.DATA_TYPE_MAP,
false, ""
) {
- entrySchema(BlueprintConstants.DATA_TYPE_STRING)
+ entrySchema(BluePrintConstants.DATA_TYPE_STRING)
}
property(
- "key-dependencies", BlueprintConstants.DATA_TYPE_LIST,
+ "key-dependencies", BluePrintConstants.DATA_TYPE_LIST,
true, "Resource Resolution dependency dictionary names."
) {
- entrySchema(BlueprintConstants.DATA_TYPE_STRING)
+ entrySchema(BluePrintConstants.DATA_TYPE_STRING)
}
}
}
-fun BlueprintTypes.nodeTypeSourceRest(): NodeType {
+fun BluePrintTypes.nodeTypeSourceRest(): NodeType {
return nodeType(
- id = "source-rest", version = BlueprintConstants.DEFAULT_VERSION_NUMBER,
- derivedFrom = BlueprintConstants.MODEL_TYPE_NODE_RESOURCE_SOURCE,
+ id = "source-rest", version = BluePrintConstants.DEFAULT_VERSION_NUMBER,
+ derivedFrom = BluePrintConstants.MODEL_TYPE_NODE_RESOURCE_SOURCE,
description = "This is Rest Resource Source Node Type"
) {
property(
- "type", BlueprintConstants.DATA_TYPE_STRING,
+ "type", BluePrintConstants.DATA_TYPE_STRING,
true, ""
) {
defaultValue("JSON".asJsonPrimitive())
@@ -106,7 +106,7 @@ fun BlueprintTypes.nodeTypeSourceRest(): NodeType {
}
}
property(
- "verb", BlueprintConstants.DATA_TYPE_STRING,
+ "verb", BluePrintConstants.DATA_TYPE_STRING,
true, ""
) {
defaultValue("GET".asJsonPrimitive())
@@ -120,25 +120,25 @@ fun BlueprintTypes.nodeTypeSourceRest(): NodeType {
}
}
property(
- "payload", BlueprintConstants.DATA_TYPE_STRING,
+ "payload", BluePrintConstants.DATA_TYPE_STRING,
false, ""
) {
defaultValue("".asJsonPrimitive())
}
property(
- "endpoint-selector", BlueprintConstants.DATA_TYPE_STRING,
+ "endpoint-selector", BluePrintConstants.DATA_TYPE_STRING,
false, ""
)
property(
- "url-path", BlueprintConstants.DATA_TYPE_STRING,
+ "url-path", BluePrintConstants.DATA_TYPE_STRING,
true, ""
)
property(
- "path", BlueprintConstants.DATA_TYPE_STRING,
+ "path", BluePrintConstants.DATA_TYPE_STRING,
true, ""
)
property(
- "expression-type", BlueprintConstants.DATA_TYPE_STRING,
+ "expression-type", BluePrintConstants.DATA_TYPE_STRING,
false, ""
) {
defaultValue("JSON_PATH".asJsonPrimitive())
@@ -147,62 +147,62 @@ fun BlueprintTypes.nodeTypeSourceRest(): NodeType {
}
}
property(
- "input-key-mapping", BlueprintConstants.DATA_TYPE_MAP,
+ "input-key-mapping", BluePrintConstants.DATA_TYPE_MAP,
true, ""
) {
- entrySchema(BlueprintConstants.DATA_TYPE_STRING)
+ entrySchema(BluePrintConstants.DATA_TYPE_STRING)
}
property(
- "output-key-mapping", BlueprintConstants.DATA_TYPE_MAP,
+ "output-key-mapping", BluePrintConstants.DATA_TYPE_MAP,
false, ""
) {
- entrySchema(BlueprintConstants.DATA_TYPE_STRING)
+ entrySchema(BluePrintConstants.DATA_TYPE_STRING)
}
property(
- "key-dependencies", BlueprintConstants.DATA_TYPE_LIST,
+ "key-dependencies", BluePrintConstants.DATA_TYPE_LIST,
true, "Resource Resolution dependency dictionary names."
) {
- entrySchema(BlueprintConstants.DATA_TYPE_STRING)
+ entrySchema(BluePrintConstants.DATA_TYPE_STRING)
}
}
}
-fun BlueprintTypes.nodeTypeSourceCapability(): NodeType {
+fun BluePrintTypes.nodeTypeSourceCapability(): NodeType {
return nodeType(
- id = "source-capability", version = BlueprintConstants.DEFAULT_VERSION_NUMBER,
- derivedFrom = BlueprintConstants.MODEL_TYPE_NODE_RESOURCE_SOURCE,
+ id = "source-capability", version = BluePrintConstants.DEFAULT_VERSION_NUMBER,
+ derivedFrom = BluePrintConstants.MODEL_TYPE_NODE_RESOURCE_SOURCE,
description = "This is Component Resource Source Node Type"
) {
property(
- ComponentScriptExecutor.INPUT_SCRIPT_TYPE, BlueprintConstants.DATA_TYPE_STRING,
+ ComponentScriptExecutor.INPUT_SCRIPT_TYPE, BluePrintConstants.DATA_TYPE_STRING,
true, "Request Id, Unique Id for the request."
) {
- defaultValue(BlueprintConstants.SCRIPT_KOTLIN)
+ defaultValue(BluePrintConstants.SCRIPT_KOTLIN)
constrain {
validValues(
arrayListOf(
- BlueprintConstants.SCRIPT_KOTLIN.asJsonPrimitive(),
- BlueprintConstants.SCRIPT_INTERNAL.asJsonPrimitive(),
- BlueprintConstants.SCRIPT_JYTHON.asJsonPrimitive()
+ BluePrintConstants.SCRIPT_KOTLIN.asJsonPrimitive(),
+ BluePrintConstants.SCRIPT_INTERNAL.asJsonPrimitive(),
+ BluePrintConstants.SCRIPT_JYTHON.asJsonPrimitive()
)
)
}
}
property(
- ComponentScriptExecutor.INPUT_SCRIPT_CLASS_REFERENCE, BlueprintConstants.DATA_TYPE_STRING,
+ ComponentScriptExecutor.INPUT_SCRIPT_CLASS_REFERENCE, BluePrintConstants.DATA_TYPE_STRING,
true, "Kotlin Script class name or jython script name."
)
property(
- "key-dependencies", BlueprintConstants.DATA_TYPE_LIST,
+ "key-dependencies", BluePrintConstants.DATA_TYPE_LIST,
true, "Resource Resolution dependency dictionary names."
) {
- entrySchema(BlueprintConstants.DATA_TYPE_STRING)
+ entrySchema(BluePrintConstants.DATA_TYPE_STRING)
}
}
}
/** Node Template Source Input **/
-fun BlueprintTypes.nodeTemplateSourceInput(
+fun BluePrintTypes.nodeTemplateSourceInput(
id: String,
description: String,
block: SourceInputNodeTemplateBuilder.() -> Unit
@@ -217,7 +217,7 @@ class SourceInputNodeTemplateBuilder(id: String, description: String) :
)
/** Node Template Source Default **/
-fun BlueprintTypes.nodeTemplateSourceDefault(
+fun BluePrintTypes.nodeTemplateSourceDefault(
id: String,
description: String,
block: SourceDefaultNodeTemplateBuilder.() -> Unit
@@ -232,7 +232,7 @@ class SourceDefaultNodeTemplateBuilder(id: String, description: String) :
)
/** Node Template Source DB **/
-fun BlueprintTypes.nodeTemplateSourceDb(
+fun BluePrintTypes.nodeTemplateSourceDb(
id: String,
description: String,
block: SourceDbNodeTemplateBuilder.() -> Unit
@@ -299,7 +299,7 @@ class KeyMappingBuilder() {
}
/** Node Template Source Rest **/
-fun BlueprintTypes.nodeTemplateSourceRest(
+fun BluePrintTypes.nodeTemplateSourceRest(
id: String,
description: String,
block: SourceRestNodeTemplateBuilder.() -> Unit
@@ -378,7 +378,7 @@ class SourceRestNodeTemplateBuilder(id: String, description: String) :
}
/** Node Template Source Rest **/
-fun BlueprintTypes.nodeTemplateSourceCapability(
+fun BluePrintTypes.nodeTemplateSourceCapability(
id: String,
description: String,
block: SourceCapabilityNodeTemplateBuilder.() -> Unit