summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-sdc-logging-lib/openecomp-sdc-logging-api/pom.xml
blob: e8c38c86ae5c361807c22848bd87df08dba483aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

  <modelVersion>4.0.0</modelVersion>
  <artifactId>openecomp-sdc-logging-api</artifactId>
  <name>openecomp-sdc-logging-api</name>

  <parent>
    <groupId>org.openecomp.sdc</groupId>
    <artifactId>openecomp-sdc-logging-lib</artifactId>
    <version>1.13.0-SNAPSHOT</version>
  </parent>

  <dependencies>
    <dependency>
      <groupId>javax.ws.rs</groupId>
      <artifactId>javax.ws.rs-api</artifactId>
      <version>${ws.rs.version}</version>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.projectlombok</groupId>
      <artifactId>lombok</artifactId>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>javax.xml.bind</groupId>
      <artifactId>jaxb-api</artifactId>
      <version>${jaxb-api.version}</version>
    </dependency>
  </dependencies>

</project>
an class="nn">org.onap.ccsdk.cds.controllerblueprints.core.dsl.artifactTypeTemplateVelocity 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 class CapabilityCliDefinitions : AbstractBluePrintDefinitions() { override fun serviceTemplate(): ServiceTemplate { return defaultServiceTemplate() } } fun CapabilityCliDefinitions.defaultServiceTemplate() = serviceTemplate(name = "capability-cli", version = "1.0.0", author = "Brinda Santh Muthuramalingam", tags = "brinda, tosca") { dsl("device-properties", """" { "type": "basic-auth", "host": { "get_input": "hostname" }, "username": { "get_input": "username" }, "password": { "get_input": "password" } } """.trimIndent()) topologyTemplate { workflow(id = "check", description = "CLI Check Workflow") { inputs { property(id = "hostname", type = "string", required = true, description = "") property(id = "username", type = "string", required = true, description = "") property(id = "password", type = "string", required = true, description = "") property(id = "data", type = "json", required = true, description = "") } outputs { property(id = "status", required = true, type = "string", description = "") } step(id = "check", target = "check", description = "Calling check script node") } nodeTemplate(id = "check", type = "component-script-executor", description = "") { operation(interfaceName = "process", description = "") { inputs { property(id = "script-type", value = "kotlin") property(id = "script-class-reference", value = "cba.scripts.capability.cli.Check") } outputs { property(id = "response-data", value = "") property(id = "status", value = "success") } } artifact(id = "command-template", type = "artifact-template-velocity", file = "Templates/check-command-template.vtl") } } artifactType(BluePrintTypes.artifactTypeTemplateVelocity()) nodeType(BluePrintTypes.nodeTypeComponent()) nodeType(BluePrintTypes.componentScriptExecutor()) }