diff options
author | 2021-07-26 12:00:59 -0400 | |
---|---|---|
committer | 2021-07-28 09:06:26 -0400 | |
commit | 45263f50896a7021cd17d78ce83b29365cb19c29 (patch) | |
tree | 0245881b0c3badd2e72144dc29311f4e7df58e38 /components/model-catalog/blueprint-model/test-blueprint/resource-audit/Scripts/kotlin/cba/resource/audit/ResourceAuditDefinitions.kt | |
parent | 76cb04c2302c9f8f0395f86d8e8d246fdae0fd28 (diff) |
Revert "Renaming Files having BluePrint to have Blueprint"1.1.5
The renaming in CCSDK-3098 caused breaking changes to the grpc api and
compile issues for kotlin scripts.
Issue-ID: CCSDK-3385
Change-Id: I0d745cb858371678eabcb2284671c1fd76a1ab6d
Signed-off-by: Jozsef Csongvai <jozsef.csongvai@bell.ca>
Diffstat (limited to 'components/model-catalog/blueprint-model/test-blueprint/resource-audit/Scripts/kotlin/cba/resource/audit/ResourceAuditDefinitions.kt')
-rw-r--r-- | components/model-catalog/blueprint-model/test-blueprint/resource-audit/Scripts/kotlin/cba/resource/audit/ResourceAuditDefinitions.kt | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/components/model-catalog/blueprint-model/test-blueprint/resource-audit/Scripts/kotlin/cba/resource/audit/ResourceAuditDefinitions.kt b/components/model-catalog/blueprint-model/test-blueprint/resource-audit/Scripts/kotlin/cba/resource/audit/ResourceAuditDefinitions.kt index cb617b909..4e66a05c4 100644 --- a/components/model-catalog/blueprint-model/test-blueprint/resource-audit/Scripts/kotlin/cba/resource/audit/ResourceAuditDefinitions.kt +++ b/components/model-catalog/blueprint-model/test-blueprint/resource-audit/Scripts/kotlin/cba/resource/audit/ResourceAuditDefinitions.kt @@ -19,16 +19,16 @@ package cba.resource.audit import org.onap.ccsdk.cds.blueprintsprocessor.services.execution.ComponentScriptExecutor import org.onap.ccsdk.cds.blueprintsprocessor.services.execution.nodeTemplateComponentScriptExecutor import org.onap.ccsdk.cds.blueprintsprocessor.services.execution.nodeTypeComponentScriptExecutor -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.data.ServiceTemplate import org.onap.ccsdk.cds.controllerblueprints.core.dsl.getAttribute import org.onap.ccsdk.cds.controllerblueprints.core.dsl.getNodeTemplateAttribute import org.onap.ccsdk.cds.controllerblueprints.core.dsl.nodeTypeComponent import org.onap.ccsdk.cds.controllerblueprints.core.dsl.serviceTemplate -import org.onap.ccsdk.cds.controllerblueprints.core.interfaces.AbstractBlueprintDefinitions +import org.onap.ccsdk.cds.controllerblueprints.core.interfaces.AbstractBluePrintDefinitions -class ResourceAuditDefinitions : AbstractBlueprintDefinitions() { +class ResourceAuditDefinitions : AbstractBluePrintDefinitions() { override fun serviceTemplate(): ServiceTemplate { return defaultServiceTemplate() @@ -47,13 +47,13 @@ fun ResourceAuditDefinitions.defaultServiceTemplate() = workflow(id = "config-collect", description = "Collect the configuration for Device") { inputs { - property(id = "device-id", type = BlueprintConstants.DATA_TYPE_STRING, required = true, description = "") - property(id = "sources", type = BlueprintConstants.DATA_TYPE_LIST, required = true, description = "") { - entrySchema(BlueprintConstants.DATA_TYPE_STRING) + property(id = "device-id", type = BluePrintConstants.DATA_TYPE_STRING, required = true, description = "") + property(id = "sources", type = BluePrintConstants.DATA_TYPE_LIST, required = true, description = "") { + entrySchema(BluePrintConstants.DATA_TYPE_STRING) } } outputs { - property(id = "response-data", required = true, type = BlueprintConstants.DATA_TYPE_STRING, description = "") { + property(id = "response-data", required = true, type = BluePrintConstants.DATA_TYPE_STRING, description = "") { value( getNodeTemplateAttribute( nodeTemplateId = "config-collector", @@ -61,21 +61,21 @@ fun ResourceAuditDefinitions.defaultServiceTemplate() = ) ) } - property(id = "status", required = true, type = BlueprintConstants.DATA_TYPE_STRING, description = "") { - value(BlueprintConstants.STATUS_SUCCESS) + property(id = "status", required = true, type = BluePrintConstants.DATA_TYPE_STRING, description = "") { + value(BluePrintConstants.STATUS_SUCCESS) } } step(id = "config-collector", target = "config-collector", description = "Collect the Configuration") } - val configCollectorComponent = BlueprintTypes.nodeTemplateComponentScriptExecutor( + val configCollectorComponent = BluePrintTypes.nodeTemplateComponentScriptExecutor( id = "config-collector", description = "Config collector component" ) { definedOperation(description = "Config Collector Operation") { inputs { - type(BlueprintConstants.SCRIPT_KOTLIN) + type(BluePrintConstants.SCRIPT_KOTLIN) scriptClassReference("cba.resource.audit.functions.ConfigCollector") } outputs { @@ -87,6 +87,6 @@ fun ResourceAuditDefinitions.defaultServiceTemplate() = nodeTemplate(configCollectorComponent) } - nodeType(BlueprintTypes.nodeTypeComponent()) - nodeType(BlueprintTypes.nodeTypeComponentScriptExecutor()) + nodeType(BluePrintTypes.nodeTypeComponent()) + nodeType(BluePrintTypes.nodeTypeComponentScriptExecutor()) } |