diff options
90 files changed, 13990 insertions, 341 deletions
diff --git a/.gitignore b/.gitignore index 639faecf3c..305018a168 100644 --- a/.gitignore +++ b/.gitignore @@ -170,3 +170,5 @@ sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/files/default/testSuites/* /sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/files/default/tools/* /sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/attributes/default.rb + +/catalog-be/.pydevproject diff --git a/asdctool/src/main/java/org/openecomp/sdc/asdctool/main/SdcSchemaFileImport.java b/asdctool/src/main/java/org/openecomp/sdc/asdctool/main/SdcSchemaFileImport.java index 394683bbc5..0e545f2afd 100644 --- a/asdctool/src/main/java/org/openecomp/sdc/asdctool/main/SdcSchemaFileImport.java +++ b/asdctool/src/main/java/org/openecomp/sdc/asdctool/main/SdcSchemaFileImport.java @@ -22,13 +22,10 @@ package org.openecomp.sdc.asdctool.main; import java.io.ByteArrayOutputStream; import java.io.File; -import java.io.FileFilter; import java.io.FileInputStream; -import java.io.FileOutputStream; import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; -import java.nio.file.FileSystem; import java.nio.file.FileSystems; import java.nio.file.Files; import java.nio.file.Paths; diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/AttributeBusinessLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/AttributeBusinessLogic.java index 4fd4610ef9..5b8a10a03e 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/AttributeBusinessLogic.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/AttributeBusinessLogic.java @@ -83,7 +83,7 @@ public class AttributeBusinessLogic extends BaseBusinessLogic { // Get the resource from DB Either<Resource, StorageOperationStatus> status = toscaOperationFacade.getToscaElement(resourceId); if (status.isRight()) { - return Either.right(componentsUtils.getResponseFormat(ActionStatus.RESOURCE_NOT_FOUND, "")); + return Either.right(componentsUtils.getResponseFormat(ActionStatus.RESOURCE_NOT_FOUND, resourceId)); } Resource resource = status.left().value(); @@ -151,7 +151,7 @@ public class AttributeBusinessLogic extends BaseBusinessLogic { // Get the resource from DB Either<Resource, StorageOperationStatus> status = toscaOperationFacade.getToscaElement(resourceId); if (status.isRight()) { - return Either.right(componentsUtils.getResponseFormat(ActionStatus.RESOURCE_NOT_FOUND, "")); + return Either.right(componentsUtils.getResponseFormat(ActionStatus.RESOURCE_NOT_FOUND, resourceId)); } Resource resource = status.left().value(); @@ -195,7 +195,7 @@ public class AttributeBusinessLogic extends BaseBusinessLogic { // Get the resource from DB Either<Resource, StorageOperationStatus> eitherResource = toscaOperationFacade.getToscaElement(resourceId); if (eitherResource.isRight()) { - return Either.right(componentsUtils.getResponseFormat(ActionStatus.RESOURCE_NOT_FOUND, "")); + return Either.right(componentsUtils.getResponseFormat(ActionStatus.RESOURCE_NOT_FOUND, resourceId)); } Resource resource = eitherResource.left().value(); @@ -273,7 +273,7 @@ public class AttributeBusinessLogic extends BaseBusinessLogic { // Get the resource from DB Either<Resource, StorageOperationStatus> eitherResource = toscaOperationFacade.getToscaElement(resourceId); if (eitherResource.isRight()) { - return Either.right(componentsUtils.getResponseFormat(ActionStatus.RESOURCE_NOT_FOUND, "")); + return Either.right(componentsUtils.getResponseFormat(ActionStatus.RESOURCE_NOT_FOUND, resourceId)); } Resource resource = eitherResource.left().value(); diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/PropertyBusinessLogic.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/PropertyBusinessLogic.java index 833e6c0b9e..e16b34f389 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/PropertyBusinessLogic.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/PropertyBusinessLogic.java @@ -121,7 +121,7 @@ public class PropertyBusinessLogic extends BaseBusinessLogic { // Get the resource from DB Either<Resource, StorageOperationStatus> status = toscaOperationFacade.getToscaElement(resourceId); if (status.isRight()) { - result = Either.right(componentsUtils.getResponseFormat(ActionStatus.RESOURCE_NOT_FOUND, "")); + result = Either.right(componentsUtils.getResponseFormat(ActionStatus.RESOURCE_NOT_FOUND, resourceId)); return result; } Resource resource = status.left().value(); @@ -219,7 +219,7 @@ public class PropertyBusinessLogic extends BaseBusinessLogic { // Get the resource from DB Either<Resource, StorageOperationStatus> status = toscaOperationFacade.getToscaElement(resourceId); if (status.isRight()) { - return Either.right(componentsUtils.getResponseFormat(ActionStatus.RESOURCE_NOT_FOUND, "")); + return Either.right(componentsUtils.getResponseFormat(ActionStatus.RESOURCE_NOT_FOUND, resourceId)); } Resource resource = status.left().value(); @@ -271,7 +271,7 @@ public class PropertyBusinessLogic extends BaseBusinessLogic { // Get the resource from DB Either<Resource, StorageOperationStatus> getResourceRes = toscaOperationFacade.getToscaElement(resourceId); if (getResourceRes.isRight()) { - result = Either.right(componentsUtils.getResponseFormat(ActionStatus.RESOURCE_NOT_FOUND, "")); + result = Either.right(componentsUtils.getResponseFormat(ActionStatus.RESOURCE_NOT_FOUND, resourceId)); return result; } Resource resource = getResourceRes.left().value(); @@ -321,7 +321,7 @@ public class PropertyBusinessLogic extends BaseBusinessLogic { Either<Resource, StorageOperationStatus> status = toscaOperationFacade.getToscaElement(resourceId); if (status.isRight()) { - return Either.right(componentsUtils.getResponseFormat(ActionStatus.RESOURCE_NOT_FOUND, "")); + return Either.right(componentsUtils.getResponseFormat(ActionStatus.RESOURCE_NOT_FOUND, resourceId)); } Resource resource = status.left().value(); diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/components/ServiceBusinessLogicTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/components/ServiceBusinessLogicTest.java index d8b82da396..95845c3660 100644 --- a/catalog-be/src/test/java/org/openecomp/sdc/be/components/ServiceBusinessLogicTest.java +++ b/catalog-be/src/test/java/org/openecomp/sdc/be/components/ServiceBusinessLogicTest.java @@ -20,7 +20,19 @@ package org.openecomp.sdc.be.components; -import fj.data.Either; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertTrue; +import static org.mockito.Mockito.when; + +import java.lang.reflect.Method; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import javax.servlet.ServletContext; + import org.apache.commons.lang3.tuple.ImmutablePair; import org.junit.Before; import org.junit.Ignore; @@ -70,15 +82,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web.context.WebApplicationContext; -import javax.servlet.ServletContext; -import java.lang.reflect.Method; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import static org.junit.Assert.*; -import static org.mockito.Mockito.when; +import fj.data.Either; public class ServiceBusinessLogicTest { diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/CsarBuildServletTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/CsarBuildServletTest.java new file mode 100644 index 0000000000..daacb79de5 --- /dev/null +++ b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/CsarBuildServletTest.java @@ -0,0 +1,49 @@ +package org.openecomp.sdc.be.servlets; + +import javax.annotation.Generated; +import javax.servlet.http.HttpServletRequest; +import javax.ws.rs.core.Response; + +import org.junit.Test; +import org.openecomp.sdc.be.resources.data.ESArtifactData; + +import ch.qos.logback.classic.Logger; + + +public class CsarBuildServletTest { + + private CsarBuildServlet createTestSubject() { + return new CsarBuildServlet(); + } + + + @Test + public void testGetDefaultTemplate() throws Exception { + CsarBuildServlet testSubject; + HttpServletRequest request = null; + String serviceName = ""; + String serviceVersion = ""; + Response result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDefaultTemplate(request, serviceName, serviceVersion); + } + + + @Test + public void testGetToscaCsarTemplate() throws Exception { + CsarBuildServlet testSubject; + HttpServletRequest request = null; + String serviceName = ""; + String serviceVersion = ""; + Response result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getToscaCsarTemplate(request, serviceName, serviceVersion); + } + + + +}
\ No newline at end of file diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/RepresentationUtilsTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/RepresentationUtilsTest.java new file mode 100644 index 0000000000..c56fd474b4 --- /dev/null +++ b/catalog-be/src/test/java/org/openecomp/sdc/be/servlets/RepresentationUtilsTest.java @@ -0,0 +1,48 @@ +package org.openecomp.sdc.be.servlets; + +import javax.annotation.Generated; + +import org.apache.tinkerpop.gremlin.structure.T; +import org.junit.Test; +import org.openecomp.sdc.be.model.ArtifactDefinition; + +public class RepresentationUtilsTest { + + private RepresentationUtils createTestSubject() { + return new RepresentationUtils(); + } + + + @Test + public void testConvertJsonToArtifactDefinitionForUpdate() throws Exception { + String content = ""; + Class<ArtifactDefinition> clazz = null; + ArtifactDefinition result; + + // default test + result = RepresentationUtils.convertJsonToArtifactDefinitionForUpdate(content, clazz); + } + + + @Test + public void testToRepresentation() throws Exception { + T elementToRepresent = null; + Object result; + + // default test + result = RepresentationUtils.toRepresentation(elementToRepresent); + } + + + + + @Test + public void testConvertJsonToArtifactDefinition() throws Exception { + String content = ""; + Class<ArtifactDefinition> clazz = null; + ArtifactDefinition result; + + // default test + result = RepresentationUtils.convertJsonToArtifactDefinition(content, clazz); + } +}
\ No newline at end of file diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/ArtifactTypesTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/ArtifactTypesTest.java new file mode 100644 index 0000000000..dec4e78008 --- /dev/null +++ b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/ArtifactTypesTest.java @@ -0,0 +1,38 @@ +package org.openecomp.sdc.be.tosca; + +import java.util.List; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.generator.data.ArtifactType; + + +public class ArtifactTypesTest { + + private ArtifactTypes createTestSubject() { + return new ArtifactTypes(); + } + + + @Test + public void testGetArtifactTypes() throws Exception { + ArtifactTypes testSubject; + List<ArtifactType> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getArtifactTypes(); + } + + + @Test + public void testSetArtifactTypes() throws Exception { + ArtifactTypes testSubject; + List<ArtifactType> artifactTypes = null; + + // default test + testSubject = createTestSubject(); + testSubject.setArtifactTypes(artifactTypes); + } +}
\ No newline at end of file diff --git a/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/ToscaRepresentationTest.java b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/ToscaRepresentationTest.java new file mode 100644 index 0000000000..9af90bb9e4 --- /dev/null +++ b/catalog-be/src/test/java/org/openecomp/sdc/be/tosca/ToscaRepresentationTest.java @@ -0,0 +1,61 @@ +package org.openecomp.sdc.be.tosca; + +import java.util.List; + +import javax.annotation.Generated; + +import org.apache.commons.lang3.tuple.Triple; +import org.junit.Test; +import org.openecomp.sdc.be.model.Component; + + +public class ToscaRepresentationTest { + + private ToscaRepresentation createTestSubject() { + return new ToscaRepresentation(); + } + + + @Test + public void testGetMainYaml() throws Exception { + ToscaRepresentation testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMainYaml(); + } + + + @Test + public void testSetMainYaml() throws Exception { + ToscaRepresentation testSubject; + String mainYaml = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setMainYaml(mainYaml); + } + + + @Test + public void testGetDependencies() throws Exception { + ToscaRepresentation testSubject; + List<Triple<String, String, Component>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDependencies(); + } + + + @Test + public void testSetDependencies() throws Exception { + ToscaRepresentation testSubject; + List<Triple<String, String, Component>> dependancies = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDependencies(dependancies); + } +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ArtifactTableDescriptionTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ArtifactTableDescriptionTest.java new file mode 100644 index 0000000000..e0e1adac6c --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ArtifactTableDescriptionTest.java @@ -0,0 +1,74 @@ +package org.openecomp.sdc.be.dao.cassandra.schema.tables; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Generated; + +import org.apache.commons.lang3.tuple.ImmutablePair; +import org.junit.Test; + +import com.datastax.driver.core.DataType; + + +public class ArtifactTableDescriptionTest { + + private ArtifactTableDescription createTestSubject() { + return new ArtifactTableDescription(); + } + + + @Test + public void testPrimaryKeys() throws Exception { + ArtifactTableDescription testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.primaryKeys(); + } + + + @Test + public void testGetColumnDescription() throws Exception { + ArtifactTableDescription testSubject; + Map<String, ImmutablePair<DataType, Boolean>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getColumnDescription(); + } + + + @Test + public void testGetKeyspace() throws Exception { + ArtifactTableDescription testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getKeyspace(); + } + + + @Test + public void testGetTableName() throws Exception { + ArtifactTableDescription testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTableName(); + } + + + @Test + public void testClusteringKeys() throws Exception { + ArtifactTableDescription testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.clusteringKeys(); + } +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/AuthEventTableDescriptionTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/AuthEventTableDescriptionTest.java new file mode 100644 index 0000000000..95000492c0 --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/AuthEventTableDescriptionTest.java @@ -0,0 +1,74 @@ +package org.openecomp.sdc.be.dao.cassandra.schema.tables; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Generated; + +import org.apache.commons.lang3.tuple.ImmutablePair; +import org.junit.Test; + +import com.datastax.driver.core.DataType; + + +public class AuthEventTableDescriptionTest { + + private AuthEventTableDescription createTestSubject() { + return new AuthEventTableDescription(); + } + + + @Test + public void testPrimaryKeys() throws Exception { + AuthEventTableDescription testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.primaryKeys(); + } + + + @Test + public void testClusteringKeys() throws Exception { + AuthEventTableDescription testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.clusteringKeys(); + } + + + @Test + public void testGetColumnDescription() throws Exception { + AuthEventTableDescription testSubject; + Map<String, ImmutablePair<DataType, Boolean>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getColumnDescription(); + } + + + @Test + public void testGetKeyspace() throws Exception { + AuthEventTableDescription testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getKeyspace(); + } + + + @Test + public void testGetTableName() throws Exception { + AuthEventTableDescription testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTableName(); + } +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/CategoryEventTableDescriptionTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/CategoryEventTableDescriptionTest.java new file mode 100644 index 0000000000..c83595d591 --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/CategoryEventTableDescriptionTest.java @@ -0,0 +1,74 @@ +package org.openecomp.sdc.be.dao.cassandra.schema.tables; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Generated; + +import org.apache.commons.lang3.tuple.ImmutablePair; +import org.junit.Test; + +import com.datastax.driver.core.DataType; + + +public class CategoryEventTableDescriptionTest { + + private CategoryEventTableDescription createTestSubject() { + return new CategoryEventTableDescription(); + } + + + @Test + public void testPrimaryKeys() throws Exception { + CategoryEventTableDescription testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.primaryKeys(); + } + + + @Test + public void testClusteringKeys() throws Exception { + CategoryEventTableDescription testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.clusteringKeys(); + } + + + @Test + public void testGetColumnDescription() throws Exception { + CategoryEventTableDescription testSubject; + Map<String, ImmutablePair<DataType, Boolean>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getColumnDescription(); + } + + + @Test + public void testGetKeyspace() throws Exception { + CategoryEventTableDescription testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getKeyspace(); + } + + + @Test + public void testGetTableName() throws Exception { + CategoryEventTableDescription testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTableName(); + } +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ComponentCacheTableDescriptionTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ComponentCacheTableDescriptionTest.java new file mode 100644 index 0000000000..72117731d0 --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ComponentCacheTableDescriptionTest.java @@ -0,0 +1,74 @@ +package org.openecomp.sdc.be.dao.cassandra.schema.tables; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Generated; + +import org.apache.commons.lang3.tuple.ImmutablePair; +import org.junit.Test; + +import com.datastax.driver.core.DataType; + + +public class ComponentCacheTableDescriptionTest { + + private ComponentCacheTableDescription createTestSubject() { + return new ComponentCacheTableDescription(); + } + + + @Test + public void testPrimaryKeys() throws Exception { + ComponentCacheTableDescription testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.primaryKeys(); + } + + + @Test + public void testGetColumnDescription() throws Exception { + ComponentCacheTableDescription testSubject; + Map<String, ImmutablePair<DataType, Boolean>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getColumnDescription(); + } + + + @Test + public void testGetKeyspace() throws Exception { + ComponentCacheTableDescription testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getKeyspace(); + } + + + @Test + public void testGetTableName() throws Exception { + ComponentCacheTableDescription testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTableName(); + } + + + @Test + public void testClusteringKeys() throws Exception { + ComponentCacheTableDescription testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.clusteringKeys(); + } +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ConsumerEventTableDefinitionTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ConsumerEventTableDefinitionTest.java new file mode 100644 index 0000000000..61c1c17565 --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ConsumerEventTableDefinitionTest.java @@ -0,0 +1,74 @@ +package org.openecomp.sdc.be.dao.cassandra.schema.tables; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Generated; + +import org.apache.commons.lang3.tuple.ImmutablePair; +import org.junit.Test; + +import com.datastax.driver.core.DataType; + + +public class ConsumerEventTableDefinitionTest { + + private ConsumerEventTableDefinition createTestSubject() { + return new ConsumerEventTableDefinition(); + } + + + @Test + public void testPrimaryKeys() throws Exception { + ConsumerEventTableDefinition testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.primaryKeys(); + } + + + @Test + public void testClusteringKeys() throws Exception { + ConsumerEventTableDefinition testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.clusteringKeys(); + } + + + @Test + public void testGetColumnDescription() throws Exception { + ConsumerEventTableDefinition testSubject; + Map<String, ImmutablePair<DataType, Boolean>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getColumnDescription(); + } + + + @Test + public void testGetKeyspace() throws Exception { + ConsumerEventTableDefinition testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getKeyspace(); + } + + + @Test + public void testGetTableName() throws Exception { + ConsumerEventTableDefinition testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTableName(); + } +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribDeployEventTableDescTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribDeployEventTableDescTest.java new file mode 100644 index 0000000000..430d408a72 --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribDeployEventTableDescTest.java @@ -0,0 +1,74 @@ +package org.openecomp.sdc.be.dao.cassandra.schema.tables; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Generated; + +import org.apache.commons.lang3.tuple.ImmutablePair; +import org.junit.Test; + +import com.datastax.driver.core.DataType; + + +public class DistribDeployEventTableDescTest { + + private DistribDeployEventTableDesc createTestSubject() { + return new DistribDeployEventTableDesc(); + } + + + @Test + public void testPrimaryKeys() throws Exception { + DistribDeployEventTableDesc testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.primaryKeys(); + } + + + @Test + public void testClusteringKeys() throws Exception { + DistribDeployEventTableDesc testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.clusteringKeys(); + } + + + @Test + public void testGetColumnDescription() throws Exception { + DistribDeployEventTableDesc testSubject; + Map<String, ImmutablePair<DataType, Boolean>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getColumnDescription(); + } + + + @Test + public void testGetKeyspace() throws Exception { + DistribDeployEventTableDesc testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getKeyspace(); + } + + + @Test + public void testGetTableName() throws Exception { + DistribDeployEventTableDesc testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTableName(); + } +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribDownloadEventTableDescTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribDownloadEventTableDescTest.java new file mode 100644 index 0000000000..28fed8c6aa --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribDownloadEventTableDescTest.java @@ -0,0 +1,74 @@ +package org.openecomp.sdc.be.dao.cassandra.schema.tables; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Generated; + +import org.apache.commons.lang3.tuple.ImmutablePair; +import org.junit.Test; + +import com.datastax.driver.core.DataType; + + +public class DistribDownloadEventTableDescTest { + + private DistribDownloadEventTableDesc createTestSubject() { + return new DistribDownloadEventTableDesc(); + } + + + @Test + public void testPrimaryKeys() throws Exception { + DistribDownloadEventTableDesc testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.primaryKeys(); + } + + + @Test + public void testClusteringKeys() throws Exception { + DistribDownloadEventTableDesc testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.clusteringKeys(); + } + + + @Test + public void testGetColumnDescription() throws Exception { + DistribDownloadEventTableDesc testSubject; + Map<String, ImmutablePair<DataType, Boolean>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getColumnDescription(); + } + + + @Test + public void testGetKeyspace() throws Exception { + DistribDownloadEventTableDesc testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getKeyspace(); + } + + + @Test + public void testGetTableName() throws Exception { + DistribDownloadEventTableDesc testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTableName(); + } +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribEngineEventTableDescTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribEngineEventTableDescTest.java new file mode 100644 index 0000000000..6904aea64c --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribEngineEventTableDescTest.java @@ -0,0 +1,74 @@ +package org.openecomp.sdc.be.dao.cassandra.schema.tables; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Generated; + +import org.apache.commons.lang3.tuple.ImmutablePair; +import org.junit.Test; + +import com.datastax.driver.core.DataType; + + +public class DistribEngineEventTableDescTest { + + private DistribEngineEventTableDesc createTestSubject() { + return new DistribEngineEventTableDesc(); + } + + + @Test + public void testPrimaryKeys() throws Exception { + DistribEngineEventTableDesc testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.primaryKeys(); + } + + + @Test + public void testClusteringKeys() throws Exception { + DistribEngineEventTableDesc testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.clusteringKeys(); + } + + + @Test + public void testGetColumnDescription() throws Exception { + DistribEngineEventTableDesc testSubject; + Map<String, ImmutablePair<DataType, Boolean>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getColumnDescription(); + } + + + @Test + public void testGetKeyspace() throws Exception { + DistribEngineEventTableDesc testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getKeyspace(); + } + + + @Test + public void testGetTableName() throws Exception { + DistribEngineEventTableDesc testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTableName(); + } +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribNotifEventTableDescTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribNotifEventTableDescTest.java new file mode 100644 index 0000000000..97f587976e --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribNotifEventTableDescTest.java @@ -0,0 +1,74 @@ +package org.openecomp.sdc.be.dao.cassandra.schema.tables; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Generated; + +import org.apache.commons.lang3.tuple.ImmutablePair; +import org.junit.Test; + +import com.datastax.driver.core.DataType; + + +public class DistribNotifEventTableDescTest { + + private DistribNotifEventTableDesc createTestSubject() { + return new DistribNotifEventTableDesc(); + } + + + @Test + public void testPrimaryKeys() throws Exception { + DistribNotifEventTableDesc testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.primaryKeys(); + } + + + @Test + public void testClusteringKeys() throws Exception { + DistribNotifEventTableDesc testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.clusteringKeys(); + } + + + @Test + public void testGetColumnDescription() throws Exception { + DistribNotifEventTableDesc testSubject; + Map<String, ImmutablePair<DataType, Boolean>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getColumnDescription(); + } + + + @Test + public void testGetKeyspace() throws Exception { + DistribNotifEventTableDesc testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getKeyspace(); + } + + + @Test + public void testGetTableName() throws Exception { + DistribNotifEventTableDesc testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTableName(); + } +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribStatusEventTableDescTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribStatusEventTableDescTest.java new file mode 100644 index 0000000000..23b7301a68 --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/DistribStatusEventTableDescTest.java @@ -0,0 +1,74 @@ +package org.openecomp.sdc.be.dao.cassandra.schema.tables; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Generated; + +import org.apache.commons.lang3.tuple.ImmutablePair; +import org.junit.Test; + +import com.datastax.driver.core.DataType; + + +public class DistribStatusEventTableDescTest { + + private DistribStatusEventTableDesc createTestSubject() { + return new DistribStatusEventTableDesc(); + } + + + @Test + public void testPrimaryKeys() throws Exception { + DistribStatusEventTableDesc testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.primaryKeys(); + } + + + @Test + public void testClusteringKeys() throws Exception { + DistribStatusEventTableDesc testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.clusteringKeys(); + } + + + @Test + public void testGetColumnDescription() throws Exception { + DistribStatusEventTableDesc testSubject; + Map<String, ImmutablePair<DataType, Boolean>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getColumnDescription(); + } + + + @Test + public void testGetKeyspace() throws Exception { + DistribStatusEventTableDesc testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getKeyspace(); + } + + + @Test + public void testGetTableName() throws Exception { + DistribStatusEventTableDesc testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTableName(); + } +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ExternalApiEventTableDescTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ExternalApiEventTableDescTest.java new file mode 100644 index 0000000000..eb23b88363 --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ExternalApiEventTableDescTest.java @@ -0,0 +1,74 @@ +package org.openecomp.sdc.be.dao.cassandra.schema.tables; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Generated; + +import org.apache.commons.lang3.tuple.ImmutablePair; +import org.junit.Test; + +import com.datastax.driver.core.DataType; + + +public class ExternalApiEventTableDescTest { + + private ExternalApiEventTableDesc createTestSubject() { + return new ExternalApiEventTableDesc(); + } + + + @Test + public void testPrimaryKeys() throws Exception { + ExternalApiEventTableDesc testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.primaryKeys(); + } + + + @Test + public void testClusteringKeys() throws Exception { + ExternalApiEventTableDesc testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.clusteringKeys(); + } + + + @Test + public void testGetColumnDescription() throws Exception { + ExternalApiEventTableDesc testSubject; + Map<String, ImmutablePair<DataType, Boolean>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getColumnDescription(); + } + + + @Test + public void testGetKeyspace() throws Exception { + ExternalApiEventTableDesc testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getKeyspace(); + } + + + @Test + public void testGetTableName() throws Exception { + ExternalApiEventTableDesc testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTableName(); + } +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/GetCatHierEventTableDescTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/GetCatHierEventTableDescTest.java new file mode 100644 index 0000000000..ce858ee33f --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/GetCatHierEventTableDescTest.java @@ -0,0 +1,74 @@ +package org.openecomp.sdc.be.dao.cassandra.schema.tables; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Generated; + +import org.apache.commons.lang3.tuple.ImmutablePair; +import org.junit.Test; + +import com.datastax.driver.core.DataType; + + +public class GetCatHierEventTableDescTest { + + private GetCatHierEventTableDesc createTestSubject() { + return new GetCatHierEventTableDesc(); + } + + + @Test + public void testPrimaryKeys() throws Exception { + GetCatHierEventTableDesc testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.primaryKeys(); + } + + + @Test + public void testClusteringKeys() throws Exception { + GetCatHierEventTableDesc testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.clusteringKeys(); + } + + + @Test + public void testGetColumnDescription() throws Exception { + GetCatHierEventTableDesc testSubject; + Map<String, ImmutablePair<DataType, Boolean>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getColumnDescription(); + } + + + @Test + public void testGetKeyspace() throws Exception { + GetCatHierEventTableDesc testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getKeyspace(); + } + + + @Test + public void testGetTableName() throws Exception { + GetCatHierEventTableDesc testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTableName(); + } +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/GetUebClusterEventTableDescTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/GetUebClusterEventTableDescTest.java new file mode 100644 index 0000000000..559c8c9280 --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/GetUebClusterEventTableDescTest.java @@ -0,0 +1,74 @@ +package org.openecomp.sdc.be.dao.cassandra.schema.tables; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Generated; + +import org.apache.commons.lang3.tuple.ImmutablePair; +import org.junit.Test; + +import com.datastax.driver.core.DataType; + + +public class GetUebClusterEventTableDescTest { + + private GetUebClusterEventTableDesc createTestSubject() { + return new GetUebClusterEventTableDesc(); + } + + + @Test + public void testPrimaryKeys() throws Exception { + GetUebClusterEventTableDesc testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.primaryKeys(); + } + + + @Test + public void testClusteringKeys() throws Exception { + GetUebClusterEventTableDesc testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.clusteringKeys(); + } + + + @Test + public void testGetColumnDescription() throws Exception { + GetUebClusterEventTableDesc testSubject; + Map<String, ImmutablePair<DataType, Boolean>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getColumnDescription(); + } + + + @Test + public void testGetKeyspace() throws Exception { + GetUebClusterEventTableDesc testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getKeyspace(); + } + + + @Test + public void testGetTableName() throws Exception { + GetUebClusterEventTableDesc testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTableName(); + } +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/GetUsersListEventTableDescTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/GetUsersListEventTableDescTest.java new file mode 100644 index 0000000000..26a8788e5c --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/GetUsersListEventTableDescTest.java @@ -0,0 +1,74 @@ +package org.openecomp.sdc.be.dao.cassandra.schema.tables; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Generated; + +import org.apache.commons.lang3.tuple.ImmutablePair; +import org.junit.Test; + +import com.datastax.driver.core.DataType; + + +public class GetUsersListEventTableDescTest { + + private GetUsersListEventTableDesc createTestSubject() { + return new GetUsersListEventTableDesc(); + } + + + @Test + public void testPrimaryKeys() throws Exception { + GetUsersListEventTableDesc testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.primaryKeys(); + } + + + @Test + public void testClusteringKeys() throws Exception { + GetUsersListEventTableDesc testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.clusteringKeys(); + } + + + @Test + public void testGetColumnDescription() throws Exception { + GetUsersListEventTableDesc testSubject; + Map<String, ImmutablePair<DataType, Boolean>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getColumnDescription(); + } + + + @Test + public void testGetKeyspace() throws Exception { + GetUsersListEventTableDesc testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getKeyspace(); + } + + + @Test + public void testGetTableName() throws Exception { + GetUsersListEventTableDesc testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTableName(); + } +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/MigrationTasksTableDescriptionTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/MigrationTasksTableDescriptionTest.java new file mode 100644 index 0000000000..ad2b5c8a0d --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/MigrationTasksTableDescriptionTest.java @@ -0,0 +1,74 @@ +package org.openecomp.sdc.be.dao.cassandra.schema.tables; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Generated; + +import org.apache.commons.lang3.tuple.ImmutablePair; +import org.junit.Test; + +import com.datastax.driver.core.DataType; + + +public class MigrationTasksTableDescriptionTest { + + private MigrationTasksTableDescription createTestSubject() { + return new MigrationTasksTableDescription(); + } + + + @Test + public void testPrimaryKeys() throws Exception { + MigrationTasksTableDescription testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.primaryKeys(); + } + + + @Test + public void testClusteringKeys() throws Exception { + MigrationTasksTableDescription testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.clusteringKeys(); + } + + + @Test + public void testGetColumnDescription() throws Exception { + MigrationTasksTableDescription testSubject; + Map<String, ImmutablePair<DataType, Boolean>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getColumnDescription(); + } + + + @Test + public void testGetKeyspace() throws Exception { + MigrationTasksTableDescription testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getKeyspace(); + } + + + @Test + public void testGetTableName() throws Exception { + MigrationTasksTableDescription testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTableName(); + } +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/OldExternalApiEventTableDescTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/OldExternalApiEventTableDescTest.java new file mode 100644 index 0000000000..31ae8b5549 --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/OldExternalApiEventTableDescTest.java @@ -0,0 +1,74 @@ +package org.openecomp.sdc.be.dao.cassandra.schema.tables; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Generated; + +import org.apache.commons.lang3.tuple.ImmutablePair; +import org.junit.Test; + +import com.datastax.driver.core.DataType; + + +public class OldExternalApiEventTableDescTest { + + private OldExternalApiEventTableDesc createTestSubject() { + return new OldExternalApiEventTableDesc(); + } + + + @Test + public void testPrimaryKeys() throws Exception { + OldExternalApiEventTableDesc testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.primaryKeys(); + } + + + @Test + public void testClusteringKeys() throws Exception { + OldExternalApiEventTableDesc testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.clusteringKeys(); + } + + + @Test + public void testGetColumnDescription() throws Exception { + OldExternalApiEventTableDesc testSubject; + Map<String, ImmutablePair<DataType, Boolean>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getColumnDescription(); + } + + + @Test + public void testGetKeyspace() throws Exception { + OldExternalApiEventTableDesc testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getKeyspace(); + } + + + @Test + public void testGetTableName() throws Exception { + OldExternalApiEventTableDesc testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTableName(); + } +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ResAdminEventTableDescriptionTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ResAdminEventTableDescriptionTest.java new file mode 100644 index 0000000000..68b06e1b66 --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/ResAdminEventTableDescriptionTest.java @@ -0,0 +1,74 @@ +package org.openecomp.sdc.be.dao.cassandra.schema.tables; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Generated; + +import org.apache.commons.lang3.tuple.ImmutablePair; +import org.junit.Test; + +import com.datastax.driver.core.DataType; + + +public class ResAdminEventTableDescriptionTest { + + private ResAdminEventTableDescription createTestSubject() { + return new ResAdminEventTableDescription(); + } + + + @Test + public void testPrimaryKeys() throws Exception { + ResAdminEventTableDescription testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.primaryKeys(); + } + + + @Test + public void testClusteringKeys() throws Exception { + ResAdminEventTableDescription testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.clusteringKeys(); + } + + + @Test + public void testGetColumnDescription() throws Exception { + ResAdminEventTableDescription testSubject; + Map<String, ImmutablePair<DataType, Boolean>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getColumnDescription(); + } + + + @Test + public void testGetKeyspace() throws Exception { + ResAdminEventTableDescription testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getKeyspace(); + } + + + @Test + public void testGetTableName() throws Exception { + ResAdminEventTableDescription testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTableName(); + } +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/SdcSchemaFilesTableDescriptionTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/SdcSchemaFilesTableDescriptionTest.java new file mode 100644 index 0000000000..b323c0fabe --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/SdcSchemaFilesTableDescriptionTest.java @@ -0,0 +1,74 @@ +package org.openecomp.sdc.be.dao.cassandra.schema.tables; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Generated; + +import org.apache.commons.lang3.tuple.ImmutablePair; +import org.junit.Test; + +import com.datastax.driver.core.DataType; + + +public class SdcSchemaFilesTableDescriptionTest { + + private SdcSchemaFilesTableDescription createTestSubject() { + return new SdcSchemaFilesTableDescription(); + } + + + @Test + public void testPrimaryKeys() throws Exception { + SdcSchemaFilesTableDescription testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.primaryKeys(); + } + + + @Test + public void testClusteringKeys() throws Exception { + SdcSchemaFilesTableDescription testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.clusteringKeys(); + } + + + @Test + public void testGetColumnDescription() throws Exception { + SdcSchemaFilesTableDescription testSubject; + Map<String, ImmutablePair<DataType, Boolean>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getColumnDescription(); + } + + + @Test + public void testGetKeyspace() throws Exception { + SdcSchemaFilesTableDescription testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getKeyspace(); + } + + + @Test + public void testGetTableName() throws Exception { + SdcSchemaFilesTableDescription testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTableName(); + } +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/UserAccessEventTableDescriptionTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/UserAccessEventTableDescriptionTest.java new file mode 100644 index 0000000000..da90309e34 --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/UserAccessEventTableDescriptionTest.java @@ -0,0 +1,74 @@ +package org.openecomp.sdc.be.dao.cassandra.schema.tables; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Generated; + +import org.apache.commons.lang3.tuple.ImmutablePair; +import org.junit.Test; + +import com.datastax.driver.core.DataType; + + +public class UserAccessEventTableDescriptionTest { + + private UserAccessEventTableDescription createTestSubject() { + return new UserAccessEventTableDescription(); + } + + + @Test + public void testPrimaryKeys() throws Exception { + UserAccessEventTableDescription testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.primaryKeys(); + } + + + @Test + public void testClusteringKeys() throws Exception { + UserAccessEventTableDescription testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.clusteringKeys(); + } + + + @Test + public void testGetColumnDescription() throws Exception { + UserAccessEventTableDescription testSubject; + Map<String, ImmutablePair<DataType, Boolean>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getColumnDescription(); + } + + + @Test + public void testGetKeyspace() throws Exception { + UserAccessEventTableDescription testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getKeyspace(); + } + + + @Test + public void testGetTableName() throws Exception { + UserAccessEventTableDescription testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTableName(); + } +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/UserAdminEventTableDescriptionTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/UserAdminEventTableDescriptionTest.java new file mode 100644 index 0000000000..1efb68c1a9 --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/cassandra/schema/tables/UserAdminEventTableDescriptionTest.java @@ -0,0 +1,74 @@ +package org.openecomp.sdc.be.dao.cassandra.schema.tables; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Generated; + +import org.apache.commons.lang3.tuple.ImmutablePair; +import org.junit.Test; + +import com.datastax.driver.core.DataType; + + +public class UserAdminEventTableDescriptionTest { + + private UserAdminEventTableDescription createTestSubject() { + return new UserAdminEventTableDescription(); + } + + + @Test + public void testPrimaryKeys() throws Exception { + UserAdminEventTableDescription testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.primaryKeys(); + } + + + @Test + public void testClusteringKeys() throws Exception { + UserAdminEventTableDescription testSubject; + List<ImmutablePair<String, DataType>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.clusteringKeys(); + } + + + @Test + public void testGetColumnDescription() throws Exception { + UserAdminEventTableDescription testSubject; + Map<String, ImmutablePair<DataType, Boolean>> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getColumnDescription(); + } + + + @Test + public void testGetKeyspace() throws Exception { + UserAdminEventTableDescription testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getKeyspace(); + } + + + @Test + public void testGetTableName() throws Exception { + UserAdminEventTableDescription testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getTableName(); + } +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/neo4j/filters/MatchFilterTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/neo4j/filters/MatchFilterTest.java new file mode 100644 index 0000000000..529f642fb2 --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/neo4j/filters/MatchFilterTest.java @@ -0,0 +1,50 @@ +package org.openecomp.sdc.be.dao.neo4j.filters; + +import java.util.Map; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class MatchFilterTest { + + private MatchFilter createTestSubject() { + return new MatchFilter(); + } + + + @Test + public void testGetProperties() throws Exception { + MatchFilter testSubject; + Map<String, Object> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getProperties(); + } + + + @Test + public void testSetProperties() throws Exception { + MatchFilter testSubject; + Map<String, Object> properties = null; + + // default test + testSubject = createTestSubject(); + testSubject.setProperties(properties); + } + + + @Test + public void testAddToMatch() throws Exception { + MatchFilter testSubject; + String propName = ""; + Object value = null; + MatchFilter result; + + // default test + testSubject = createTestSubject(); + result = testSubject.addToMatch(propName, value); + } +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/neo4j/filters/RecursiveByRelationFilterTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/neo4j/filters/RecursiveByRelationFilterTest.java new file mode 100644 index 0000000000..76b36d2a97 --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/neo4j/filters/RecursiveByRelationFilterTest.java @@ -0,0 +1,93 @@ +package org.openecomp.sdc.be.dao.neo4j.filters; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.be.dao.graph.datatype.GraphNode; + + +public class RecursiveByRelationFilterTest { + + private RecursiveByRelationFilter createTestSubject() { + return new RecursiveByRelationFilter(); + } + + + @Test + public void testAddNode() throws Exception { + RecursiveByRelationFilter testSubject; + GraphNode node = null; + RecursiveByRelationFilter result; + + // default test + testSubject = createTestSubject(); + result = testSubject.addNode(node); + } + + + @Test + public void testAddRelation() throws Exception { + RecursiveByRelationFilter testSubject; + String relationType = ""; + RecursiveByRelationFilter result; + + // default test + testSubject = createTestSubject(); + result = testSubject.addRelation(relationType); + } + + + @Test + public void testGetNode() throws Exception { + RecursiveByRelationFilter testSubject; + GraphNode result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNode(); + } + + + @Test + public void testSetNode() throws Exception { + RecursiveByRelationFilter testSubject; + GraphNode node = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNode(node); + } + + + @Test + public void testGetRelationType() throws Exception { + RecursiveByRelationFilter testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRelationType(); + } + + + @Test + public void testSetRelationType() throws Exception { + RecursiveByRelationFilter testSubject; + String relationType = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setRelationType(relationType); + } + + + @Test + public void testToString() throws Exception { + RecursiveByRelationFilter testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/neo4j/filters/RecursiveFilterTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/neo4j/filters/RecursiveFilterTest.java new file mode 100644 index 0000000000..990a2b4972 --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/neo4j/filters/RecursiveFilterTest.java @@ -0,0 +1,83 @@ +package org.openecomp.sdc.be.dao.neo4j.filters; + +import java.util.List; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.be.datatypes.enums.NodeTypeEnum; + + +public class RecursiveFilterTest { + + private RecursiveFilter createTestSubject() { + return new RecursiveFilter(); + } + + + @Test + public void testAddChildRelationType() throws Exception { + RecursiveFilter testSubject; + String type = ""; + RecursiveFilter result; + + // default test + testSubject = createTestSubject(); + result = testSubject.addChildRelationType(type); + } + + + @Test + public void testGetChildRelationTypes() throws Exception { + RecursiveFilter testSubject; + List<String> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getChildRelationTypes(); + } + + + @Test + public void testSetChildRelationTypes() throws Exception { + RecursiveFilter testSubject; + List<String> childRelationTypes = null; + + // default test + testSubject = createTestSubject(); + testSubject.setChildRelationTypes(childRelationTypes); + } + + + @Test + public void testGetNodeType() throws Exception { + RecursiveFilter testSubject; + NodeTypeEnum result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getNodeType(); + } + + + @Test + public void testSetNodeType() throws Exception { + RecursiveFilter testSubject; + NodeTypeEnum nodeType = null; + + // default test + testSubject = createTestSubject(); + testSubject.setNodeType(nodeType); + } + + + @Test + public void testToString() throws Exception { + RecursiveFilter testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/neo4j/filters/UpdateFilterTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/neo4j/filters/UpdateFilterTest.java new file mode 100644 index 0000000000..55a9255d31 --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/neo4j/filters/UpdateFilterTest.java @@ -0,0 +1,40 @@ +package org.openecomp.sdc.be.dao.neo4j.filters; + +import java.util.Map; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class UpdateFilterTest { + + private UpdateFilter createTestSubject() { + return new UpdateFilter(null); + } + + + @Test + public void testGetToUpdate() throws Exception { + UpdateFilter testSubject; + Map<String, Object> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getToUpdate(); + } + + + @Test + public void testSetToUpdate() throws Exception { + UpdateFilter testSubject; + Map<String, Object> toUpdate = null; + + // default test + testSubject = createTestSubject(); + testSubject.setToUpdate(toUpdate); + } + + + +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/rest/RestConfigurationInfoTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/rest/RestConfigurationInfoTest.java new file mode 100644 index 0000000000..5ce78c2c95 --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/rest/RestConfigurationInfoTest.java @@ -0,0 +1,134 @@ +package org.openecomp.sdc.be.dao.rest; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class RestConfigurationInfoTest { + + private RestConfigurationInfo createTestSubject() { + return new RestConfigurationInfo(); + } + + + @Test + public void testGetReadTimeoutInSec() throws Exception { + RestConfigurationInfo testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getReadTimeoutInSec(); + } + + + @Test + public void testSetReadTimeoutInSec() throws Exception { + RestConfigurationInfo testSubject; + Integer readTimeoutInSec = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setReadTimeoutInSec(readTimeoutInSec); + } + + + @Test + public void testGetIgnoreCertificate() throws Exception { + RestConfigurationInfo testSubject; + Boolean result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getIgnoreCertificate(); + } + + + @Test + public void testSetIgnoreCertificate() throws Exception { + RestConfigurationInfo testSubject; + Boolean ignoreCertificate = null; + + // default test + testSubject = createTestSubject(); + testSubject.setIgnoreCertificate(ignoreCertificate); + } + + + @Test + public void testGetConnectionPoolSize() throws Exception { + RestConfigurationInfo testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getConnectionPoolSize(); + } + + + @Test + public void testSetConnectionPoolSize() throws Exception { + RestConfigurationInfo testSubject; + Integer connectionPoolSize = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setConnectionPoolSize(connectionPoolSize); + } + + + @Test + public void testGetConnectTimeoutInSec() throws Exception { + RestConfigurationInfo testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getConnectTimeoutInSec(); + } + + + @Test + public void testSetConnectTimeoutInSec() throws Exception { + RestConfigurationInfo testSubject; + Integer connectTimeoutInSec = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setConnectTimeoutInSec(connectTimeoutInSec); + } + + + @Test + public void testGetSocketTimeoutInSec() throws Exception { + RestConfigurationInfo testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getSocketTimeoutInSec(); + } + + + @Test + public void testSetSocketTimeoutInSec() throws Exception { + RestConfigurationInfo testSubject; + Integer socketTimeoutInSec = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setSocketTimeoutInSec(socketTimeoutInSec); + } + + + @Test + public void testToString() throws Exception { + RestConfigurationInfo testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/utils/MapEntryTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/utils/MapEntryTest.java new file mode 100644 index 0000000000..bb6afc4153 --- /dev/null +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/dao/utils/MapEntryTest.java @@ -0,0 +1,44 @@ +package org.openecomp.sdc.be.dao.utils; + +import javax.annotation.Generated; + +import org.apache.tinkerpop.gremlin.structure.T; +import org.elasticsearch.common.recycler.Recycler.V; +import org.junit.Test; + + +public class MapEntryTest { + + private MapEntry createTestSubject() { + return new MapEntry(); + } + + + + + + + @Test + public void testSetKey() throws Exception { + MapEntry testSubject; + T key = null; + + // default test + testSubject = createTestSubject(); + testSubject.setKey(key); + } + + + + + + @Test + public void testSetValue() throws Exception { + MapEntry testSubject; + V value = null; + + // default test + testSubject = createTestSubject(); + testSubject.setValue(value); + } +}
\ No newline at end of file diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/auditing/AuditingGenericEventTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/auditing/AuditingGenericEventTest.java index c6de8d16c5..5172fc31dc 100644 --- a/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/auditing/AuditingGenericEventTest.java +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/auditing/AuditingGenericEventTest.java @@ -1,17 +1,13 @@ package org.openecomp.sdc.be.resources.data.auditing; -import javax.annotation.Generated; - import org.junit.Test; - public class AuditingGenericEventTest { private AuditingGenericEvent createTestSubject() { return new AuditingGenericEvent(); } - @Test public void testGetRequestId() throws Exception { AuditingGenericEvent testSubject; @@ -22,7 +18,6 @@ public class AuditingGenericEventTest { result = testSubject.getRequestId(); } - @Test public void testSetRequestId() throws Exception { AuditingGenericEvent testSubject; @@ -33,7 +28,6 @@ public class AuditingGenericEventTest { testSubject.setRequestId(requestId); } - @Test public void testGetServiceInstanceId() throws Exception { AuditingGenericEvent testSubject; @@ -44,7 +38,6 @@ public class AuditingGenericEventTest { result = testSubject.getServiceInstanceId(); } - @Test public void testSetServiceInstanceId() throws Exception { AuditingGenericEvent testSubject; @@ -55,7 +48,6 @@ public class AuditingGenericEventTest { testSubject.setServiceInstanceId(serviceInstanceId); } - @Test public void testGetAction() throws Exception { AuditingGenericEvent testSubject; @@ -66,7 +58,6 @@ public class AuditingGenericEventTest { result = testSubject.getAction(); } - @Test public void testSetAction() throws Exception { AuditingGenericEvent testSubject; @@ -77,7 +68,6 @@ public class AuditingGenericEventTest { testSubject.setAction(action); } - @Test public void testGetStatus() throws Exception { AuditingGenericEvent testSubject; @@ -88,7 +78,6 @@ public class AuditingGenericEventTest { result = testSubject.getStatus(); } - @Test public void testSetStatus() throws Exception { AuditingGenericEvent testSubject; @@ -99,7 +88,6 @@ public class AuditingGenericEventTest { testSubject.setStatus(status); } - @Test public void testGetDesc() throws Exception { AuditingGenericEvent testSubject; @@ -110,7 +98,6 @@ public class AuditingGenericEventTest { result = testSubject.getDesc(); } - @Test public void testSetDesc() throws Exception { AuditingGenericEvent testSubject; @@ -121,7 +108,6 @@ public class AuditingGenericEventTest { testSubject.setDesc(desc); } - @Test public void testFillFields() throws Exception { AuditingGenericEvent testSubject; diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/auditing/AuditingGetUebClusterEventTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/auditing/AuditingGetUebClusterEventTest.java index 7940ae182a..72ccc52b88 100644 --- a/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/auditing/AuditingGetUebClusterEventTest.java +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/auditing/AuditingGetUebClusterEventTest.java @@ -3,18 +3,14 @@ package org.openecomp.sdc.be.resources.data.auditing; import java.util.Date; import java.util.UUID; -import javax.annotation.Generated; - import org.junit.Test; - public class AuditingGetUebClusterEventTest { private AuditingGetUebClusterEvent createTestSubject() { return new AuditingGetUebClusterEvent(); } - @Test public void testFillFields() throws Exception { AuditingGetUebClusterEvent testSubject; @@ -24,7 +20,6 @@ public class AuditingGetUebClusterEventTest { testSubject.fillFields(); } - @Test public void testGetConsumerId() throws Exception { AuditingGetUebClusterEvent testSubject; @@ -35,7 +30,6 @@ public class AuditingGetUebClusterEventTest { result = testSubject.getConsumerId(); } - @Test public void testSetConsumerId() throws Exception { AuditingGetUebClusterEvent testSubject; @@ -46,7 +40,6 @@ public class AuditingGetUebClusterEventTest { testSubject.setConsumerId(consumerId); } - @Test public void testGetTimebaseduuid() throws Exception { AuditingGetUebClusterEvent testSubject; @@ -57,7 +50,6 @@ public class AuditingGetUebClusterEventTest { result = testSubject.getTimebaseduuid(); } - @Test public void testSetTimebaseduuid() throws Exception { AuditingGetUebClusterEvent testSubject; @@ -68,7 +60,6 @@ public class AuditingGetUebClusterEventTest { testSubject.setTimebaseduuid(timebaseduuid); } - @Test public void testGetTimestamp1() throws Exception { AuditingGetUebClusterEvent testSubject; @@ -79,7 +70,6 @@ public class AuditingGetUebClusterEventTest { result = testSubject.getTimestamp1(); } - @Test public void testSetTimestamp1() throws Exception { AuditingGetUebClusterEvent testSubject; @@ -90,7 +80,6 @@ public class AuditingGetUebClusterEventTest { testSubject.setTimestamp1(timestamp1); } - @Test public void testGetRequestId() throws Exception { AuditingGetUebClusterEvent testSubject; @@ -101,7 +90,6 @@ public class AuditingGetUebClusterEventTest { result = testSubject.getRequestId(); } - @Test public void testSetRequestId() throws Exception { AuditingGetUebClusterEvent testSubject; @@ -112,7 +100,6 @@ public class AuditingGetUebClusterEventTest { testSubject.setRequestId(requestId); } - @Test public void testGetServiceInstanceId() throws Exception { AuditingGetUebClusterEvent testSubject; @@ -123,7 +110,6 @@ public class AuditingGetUebClusterEventTest { result = testSubject.getServiceInstanceId(); } - @Test public void testSetServiceInstanceId() throws Exception { AuditingGetUebClusterEvent testSubject; @@ -134,7 +120,6 @@ public class AuditingGetUebClusterEventTest { testSubject.setServiceInstanceId(serviceInstanceId); } - @Test public void testGetAction() throws Exception { AuditingGetUebClusterEvent testSubject; @@ -145,7 +130,6 @@ public class AuditingGetUebClusterEventTest { result = testSubject.getAction(); } - @Test public void testSetAction() throws Exception { AuditingGetUebClusterEvent testSubject; @@ -156,7 +140,6 @@ public class AuditingGetUebClusterEventTest { testSubject.setAction(action); } - @Test public void testGetStatus() throws Exception { AuditingGetUebClusterEvent testSubject; @@ -167,7 +150,6 @@ public class AuditingGetUebClusterEventTest { result = testSubject.getStatus(); } - @Test public void testSetStatus() throws Exception { AuditingGetUebClusterEvent testSubject; @@ -178,7 +160,6 @@ public class AuditingGetUebClusterEventTest { testSubject.setStatus(status); } - @Test public void testGetDesc() throws Exception { AuditingGetUebClusterEvent testSubject; @@ -189,7 +170,6 @@ public class AuditingGetUebClusterEventTest { result = testSubject.getDesc(); } - @Test public void testSetDesc() throws Exception { AuditingGetUebClusterEvent testSubject; @@ -200,7 +180,6 @@ public class AuditingGetUebClusterEventTest { testSubject.setDesc(desc); } - @Test public void testToString() throws Exception { AuditingGetUebClusterEvent testSubject; diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/auditing/AuthEventTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/auditing/AuthEventTest.java index 42de349d5b..39de467030 100644 --- a/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/auditing/AuthEventTest.java +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/auditing/AuthEventTest.java @@ -3,18 +3,14 @@ package org.openecomp.sdc.be.resources.data.auditing; import java.util.Date; import java.util.UUID; -import javax.annotation.Generated; - import org.junit.Test; - public class AuthEventTest { private AuthEvent createTestSubject() { return new AuthEvent(); } - @Test public void testGetUrl() throws Exception { AuthEvent testSubject; @@ -25,7 +21,6 @@ public class AuthEventTest { result = testSubject.getUrl(); } - @Test public void testSetUrl() throws Exception { AuthEvent testSubject; @@ -36,7 +31,6 @@ public class AuthEventTest { testSubject.setUrl(url); } - @Test public void testGetUser() throws Exception { AuthEvent testSubject; @@ -47,7 +41,6 @@ public class AuthEventTest { result = testSubject.getUser(); } - @Test public void testSetUser() throws Exception { AuthEvent testSubject; @@ -58,7 +51,6 @@ public class AuthEventTest { testSubject.setUser(user); } - @Test public void testGetAuthStatus() throws Exception { AuthEvent testSubject; @@ -69,7 +61,6 @@ public class AuthEventTest { result = testSubject.getAuthStatus(); } - @Test public void testSetAuthStatus() throws Exception { AuthEvent testSubject; @@ -80,7 +71,6 @@ public class AuthEventTest { testSubject.setAuthStatus(authStatus); } - @Test public void testGetRealm() throws Exception { AuthEvent testSubject; @@ -91,7 +81,6 @@ public class AuthEventTest { result = testSubject.getRealm(); } - @Test public void testSetRealm() throws Exception { AuthEvent testSubject; @@ -102,7 +91,6 @@ public class AuthEventTest { testSubject.setRealm(realm); } - @Test public void testGetTimebaseduuid() throws Exception { AuthEvent testSubject; @@ -113,7 +101,6 @@ public class AuthEventTest { result = testSubject.getTimebaseduuid(); } - @Test public void testSetTimebaseduuid() throws Exception { AuthEvent testSubject; @@ -124,7 +111,6 @@ public class AuthEventTest { testSubject.setTimebaseduuid(timebaseduuid); } - @Test public void testGetTimestamp1() throws Exception { AuthEvent testSubject; @@ -135,7 +121,6 @@ public class AuthEventTest { result = testSubject.getTimestamp1(); } - @Test public void testSetTimestamp1() throws Exception { AuthEvent testSubject; @@ -146,7 +131,6 @@ public class AuthEventTest { testSubject.setTimestamp1(timestamp1); } - @Test public void testGetAction() throws Exception { AuthEvent testSubject; @@ -157,7 +141,6 @@ public class AuthEventTest { result = testSubject.getAction(); } - @Test public void testSetAction() throws Exception { AuthEvent testSubject; @@ -168,7 +151,6 @@ public class AuthEventTest { testSubject.setAction(action); } - @Test public void testGetStatus() throws Exception { AuthEvent testSubject; @@ -179,7 +161,6 @@ public class AuthEventTest { result = testSubject.getStatus(); } - @Test public void testSetStatus() throws Exception { AuthEvent testSubject; @@ -190,7 +171,6 @@ public class AuthEventTest { testSubject.setStatus(status); } - @Test public void testGetDesc() throws Exception { AuthEvent testSubject; @@ -201,7 +181,6 @@ public class AuthEventTest { result = testSubject.getDesc(); } - @Test public void testSetDesc() throws Exception { AuthEvent testSubject; @@ -212,7 +191,6 @@ public class AuthEventTest { testSubject.setDesc(desc); } - @Test public void testGetRequestId() throws Exception { AuthEvent testSubject; @@ -223,7 +201,6 @@ public class AuthEventTest { result = testSubject.getRequestId(); } - @Test public void testSetRequestId() throws Exception { AuthEvent testSubject; @@ -234,7 +211,6 @@ public class AuthEventTest { testSubject.setRequestId(requestId); } - @Test public void testFillFields() throws Exception { AuthEvent testSubject; diff --git a/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/auditing/CategoryEventTest.java b/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/auditing/CategoryEventTest.java index 448df507d7..3e508307ed 100644 --- a/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/auditing/CategoryEventTest.java +++ b/catalog-dao/src/test/java/org/openecomp/sdc/be/resources/data/auditing/CategoryEventTest.java @@ -3,18 +3,14 @@ package org.openecomp.sdc.be.resources.data.auditing; import java.util.Date; import java.util.UUID; -import javax.annotation.Generated; - import org.junit.Test; - public class CategoryEventTest { private CategoryEvent createTestSubject() { return new CategoryEvent(); } - @Test public void testFillFields() throws Exception { CategoryEvent testSubject; @@ -24,7 +20,6 @@ public class CategoryEventTest { testSubject.fillFields(); } - @Test public void testGetTimebaseduuid() throws Exception { CategoryEvent testSubject; @@ -35,7 +30,6 @@ public class CategoryEventTest { result = testSubject.getTimebaseduuid(); } - @Test public void testSetTimebaseduuid() throws Exception { CategoryEvent testSubject; @@ -46,7 +40,6 @@ public class CategoryEventTest { testSubject.setTimebaseduuid(timebaseduuid); } - @Test public void testGetAction() throws Exception { CategoryEvent testSubject; @@ -57,7 +50,6 @@ public class CategoryEventTest { result = testSubject.getAction(); } - @Test public void testSetAction() throws Exception { CategoryEvent testSubject; @@ -68,7 +60,6 @@ public class CategoryEventTest { testSubject.setAction(action); } - @Test public void testGetStatus() throws Exception { CategoryEvent testSubject; @@ -79,7 +70,6 @@ public class CategoryEventTest { result = testSubject.getStatus(); } - @Test public void testSetStatus() throws Exception { CategoryEvent testSubject; @@ -90,7 +80,6 @@ public class CategoryEventTest { testSubject.setStatus(status); } - @Test public void testGetDesc() throws Exception { CategoryEvent testSubject; @@ -101,7 +90,6 @@ public class CategoryEventTest { result = testSubject.getDesc(); } - @Test public void testSetDesc() throws Exception { CategoryEvent testSubject; @@ -112,7 +100,6 @@ public class CategoryEventTest { testSubject.setDesc(desc); } - @Test public void testGetCategoryName() throws Exception { CategoryEvent testSubject; @@ -123,7 +110,6 @@ public class CategoryEventTest { result = testSubject.getCategoryName(); } - @Test public void testSetCategoryName() throws Exception { CategoryEvent testSubject; @@ -134,7 +120,6 @@ public class CategoryEventTest { testSubject.setCategoryName(categoryName); } - @Test public void testGetSubCategoryName() throws Exception { CategoryEvent testSubject; @@ -145,7 +130,6 @@ public class CategoryEventTest { result = testSubject.getSubCategoryName(); } - @Test public void testSetSubCategoryName() throws Exception { CategoryEvent testSubject; @@ -156,7 +140,6 @@ public class CategoryEventTest { testSubject.setSubCategoryName(subCategoryName); } - @Test public void testGetGroupingName() throws Exception { CategoryEvent testSubject; @@ -167,7 +150,6 @@ public class CategoryEventTest { result = testSubject.getGroupingName(); } - @Test public void testSetGroupingName() throws Exception { CategoryEvent testSubject; @@ -178,7 +160,6 @@ public class CategoryEventTest { testSubject.setGroupingName(groupingName); } - @Test public void testGetTimestamp1() throws Exception { CategoryEvent testSubject; @@ -189,7 +170,6 @@ public class CategoryEventTest { result = testSubject.getTimestamp1(); } - @Test public void testSetTimestamp1() throws Exception { CategoryEvent testSubject; @@ -200,7 +180,6 @@ public class CategoryEventTest { testSubject.setTimestamp1(timestamp1); } - @Test public void testGetModifier() throws Exception { CategoryEvent testSubject; @@ -211,7 +190,6 @@ public class CategoryEventTest { result = testSubject.getModifier(); } - @Test public void testSetModifier() throws Exception { CategoryEvent testSubject; @@ -222,7 +200,6 @@ public class CategoryEventTest { testSubject.setModifier(modifier); } - @Test public void testGetServiceInstanceId() throws Exception { CategoryEvent testSubject; @@ -233,7 +210,6 @@ public class CategoryEventTest { result = testSubject.getServiceInstanceId(); } - @Test public void testSetServiceInstanceId() throws Exception { CategoryEvent testSubject; @@ -244,7 +220,6 @@ public class CategoryEventTest { testSubject.setServiceInstanceId(serviceInstanceId); } - @Test public void testGetResourceType() throws Exception { CategoryEvent testSubject; @@ -255,7 +230,6 @@ public class CategoryEventTest { result = testSubject.getResourceType(); } - @Test public void testSetResourceType() throws Exception { CategoryEvent testSubject; @@ -266,7 +240,6 @@ public class CategoryEventTest { testSubject.setResourceType(resourceType); } - @Test public void testGetRequestId() throws Exception { CategoryEvent testSubject; @@ -277,7 +250,6 @@ public class CategoryEventTest { result = testSubject.getRequestId(); } - @Test public void testSetRequestId() throws Exception { CategoryEvent testSubject; diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/category/CategoryDefinitionTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/category/CategoryDefinitionTest.java index 6d0f192d1c..3bb589a976 100644 --- a/catalog-model/src/test/java/org/openecomp/sdc/be/model/category/CategoryDefinitionTest.java +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/category/CategoryDefinitionTest.java @@ -5,6 +5,8 @@ import java.util.List; import javax.annotation.Generated; import org.junit.Test; +import java.util.*; +import org.junit.Assert; public class CategoryDefinitionTest { diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/datamodel/NodeTypeTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/datamodel/NodeTypeTest.java new file mode 100644 index 0000000000..ba7b253463 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/datamodel/NodeTypeTest.java @@ -0,0 +1,175 @@ +package org.openecomp.sdc.be.model.jsontitan.datamodel; + +import java.util.List; +import java.util.Map; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.be.datatypes.elements.InterfaceDataDefinition; +import org.openecomp.sdc.be.datatypes.elements.ListCapabilityDataDefinition; +import org.openecomp.sdc.be.datatypes.elements.ListRequirementDataDefinition; +import org.openecomp.sdc.be.datatypes.elements.MapPropertiesDataDefinition; +import org.openecomp.sdc.be.datatypes.elements.PropertyDataDefinition; + + +public class NodeTypeTest { + + private NodeType createTestSubject() { + return new NodeType(); + } + + + @Test + public void testGetDerivedList() throws Exception { + NodeType testSubject; + List<String> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDerivedList(); + } + + + @Test + public void testSetDerivedList() throws Exception { + NodeType testSubject; + List<String> derivedList = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDerivedList(derivedList); + } + + + @Test + public void testGetDerivedFrom() throws Exception { + NodeType testSubject; + List<String> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getDerivedFrom(); + } + + + @Test + public void testSetDerivedFrom() throws Exception { + NodeType testSubject; + List<String> derivedFrom = null; + + // default test + testSubject = createTestSubject(); + testSubject.setDerivedFrom(derivedFrom); + } + + + @Test + public void testGetAttributes() throws Exception { + NodeType testSubject; + Map<String, PropertyDataDefinition> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getAttributes(); + } + + + @Test + public void testSetAttributes() throws Exception { + NodeType testSubject; + Map<String, PropertyDataDefinition> attributes = null; + + // default test + testSubject = createTestSubject(); + testSubject.setAttributes(attributes); + } + + + @Test + public void testGetCapabilties() throws Exception { + NodeType testSubject; + Map<String, ListCapabilityDataDefinition> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCapabilties(); + } + + + @Test + public void testSetCapabilties() throws Exception { + NodeType testSubject; + Map<String, ListCapabilityDataDefinition> capabilties = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCapabilties(capabilties); + } + + + @Test + public void testGetRequirements() throws Exception { + NodeType testSubject; + Map<String, ListRequirementDataDefinition> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRequirements(); + } + + + @Test + public void testSetRequirements() throws Exception { + NodeType testSubject; + Map<String, ListRequirementDataDefinition> requirements = null; + + // default test + testSubject = createTestSubject(); + testSubject.setRequirements(requirements); + } + + + @Test + public void testGetCapabiltiesProperties() throws Exception { + NodeType testSubject; + Map<String, MapPropertiesDataDefinition> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getCapabiltiesProperties(); + } + + + @Test + public void testSetCapabiltiesProperties() throws Exception { + NodeType testSubject; + Map<String, MapPropertiesDataDefinition> capabiltiesProperties = null; + + // default test + testSubject = createTestSubject(); + testSubject.setCapabiltiesProperties(capabiltiesProperties); + } + + + @Test + public void testGetInterfaceArtifacts() throws Exception { + NodeType testSubject; + Map<String, InterfaceDataDefinition> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getInterfaceArtifacts(); + } + + + @Test + public void testSetInterfaceArtifacts() throws Exception { + NodeType testSubject; + Map<String, InterfaceDataDefinition> interfaceArtifacts = null; + + // default test + testSubject = createTestSubject(); + testSubject.setInterfaceArtifacts(interfaceArtifacts); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/datamodel/ToscaElementTypeEnumTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/datamodel/ToscaElementTypeEnumTest.java new file mode 100644 index 0000000000..671eeb2219 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/datamodel/ToscaElementTypeEnumTest.java @@ -0,0 +1,28 @@ +package org.openecomp.sdc.be.model.jsontitan.datamodel; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.be.dao.jsongraph.types.VertexTypeEnum; + + +public class ToscaElementTypeEnumTest { + + private ToscaElementTypeEnum createTestSubject() { + return ToscaElementTypeEnum.TopologyTemplate; + } + + + + + + @Test + public void testGetValue() throws Exception { + ToscaElementTypeEnum testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getValue(); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/enums/JsonConstantKeysEnumTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/enums/JsonConstantKeysEnumTest.java new file mode 100644 index 0000000000..11faa42b79 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/jsontitan/enums/JsonConstantKeysEnumTest.java @@ -0,0 +1,24 @@ +package org.openecomp.sdc.be.model.jsontitan.enums; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class JsonConstantKeysEnumTest { + + private JsonConstantKeysEnum createTestSubject() { + return JsonConstantKeysEnum.COMPOSITION; + } + + + @Test + public void testGetValue() throws Exception { + JsonConstantKeysEnum testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getValue(); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/EqualConstraintTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/EqualConstraintTest.java new file mode 100644 index 0000000000..8978c405b0 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/EqualConstraintTest.java @@ -0,0 +1,31 @@ +package org.openecomp.sdc.be.model.tosca.constraints; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.be.model.tosca.ToscaType; + + +public class EqualConstraintTest { + + private EqualConstraint createTestSubject() { + return new EqualConstraint(""); + } + + + + + @Test + public void testValidate() throws Exception { + EqualConstraint testSubject; + Object propertyValue = null; + + // test 1 + testSubject = createTestSubject(); + propertyValue = null; + testSubject.validate(propertyValue); + } + + + +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/GreaterThanConstraintTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/GreaterThanConstraintTest.java new file mode 100644 index 0000000000..001b09c517 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/GreaterThanConstraintTest.java @@ -0,0 +1,39 @@ +package org.openecomp.sdc.be.model.tosca.constraints; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.be.model.tosca.ToscaType; + +public class GreaterThanConstraintTest { + + private GreaterThanConstraint createTestSubject() { + return new GreaterThanConstraint(""); + } + + + + + + + @Test + public void testGetGreaterThan() throws Exception { + GreaterThanConstraint testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getGreaterThan(); + } + + + @Test + public void testSetGreaterThan() throws Exception { + GreaterThanConstraint testSubject; + String greaterThan = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setGreaterThan(greaterThan); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/InRangeConstraintTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/InRangeConstraintTest.java new file mode 100644 index 0000000000..f7a040cf94 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/InRangeConstraintTest.java @@ -0,0 +1,61 @@ +package org.openecomp.sdc.be.model.tosca.constraints; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.be.model.tosca.ToscaType; + + +public class InRangeConstraintTest { + + private InRangeConstraint createTestSubject() { + return new InRangeConstraint(null); + } + + + + + + @Test + public void testGetRangeMinValue() throws Exception { + InRangeConstraint testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRangeMinValue(); + } + + + @Test + public void testSetRangeMinValue() throws Exception { + InRangeConstraint testSubject; + String minValue = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setRangeMinValue(minValue); + } + + + @Test + public void testGetRangeMaxValue() throws Exception { + InRangeConstraint testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getRangeMaxValue(); + } + + + @Test + public void testSetRangeMaxValue() throws Exception { + InRangeConstraint testSubject; + String maxValue = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setRangeMaxValue(maxValue); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/LengthConstraintTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/LengthConstraintTest.java new file mode 100644 index 0000000000..87781f0260 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/LengthConstraintTest.java @@ -0,0 +1,38 @@ +package org.openecomp.sdc.be.model.tosca.constraints; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class LengthConstraintTest { + + private LengthConstraint createTestSubject() { + return new LengthConstraint(); + } + + + + + + @Test + public void testGetLength() throws Exception { + LengthConstraint testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLength(); + } + + + @Test + public void testSetLength() throws Exception { + LengthConstraint testSubject; + Integer length = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setLength(length); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/LessOrEqualConstraintTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/LessOrEqualConstraintTest.java new file mode 100644 index 0000000000..6430802948 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/LessOrEqualConstraintTest.java @@ -0,0 +1,41 @@ +package org.openecomp.sdc.be.model.tosca.constraints; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.be.model.tosca.ToscaType; + + +public class LessOrEqualConstraintTest { + + private LessOrEqualConstraint createTestSubject() { + return new LessOrEqualConstraint(""); + } + + + + + + + + @Test + public void testGetLessOrEqual() throws Exception { + LessOrEqualConstraint testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getLessOrEqual(); + } + + + @Test + public void testSetLessOrEqual() throws Exception { + LessOrEqualConstraint testSubject; + String lessOrEqual = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setLessOrEqual(lessOrEqual); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/MaxLengthConstraintTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/MaxLengthConstraintTest.java new file mode 100644 index 0000000000..ae0a50612d --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/MaxLengthConstraintTest.java @@ -0,0 +1,36 @@ +package org.openecomp.sdc.be.model.tosca.constraints; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class MaxLengthConstraintTest { + + private MaxLengthConstraint createTestSubject() { + return new MaxLengthConstraint(null); + } + + + + @Test + public void testGetMaxLength() throws Exception { + MaxLengthConstraint testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMaxLength(); + } + + + @Test + public void testSetMaxLength() throws Exception { + MaxLengthConstraint testSubject; + Integer maxLength = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setMaxLength(maxLength); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/MinLengthConstraintTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/MinLengthConstraintTest.java new file mode 100644 index 0000000000..4263a6fe28 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/MinLengthConstraintTest.java @@ -0,0 +1,38 @@ +package org.openecomp.sdc.be.model.tosca.constraints; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class MinLengthConstraintTest { + + private MinLengthConstraint createTestSubject() { + return new MinLengthConstraint(null); + } + + + + + + @Test + public void testGetMinLength() throws Exception { + MinLengthConstraint testSubject; + Integer result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMinLength(); + } + + + @Test + public void testSetMinLength() throws Exception { + MinLengthConstraint testSubject; + Integer minLength = 0; + + // default test + testSubject = createTestSubject(); + testSubject.setMinLength(minLength); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/PatternConstraintTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/PatternConstraintTest.java new file mode 100644 index 0000000000..1a20abbace --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/PatternConstraintTest.java @@ -0,0 +1,25 @@ +package org.openecomp.sdc.be.model.tosca.constraints; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class PatternConstraintTest { + + private PatternConstraint createTestSubject() { + return new PatternConstraint(); + } + + + @Test + public void testSetPattern() throws Exception { + PatternConstraint testSubject; + String pattern = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setPattern(pattern); + } + +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/ValidValuesConstraintTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/ValidValuesConstraintTest.java new file mode 100644 index 0000000000..93622300c4 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/constraints/ValidValuesConstraintTest.java @@ -0,0 +1,43 @@ +package org.openecomp.sdc.be.model.tosca.constraints; + +import java.util.List; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.be.model.tosca.ToscaType; + + +public class ValidValuesConstraintTest { + + private ValidValuesConstraint createTestSubject() { + return new ValidValuesConstraint(null); + } + + + + + + + + @Test + public void testGetValidValues() throws Exception { + ValidValuesConstraint testSubject; + List<String> result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getValidValues(); + } + + + @Test + public void testSetValidValues() throws Exception { + ValidValuesConstraint testSubject; + List<String> validValues = null; + + // default test + testSubject = createTestSubject(); + testSubject.setValidValues(validValues); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/BooleanConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/BooleanConverterTest.java new file mode 100644 index 0000000000..a37e8f6b4f --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/BooleanConverterTest.java @@ -0,0 +1,39 @@ +package org.openecomp.sdc.be.model.tosca.converters; + +import java.util.Map; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.be.model.DataTypeDefinition; + + +public class BooleanConverterTest { + + private BooleanConverter createTestSubject() { + return BooleanConverter.getInstance(); + } + + + @Test + public void testGetInstance() throws Exception { + BooleanConverter result; + + // default test + result = BooleanConverter.getInstance(); + } + + + @Test + public void testConvertToToscaValue() throws Exception { + BooleanConverter testSubject; + String value = ""; + String innerType = ""; + Map<String, DataTypeDefinition> dataTypes = null; + Object result; + + // default test + testSubject = createTestSubject(); + result = testSubject.convertToToscaValue(value, innerType, dataTypes); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/DataTypePropertyConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/DataTypePropertyConverterTest.java index 84f2254bbb..ebb7566611 100644 --- a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/DataTypePropertyConverterTest.java +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/DataTypePropertyConverterTest.java @@ -1,5 +1,8 @@ package org.openecomp.sdc.be.model.tosca.converters; +import static org.junit.Assert.*; + +import com.google.gson.JsonElement; import com.google.gson.JsonObject; import org.junit.Before; import org.junit.Test; @@ -14,174 +17,225 @@ import java.util.Map; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; +import java.util.*; +import org.junit.Assert; public class DataTypePropertyConverterTest { - private static final String EMPTY_JSON_STR = "{}"; - public static final String PROPERTY2_DEFAULT = "{\"prop1\":\"def1\",\"prop3\":\"def3\"}"; - private DataTypePropertyConverter testInstance = DataTypePropertyConverter.getInstance(); - private Map<String, DataTypeDefinition> dataTypes; - private DataTypeDefinition noDefaultValue, dataType1, dataType2, dataType3; - private PropertyDefinition prop1, prop2, prop3, noDefaultProp; - - @Before - public void setUp() throws Exception { - dataTypes = new HashMap<>(); - - prop1 = new PropertyDefinition(); - prop1.setDefaultValue("def1"); - prop1.setName("prop1"); - - prop2 = new PropertyDefinition(); - prop2.setType("dataType1"); - prop2.setName("prop2"); - - prop3 = new PropertyDefinition(); - prop3.setDefaultValue("def3"); - prop3.setName("prop3"); - - noDefaultProp = new PropertyDefinition(); - noDefaultProp.setName("noDefaultProp"); - - noDefaultValue = new DataTypeDefinition(); - noDefaultValue.setProperties(Collections.singletonList(noDefaultProp)); - - dataType1 = new DataTypeDefinition(); - dataType1.setProperties(Arrays.asList(prop1, prop3)); - - dataType2 = new DataTypeDefinition(); - dataType2.setDerivedFrom(dataType1); - - dataType3 = new DataTypeDefinition(); - dataType3.setProperties(Collections.singletonList(prop2)); - dataType3.setDerivedFrom(noDefaultValue); - - dataTypes.put("noDefault", noDefaultValue); - dataTypes.put("dataType1", dataType1); - dataTypes.put("dataType2", dataType2); - dataTypes.put("dataType3", dataType3); - } - - @Test - public void testGetPropertyDefaultValuesRec_dataTypeNotExist() throws Exception { - String defaultValue = testInstance.getDataTypePropertiesDefaultValuesRec("someType", dataTypes); - assertEquals(EMPTY_JSON_STR, defaultValue); - } - - @Test - public void testGetPropertyDefaultValuesRec_NoDefaultValue() throws Exception { - String defaultValue = testInstance.getDataTypePropertiesDefaultValuesRec("noDefault", dataTypes); - assertEquals(EMPTY_JSON_STR, defaultValue); - } - - @Test - public void testGetPropertyDefaultValuesRec() throws Exception { - String defaultValue = testInstance.getDataTypePropertiesDefaultValuesRec("dataType1", dataTypes); - assertEquals(PROPERTY2_DEFAULT, defaultValue); - } - - @Test - public void testGetPropertyDefaultValuesRec_defaultFromDerivedDataType_derivedDataTypeHasNoDefaults() throws Exception { - dataType2.setDerivedFrom(noDefaultValue); - String defaultValue = testInstance.getDataTypePropertiesDefaultValuesRec("dataType2", dataTypes); - assertEquals(EMPTY_JSON_STR, defaultValue); - } - - @Test - public void testGetPropertyDefaultValuesRec_defaultFromDerivedDataType() throws Exception { - String defaultValue = testInstance.getDataTypePropertiesDefaultValuesRec("dataType2", dataTypes); - assertEquals(PROPERTY2_DEFAULT, defaultValue); - } - - @Test - public void testGetPropertyDefaultValuesRec_defaultFromDataTypesOfProperties_dataTypeOfPropertyHasNoDefault() throws Exception { - dataType3.getProperties().get(0).setType(noDefaultValue.getName()); - String defaultValue = testInstance.getDataTypePropertiesDefaultValuesRec("dataType3", dataTypes); - assertEquals(EMPTY_JSON_STR, defaultValue); - } - - @Test - public void testGetPropertyDefaultValuesRec_defaultFromDataTypesOfProperties() throws Exception { - String defaultValue = testInstance.getDataTypePropertiesDefaultValuesRec("dataType3", dataTypes); - assertEquals("{\"prop2\":" + PROPERTY2_DEFAULT + "}", defaultValue);//data type 3 has property prop2 which has a data type with property prop1 which has a default value - } - - @Test - public void testMergeDefaultValues_allDefaultValuesAreOverridden() throws Exception { - JsonObject value = new JsonObject(); - value.addProperty(noDefaultProp.getName(), "override1"); - - JsonObject prop1Val = new JsonObject(); - prop1Val.addProperty(prop1.getName(), "prop1Override"); - - JsonObject prop3Val = new JsonObject(); - prop3Val.addProperty(prop3.getName(), "prop3Override"); - - JsonObject prop2Value = new JsonObject(); - prop2Value.add(prop3.getName(), prop3Val); - prop2Value.add(prop1.getName(), prop1Val); - - value.add(prop2.getName(), prop2Value); - - String valBeforeMerge = value.toString(); - - testInstance.mergeDataTypeDefaultValuesWithPropertyValue(value, "dataType3", dataTypes); - assertEquals(valBeforeMerge, value.toString()); - } - - @Test - public void testMergeDefaultValues() throws Exception { - JsonObject value = new JsonObject(); - value.addProperty(noDefaultProp.getName(), "override1"); - - JsonObject prop1Val = new JsonObject(); - prop1Val.addProperty(prop1.getName(), "prop1Override"); - - value.add(prop2.getName(), prop1Val); - - testInstance.mergeDataTypeDefaultValuesWithPropertyValue(value, "dataType3", dataTypes); - - assertEquals("{\"noDefaultProp\":\"override1\",\"prop2\":{\"prop1\":\"prop1Override\",\"prop3\":\"def3\"}}", - value.toString());//expect to merge prop 3 default as it was not overridden - } - - @Test - public void testMergeDefaultValues_mergeAll() throws Exception { - JsonObject value = new JsonObject(); - testInstance.mergeDataTypeDefaultValuesWithPropertyValue(value, "dataType3", dataTypes); + private static final String EMPTY_JSON_STR = "{}"; + public static final String PROPERTY2_DEFAULT = "{\"prop1\":\"def1\",\"prop3\":\"def3\"}"; + private DataTypePropertyConverter testInstance = DataTypePropertyConverter.getInstance(); + private Map<String, DataTypeDefinition> dataTypes; + private DataTypeDefinition noDefaultValue, dataType1, dataType2, dataType3; + private PropertyDefinition prop1, prop2, prop3, noDefaultProp; + + @Before + public void setUp() throws Exception { + dataTypes = new HashMap<>(); + + prop1 = new PropertyDefinition(); + prop1.setDefaultValue("def1"); + prop1.setName("prop1"); + + prop2 = new PropertyDefinition(); + prop2.setType("dataType1"); + prop2.setName("prop2"); + + prop3 = new PropertyDefinition(); + prop3.setDefaultValue("def3"); + prop3.setName("prop3"); + + noDefaultProp = new PropertyDefinition(); + noDefaultProp.setName("noDefaultProp"); + + noDefaultValue = new DataTypeDefinition(); + noDefaultValue.setProperties(Collections.singletonList(noDefaultProp)); + + dataType1 = new DataTypeDefinition(); + dataType1.setProperties(Arrays.asList(prop1, prop3)); + + dataType2 = new DataTypeDefinition(); + dataType2.setDerivedFrom(dataType1); + + dataType3 = new DataTypeDefinition(); + dataType3.setProperties(Collections.singletonList(prop2)); + dataType3.setDerivedFrom(noDefaultValue); + + dataTypes.put("noDefault", noDefaultValue); + dataTypes.put("dataType1", dataType1); + dataTypes.put("dataType2", dataType2); + dataTypes.put("dataType3", dataType3); + } + + @Test + public void testGetPropertyDefaultValuesRec_dataTypeNotExist() throws Exception { + String defaultValue = testInstance.getDataTypePropertiesDefaultValuesRec("someType", dataTypes); + assertEquals(EMPTY_JSON_STR, defaultValue); + } + + @Test + public void testGetPropertyDefaultValuesRec_NoDefaultValue() throws Exception { + String defaultValue = testInstance.getDataTypePropertiesDefaultValuesRec("noDefault", dataTypes); + assertEquals(EMPTY_JSON_STR, defaultValue); + } + + @Test + public void testGetPropertyDefaultValuesRec() throws Exception { + String defaultValue = testInstance.getDataTypePropertiesDefaultValuesRec("dataType1", dataTypes); + assertEquals(PROPERTY2_DEFAULT, defaultValue); + } + + @Test + public void testGetPropertyDefaultValuesRec_defaultFromDerivedDataType_derivedDataTypeHasNoDefaults() + throws Exception { + dataType2.setDerivedFrom(noDefaultValue); + String defaultValue = testInstance.getDataTypePropertiesDefaultValuesRec("dataType2", dataTypes); + assertEquals(EMPTY_JSON_STR, defaultValue); + } + + @Test + public void testGetPropertyDefaultValuesRec_defaultFromDerivedDataType() throws Exception { + String defaultValue = testInstance.getDataTypePropertiesDefaultValuesRec("dataType2", dataTypes); + assertEquals(PROPERTY2_DEFAULT, defaultValue); + } + + @Test + public void testGetPropertyDefaultValuesRec_defaultFromDataTypesOfProperties_dataTypeOfPropertyHasNoDefault() + throws Exception { + dataType3.getProperties().get(0).setType(noDefaultValue.getName()); + String defaultValue = testInstance.getDataTypePropertiesDefaultValuesRec("dataType3", dataTypes); + assertEquals(EMPTY_JSON_STR, defaultValue); + } + + @Test + public void testGetPropertyDefaultValuesRec_defaultFromDataTypesOfProperties() throws Exception { + String defaultValue = testInstance.getDataTypePropertiesDefaultValuesRec("dataType3", dataTypes); + assertEquals("{\"prop2\":" + PROPERTY2_DEFAULT + "}", defaultValue);// data + // type + // 3 + // has + // property + // prop2 + // which + // has + // a + // data + // type + // with + // property + // prop1 + // which + // has + // a + // default + // value + } + + @Test + public void testMergeDefaultValues_allDefaultValuesAreOverridden() throws Exception { + JsonObject value = new JsonObject(); + value.addProperty(noDefaultProp.getName(), "override1"); + + JsonObject prop1Val = new JsonObject(); + prop1Val.addProperty(prop1.getName(), "prop1Override"); + + JsonObject prop3Val = new JsonObject(); + prop3Val.addProperty(prop3.getName(), "prop3Override"); + + JsonObject prop2Value = new JsonObject(); + prop2Value.add(prop3.getName(), prop3Val); + prop2Value.add(prop1.getName(), prop1Val); + + value.add(prop2.getName(), prop2Value); + + String valBeforeMerge = value.toString(); + + testInstance.mergeDataTypeDefaultValuesWithPropertyValue(value, "dataType3", dataTypes); + assertEquals(valBeforeMerge, value.toString()); + } + + @Test + public void testMergeDefaultValues() throws Exception { + JsonObject value = new JsonObject(); + value.addProperty(noDefaultProp.getName(), "override1"); + + JsonObject prop1Val = new JsonObject(); + prop1Val.addProperty(prop1.getName(), "prop1Override"); + + value.add(prop2.getName(), prop1Val); + + testInstance.mergeDataTypeDefaultValuesWithPropertyValue(value, "dataType3", dataTypes); + + assertEquals("{\"noDefaultProp\":\"override1\",\"prop2\":{\"prop1\":\"prop1Override\",\"prop3\":\"def3\"}}", + value.toString());// expect to merge prop 3 default as it was + // not overridden + } + + @Test + public void testMergeDefaultValues_mergeAll() throws Exception { + JsonObject value = new JsonObject(); + testInstance.mergeDataTypeDefaultValuesWithPropertyValue(value, "dataType3", dataTypes); + + assertEquals("{\"prop2\":" + PROPERTY2_DEFAULT + "}", value.toString());// expect + // to + // merge + // prop + // 3 + // default + // as + // it + // was + // not + // overridden + } + + @Test + public void testMergeDefaultValues_doNotAddDefaultsForGetInputValues() throws Exception { + + JsonObject getInputValue = new JsonObject(); + getInputValue.addProperty("get_input", "in1"); + + JsonObject value = new JsonObject(); + value.add(prop2.getName(), getInputValue); + + testInstance.mergeDataTypeDefaultValuesWithPropertyValue(value, "dataType3", dataTypes); + + assertEquals("{\"prop2\":{\"get_input\":\"in1\"}}", value.toString()); + } + + @Test + public void testMergeDefaultValues_doNotAddDefaultsForGetInputInnerValues() throws Exception { + JsonObject getInputValue = new JsonObject(); + getInputValue.addProperty("get_input", "in1"); - assertEquals("{\"prop2\":" + PROPERTY2_DEFAULT + "}", - value.toString());//expect to merge prop 3 default as it was not overridden - } + JsonObject prop1Val = new JsonObject(); + prop1Val.add(prop1.getName(), getInputValue); - @Test - public void testMergeDefaultValues_doNotAddDefaultsForGetInputValues() throws Exception { + JsonObject value = new JsonObject(); + value.add(prop2.getName(), prop1Val); - JsonObject getInputValue = new JsonObject(); - getInputValue.addProperty("get_input", "in1"); + testInstance.mergeDataTypeDefaultValuesWithPropertyValue(value, "dataType3", dataTypes); - JsonObject value = new JsonObject(); - value.add(prop2.getName(), getInputValue); + assertEquals("{\"prop2\":{\"prop1\":{\"get_input\":\"in1\"},\"prop3\":\"def3\"}}", value.toString()); - testInstance.mergeDataTypeDefaultValuesWithPropertyValue(value, "dataType3", dataTypes); + } - assertEquals("{\"prop2\":{\"get_input\":\"in1\"}}", value.toString()); - } + private DataTypePropertyConverter createTestSubject() { + return DataTypePropertyConverter.getInstance(); + } - @Test - public void testMergeDefaultValues_doNotAddDefaultsForGetInputInnerValues() throws Exception { - JsonObject getInputValue = new JsonObject(); - getInputValue.addProperty("get_input", "in1"); + + @Test + public void testGetInstance() throws Exception { + DataTypePropertyConverter result; - JsonObject prop1Val = new JsonObject(); - prop1Val.add(prop1.getName(), getInputValue); + // default test + result = DataTypePropertyConverter.getInstance(); + } - JsonObject value = new JsonObject(); - value.add(prop2.getName(), prop1Val); + - testInstance.mergeDataTypeDefaultValuesWithPropertyValue(value, "dataType3", dataTypes); - assertEquals("{\"prop2\":{\"prop1\":{\"get_input\":\"in1\"},\"prop3\":\"def3\"}}", value.toString()); + - } } diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/DefaultConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/DefaultConverterTest.java new file mode 100644 index 0000000000..111c4f84f1 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/DefaultConverterTest.java @@ -0,0 +1,39 @@ +package org.openecomp.sdc.be.model.tosca.converters; + +import java.util.Map; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.be.model.DataTypeDefinition; + + +public class DefaultConverterTest { + + private DefaultConverter createTestSubject() { + return DefaultConverter.getInstance(); + } + + + @Test + public void testGetInstance() throws Exception { + DefaultConverter result; + + // default test + result = DefaultConverter.getInstance(); + } + + + @Test + public void testConvert() throws Exception { + DefaultConverter testSubject; + String value = ""; + String innerType = ""; + Map<String, DataTypeDefinition> dataTypes = null; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.convert(value, innerType, dataTypes); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/FloatConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/FloatConverterTest.java new file mode 100644 index 0000000000..d66182b966 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/FloatConverterTest.java @@ -0,0 +1,27 @@ +package org.openecomp.sdc.be.model.tosca.converters; + +import java.util.Map; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.be.model.DataTypeDefinition; + + +public class FloatConverterTest { + + private FloatConverter createTestSubject() { + return FloatConverter.getInstance(); + } + + + @Test + public void testGetInstance() throws Exception { + FloatConverter result; + + // default test + result = FloatConverter.getInstance(); + } + + +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatBooleanConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatBooleanConverterTest.java new file mode 100644 index 0000000000..8f7aa6d849 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatBooleanConverterTest.java @@ -0,0 +1,29 @@ +package org.openecomp.sdc.be.model.tosca.converters; + +import java.util.Map; + +import javax.annotation.Generated; + +import org.junit.Assert; +import org.junit.Test; +import org.openecomp.sdc.be.model.DataTypeDefinition; + + +public class HeatBooleanConverterTest { + + private HeatBooleanConverter createTestSubject() { + return HeatBooleanConverter.getInstance(); + } + + + @Test + public void testGetInstance() throws Exception { + HeatBooleanConverter result; + + // default test + result = HeatBooleanConverter.getInstance(); + } + + + +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatCommaDelimitedListConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatCommaDelimitedListConverterTest.java new file mode 100644 index 0000000000..9b3cb57028 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatCommaDelimitedListConverterTest.java @@ -0,0 +1,29 @@ +package org.openecomp.sdc.be.model.tosca.converters; + +import java.util.Map; + +import javax.annotation.Generated; + +import org.junit.Assert; +import org.junit.Test; +import org.openecomp.sdc.be.model.DataTypeDefinition; + + +public class HeatCommaDelimitedListConverterTest { + + private HeatCommaDelimitedListConverter createTestSubject() { + return HeatCommaDelimitedListConverter.getInstance(); + } + + + @Test + public void testGetInstance() throws Exception { + HeatCommaDelimitedListConverter result; + + // default test + result = HeatCommaDelimitedListConverter.getInstance(); + } + + + +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatJsonConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatJsonConverterTest.java new file mode 100644 index 0000000000..4e5ee49b6d --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatJsonConverterTest.java @@ -0,0 +1,29 @@ +package org.openecomp.sdc.be.model.tosca.converters; + +import java.util.Map; + +import javax.annotation.Generated; + +import org.junit.Assert; +import org.junit.Test; +import org.openecomp.sdc.be.model.DataTypeDefinition; + + +public class HeatJsonConverterTest { + + private HeatJsonConverter createTestSubject() { + return HeatJsonConverter.getInstance(); + } + + + @Test + public void testGetInstance() throws Exception { + HeatJsonConverter result; + + // default test + result = HeatJsonConverter.getInstance(); + } + + + +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatNumberConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatNumberConverterTest.java new file mode 100644 index 0000000000..1594b00c77 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatNumberConverterTest.java @@ -0,0 +1,29 @@ +package org.openecomp.sdc.be.model.tosca.converters; + +import java.util.Map; + +import javax.annotation.Generated; + +import org.junit.Assert; +import org.junit.Test; +import org.openecomp.sdc.be.model.DataTypeDefinition; + + +public class HeatNumberConverterTest { + + private HeatNumberConverter createTestSubject() { + return HeatNumberConverter.getInstance(); + } + + + @Test + public void testGetInstance() throws Exception { + HeatNumberConverter result; + + // default test + result = HeatNumberConverter.getInstance(); + } + + + +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatStringConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatStringConverterTest.java index 285dd9a965..3844bc81af 100644 --- a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatStringConverterTest.java +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/HeatStringConverterTest.java @@ -1,16 +1,36 @@ package org.openecomp.sdc.be.model.tosca.converters; -import org.junit.Test; - import static org.junit.Assert.assertEquals; +import java.util.Map; + +import org.junit.Assert; +import org.junit.Test; +import org.openecomp.sdc.be.model.DataTypeDefinition; + public class HeatStringConverterTest { - @Test - public void convertString_strWithQuotes_returnStringAsIs() { - String str = "'i'm string with \"quote\"'"; - String convert = HeatStringConverter.getInstance().convert(str, null, null); - assertEquals(str, convert); - } + @Test + public void convertString_strWithQuotes_returnStringAsIs() { + String str = "'i'm string with \"quote\"'"; + String convert = HeatStringConverter.getInstance().convert(str, null, null); + assertEquals(str, convert); + } + + private HeatStringConverter createTestSubject() { + return HeatStringConverter.getInstance(); + } + + + @Test + public void testGetInstance() throws Exception { + HeatStringConverter result; + + // default test + result = HeatStringConverter.getInstance(); + } + + + } diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/IntegerConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/IntegerConverterTest.java new file mode 100644 index 0000000000..00bb834faf --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/IntegerConverterTest.java @@ -0,0 +1,48 @@ +package org.openecomp.sdc.be.model.tosca.converters; + +import java.util.Map; + +import javax.annotation.Generated; + +import org.junit.Assert; +import org.junit.Test; +import org.openecomp.sdc.be.model.DataTypeDefinition; + + +public class IntegerConverterTest { + + private IntegerConverter createTestSubject() { + return IntegerConverter.getInstance(); + } + + + @Test + public void testGetInstance() throws Exception { + IntegerConverter result; + + // default test + result = IntegerConverter.getInstance(); + } + + + @Test + public void testConvertToToscaValue() throws Exception { + IntegerConverter testSubject; + String value = ""; + String innerType = ""; + Map<String, DataTypeDefinition> dataTypes = null; + Object result; + + // test 1 + testSubject = createTestSubject(); + value = null; + result = testSubject.convertToToscaValue(value, innerType, dataTypes); + Assert.assertEquals(null, result); + + // test 2 + testSubject = createTestSubject(); + value = ""; + result = testSubject.convertToToscaValue(value, innerType, dataTypes); + Assert.assertEquals(null, result); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/JsonConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/JsonConverterTest.java new file mode 100644 index 0000000000..431443ab80 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/JsonConverterTest.java @@ -0,0 +1,39 @@ +package org.openecomp.sdc.be.model.tosca.converters; + +import java.util.Map; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.be.model.DataTypeDefinition; + + +public class JsonConverterTest { + + private JsonConverter createTestSubject() { + return JsonConverter.getInstance(); + } + + + @Test + public void testGetInstance() throws Exception { + JsonConverter result; + + // default test + result = JsonConverter.getInstance(); + } + + + @Test + public void testConvert() throws Exception { + JsonConverter testSubject; + String value = ""; + String innerType = ""; + Map<String, DataTypeDefinition> dataTypes = null; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.convert(value, innerType, dataTypes); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ListConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ListConverterTest.java new file mode 100644 index 0000000000..a253ef07e8 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ListConverterTest.java @@ -0,0 +1,36 @@ +package org.openecomp.sdc.be.model.tosca.converters; + +import java.util.Map; + +import javax.annotation.Generated; + +import org.junit.Assert; +import org.junit.Test; +import org.openecomp.sdc.be.model.DataTypeDefinition; + +import fj.data.Either; + + +public class ListConverterTest { + + private ListConverter createTestSubject() { + return new ListConverter(); + } + + + @Test + public void testGetInstance() throws Exception { + ListConverter result; + + // default test + result = ListConverter.getInstance(); + } + + + + + + + + +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/MapConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/MapConverterTest.java new file mode 100644 index 0000000000..99f5e2716f --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/MapConverterTest.java @@ -0,0 +1,48 @@ +package org.openecomp.sdc.be.model.tosca.converters; + +import java.util.Map; + +import javax.annotation.Generated; + +import org.junit.Assert; +import org.junit.Test; +import org.openecomp.sdc.be.model.DataTypeDefinition; + +import fj.data.Either; + + +public class MapConverterTest { + + private MapConverter createTestSubject() { + return new MapConverter(); + } + + + @Test + public void testGetInstance() throws Exception { + MapConverter result; + + // default test + result = MapConverter.getInstance(); + } + + + @Test + public void testConvert() throws Exception { + MapConverter testSubject; + String value = ""; + String innerType = ""; + Map<String, DataTypeDefinition> dataTypes = null; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.convert(value, innerType, dataTypes); + } + + + + + + +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/StringConvertorTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/StringConvertorTest.java new file mode 100644 index 0000000000..a3a142d668 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/StringConvertorTest.java @@ -0,0 +1,28 @@ +package org.openecomp.sdc.be.model.tosca.converters; + +import java.util.Map; + +import javax.annotation.Generated; + +import org.junit.Assert; +import org.junit.Test; +import org.openecomp.sdc.be.model.DataTypeDefinition; + +public class StringConvertorTest { + + private StringConvertor createTestSubject() { + return StringConvertor.getInstance(); + } + + + @Test + public void testGetInstance() throws Exception { + StringConvertor result; + + // default test + result = StringConvertor.getInstance(); + } + + + +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaBooleanConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaBooleanConverterTest.java new file mode 100644 index 0000000000..c96c1244b6 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaBooleanConverterTest.java @@ -0,0 +1,27 @@ +package org.openecomp.sdc.be.model.tosca.converters; + +import java.util.Map; + +import javax.annotation.Generated; + +import org.junit.Assert; +import org.junit.Test; +import org.openecomp.sdc.be.model.DataTypeDefinition; + +public class ToscaBooleanConverterTest { + + private ToscaBooleanConverter createTestSubject() { + return ToscaBooleanConverter.getInstance(); + } + + + @Test + public void testGetInstance() throws Exception { + ToscaBooleanConverter result; + + // default test + result = ToscaBooleanConverter.getInstance(); + } + + +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaFloatConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaFloatConverterTest.java new file mode 100644 index 0000000000..a8c5aeef66 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaFloatConverterTest.java @@ -0,0 +1,29 @@ +package org.openecomp.sdc.be.model.tosca.converters; + +import java.util.Map; + +import javax.annotation.Generated; + +import org.junit.Assert; +import org.junit.Test; +import org.openecomp.sdc.be.model.DataTypeDefinition; + + +public class ToscaFloatConverterTest { + + private ToscaFloatConverter createTestSubject() { + return ToscaFloatConverter.getInstance(); + } + + + @Test + public void testGetInstance() throws Exception { + ToscaFloatConverter result; + + // default test + result = ToscaFloatConverter.getInstance(); + } + + + +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaJsonValueConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaJsonValueConverterTest.java new file mode 100644 index 0000000000..34eae243f7 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaJsonValueConverterTest.java @@ -0,0 +1,39 @@ +package org.openecomp.sdc.be.model.tosca.converters; + +import java.util.Map; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.be.model.DataTypeDefinition; + + +public class ToscaJsonValueConverterTest { + + private ToscaJsonValueConverter createTestSubject() { + return ToscaJsonValueConverter.getInstance(); + } + + + @Test + public void testGetInstance() throws Exception { + ToscaJsonValueConverter result; + + // default test + result = ToscaJsonValueConverter.getInstance(); + } + + + @Test + public void testConvertToToscaValue() throws Exception { + ToscaJsonValueConverter testSubject; + String value = ""; + String innerType = ""; + Map<String, DataTypeDefinition> dataTypes = null; + Object result; + + // default test + testSubject = createTestSubject(); + result = testSubject.convertToToscaValue(value, innerType, dataTypes); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaListValueConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaListValueConverterTest.java new file mode 100644 index 0000000000..a713c4ce6c --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaListValueConverterTest.java @@ -0,0 +1,29 @@ +package org.openecomp.sdc.be.model.tosca.converters; + +import java.util.Map; + +import javax.annotation.Generated; + +import org.junit.Assert; +import org.junit.Test; +import org.openecomp.sdc.be.model.DataTypeDefinition; + + +public class ToscaListValueConverterTest { + + private ToscaListValueConverter createTestSubject() { + return ToscaListValueConverter.getInstance(); + } + + + @Test + public void testGetInstance() throws Exception { + ToscaListValueConverter result; + + // default test + result = ToscaListValueConverter.getInstance(); + } + + + +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaStringConvertorTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaStringConvertorTest.java new file mode 100644 index 0000000000..8365c0345a --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaStringConvertorTest.java @@ -0,0 +1,39 @@ +package org.openecomp.sdc.be.model.tosca.converters; + +import java.util.Map; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.be.model.DataTypeDefinition; + + +public class ToscaStringConvertorTest { + + private ToscaStringConvertor createTestSubject() { + return ToscaStringConvertor.getInstance(); + } + + + @Test + public void testGetInstance() throws Exception { + ToscaStringConvertor result; + + // default test + result = ToscaStringConvertor.getInstance(); + } + + + @Test + public void testConvertToToscaValue() throws Exception { + ToscaStringConvertor testSubject; + String value = ""; + String innerType = ""; + Map<String, DataTypeDefinition> dataTypes = null; + Object result; + + // default test + testSubject = createTestSubject(); + result = testSubject.convertToToscaValue(value, innerType, dataTypes); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaValueDefaultConverterTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaValueDefaultConverterTest.java new file mode 100644 index 0000000000..b9ae07cb76 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/converters/ToscaValueDefaultConverterTest.java @@ -0,0 +1,39 @@ +package org.openecomp.sdc.be.model.tosca.converters; + +import java.util.Map; + +import javax.annotation.Generated; + +import org.junit.Test; +import org.openecomp.sdc.be.model.DataTypeDefinition; + + +public class ToscaValueDefaultConverterTest { + + private ToscaValueDefaultConverter createTestSubject() { + return ToscaValueDefaultConverter.getInstance(); + } + + + @Test + public void testGetInstance() throws Exception { + ToscaValueDefaultConverter result; + + // default test + result = ToscaValueDefaultConverter.getInstance(); + } + + + @Test + public void testConvertToToscaValue() throws Exception { + ToscaValueDefaultConverter testSubject; + String value = ""; + String innerType = ""; + Map<String, DataTypeDefinition> dataTypes = null; + Object result; + + // default test + testSubject = createTestSubject(); + result = testSubject.convertToToscaValue(value, innerType, dataTypes); + } +}
\ No newline at end of file diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/version/ComparableVersionTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/version/ComparableVersionTest.java new file mode 100644 index 0000000000..5d0c34d037 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/tosca/version/ComparableVersionTest.java @@ -0,0 +1,64 @@ +package org.openecomp.sdc.be.model.tosca.version; + +import javax.annotation.Generated; + +import org.junit.Test; + + +public class ComparableVersionTest { + + private ComparableVersion createTestSubject() { + return new ComparableVersion(""); + } + + + @Test + public void testParseVersion() throws Exception { + ComparableVersion testSubject; + String version = ""; + + // default test + testSubject = createTestSubject(); + testSubject.parseVersion(version); + } + + + + + + + + + @Test + public void testToString() throws Exception { + ComparableVersion testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.toString(); + } + + + @Test + public void testEquals() throws Exception { + ComparableVersion testSubject; + Object o = null; + boolean result; + + // default test + testSubject = createTestSubject(); + result = testSubject.equals(o); + } + + + @Test + public void testHashCode() throws Exception { + ComparableVersion testSubject; + int result; + + // default test + testSubject = createTestSubject(); + result = testSubject.hashCode(); + } +}
\ No newline at end of file diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/Model.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/Model.java index c55abb36c2..6668836518 100644 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/Model.java +++ b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/Model.java @@ -80,6 +80,9 @@ public abstract class Model { case "org.openecomp.resource.vfc.nodes.heat.cinder": modelToBeReturned = new VolumeWidget(); break; + case "org.openecomp.resource.pnf": + modelToBeReturned = new PnfResource(); + break; default: modelToBeReturned = null; break; diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/PnfResource.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/PnfResource.java new file mode 100644 index 0000000000..67e19392ba --- /dev/null +++ b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/PnfResource.java @@ -0,0 +1,9 @@ +package org.openecomp.sdc.generator.aai.model; + +import org.openecomp.sdc.generator.aai.types.Cardinality; + +@org.openecomp.sdc.generator.aai.types.Model(widget = Widget.Type.PNF, cardinality = Cardinality + .UNBOUNDED, + dataDeleteFlag = true) +public class PnfResource extends Resource { +} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/PnfWidget.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/PnfWidget.java new file mode 100644 index 0000000000..2aa03b38bd --- /dev/null +++ b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/PnfWidget.java @@ -0,0 +1,11 @@ +package org.openecomp.sdc.generator.aai.model; + +import org.openecomp.sdc.generator.aai.types.Cardinality; +import org.openecomp.sdc.generator.aai.types.ModelType; +import org.openecomp.sdc.generator.aai.types.ModelWidget; + +@org.openecomp.sdc.generator.aai.types.Model(widget = Widget.Type.PNF, cardinality + = Cardinality.UNBOUNDED, dataDeleteFlag = true) +@ModelWidget(type = ModelType.WIDGET, name = "pnf") +public class PnfWidget extends ResourceWidget { +} diff --git a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/Widget.java b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/Widget.java index 6220519a3f..ce1ef703d9 100644 --- a/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/Widget.java +++ b/common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-api/src/main/java/org/openecomp/sdc/generator/aai/model/Widget.java @@ -78,6 +78,8 @@ public abstract class Widget extends Model { return new AllotedResourceWidget(); case TUNNEL_XCONNECT: return new TunnelXconnectWidget(); + case PNF: + return new PnfWidget(); default: return null; } @@ -191,6 +193,6 @@ public abstract class Widget extends Model { public enum Type { SERVICE, VF, VFC, VSERVER, VOLUME, FLAVOR, TENANT, VOLUME_GROUP, LINT, L3_NET, VFMODULE, IMAGE, - OAM_NETWORK,ALLOTTED_RESOURCE,TUNNEL_XCONNECT + OAM_NETWORK,ALLOTTED_RESOURCE,TUNNEL_XCONNECT, PNF } } diff --git a/docs/index.rst b/docs/index.rst index 7ba626a806..cc71b4572b 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -10,9 +10,9 @@ SDC Documentation architecture.rst configuration.rst consumedapis.rst + offeredapis.rst delivery.rst humaninterfaces.rst installation.rst logging.rst - offeredapis.rst release-notes.rst diff --git a/docs/offeredapis.rst b/docs/offeredapis.rst index 23504c1daa..bdc5034eb0 100644 --- a/docs/offeredapis.rst +++ b/docs/offeredapis.rst @@ -4,11 +4,10272 @@ Offered APIs ============ -.. note:: - * This section is used to describe the external interfaces offered by a software component - - * This section is typically: provided for a platform-component and sdk; and - referenced in developer guides and api reference manuals. - - * This note must be removed after content has been added. +:Date: 2017-10-18 +.. contents:: + :depth: 3 +.. + +Overview +======== + +Version information +------------------- + +*Version* : 1.0.0 + +URI scheme +---------- + +*Host* : localhost:8080 *BasePath* : /sdc2/rest *Schemes* : HTTP + +Tags +---- + +- Additional Information Servlet + +- BE Monitoring + +- Catalog Types Upload + +- Component Servlet + +- Consumer Servlet + +- Distribution Service Servlet + +- Element Servlet + +- Input Catalog + +- Lifecycle Actions Servlet + +- Product Catalog + +- Resource Artifact Servlet + +- Resource Attribute Servlet + +- Resource Group Servlet + +- Resource Instance Servlet + +- Resource Property Servlet + +- Resources Catalog + +- Resources Catalog Upload + +- Service Catalog + +- Types Fetch Servlet + +- User Administration + +Paths +===== + +return aggregate BE health check of Titan, ES and BE +---------------------------------------------------- + +:: + + GET /healthCheck + +Description +~~~~~~~~~~~ + +return BE health check + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Titan, ES and BE are all up | No Content | ++---------+----------------------------------------------------+----------------+ +| **500** | One or more BE components (Titan, ES, BE) are down | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- BE Monitoring + +POST /monitoring +---------------- + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Body** | **body**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **defau | successful operation | No Content | +| lt** | | | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- BE Monitoring + +Retrieve all artifactTypes +-------------------------- + +:: + + GET /v1/artifactTypes + +Description +~~~~~~~~~~~ + +Retrieve all artifactTypes + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Returns artifactTypes Ok | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | No artifactTypes were found | No Content | ++---------+----------------------------------------------------+----------------+ +| **500** | Internal Server Error | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Element Servlet + +get component audit records +--------------------------- + +:: + + GET /v1/catalog/audit-records/{componentType}/{componentUniqueId} + +Description +~~~~~~~~~~~ + +get audit records for a service or a resource + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentType**\ *requ | string | +| | ired* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentUniqueId**\ * | string | +| | required* | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Service found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Service Catalog + +Get data types +-------------- + +:: + + GET /v1/catalog/dataTypes + +Description +~~~~~~~~~~~ + +Returns data types + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | datatypes | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Data types not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Types Fetch Servlet + +Create product +-------------- + +:: + + POST /v1/catalog/products + +Description +~~~~~~~~~~~ + +Returns created product + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | USER\_ID of product strategist user | string | +| ** | *\ *require | | | +| | d* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | Product object to be created | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | successful operation | `Product <#_pr | +| | | oduct>`__ | ++---------+----------------------------------------------------+----------------+ +| **201** | Product created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid/missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation / Empty USER\_ID header | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Product already exists / User not found / Wrong | No Content | +| | user role | | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Product Catalog + +Retrieve Service +---------------- + +:: + + GET /v1/catalog/products/productName/{productName}/productVersion/{productVersion} + +Description +~~~~~~~~~~~ + +Returns product according to name and version + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **productName**\ *requir | string | +| | ed* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **productVersion**\ *req | string | +| | uired* | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Product found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Product not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Product Catalog + +validate product name +--------------------- + +:: + + GET /v1/catalog/products/validate-name/{productName} + +Description +~~~~~~~~~~~ + +checks if the chosen product name is available + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **productName**\ *requir | string | +| | ed* | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Service found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Product Catalog + +Retrieve product +---------------- + +:: + + GET /v1/catalog/products/{productId} + +Description +~~~~~~~~~~~ + +Returns product according to productId + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **productId**\ *required | string | +| | * | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Product found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Missing information | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Product not found | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **500** | Internal Server Error | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Product Catalog + +DELETE /v1/catalog/products/{productid} +--------------------------------------- + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Path** | **productId**\ *required | string | +| | * | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **defau | successful operation | No Content | +| lt** | | | ++---------+----------------------------------------------------+----------------+ + +Tags +~~~~ + +- Product Catalog + +Update Product Metadata +----------------------- + +:: + + PUT /v1/catalog/products/{productId}/metadata + +Description +~~~~~~~~~~~ + +Returns updated product + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **productId | | string | +| | **\ *requir | | | +| | ed* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | Product object to be Updated | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Product Updated | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Product Catalog + +Create Resource +--------------- + +:: + + POST /v1/catalog/resources + +Description +~~~~~~~~~~~ + +Returns created resource + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | Resource object to be created | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | successful operation | `Resource <#_r | +| | | esource>`__ | ++---------+----------------------------------------------------+----------------+ +| **201** | Resource created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Resource already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resources Catalog + +GET /v1/catalog/resources/certified/abstract +-------------------------------------------- + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **defau | successful operation | No Content | +| lt** | | | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resources Catalog + +GET /v1/catalog/resources/certified/notabstract +----------------------------------------------- + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **defau | successful operation | No Content | +| lt** | | | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resources Catalog + +Create Resource +--------------- + +:: + + POST /v1/catalog/resources/csar/{csaruuid} + +Description +~~~~~~~~~~~ + +Returns resource created from csar uuid + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **csaruuid**\ *required* | string | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | successful operation | `Resource <#_r | +| | | esource>`__ | ++---------+----------------------------------------------------+----------------+ +| **201** | Resource retrieced | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resources Catalog + +Retrieve Resource by name and version +------------------------------------- + +:: + + GET /v1/catalog/resources/resourceName/{resourceName}/resourceVersion/{resourceVersion} + +Description +~~~~~~~~~~~ + +Returns resource according to resourceId + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **resourceName**\ *requi | string | +| | red* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **resourceVersion**\ *re | string | +| | quired* | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Resource found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Resource not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resources Catalog + +validate resource name +---------------------- + +:: + + GET /v1/catalog/resources/validate-name/{resourceName} + +Description +~~~~~~~~~~~ + +checks if the chosen resource name is available + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **resourceName**\ *requi | string | +| | red* | | ++------------------+--------------------------+----------------------------------+ +| **Query** | **subtype**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Resource found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resources Catalog + +Retrieve Resource +----------------- + +:: + + GET /v1/catalog/resources/{resourceId} + +Description +~~~~~~~~~~~ + +Returns resource according to resourceId + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **resourceId**\ *require | string | +| | d* | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Resource found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Resource not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resources Catalog + +Update Resource +--------------- + +:: + + PUT /v1/catalog/resources/{resourceId} + +Description +~~~~~~~~~~~ + +Returns updated resource + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **resourceI | | string | +| | d**\ *requi | | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | Resource object to be updated | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Resource updated | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Resource already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resources Catalog + +DELETE /v1/catalog/resources/{resourceid} +----------------------------------------- + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Path** | **resourceId**\ *require | string | +| | d* | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **defau | successful operation | No Content | +| lt** | | | ++---------+----------------------------------------------------+----------------+ + +Tags +~~~~ + +- Resources Catalog + +Create Additional Information Label and Value +--------------------------------------------- + +:: + + POST /v1/catalog/resources/{resourceId}/additionalinfo + +Description +~~~~~~~~~~~ + +Returns created Additional Inforamtion property + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **resourceI | resource id to update with new | string | +| | d**\ *requi | property | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | Additional information key value to | string | +| | required* | be created | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Additional information created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Additional information key already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Additional Information Servlet + +Get all Additional Information under resource +--------------------------------------------- + +:: + + GET /v1/catalog/resources/{resourceId}/additionalinfo + +Description +~~~~~~~~~~~ + +Returns Additional Inforamtion property + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **resourceI | resource id to update with new | string | +| | d**\ *requi | property | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | list of additional information | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Additional information key already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Additional Information Servlet + +Get Additional Information by id +-------------------------------- + +:: + + GET /v1/catalog/resources/{resourceId}/additionalinfo/{labelId} + +Description +~~~~~~~~~~~ + +Returns Additional Inforamtion property + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **labelId** | label id | string | +| | \ *required | | | +| | * | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **resourceI | resource id to update with new | string | +| | d**\ *requi | property | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | fetched additional information | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Additional information key already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Additional Information Servlet + +Update Additional Information Label and Value +--------------------------------------------- + +:: + + PUT /v1/catalog/resources/{resourceId}/additionalinfo/{labelId} + +Description +~~~~~~~~~~~ + +Returns updated Additional Inforamtion property + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **labelId** | label id | string | +| | \ *required | | | +| | * | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **resourceI | resource id to update with new | string | +| | d**\ *requi | property | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | Additional information key value to | string | +| | required* | be created | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Additional information updated | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Additional information key already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Additional Information Servlet + +Create Additional Information Label and Value +--------------------------------------------- + +:: + + DELETE /v1/catalog/resources/{resourceId}/additionalinfo/{labelId} + +Description +~~~~~~~~~~~ + +Returns deleted Additional Inforamtion property + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **labelId** | label id | string | +| | \ *required | | | +| | * | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **resourceI | resource id to update with new | string | +| | d**\ *requi | property | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Additional information deleted | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Additional information key already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Additional Information Servlet + +Create Artifact +--------------- + +:: + + POST /v1/catalog/resources/{resourceId}/artifacts + +Description +~~~~~~~~~~~ + +Returns created ArtifactDefinition + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Path** | **resourceI | | string | +| | d**\ *requi | | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | json describe the artifact | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Resource created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Artifact already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Artifact Servlet + +Update Artifact +--------------- + +:: + + POST /v1/catalog/resources/{resourceId}/artifacts/{artifactId} + +Description +~~~~~~~~~~~ + +Returns updated artifact + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Path** | **artifactI | | string | +| | d**\ *requi | | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **resourceI | | string | +| | d**\ *requi | | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | json describe the artifact | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Resource created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Artifact Servlet + +Download resource Artifact in Base64 +------------------------------------ + +:: + + GET /v1/catalog/resources/{resourceId}/artifacts/{artifactId} + +Description +~~~~~~~~~~~ + +Returns downloaded artifact + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Path** | **artifactId**\ *require | string | +| | d* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **resourceId**\ *require | string | +| | d* | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Resource artifact downloaded | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Resource/Artifact not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Artifact Servlet + +Delete Artifact +--------------- + +:: + + DELETE /v1/catalog/resources/{resourceId}/artifacts/{artifactId} + +Description +~~~~~~~~~~~ + +Returns delete artifact + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Path** | **artifactId**\ *require | string | +| | d* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **resourceId**\ *require | string | +| | d* | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Resource created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Artifact Servlet + +Create Resource Attribute +------------------------- + +:: + + POST /v1/catalog/resources/{resourceId}/attributes + +Description +~~~~~~~~~~~ + +Returns created resource attribute + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **resourceI | resource id to update with new | string | +| | d**\ *requi | attribute | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | Resource attribute to be created | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Resource property created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Resource attribute already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Attribute Servlet + +Update Resource Attribute +------------------------- + +:: + + PUT /v1/catalog/resources/{resourceId}/attributes/{attributeId} + +Description +~~~~~~~~~~~ + +Returns updated attribute + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **attribute | attribute id to update | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **resourceI | resource id to update with new | string | +| | d**\ *requi | attribute | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | Resource attribute to update | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Resource attribute updated | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Attribute Servlet + +Create Resource Attribute +------------------------- + +:: + + DELETE /v1/catalog/resources/{resourceId}/attributes/{attributeId} + +Description +~~~~~~~~~~~ + +Returns deleted attribute + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **attribute | Attribute id to delete | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **resourceI | resource id of attribute | string | +| | d**\ *requi | | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **204** | deleted attribute | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Resource property not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Attribute Servlet + +Update Resource Metadata +------------------------ + +:: + + PUT /v1/catalog/resources/{resourceId}/metadata + +Description +~~~~~~~~~~~ + +Returns updated resource metadata + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **resourceI | | string | +| | d**\ *requi | | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | Resource metadata to be updated | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Resource metadata updated | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resources Catalog + +Create Resource Property +------------------------ + +:: + + POST /v1/catalog/resources/{resourceId}/properties + +Description +~~~~~~~~~~~ + +Returns created resource property + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **resourceI | resource id to update with new | string | +| | d**\ *requi | property | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | Resource property to be created | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Resource property created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Resource property already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Property Servlet + +Create Resource Property +------------------------ + +:: + + GET /v1/catalog/resources/{resourceId}/properties/{propertyId} + +Description +~~~~~~~~~~~ + +Returns property of resource + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **propertyI | proerty id to get | string | +| | d**\ *requi | | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **resourceI | resource id of property | string | +| | d**\ *requi | | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | property | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Resource property not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Property Servlet + +Update Resource Property +------------------------ + +:: + + PUT /v1/catalog/resources/{resourceId}/properties/{propertyId} + +Description +~~~~~~~~~~~ + +Returns updated property + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **propertyI | proerty id to update | string | +| | d**\ *requi | | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **resourceI | resource id to update with new | string | +| | d**\ *requi | property | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | Resource property to update | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Resource property updated | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Property Servlet + +Create Resource Property +------------------------ + +:: + + DELETE /v1/catalog/resources/{resourceId}/properties/{propertyId} + +Description +~~~~~~~~~~~ + +Returns deleted property + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **propertyI | Property id to delete | string | +| | d**\ *requi | | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **resourceI | resource id of property | string | +| | d**\ *requi | | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **204** | deleted property | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Resource property not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Property Servlet + +Create Artifact and Attach to interface +--------------------------------------- + +:: + + POST /v1/catalog/resources/{resourceId}/{interfaceType}/{operation}/artifacts + +Description +~~~~~~~~~~~ + +Returns created resource + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **Content-M | | string | +| ** | D5**\ *opti | | | +| | onal* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **interface | | string | +| | Type**\ *re | | | +| | quired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **operation | | string | +| | **\ *requir | | | +| | ed* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **resourceI | | string | +| | d**\ *requi | | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | json describe the artifact | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Resource created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Artifact already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Artifact Servlet + +update Artifact Attach to interface +----------------------------------- + +:: + + POST /v1/catalog/resources/{resourceId}/{interfaceType}/{operation}/artifacts/{artifactId} + +Description +~~~~~~~~~~~ + +updates artifact by interface + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **Content-M | | string | +| ** | D5**\ *opti | | | +| | onal* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **artifactI | | string | +| | d**\ *requi | | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **interface | | string | +| | Type**\ *re | | | +| | quired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **operation | | string | +| | **\ *requir | | | +| | ed* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **resourceI | | string | +| | d**\ *requi | | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | json describe the artifact | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | delete artifact under interface deleted | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Artifact already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Artifact Servlet + +delete Artifact from interface +------------------------------ + +:: + + DELETE /v1/catalog/resources/{resourceId}/{interfaceType}/{operation}/artifacts/{artifactId} + +Description +~~~~~~~~~~~ + +delete matching artifact from interface + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Path** | **artifactId**\ *require | string | +| | d* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **interfaceType**\ *requ | string | +| | ired* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **operation**\ *required | string | +| | * | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **resourceId**\ *require | string | +| | d* | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | delete artifact under interface deleted | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Artifact already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Artifact Servlet + +DELETE /v1/catalog/resources/{resourcename}/{version} +----------------------------------------------------- + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Path** | **resourceName**\ *requi | string | +| | red* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **version**\ *required* | string | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **defau | successful operation | No Content | +| lt** | | | ++---------+----------------------------------------------------+----------------+ + +Tags +~~~~ + +- Resources Catalog + +Create Service +-------------- + +:: + + POST /v1/catalog/services + +Description +~~~~~~~~~~~ + +Returns created service + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | Service object to be created | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | successful operation | `Service <#_se | +| | | rvice>`__ | ++---------+----------------------------------------------------+----------------+ +| **201** | Service created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Service already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Service Catalog + +Retrieve Distributions +---------------------- + +:: + + GET /v1/catalog/services/distribution/{did} + +Description +~~~~~~~~~~~ + +Return the list of distribution status objects + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **did**\ *required* | string | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Service found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Status not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Distribution Service Servlet + +Retrieve Service +---------------- + +:: + + GET /v1/catalog/services/serviceName/{serviceName}/serviceVersion/{serviceVersion} + +Description +~~~~~~~~~~~ + +Returns service according to name and version + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **serviceName**\ *requir | string | +| | ed* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **serviceVersion**\ *req | string | +| | uired* | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Service found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Service not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Service Catalog + +Download service artifact +------------------------- + +:: + + GET /v1/catalog/services/toscatoheat/{artifactName} + +Description +~~~~~~~~~~~ + +Returns downloaded artifact + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Path** | **artifactName**\ *requi | string | +| | red* | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Artifact downloaded | No Content | ++---------+----------------------------------------------------+----------------+ +| **401** | Authorization required | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Artifact not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/octet-stream`` + +Tags +~~~~ + +- Service Catalog + +validate service name +--------------------- + +:: + + GET /v1/catalog/services/validate-name/{serviceName} + +Description +~~~~~~~~~~~ + +checks if the chosen service name is available + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **serviceName**\ *requir | string | +| | ed* | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Service found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Service Catalog + +Get Inputs only +--------------- + +:: + + GET /v1/catalog/services/{componentId}/inputs + +Description +~~~~~~~~~~~ + +Returns Inputs list + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentId**\ *requir | string | +| | ed* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentType**\ *requ | string | +| | ired* | | ++------------------+--------------------------+----------------------------------+ +| **Query** | **amount**\ *optional* | integer (int32) | ++------------------+--------------------------+----------------------------------+ +| **Query** | **fromId**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Component found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Component not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Input Catalog + +Retrieve Service +---------------- + +:: + + GET /v1/catalog/services/{serviceId} + +Description +~~~~~~~~~~~ + +Returns service according to serviceId + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **serviceId**\ *required | string | +| | * | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Service found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Service not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Service Catalog + +DELETE /v1/catalog/services/{serviceid} +--------------------------------------- + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Path** | **serviceId**\ *required | string | +| | * | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **defau | successful operation | No Content | +| lt** | | | ++---------+----------------------------------------------------+----------------+ + +Tags +~~~~ + +- Service Catalog + +Create Additional Information Label and Value +--------------------------------------------- + +:: + + POST /v1/catalog/services/{serviceId}/additionalinfo + +Description +~~~~~~~~~~~ + +Returns created Additional Inforamtion property + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **serviceId | service id to update with new | string | +| | **\ *requir | property | | +| | ed* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | Additional information key value to | string | +| | required* | be created | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Additional information created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Additional information key already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Additional Information Servlet + +Get all Additional Information under service +-------------------------------------------- + +:: + + GET /v1/catalog/services/{serviceId}/additionalinfo + +Description +~~~~~~~~~~~ + +Returns Additional Inforamtion property + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **serviceId | service id to update with new | string | +| | **\ *requir | property | | +| | ed* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | list of additional information | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Additional information key already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Additional Information Servlet + +Get Additional Information by id +-------------------------------- + +:: + + GET /v1/catalog/services/{serviceId}/additionalinfo/{labelId} + +Description +~~~~~~~~~~~ + +Returns Additional Inforamtion property + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **labelId** | label id | string | +| | \ *required | | | +| | * | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **serviceId | service id to update with new | string | +| | **\ *requir | property | | +| | ed* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | fetched additional information | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Additional information key already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Additional Information Servlet + +Update Additional Information Label and Value +--------------------------------------------- + +:: + + PUT /v1/catalog/services/{serviceId}/additionalinfo/{labelId} + +Description +~~~~~~~~~~~ + +Returns updated Additional Inforamtion property + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **labelId** | label id | string | +| | \ *required | | | +| | * | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **serviceId | service id to update with new | string | +| | **\ *requir | property | | +| | ed* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | Additional information key value to | string | +| | required* | be created | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Additional information updated | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Additional information key already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Additional Information Servlet + +Create Additional Information Label and Value +--------------------------------------------- + +:: + + DELETE /v1/catalog/services/{serviceId}/additionalinfo/{labelId} + +Description +~~~~~~~~~~~ + +Returns deleted Additional Inforamtion property + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **labelId** | label id | string | +| | \ *required | | | +| | * | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **serviceId | service id to update with new | string | +| | **\ *requir | property | | +| | ed* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Additional information deleted | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Additional information key already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Additional Information Servlet + +Create Artifact +--------------- + +:: + + POST /v1/catalog/services/{serviceId}/artifacts + +Description +~~~~~~~~~~~ + +Returns created ArtifactDefinition + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Path** | **serviceId | | string | +| | **\ *requir | | | +| | ed* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | json describe the artifact | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Resource created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Artifact already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Artifact Servlet + +Update Api Artifact +------------------- + +:: + + POST /v1/catalog/services/{serviceId}/artifacts/api/{artifactId} + +Description +~~~~~~~~~~~ + +Returns created ArtifactDefinition + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **Content-M | | string | +| ** | D5**\ *opti | | | +| | onal* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **artifactI | | string | +| | d**\ *requi | | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **serviceId | | string | +| | **\ *requir | | | +| | ed* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | json describe the artifact | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Api Artifact Updated | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Artifact Servlet + +Delete Api Artifact +------------------- + +:: + + DELETE /v1/catalog/services/{serviceId}/artifacts/api/{artifactId} + +Description +~~~~~~~~~~~ + +Returns Deleted ArtifactDefinition + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **Content-MD5**\ *option | string | +| | al* | | ++------------------+--------------------------+----------------------------------+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **artifactId**\ *require | string | +| | d* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **serviceId**\ *required | string | +| | * | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **204** | Api Artifact deleted | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Artifact Servlet + +Update Artifact +--------------- + +:: + + POST /v1/catalog/services/{serviceId}/artifacts/{artifactId} + +Description +~~~~~~~~~~~ + +Returns updated artifact + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Path** | **artifactI | | string | +| | d**\ *requi | | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **serviceId | | string | +| | **\ *requir | | | +| | ed* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | json describe the artifact | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Service artifact created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Artifact Servlet + +Download service Artifact in Base64 +----------------------------------- + +:: + + GET /v1/catalog/services/{serviceId}/artifacts/{artifactId} + +Description +~~~~~~~~~~~ + +Returns downloaded artifact + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Path** | **artifactId**\ *require | string | +| | d* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **serviceId**\ *required | string | +| | * | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Service artifact downloaded | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Service/Artifact not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Artifact Servlet + +Delete Artifact +--------------- + +:: + + DELETE /v1/catalog/services/{serviceId}/artifacts/{artifactId} + +Description +~~~~~~~~~~~ + +Returns delete artifact + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Path** | **artifactId**\ *require | string | +| | d* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **serviceId**\ *required | string | +| | * | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Service artifact deleted | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Artifact Servlet + +Update Service Distribution State +--------------------------------- + +:: + + POST /v1/catalog/services/{serviceId}/distribution-state/{state} + +Description +~~~~~~~~~~~ + +service with the changed distribution status + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **serviceId | | string | +| | **\ *requir | | | +| | ed* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **state**\ | | enum (approve, | +| | *required* | | reject) | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | DistributionChangeInfo - get comment | `LifecycleChange | +| | required* | out of body | InfoWithAction < | +| | | | #_lifecyclechang | +| | | | einfowithaction> | +| | | | `__ | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Service distribution state changed | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Service is not available for distribution | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Requested service was not found | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **500** | Internal Server Error. Please try again later. | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Service Catalog + +Mark distribution as deployed +----------------------------- + +:: + + POST /v1/catalog/services/{serviceId}/distribution/{did}/markDeployed + +Description +~~~~~~~~~~~ + +relevant audit record will be created + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **did**\ *required* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **serviceId**\ *required | string | +| | * | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Service was marked as deployed | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Service is not available | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Requested service was not found | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **500** | Internal Server Error. Please try again later. | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Service Catalog + +Activate distribution +--------------------- + +:: + + POST /v1/catalog/services/{serviceId}/distribution/{env}/activate + +Description +~~~~~~~~~~~ + +activate distribution + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **env**\ *required* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **serviceId**\ *required | string | +| | * | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | OK | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Requested service was not found | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Service cannot be distributed due to missing | No Content | +| | deployment artifacts | | ++---------+----------------------------------------------------+----------------+ +| **500** | Internal Server Error. Please try again later. | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Service Catalog + +Update Service Metadata +----------------------- + +:: + + PUT /v1/catalog/services/{serviceId}/metadata + +Description +~~~~~~~~~~~ + +Returns updated service + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **serviceId | | string | +| | **\ *requir | | | +| | ed* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | Service object to be Updated | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Service Updated | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Service Catalog + +POST /v1/catalog/services/{serviceid}/tempUrlToBeDeleted +-------------------------------------------------------- + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **serviceId**\ *required | string | +| | * | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | OK | No Content | ++---------+----------------------------------------------------+----------------+ +| **500** | Internal Server Error. Please try again later. | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Service Catalog + +DELETE /v1/catalog/services/{servicename}/{version} +--------------------------------------------------- + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Path** | **serviceName**\ *requir | string | +| | ed* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **version**\ *required* | string | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **defau | successful operation | No Content | +| lt** | | | ++---------+----------------------------------------------------+----------------+ + +Tags +~~~~ + +- Service Catalog + +Retrieve Distributions +---------------------- + +:: + + GET /v1/catalog/services/{serviceUUID}/distribution + +Description +~~~~~~~~~~~ + +Returns list bases on the information extracted from Auditing Records +according to service uuid + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **serviceUUID**\ *requir | string | +| | ed* | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Service found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Service not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Distribution Service Servlet + +Create Resource from yaml +------------------------- + +:: + + POST /v1/catalog/upload/{resourceAuthority} + +Description +~~~~~~~~~~~ + +Returns created resource + +Parameters +~~~~~~~~~~ + ++---------+------------+----------------------------------+----------------+---------+ +| Type | Name | Description | Schema | Default | ++=========+============+==================================+================+=========+ +| **Heade | **USER\_ID | | string | | +| r** | **\ *optio | | | | +| | nal* | | | | ++---------+------------+----------------------------------+----------------+---------+ +| **Path* | **resource | validValues: normative-resource | enum | | +| * | Authority* | / user-resource | (multipart, | | +| | *\ *requir | | user-resource, | | +| | ed* | | user-resource- | | +| | | | ui-import) | | ++---------+------------+----------------------------------+----------------+---------+ +| **Query | **createNe | | boolean | ``"true | +| ** | wVersion** | | | "`` | +| | \ *optiona | | | | +| | l* | | | | ++---------+------------+----------------------------------+----------------+---------+ +| **FormD | **resource | resourceMetadata | string | | +| ata** | Metadata** | | | | +| | \ *optiona | | | | +| | l* | | | | ++---------+------------+----------------------------------+----------------+---------+ +| **FormD | **resource | FileInputStream | file | | +| ata** | Zip**\ *op | | | | +| | tional* | | | | ++---------+------------+----------------------------------+----------------+---------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Resource created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Resource already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``multipart/form-data`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resources Catalog Upload + +Create Capability Type from yaml +-------------------------------- + +:: + + POST /v1/catalog/uploadType/capability + +Description +~~~~~~~~~~~ + +Returns created Capability Type + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **FormDa | **capabilit | FileInputStream | file | +| ta** | yTypeZip**\ | | | +| | *optional* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Capability Type created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Capability Type already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``multipart/form-data`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Catalog Types Upload + +Create Categories from yaml +--------------------------- + +:: + + POST /v1/catalog/uploadType/categories + +Description +~~~~~~~~~~~ + +Returns created categories + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **FormDa | **categorie | FileInputStream | file | +| ta** | sZip**\ *op | | | +| | tional* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Categories created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Category already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``multipart/form-data`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Catalog Types Upload + +Create Categories from yaml +--------------------------- + +:: + + POST /v1/catalog/uploadType/datatypes + +Description +~~~~~~~~~~~ + +Returns created data types + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **FormDa | **dataTypes | FileInputStream | file | +| ta** | Zip**\ *opt | | | +| | ional* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Data types created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Data types already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``multipart/form-data`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Catalog Types Upload + +Create GroupTypes from yaml +--------------------------- + +:: + + POST /v1/catalog/uploadType/grouptypes + +Description +~~~~~~~~~~~ + +Returns created group types + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **FormDa | **groupType | FileInputStream | file | +| ta** | sZip**\ *op | | | +| | tional* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | group types created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | group types already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``multipart/form-data`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Catalog Types Upload + +Create Interface Lyfecycle Type from yaml +----------------------------------------- + +:: + + POST /v1/catalog/uploadType/interfaceLifecycle + +Description +~~~~~~~~~~~ + +Returns created Interface Lifecycle Type + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **FormDa | **interface | FileInputStream | file | +| ta** | LifecycleTy | | | +| | peZip**\ *o | | | +| | ptional* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Interface Lifecycle Type created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Interface Lifecycle Type already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``multipart/form-data`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Catalog Types Upload + +Create PolicyTypes from yaml +---------------------------- + +:: + + POST /v1/catalog/uploadType/policytypes + +Description +~~~~~~~~~~~ + +Returns created policy types + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **FormDa | **policyTyp | FileInputStream | file | +| ta** | esZip**\ *o | | | +| | ptional* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | policy types created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | policy types already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``multipart/form-data`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Catalog Types Upload + +Change Resource lifecycle State +------------------------------- + +:: + + POST /v1/catalog/{componentCollection}/{componentId}/lifecycleState/{lifecycleOperation} + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | id of user initiating the operation | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | validValues: resources / services / | enum (resources, | +| | Collection* | products | services, | +| | *\ *require | | products) | +| | d* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | id of component to be changed | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **lifecycle | | enum (checkout, | +| | Operation** | | undoCheckout, | +| | \ *required | | checkin, | +| | * | | certificationReq | +| | | | uest, | +| | | | startCertificati | +| | | | on, | +| | | | failCertificatio | +| | | | n, | +| | | | cancelCertificat | +| | | | ion, | +| | | | certify) | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | LifecycleChangeInfo - relevant for | string | +| | optional* | checkin, failCertification, | | +| | | cancelCertification | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Resource state changed | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Resource already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Lifecycle Actions Servlet + +Get Component Requirments And Capabilities +------------------------------------------ + +:: + + GET /v1/catalog/{componentType}/latestversion/notabstract + +Description +~~~~~~~~~~~ + +Returns Requirments And Capabilities according to componentId + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | | string | +| | Type**\ *re | | | +| | quired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Query* | **internalC | | string | +| * | omponentTyp | | | +| | e**\ *optio | | | +| | nal* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | Consumer Object to be created | < string > array | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Component found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Component not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Component Servlet + +Get Component uid only +---------------------- + +:: + + GET /v1/catalog/{componentType}/latestversion/notabstract/metadata + +Description +~~~~~~~~~~~ + +Returns componentId + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | | string | +| | Type**\ *re | | | +| | quired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Query* | **internalC | | string | +| * | omponentTyp | | | +| | e**\ *optio | | | +| | nal* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | uid list | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Component found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Component not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Component Servlet + +Get Component instances +----------------------- + +:: + + GET /v1/catalog/{componentType}/{componentId}/componentInstances + +Description +~~~~~~~~~~~ + +Returns component instances + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | | string | +| | Type**\ *re | | | +| | quired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Query* | **searchTex | | string | +| * | t**\ *optio | | | +| | nal* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | uid list | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Component found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Component not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Component Servlet + +Get properties +-------------- + +:: + + GET /v1/catalog/{componentType}/{componentId}/componentInstances/{instanceId}/{inputId}/properties + +Description +~~~~~~~~~~~ + +Returns properties list + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentId**\ *requir | string | +| | ed* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentType**\ *requ | string | +| | ired* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **inputId**\ *required* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **instanceId**\ *require | string | +| | d* | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Component found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Component not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Input Catalog + +Get Inputs only +--------------- + +:: + + GET /v1/catalog/{componentType}/{componentId}/componentInstances/{instanceId}/{originComponentUid}/inputs + +Description +~~~~~~~~~~~ + +Returns Inputs list + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentId**\ *requir | string | +| | ed* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentType**\ *requ | string | +| | ired* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **instanceId**\ *require | string | +| | d* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **originComponentUid**\ | string | +| | *required* | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Component found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Component not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Input Catalog + +Create inputs on service +------------------------ + +:: + + POST /v1/catalog/{componentType}/{componentId}/create/inputs + +Description +~~~~~~~~~~~ + +Return inputs list + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | | string | +| | Type**\ *re | | | +| | quired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | ComponentIns Inputs Object to be | string | +| | required* | created | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Component found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Component not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Input Catalog + +Delete input from service +------------------------- + +:: + + DELETE /v1/catalog/{componentType}/{componentId}/delete/{inputId}/input + +Description +~~~~~~~~~~~ + +Delete service input + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | | string | +| | Type**\ *re | | | +| | quired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **inputId** | | string | +| | \ *required | | | +| | * | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | Service Input to be deleted | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Input deleted | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Input not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Input Catalog + +Retrieve Resource +----------------- + +:: + + GET /v1/catalog/{componentType}/{componentId}/filteredDataByParams + +Description +~~~~~~~~~~~ + +Returns resource according to resourceId + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentId**\ *requir | string | +| | ed* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentType**\ *requ | string | +| | ired* | | ++------------------+--------------------------+----------------------------------+ +| **Query** | **include**\ *optional* | < string > array(multi) | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Resource found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Resource not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Component Servlet + +Retrieve properties belonging to component instances of specific component by name and optionally resource type +--------------------------------------------------------------------------------------------------------------- + +:: + + GET /v1/catalog/{componentType}/{componentId}/filteredproperties/{propertyNameFragment} + +Description +~~~~~~~~~~~ + +Returns properties belonging to component instances of specific +component by name and optionally resource type + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentId**\ *requir | string | +| | ed* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentType**\ *requ | string | +| | ired* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **propertyNameFragment** | string | +| | \ *required* | | ++------------------+--------------------------+----------------------------------+ +| **Query** | **resourceType**\ *optio | < string > array(multi) | +| | nal* | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Component found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Component not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Component Servlet + +Get inputs +---------- + +:: + + GET /v1/catalog/{componentType}/{componentId}/inputs/{inputId} + +Description +~~~~~~~~~~~ + +Returns inputs list + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentId**\ *requir | string | +| | ed* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentType**\ *requ | string | +| | ired* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **inputId**\ *required* | string | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Component found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Component not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Input Catalog + +Get inputs +---------- + +:: + + GET /v1/catalog/{componentType}/{componentId}/inputs/{inputId}/inputs + +Description +~~~~~~~~~~~ + +Returns inputs list + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentId**\ *requir | string | +| | ed* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentType**\ *requ | string | +| | ired* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **inputId**\ *required* | string | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Component found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Component not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Input Catalog + +Get Component Requirments And Capabilities +------------------------------------------ + +:: + + GET /v1/catalog/{componentType}/{componentId}/requirmentsCapabilities + +Description +~~~~~~~~~~~ + +Returns Requirements And Capabilities according to componentId + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentId**\ *requir | string | +| | ed* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentType**\ *requ | string | +| | ired* | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Component found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Component not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Component Servlet + +Validate Component Conformance Level +------------------------------------ + +:: + + GET /v1/catalog/{componentType}/{componentUuid}/conformanceLevelValidation + +Description +~~~~~~~~~~~ + +Returns the result according to conformance level in BE config + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentType**\ *requ | string | +| | ired* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentUuid**\ *requ | string | +| | ired* | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Component found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Component not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Component Servlet + +Get component Artifacts +----------------------- + +:: + + GET /v1/catalog/{containerComponentType}/{componentId}/artifactsByType/{artifactGroupType} + +Description +~~~~~~~~~~~ + +Returns artifacts + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Path** | **artifactG | | string | +| | roupType**\ | | | +| | *required* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **container | valid values: resources / services | enum (resources, | +| | ComponentTy | | services) | +| | pe**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Component artifacts | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Resource/Artifact not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Artifact Servlet + +Get group artifacts +------------------- + +:: + + GET /v1/catalog/{containerComponentType}/{componentId}/groups/{groupId} + +Description +~~~~~~~~~~~ + +Returns artifacts metadata according to groupId + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentId**\ *requir | string | +| | ed* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **containerComponentType | string | +| | **\ *required* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **groupId**\ *required* | string | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | group found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Group not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Group Servlet + +Update Group Metadata +--------------------- + +:: + + PUT /v1/catalog/{containerComponentType}/{componentId}/groups/{groupUniqueId}/metadata + +Description +~~~~~~~~~~~ + +Returns updated group definition + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **container | | string | +| | ComponentTy | | | +| | pe**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **groupUniq | | string | +| | ueId**\ *re | | | +| | quired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | Service object to be Updated | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Group Updated | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Group Servlet + +Updates List of properties on a group (only values) +--------------------------------------------------- + +:: + + PUT /v1/catalog/{containerComponentType}/{componentId}/groups/{groupUniqueId}/properties + +Description +~~~~~~~~~~~ + +Returns updated list of properties + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **container | | string | +| | ComponentTy | | | +| | pe**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **groupUniq | | string | +| | ueId**\ *re | | | +| | quired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | Service object to be Updated | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Group Updated | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Group Servlet + +Create ComponentInstance +------------------------ + +:: + + POST /v1/catalog/{containerComponentType}/{componentId}/resourceInstance + +Description +~~~~~~~~~~~ + +Returns created ComponentInstance + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | USER\_ID of modifier user | string | +| ** | *\ *require | | | +| | d* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **container | valid values: resources / services | enum (resources, | +| | ComponentTy | | services) | +| | pe**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | RI object to be created | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Component created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Component instance already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Instance Servlet + +Associate RI to RI +------------------ + +:: + + POST /v1/catalog/{containerComponentType}/{componentId}/resourceInstance/associate + +Description +~~~~~~~~~~~ + +Returns created RelationshipInfo + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | unique id of the container component | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **container | allowed values are resources | enum (resources, | +| | ComponentTy | /services / products | services, | +| | pe**\ *requ | | products) | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | RelationshipInfo | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Relationship created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Missing information | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Relationship already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Instance Servlet + +Create RI and associate RI to RI +-------------------------------- + +:: + + POST /v1/catalog/{containerComponentType}/{componentId}/resourceInstance/createAndAssociate + +Description +~~~~~~~~~~~ + +Returns created RI and RelationshipInfo + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Path** | **component | | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **container | valid values: resources / services | enum (resources, | +| | ComponentTy | | services) | +| | pe**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | RI created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Relationship already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Instance Servlet + +Dissociate RI from RI +--------------------- + +:: + + PUT /v1/catalog/{containerComponentType}/{componentId}/resourceInstance/dissociate + +Description +~~~~~~~~~~~ + +Returns deleted RelationshipInfo + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | unique id of the container component | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **container | allowed values are resources | enum (resources, | +| | ComponentTy | /services / products | services, | +| | pe**\ *requ | | products) | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | RelationshipInfo | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Relationship deleted | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Missing information | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Instance Servlet + +Update resource instance multiple component +------------------------------------------- + +:: + + POST /v1/catalog/{containerComponentType}/{componentId}/resourceInstance/multipleComponentInstance + +Description +~~~~~~~~~~~ + +Returns updated resource instance + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Path** | **component | | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **container | valid values: resources / services / | enum (resources, | +| | ComponentTy | products | services, | +| | pe**\ *requ | | products) | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | Component Instance JSON Array | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Resource instance updated | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Instance Servlet + +Update resource instance +------------------------ + +:: + + POST /v1/catalog/{containerComponentType}/{componentId}/resourceInstance/{componentInstanceId} + +Description +~~~~~~~~~~~ + +Returns updated resource instance + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Path** | **component | | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | | string | +| | InstanceId* | | | +| | *\ *require | | | +| | d* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **container | valid values: resources / services / | enum (resources, | +| | ComponentTy | products | services, | +| | pe**\ *requ | | products) | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Resource instance updated | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Instance Servlet + +Load Resource Instance artifact payload +--------------------------------------- + +:: + + POST /v1/catalog/{containerComponentType}/{componentId}/resourceInstance/{componentInstanceId}/artifacts + +Description +~~~~~~~~~~~ + +Returns updated artifact + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **Content-M | | string | +| ** | D5**\ *opti | | | +| | onal* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | | string | +| | InstanceId* | | | +| | *\ *require | | | +| | d* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **container | valid values: resources / services | enum (resources, | +| | ComponentTy | | services) | +| | pe**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | json describe the artifact | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Artifact updated | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Artifact Servlet + +Delete Resource Instance artifact +--------------------------------- + +:: + + POST /v1/catalog/{containerComponentType}/{componentId}/resourceInstance/{componentInstanceId}/artifacts/{artifactId} + +Description +~~~~~~~~~~~ + +Returns deleted artifact + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **Content-M | | string | +| ** | D5**\ *opti | | | +| | onal* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **artifactI | | string | +| | d**\ *requi | | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | | string | +| | InstanceId* | | | +| | *\ *require | | | +| | d* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **container | valid values: resources / services | enum (resources, | +| | ComponentTy | | services) | +| | pe**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | json describe the artifact | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Artifact updated | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Artifact Servlet + +Update Resource Instance HEAT\_ENV parameters +--------------------------------------------- + +:: + + POST /v1/catalog/{containerComponentType}/{componentId}/resourceInstance/{componentInstanceId}/artifacts/{artifactId}/heatParams + +Description +~~~~~~~~~~~ + +Returns updated artifact + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Path** | **artifactI | | string | +| | d**\ *requi | | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | | string | +| | InstanceId* | | | +| | *\ *require | | | +| | d* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **container | valid values: resources / services | enum (resources, | +| | ComponentTy | | services) | +| | pe**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | json describe the artifact | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Artifact updated | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Artifact Servlet + +Update resource instance attribute +---------------------------------- + +:: + + POST /v1/catalog/{containerComponentType}/{componentId}/resourceInstance/{componentInstanceId}/attribute + +Description +~~~~~~~~~~~ + +Returns updated resource instance attribute + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | id of user initiating the operation | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | service id | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | resource instance id | string | +| | InstanceId* | | | +| | *\ *require | | | +| | d* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **container | valid values: resources / services | enum (resources, | +| | ComponentTy | | services) | +| | pe**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Resource instance created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Instance Servlet + +Update resource instance +------------------------ + +:: + + POST /v1/catalog/{containerComponentType}/{componentId}/resourceInstance/{componentInstanceId}/changeVersion + +Description +~~~~~~~~~~~ + +Returns updated resource instance + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Path** | **component | | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | | string | +| | InstanceId* | | | +| | *\ *require | | | +| | d* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **container | valid values: resources / services | enum (resources, | +| | ComponentTy | | services) | +| | pe**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Resource instance created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Instance Servlet + +Get group artifacts +------------------- + +:: + + GET /v1/catalog/{containerComponentType}/{componentId}/resourceInstance/{componentInstanceId}/groupInstance/{groupInstId} + +Description +~~~~~~~~~~~ + +Returns artifacts metadata according to groupInstId + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentId**\ *requir | string | +| | ed* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentInstanceId**\ | string | +| | *required* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **containerComponentType | string | +| | **\ *required* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **groupInstId**\ *requir | string | +| | ed* | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | group found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Group not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Instance Servlet + +Update resource instance property +--------------------------------- + +:: + + POST /v1/catalog/{containerComponentType}/{componentId}/resourceInstance/{componentInstanceId}/groupInstance/{groupInstanceId}/property + +Description +~~~~~~~~~~~ + +Returns updated resource instance property + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | id of user initiating the operation | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | service id | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | resource instance id | string | +| | InstanceId* | | | +| | *\ *require | | | +| | d* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **container | valid values: resources / services | enum (resources, | +| | ComponentTy | | services) | +| | pe**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **groupInst | group instance id | string | +| | anceId**\ * | | | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Resource instance created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Instance Servlet + +Update resource instance property +--------------------------------- + +:: + + POST /v1/catalog/{containerComponentType}/{componentId}/resourceInstance/{componentInstanceId}/input + +Description +~~~~~~~~~~~ + +Returns updated resource instance property + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | id of user initiating the operation | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | service id | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | resource instance id | string | +| | InstanceId* | | | +| | *\ *require | | | +| | d* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **container | valid values: resources / services | enum (resources, | +| | ComponentTy | | services) | +| | pe**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Resource instance created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Instance Servlet + +Update resource instance property +--------------------------------- + +:: + + POST /v1/catalog/{containerComponentType}/{componentId}/resourceInstance/{componentInstanceId}/property + +Description +~~~~~~~~~~~ + +Returns updated resource instance property + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | id of user initiating the operation | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | service id | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | resource instance id | string | +| | InstanceId* | | | +| | *\ *require | | | +| | d* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **container | valid values: resources / services | enum (resources, | +| | ComponentTy | | services) | +| | pe**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Resource instance created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Instance Servlet + +Update resource instance +------------------------ + +:: + + DELETE /v1/catalog/{containerComponentType}/{componentId}/resourceInstance/{componentInstanceId}/property/{propertyId} + +Description +~~~~~~~~~~~ + +Returns deleted resource instance property + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | id of user initiating the operation | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | service id | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | resource instance id | string | +| | InstanceId* | | | +| | *\ *require | | | +| | d* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **container | valid values: resources / services | enum (resources, | +| | ComponentTy | | services) | +| | pe**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **propertyI | property id | string | +| | d**\ *requi | | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Resource instance created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Instance Servlet + +Delete ResourceInstance +----------------------- + +:: + + DELETE /v1/catalog/{containerComponentType}/{componentId}/resourceInstance/{resourceInstanceId} + +Description +~~~~~~~~~~~ + +Returns delete resourceInstance + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Path** | **component | | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **container | valid values: resources / services / | enum (resources, | +| | ComponentTy | products | services, | +| | pe**\ *requ | | products) | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **resourceI | | string | +| | nstanceId** | | | +| | \ *required | | | +| | * | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | ResourceInstance deleted | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Instance Servlet + +Download component Artifact in Base64 +------------------------------------- + +:: + + GET /v1/catalog/{containerComponentType}/{componentId}/resourceInstances/{componentInstanceId}/artifacts/{artifactId} + +Description +~~~~~~~~~~~ + +Returns downloaded artifact + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Path** | **artifactI | | string | +| | d**\ *requi | | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | | string | +| | InstanceId* | | | +| | *\ *require | | | +| | d* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **container | valid values: resources / services | enum (resources, | +| | ComponentTy | | services) | +| | pe**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | ResourceInstance artifact downloaded | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | ResourceInstance/Artifact not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Artifact Servlet + +Get component Artifacts +----------------------- + +:: + + GET /v1/catalog/{containerComponentType}/{componentId}/resourceInstances/{componentInstanceId}/artifactsByType/{artifactGroupType} + +Description +~~~~~~~~~~~ + +Returns artifacts + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Path** | **artifactG | | string | +| | roupType**\ | | | +| | *required* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | | string | +| | InstanceId* | | | +| | *\ *require | | | +| | d* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **container | valid values: resources / services | enum (resources, | +| | ComponentTy | | services) | +| | pe**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Component artifacts | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Resource/Artifact not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Artifact Servlet + +Update resource inputs +---------------------- + +:: + + POST /v1/catalog/{containerComponentType}/{componentId}/update/inputs + +Description +~~~~~~~~~~~ + +Returns updated input + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Path** | **component | | string | +| | Id**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **container | valid values: resources / services | enum (resources, | +| | ComponentTy | | services) | +| | pe**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | json describe the input | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Input updated | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Input Catalog + +Get component instance properties +--------------------------------- + +:: + + GET /v1/catalog/{containerComponentType}/{containerComponentId}/componentInstances/{componentInstanceUniqueId}/properties + +Description +~~~~~~~~~~~ + +Returns component instance properties + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentInstanceUniqu | string | +| | eId**\ *required* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **containerComponentId** | string | +| | \ *required* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **containerComponentType | string | +| | **\ *required* | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Properties found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Component/Component Instance - not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Instance Servlet + +Create service proxy +-------------------- + +:: + + POST /v1/catalog/{containerComponentType}/{containerComponentId}/serviceProxy + +Description +~~~~~~~~~~~ + +Returns created service proxy + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | USER\_ID of modifier user | string | +| ** | *\ *require | | | +| | d* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **container | | string | +| | ComponentId | | | +| | **\ *requir | | | +| | ed* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **container | valid values: resources / services | enum (resources, | +| | ComponentTy | | services) | +| | pe**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | RI object to be created | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Service proxy created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Service proxy already exist | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Instance Servlet + +Delete service proxy +-------------------- + +:: + + DELETE /v1/catalog/{containerComponentType}/{containerComponentId}/serviceProxy/{serviceProxyId} + +Description +~~~~~~~~~~~ + +Returns delete service proxy + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Path** | **container | | string | +| | ComponentId | | | +| | **\ *requir | | | +| | ed* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **container | valid values: resources / services / | enum (resources, | +| | ComponentTy | products | services, | +| | pe**\ *requ | | products) | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **servicePr | | string | +| | oxyId**\ *r | | | +| | equired* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Service proxy deleted | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Instance Servlet + +Update service proxy with new version +------------------------------------- + +:: + + POST /v1/catalog/{containerComponentType}/{containerComponentId}/serviceProxy/{serviceProxyId}/changeVersion/{newServiceId} + +Description +~~~~~~~~~~~ + +Returns updated service proxy + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Path** | **container | | string | +| | ComponentId | | | +| | **\ *requir | | | +| | ed* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **container | valid values: resources / services | enum (resources, | +| | ComponentTy | | services) | +| | pe**\ *requ | | | +| | ired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **servicePr | | string | +| | oxyId**\ *r | | | +| | equired* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Service proxy created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Resource Instance Servlet + +Update Group Instance Property Values +------------------------------------- + +:: + + PUT /v1/catalog/{containerComponentType}/{serviceId}/resourceInstance/{componentInstanceId}/groupInstance/{groupInstanceId} + +Description +~~~~~~~~~~~ + +Returns updated group instance + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | | string | +| | InstanceId* | | | +| | *\ *require | | | +| | d* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **groupInst | | string | +| | anceId**\ * | | | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **serviceId | | string | +| | **\ *requir | | | +| | ed* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | Group instance object to be Updated | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Group Instance Property Values Updated | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Service Catalog + +Retrieve the all resource, service and product categories +--------------------------------------------------------- + +:: + + GET /v1/categories + +Description +~~~~~~~~~~~ + +Retrieve the all resource, service and product categories + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Returns categories Ok | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Missing information | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **500** | Internal Server Error | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Element Servlet + +Retrieve the list of all resource/service/product categories/sub-categories/groupings +------------------------------------------------------------------------------------- + +:: + + GET /v1/categories/{componentType} + +Description +~~~~~~~~~~~ + +Retrieve the list of all resource/service/product +categories/sub-categories/groupings. + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | allowed values are resources / | enum (resources, | +| | Type**\ *re | services/ products | services, | +| | quired* | | products) | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Returns categories Ok | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid component type | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Missing information | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **500** | Internal Server Error | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Element Servlet + +Create new component category +----------------------------- + +:: + + POST /v1/category/{componentType} + +Description +~~~~~~~~~~~ + +Create new component category + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | allowed values are resources | enum (resources, | +| | Type**\ *re | /services / products | services, | +| | quired* | | products) | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | Category to be created | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Category created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid category data | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | USER\_ID header is missing | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Category already exists / User not permitted to | No Content | +| | perform the action | | ++---------+----------------------------------------------------+----------------+ +| **500** | General Error | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Element Servlet + +Create new component sub-category +--------------------------------- + +:: + + POST /v1/category/{componentType}/{categoryId}/subCategory + +Description +~~~~~~~~~~~ + +Create new component sub-category for existing category + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **categoryI | Parent category unique ID | string | +| | d**\ *requi | | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | allowed values are resources / | enum (resources, | +| | Type**\ *re | products | products) | +| | quired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | Subcategory to be created. e.g. | string | +| | required* | {"name":"Resource-subcat"} | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Subcategory created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid subcategory data | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | USER\_ID header is missing | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Parent category wasn’t found | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Subcategory already exists / User not permitted to | No Content | +| | perform the action | | ++---------+----------------------------------------------------+----------------+ +| **500** | General Error | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Element Servlet + +Create new component grouping +----------------------------- + +:: + + POST /v1/category/{componentType}/{categoryId}/subCategory/{subCategoryId}/grouping + +Description +~~~~~~~~~~~ + +Create new component grouping for existing sub-category + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **categoryI | Parent category unique ID | string | +| | d**\ *requi | | | +| | red* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **component | allowed values are products | enum (products) | +| | Type**\ *re | | | +| | quired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **subCatego | Parent sub-category unique ID | string | +| | ryId**\ *re | | | +| | quired* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | Subcategory to be created | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Grouping created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid grouping data | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | USER\_ID header is missing | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Parent category or subcategory were not found | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Grouping already exists / User not permitted to | No Content | +| | perform the action | | ++---------+----------------------------------------------------+----------------+ +| **500** | General Error | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Element Servlet + +Delete component category +------------------------- + +:: + + DELETE /v1/category/{componentType}/{categoryUniqueId} + +Description +~~~~~~~~~~~ + +Delete component category + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **categoryUniqueId**\ *r | string | +| | equired* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentType**\ *requ | string | +| | ired* | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | successful operation | `Category <#_c | +| | | ategory>`__ | ++---------+----------------------------------------------------+----------------+ +| **204** | Category deleted | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | USER\_ID header is missing | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Category not found | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | User not permitted to perform the action | No Content | ++---------+----------------------------------------------------+----------------+ +| **500** | General Error | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Element Servlet + +Delete component category +------------------------- + +:: + + DELETE /v1/category/{componentType}/{categoryUniqueId}/subCategory/{subCategoryUniqueId} + +Description +~~~~~~~~~~~ + +Delete component category + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **categoryUniqueId**\ *r | string | +| | equired* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentType**\ *requ | string | +| | ired* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **subCategoryUniqueId**\ | string | +| | *required* | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | successful operation | `Category <#_c | +| | | ategory>`__ | ++---------+----------------------------------------------------+----------------+ +| **204** | Category deleted | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | USER\_ID header is missing | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Category not found | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | User not permitted to perform the action | No Content | ++---------+----------------------------------------------------+----------------+ +| **500** | General Error | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Element Servlet + +Delete component category +------------------------- + +:: + + DELETE /v1/category/{componentType}/{categoryUniqueId}/subCategory/{subCategoryUniqueId}/grouping/{groupingUniqueId} + +Description +~~~~~~~~~~~ + +Delete component category + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **categoryUniqueId**\ *r | string | +| | equired* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **componentType**\ *requ | string | +| | ired* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **groupingUniqueId**\ *r | string | +| | equired* | | ++------------------+--------------------------+----------------------------------+ +| **Path** | **subCategoryUniqueId**\ | string | +| | *required* | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | successful operation | `Category <#_c | +| | | ategory>`__ | ++---------+----------------------------------------------------+----------------+ +| **204** | Category deleted | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | USER\_ID header is missing | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Category not found | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | User not permitted to perform the action | No Content | ++---------+----------------------------------------------------+----------------+ +| **500** | General Error | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Element Servlet + +Retrieve all artifactTypes +-------------------------- + +:: + + GET /v1/configuration/ui + +Description +~~~~~~~~~~~ + +Retrieve all artifactTypes + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Returns artifactTypes Ok | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | No artifactTypes were found | No Content | ++---------+----------------------------------------------------+----------------+ +| **500** | Internal Server Error | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Element Servlet + +Consumer credentials +-------------------- + +:: + + POST /v1/consumers + +Description +~~~~~~~~~~~ + +Returns created ECOMP consumer credentials + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | Consumer Object to be created | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **201** | Consumer credentials created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid content / Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Consumer Servlet + +Retrieve Consumer +----------------- + +:: + + GET /v1/consumers/{consumerId} + +Description +~~~~~~~~~~~ + +Returns consumer according to ConsumerID + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **consumerId**\ *require | string | +| | d* | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Consumer found | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Consumer not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Consumer Servlet + +Deletes Consumer +---------------- + +:: + + DELETE /v1/consumers/{consumerId} + +Description +~~~~~~~~~~~ + +Returns deleted consumer according to ConsumerID + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Path** | **consumerId**\ *require | string | +| | d* | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | successful operation | `ConsumerDefin | +| | | ition <#_consu | +| | | merdefinition> | +| | | `__ | ++---------+----------------------------------------------------+----------------+ +| **204** | Consumer deleted | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | Consumer not found | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Consumer Servlet + +Retrieve ecomp portal menu - MOC +-------------------------------- + +:: + + GET /v1/ecompPortalMenu + +Description +~~~~~~~~~~~ + +Retrieve ecomp portal menu + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Retrieve ecomp portal menu | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Element Servlet + +Retrieve all followed +--------------------- + +:: + + GET /v1/followed + +Description +~~~~~~~~~~~ + +Retrieve all followed + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Returns followed Ok | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | User not found | No Content | ++---------+----------------------------------------------------+----------------+ +| **500** | Internal Server Error | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Element Servlet + +DELETE /v1/inactiveComponents/{componenttype} +--------------------------------------------- + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Path** | **componentType**\ *requ | string | +| | ired* | | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **defau | successful operation | No Content | +| lt** | | | ++---------+----------------------------------------------------+----------------+ + +Tags +~~~~ + +- Element Servlet + +Retrieve all propertyScopes +--------------------------- + +:: + + GET /v1/propertyScopes + +Description +~~~~~~~~~~~ + +Retrieve all propertyScopes + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Returns propertyScopes Ok | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | No propertyScopes were found | No Content | ++---------+----------------------------------------------------+----------------+ +| **500** | Internal Server Error | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Element Servlet + +Retrieve catalog resources and services +--------------------------------------- + +:: + + GET /v1/screen + +Description +~~~~~~~~~~~ + +Retrieve catalog resources and services + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ +| **Query** | **excludeTypes**\ *optio | < enum (PRODUCT, SERVICE, VF, | +| | nal* | VFC, CP, VL, VFCMT, CVFC, PNF) > | +| | | array(multi) | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Returns resources and services Ok | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | User not found | No Content | ++---------+----------------------------------------------------+----------------+ +| **500** | Internal Server Error | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Element Servlet + +Retrieve all tags +----------------- + +:: + + GET /v1/tags + +Description +~~~~~~~~~~~ + +Retrieve all tags + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Returns tags Ok | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | No tags were found | No Content | ++---------+----------------------------------------------------+----------------+ +| **500** | Internal Server Error | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- Element Servlet + +add user +-------- + +:: + + POST /v1/user + +Description +~~~~~~~~~~~ + +Provision new user + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | json describe the user | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | successful operation | `User <#_user> | +| | | `__ | ++---------+----------------------------------------------------+----------------+ +| **201** | New user created | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid Content. | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Missing information | No Content | ++---------+----------------------------------------------------+----------------+ +| **405** | Method Not Allowed | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | User already exists | No Content | ++---------+----------------------------------------------------+----------------+ +| **500** | Internal Server Error | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- User Administration + +retrieve all administrators +--------------------------- + +:: + + GET /v1/user/admins + +Description +~~~~~~~~~~~ + +Returns all administrators + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Path** | **userId**\ *required* | string | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Returns user Ok | No Content | ++---------+----------------------------------------------------+----------------+ +| **405** | Method Not Allowed | No Content | ++---------+----------------------------------------------------+----------------+ +| **500** | Internal Server Error | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- User Administration + +authorize +--------- + +:: + + GET /v1/user/authorize + +Description +~~~~~~~~~~~ + +authorize user + +Parameters +~~~~~~~~~~ + ++------------------+--------------------------+----------------------------------+ +| Type | Name | Schema | ++==================+==========================+==================================+ +| **Header** | **HTTP\_CSP\_EMAIL**\ *o | string | +| | ptional* | | ++------------------+--------------------------+----------------------------------+ +| **Header** | **HTTP\_CSP\_FIRSTNAME** | string | +| | \ *optional* | | ++------------------+--------------------------+----------------------------------+ +| **Header** | **HTTP\_CSP\_LASTNAME**\ | string | +| | *optional* | | ++------------------+--------------------------+----------------------------------+ +| **Header** | **USER\_ID**\ *optional* | string | ++------------------+--------------------------+----------------------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Returns user Ok | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted Access | No Content | ++---------+----------------------------------------------------+----------------+ +| **500** | Internal Server Error | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- User Administration + +Retrieve the list of all active ASDC users or only group of users having specific roles. +---------------------------------------------------------------------------------------- + +:: + + GET /v1/user/users + +Description +~~~~~~~~~~~ + +Returns list of users with the specified roles, or all of users in the +case of empty *roles* header + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | Any active user’s USER\_ID | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Query* | **roles**\ | TESTER,DESIGNER,PRODUCT\_STRATEGIST, | string | +| * | *optional* | OPS,PRODUCT\_MANAGER,GOVERNOR, | | +| | | ADMIN OR all users by not typing | | +| | | anything | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Returns users Ok | No Content | ++---------+----------------------------------------------------+----------------+ +| **204** | No provisioned ASDC users of requested role | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Missing content | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Restricted Access | No Content | ++---------+----------------------------------------------------+----------------+ +| **500** | Internal Server Error | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- User Administration + +retrieve user details +--------------------- + +:: + + GET /v1/user/{userId} + +Description +~~~~~~~~~~~ + +Returns user details according to userId + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Path** | **userId**\ | userId of user to get | string | +| | *required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Returns user Ok | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | User not found | No Content | ++---------+----------------------------------------------------+----------------+ +| **405** | Method Not Allowed | No Content | ++---------+----------------------------------------------------+----------------+ +| **500** | Internal Server Error | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- User Administration + +delete user +----------- + +:: + + DELETE /v1/user/{userId} + +Description +~~~~~~~~~~~ + +Delete user + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **userId**\ | userId of user to get | string | +| | *required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Update deleted OK | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid Content. | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Missing information | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | User not found | No Content | ++---------+----------------------------------------------------+----------------+ +| **405** | Method Not Allowed | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **500** | Internal Server Error | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- User Administration + +update user role +---------------- + +:: + + POST /v1/user/{userId}/role + +Description +~~~~~~~~~~~ + +Update user role + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Header | **USER\_ID* | | string | +| ** | *\ *optiona | | | +| | l* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Path** | **userId**\ | userId of user to get | string | +| | *required* | | | ++----------+-------------+--------------------------------------+------------------+ +| **Body** | **body**\ * | json describe the update role | string | +| | required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Update user OK | No Content | ++---------+----------------------------------------------------+----------------+ +| **400** | Invalid Content. | No Content | ++---------+----------------------------------------------------+----------------+ +| **403** | Missing information/Restricted operation | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | User not found | No Content | ++---------+----------------------------------------------------+----------------+ +| **405** | Method Not Allowed | No Content | ++---------+----------------------------------------------------+----------------+ +| **409** | User already exists | No Content | ++---------+----------------------------------------------------+----------------+ +| **500** | Internal Server Error | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- User Administration + +retrieve user role +------------------ + +:: + + GET /v1/user/{userId}/role + +Description +~~~~~~~~~~~ + +Returns user role according to userId + +Parameters +~~~~~~~~~~ + ++----------+-------------+--------------------------------------+------------------+ +| Type | Name | Description | Schema | ++==========+=============+======================================+==================+ +| **Path** | **userId**\ | userId of user to get | string | +| | *required* | | | ++----------+-------------+--------------------------------------+------------------+ + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | Returns user role Ok | No Content | ++---------+----------------------------------------------------+----------------+ +| **404** | User not found | No Content | ++---------+----------------------------------------------------+----------------+ +| **405** | Method Not Allowed | No Content | ++---------+----------------------------------------------------+----------------+ +| **500** | Internal Server Error | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- User Administration + +return the ASDC application version +----------------------------------- + +:: + + GET /version + +Description +~~~~~~~~~~~ + +return the ASDC application version + +Responses +~~~~~~~~~ + ++---------+----------------------------------------------------+----------------+ +| HTTP | Description | Schema | +| Code | | | ++=========+====================================================+================+ +| **200** | return ASDC version | No Content | ++---------+----------------------------------------------------+----------------+ +| **500** | Internal Error | No Content | ++---------+----------------------------------------------------+----------------+ + +Consumes +~~~~~~~~ + +- ``application/json`` + +Produces +~~~~~~~~ + +- ``application/json`` + +Tags +~~~~ + +- BE Monitoring + +Definitions +=========== + +AdditionalInfoParameterInfo +--------------------------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **key**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **uniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **value**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +AdditionalInformationDefinition +------------------------------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **creationTime**\ *optional* | integer (int64) | ++--------------------------------+-------------------------------------------+ +| **lastCreatedCounter**\ *optio | integer (int32) | +| nal* | | ++--------------------------------+-------------------------------------------+ +| **modificationTime**\ *optiona | integer (int64) | +| l* | | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **parameters**\ *optional* | < | +| | `AdditionalInfoParameterInfo <#_additiona | +| | linfoparameterinfo>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **parentUniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **uniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +ArtifactDataDefinition +---------------------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **apiUrl**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **artifactChecksum**\ *optiona | string | +| l* | | ++--------------------------------+-------------------------------------------+ +| **artifactCreator**\ *optional | string | +| * | | ++--------------------------------+-------------------------------------------+ +| **artifactDisplayName**\ *opti | string | +| onal* | | ++--------------------------------+-------------------------------------------+ +| **artifactGroupType**\ *option | enum (INFORMATIONAL, DEPLOYMENT, | +| al* | LIFE\_CYCLE, SERVICE\_API, TOSCA, OTHER) | ++--------------------------------+-------------------------------------------+ +| **artifactLabel**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **artifactName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **artifactRef**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **artifactRepository**\ *optio | string | +| nal* | | ++--------------------------------+-------------------------------------------+ +| **artifactType**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **artifactUUID**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **artifactVersion**\ *optional | string | +| * | | ++--------------------------------+-------------------------------------------+ +| **creationDate**\ *optional* | integer (int64) | ++--------------------------------+-------------------------------------------+ +| **creatorFullName**\ *optional | string | +| * | | ++--------------------------------+-------------------------------------------+ +| **description**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **duplicated**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **esId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **generated**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **generatedFromId**\ *optional | string | +| * | | ++--------------------------------+-------------------------------------------+ +| **heatParameters**\ *optional* | < | +| | `HeatParameterDataDefinition <#_heatparam | +| | eterdatadefinition>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **heatParamsUpdateDate**\ *opt | integer (int64) | +| ional* | | ++--------------------------------+-------------------------------------------+ +| **lastUpdateDate**\ *optional* | integer (int64) | ++--------------------------------+-------------------------------------------+ +| **mandatory**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **payloadUpdateDate**\ *option | integer (int64) | +| al* | | ++--------------------------------+-------------------------------------------+ +| **requiredArtifacts**\ *option | < string > array | +| al* | | ++--------------------------------+-------------------------------------------+ +| **serviceApi**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **timeout**\ *optional* | integer (int32) | ++--------------------------------+-------------------------------------------+ +| **uniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **updaterFullName**\ *optional | string | +| * | | ++--------------------------------+-------------------------------------------+ +| **userIdCreator**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **userIdLastUpdater**\ *option | string | +| al* | | ++--------------------------------+-------------------------------------------+ + +ArtifactDefinition +------------------ + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **apiUrl**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **artifactChecksum**\ *optiona | string | +| l* | | ++--------------------------------+-------------------------------------------+ +| **artifactCreator**\ *optional | string | +| * | | ++--------------------------------+-------------------------------------------+ +| **artifactDisplayName**\ *opti | string | +| onal* | | ++--------------------------------+-------------------------------------------+ +| **artifactGroupType**\ *option | enum (INFORMATIONAL, DEPLOYMENT, | +| al* | LIFE\_CYCLE, SERVICE\_API, TOSCA, OTHER) | ++--------------------------------+-------------------------------------------+ +| **artifactLabel**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **artifactName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **artifactRef**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **artifactRepository**\ *optio | string | +| nal* | | ++--------------------------------+-------------------------------------------+ +| **artifactType**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **artifactUUID**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **artifactVersion**\ *optional | string | +| * | | ++--------------------------------+-------------------------------------------+ +| **creationDate**\ *optional* | integer (int64) | ++--------------------------------+-------------------------------------------+ +| **creatorFullName**\ *optional | string | +| * | | ++--------------------------------+-------------------------------------------+ +| **description**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **duplicated**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **esId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **generated**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **generatedFromId**\ *optional | string | +| * | | ++--------------------------------+-------------------------------------------+ +| **heatParameters**\ *optional* | < | +| | `HeatParameterDataDefinition <#_heatparam | +| | eterdatadefinition>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **heatParamsUpdateDate**\ *opt | integer (int64) | +| ional* | | ++--------------------------------+-------------------------------------------+ +| **lastUpdateDate**\ *optional* | integer (int64) | ++--------------------------------+-------------------------------------------+ +| **listHeatParameters**\ *optio | < | +| nal* | `HeatParameterDefinition <#_heatparameter | +| | definition>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **mandatory**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **payloadData**\ *optional* | < string (byte) > array | ++--------------------------------+-------------------------------------------+ +| **payloadUpdateDate**\ *option | integer (int64) | +| al* | | ++--------------------------------+-------------------------------------------+ +| **requiredArtifacts**\ *option | < string > array | +| al* | | ++--------------------------------+-------------------------------------------+ +| **serviceApi**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **timeout**\ *optional* | integer (int32) | ++--------------------------------+-------------------------------------------+ +| **uniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **updaterFullName**\ *optional | string | +| * | | ++--------------------------------+-------------------------------------------+ +| **userIdCreator**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **userIdLastUpdater**\ *option | string | +| al* | | ++--------------------------------+-------------------------------------------+ + +CapabilityDefinition +-------------------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **capabilitySources**\ *option | < string > array | +| al* | | ++--------------------------------+-------------------------------------------+ +| **description**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **leftOccurrences**\ *optional | string | +| * | | ++--------------------------------+-------------------------------------------+ +| **maxOccurrences**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **minOccurrences**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **name**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **ownerName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **parentName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **path**\ *optional* | < string > array | ++--------------------------------+-------------------------------------------+ +| **properties**\ *optional* | < | +| | `ComponentInstanceProperty <#_componentin | +| | stanceproperty>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **source**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **type**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **uniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **validSourceTypes**\ *optiona | < string > array | +| l* | | ++--------------------------------+-------------------------------------------+ + +Category +-------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **name**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +CategoryDefinition +------------------ + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **icons**\ *optional* | < string > array | ++--------------------------------+-------------------------------------------+ +| **name**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **normalizedName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **subcategories**\ *optional* | < | +| | `SubCategoryDefinition <#_subcategorydefi | +| | nition>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **uniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +ComponentInstance +----------------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **artifacts**\ *optional* | < string, | +| | `ArtifactDefinition <#_artifactdefinition | +| | >`__ | +| | > map | ++--------------------------------+-------------------------------------------+ +| **attributeValueCounter**\ *op | integer (int32) | +| tional* | | ++--------------------------------+-------------------------------------------+ +| **capabilities**\ *optional* | < string, < | +| | `CapabilityDefinition <#_capabilitydefini | +| | tion>`__ | +| | > array > map | ++--------------------------------+-------------------------------------------+ +| **componentName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **componentUid**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **componentVersion**\ *optiona | string | +| l* | | ++--------------------------------+-------------------------------------------+ +| **creationTime**\ *optional* | integer (int64) | ++--------------------------------+-------------------------------------------+ +| **customizationUUID**\ *option | string | +| al* | | ++--------------------------------+-------------------------------------------+ +| **deploymentArtifacts**\ *opti | < string, | +| onal* | `ArtifactDefinition <#_artifactdefinition | +| | >`__ | +| | > map | ++--------------------------------+-------------------------------------------+ +| **description**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **groupInstances**\ *optional* | < `GroupInstance <#_groupinstance>`__ > | +| | array | ++--------------------------------+-------------------------------------------+ +| **icon**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **inputValueCounter**\ *option | integer (int32) | +| al* | | ++--------------------------------+-------------------------------------------+ +| **invariantName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **modificationTime**\ *optiona | integer (int64) | +| l* | | ++--------------------------------+-------------------------------------------+ +| **name**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **normalizedName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **originType**\ *optional* | enum (PRODUCT, SERVICE, VF, VFC, CP, VL, | +| | VFCMT, CVFC, PNF) | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **posX**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **posY**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **propertyValueCounter**\ *opt | integer (int32) | +| ional* | | ++--------------------------------+-------------------------------------------+ +| **requirements**\ *optional* | < string, < | +| | `RequirementDefinition <#_requirementdefi | +| | nition>`__ | +| | > array > map | ++--------------------------------+-------------------------------------------+ +| **toscaComponentName**\ *optio | string | +| nal* | | ++--------------------------------+-------------------------------------------+ +| **uniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +ComponentInstanceInput +---------------------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **componentInstanceId**\ *opti | string | +| onal* | | ++--------------------------------+-------------------------------------------+ +| **componentInstanceName**\ *op | string | +| tional* | | ++--------------------------------+-------------------------------------------+ +| **constraints**\ *optional* | < | +| | `PropertyConstraint <#_propertyconstraint | +| | >`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **defaultValue**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **definition**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **description**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **getInputValues**\ *optional* | < | +| | `GetInputValueDataDefinition <#_getinputv | +| | aluedatadefinition>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **hidden**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **immutable**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **inputId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **inputPath**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **inputs**\ *optional* | < | +| | `ComponentInstanceInput <#_componentinsta | +| | nceinput>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **instanceUniqueId**\ *optiona | string | +| l* | | ++--------------------------------+-------------------------------------------+ +| **label**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **name**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **parentUniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **password**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **path**\ *optional* | < string > array | ++--------------------------------+-------------------------------------------+ +| **properties**\ *optional* | < | +| | `ComponentInstanceProperty <#_componentin | +| | stanceproperty>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **propertyId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **required**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **rules**\ *optional* | < `PropertyRule <#_propertyrule>`__ > | +| | array | ++--------------------------------+-------------------------------------------+ +| **schema**\ *optional* | `SchemaDefinition <#_schemadefinition>`__ | ++--------------------------------+-------------------------------------------+ +| **status**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **type**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **uniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **value**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **valueUniqueUid**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +ComponentInstanceProperty +------------------------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **componentInstanceId**\ *opti | string | +| onal* | | ++--------------------------------+-------------------------------------------+ +| **componentInstanceName**\ *op | string | +| tional* | | ++--------------------------------+-------------------------------------------+ +| **constraints**\ *optional* | < | +| | `PropertyConstraint <#_propertyconstraint | +| | >`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **defaultValue**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **definition**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **description**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **getInputValues**\ *optional* | < | +| | `GetInputValueDataDefinition <#_getinputv | +| | aluedatadefinition>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **hidden**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **immutable**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **inputId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **inputPath**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **instanceUniqueId**\ *optiona | string | +| l* | | ++--------------------------------+-------------------------------------------+ +| **label**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **name**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **parentUniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **password**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **path**\ *optional* | < string > array | ++--------------------------------+-------------------------------------------+ +| **propertyId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **required**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **rules**\ *optional* | < `PropertyRule <#_propertyrule>`__ > | +| | array | ++--------------------------------+-------------------------------------------+ +| **schema**\ *optional* | `SchemaDefinition <#_schemadefinition>`__ | ++--------------------------------+-------------------------------------------+ +| **status**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **type**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **uniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **value**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **valueUniqueUid**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +ComponentMetadataDataDefinition +------------------------------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **allVersions**\ *optional* | < string, string > map | ++--------------------------------+-------------------------------------------+ +| **componentType**\ *optional* | enum (RESOURCE, SERVICE, | +| | RESOURCE\_INSTANCE, PRODUCT, | +| | SERVICE\_INSTANCE) | ++--------------------------------+-------------------------------------------+ +| **conformanceLevel**\ *optiona | string | +| l* | | ++--------------------------------+-------------------------------------------+ +| **contactId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **creationDate**\ *optional* | integer (int64) | ++--------------------------------+-------------------------------------------+ +| **creatorFullName**\ *optional | string | +| * | | ++--------------------------------+-------------------------------------------+ +| **creatorUserId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **csarUUID**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **csarVersion**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **deleted**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **description**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **highestVersion**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **icon**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **importedToscaChecksum**\ *op | string | +| tional* | | ++--------------------------------+-------------------------------------------+ +| **invariantUUID**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **isDeleted**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **isHighestVersion**\ *optiona | boolean | +| l* | | ++--------------------------------+-------------------------------------------+ +| **lastUpdateDate**\ *optional* | integer (int64) | ++--------------------------------+-------------------------------------------+ +| **lastUpdaterFullName**\ *opti | string | +| onal* | | ++--------------------------------+-------------------------------------------+ +| **lastUpdaterUserId**\ *option | string | +| al* | | ++--------------------------------+-------------------------------------------+ +| **lifecycleState**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **name**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **normalizedName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **projectCode**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **state**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **systemName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **tags**\ *optional* | < string > array | ++--------------------------------+-------------------------------------------+ +| **uniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **uuid**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **version**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +ComponentMetadataDefinition +--------------------------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **metadataDataDefinition**\ *o | `ComponentMetadataDataDefinition <#_compo | +| ptional* | nentmetadatadatadefinition>`__ | ++--------------------------------+-------------------------------------------+ + +ConsumerDefinition +------------------ + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **consumerDetailsLastupdatedti | integer (int64) | +| me**\ *optional* | | ++--------------------------------+-------------------------------------------+ +| **consumerLastAuthenticationTi | integer (int64) | +| me**\ *optional* | | ++--------------------------------+-------------------------------------------+ +| **consumerName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **consumerPassword**\ *optiona | string | +| l* | | ++--------------------------------+-------------------------------------------+ +| **consumerSalt**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **lastModfierAtuid**\ *optiona | string | +| l* | | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +DistributionStatusInfo +---------------------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **errorReason**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **omfComponentID**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **status**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **timestamp**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **url**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +DistributionStatusListResponse +------------------------------ + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **distributionStatusList**\ *o | < | +| ptional* | `DistributionStatusInfo <#_distributionst | +| | atusinfo>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ + +GetInputValueDataDefinition +--------------------------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **getInputIndex**\ *optional* | `GetInputValueDataDefinition <#_getinputv | +| | aluedatadefinition>`__ | ++--------------------------------+-------------------------------------------+ +| **indexValue**\ *optional* | integer (int32) | ++--------------------------------+-------------------------------------------+ +| **inputId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **inputName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **list**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **propName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +GroupDefinition +--------------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **artifacts**\ *optional* | < string > array | ++--------------------------------+-------------------------------------------+ +| **artifactsUuid**\ *optional* | < string > array | ++--------------------------------+-------------------------------------------+ +| **description**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **groupUUID**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **invariantUUID**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **members**\ *optional* | < string, string > map | ++--------------------------------+-------------------------------------------+ +| **name**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **properties**\ *optional* | < | +| | `PropertyDataDefinition <#_propertydatade | +| | finition>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **propertyValueCounter**\ *opt | integer (int32) | +| ional* | | ++--------------------------------+-------------------------------------------+ +| **type**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **typeUid**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **uniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **version**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +GroupInstance +------------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **artifacts**\ *optional* | < string > array | ++--------------------------------+-------------------------------------------+ +| **artifactsUuid**\ *optional* | < string > array | ++--------------------------------+-------------------------------------------+ +| **creationTime**\ *optional* | integer (int64) | ++--------------------------------+-------------------------------------------+ +| **customizationUUID**\ *option | string | +| al* | | ++--------------------------------+-------------------------------------------+ +| **description**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **groupInstanceArtifacts**\ *o | < string > array | +| ptional* | | ++--------------------------------+-------------------------------------------+ +| **groupInstanceArtifactsUuid** | < string > array | +| \ *optional* | | ++--------------------------------+-------------------------------------------+ +| **groupName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **groupUUID**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **groupUid**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **invariantUUID**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **modificationTime**\ *optiona | integer (int64) | +| l* | | ++--------------------------------+-------------------------------------------+ +| **name**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **normalizedName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **posX**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **posY**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **properties**\ *optional* | < | +| | `PropertyDataDefinition <#_propertydatade | +| | finition>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **propertyValueCounter**\ *opt | integer (int32) | +| ional* | | ++--------------------------------+-------------------------------------------+ +| **type**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **uniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **version**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +GroupingDefinition +------------------ + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **name**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **normalizedName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **uniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +HeatParameterDataDefinition +--------------------------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **currentValue**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **defaultValue**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **description**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **name**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **type**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **uniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +HeatParameterDefinition +----------------------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **currentValue**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **defaultValue**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **description**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **name**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **type**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **uniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +InputDefinition +--------------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **constraints**\ *optional* | < | +| | `PropertyConstraint <#_propertyconstraint | +| | >`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **defaultValue**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **definition**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **description**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **getInputValues**\ *optional* | < | +| | `GetInputValueDataDefinition <#_getinputv | +| | aluedatadefinition>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **hidden**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **immutable**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **inputId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **inputPath**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **inputs**\ *optional* | < | +| | `ComponentInstanceInput <#_componentinsta | +| | nceinput>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **instanceUniqueId**\ *optiona | string | +| l* | | ++--------------------------------+-------------------------------------------+ +| **label**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **name**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **parentUniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **password**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **properties**\ *optional* | < | +| | `ComponentInstanceProperty <#_componentin | +| | stanceproperty>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **propertyId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **required**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **schema**\ *optional* | `SchemaDefinition <#_schemadefinition>`__ | ++--------------------------------+-------------------------------------------+ +| **status**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **type**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **uniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **value**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +InterfaceDefinition +------------------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **creationDate**\ *optional* | integer (int64) | ++--------------------------------+-------------------------------------------+ +| **definition**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **description**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **lastUpdateDate**\ *optional* | integer (int64) | ++--------------------------------+-------------------------------------------+ +| **operations**\ *optional* | < string, | +| | `OperationDataDefinition <#_operationdata | +| | definition>`__ | +| | > map | ++--------------------------------+-------------------------------------------+ +| **operationsMap**\ *optional* | < string, `Operation <#_operation>`__ > | +| | map | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **type**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **uniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +LifecycleChangeInfoWithAction +----------------------------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **action**\ *optional* | enum (CREATE\_FROM\_CSAR, | +| | UPDATE\_FROM\_EXTERNAL\_API) | ++--------------------------------+-------------------------------------------+ +| **userRemarks**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +Operation +--------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **creationDate**\ *optional* | integer (int64) | ++--------------------------------+-------------------------------------------+ +| **definition**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **description**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **implementation**\ *optional* | `ArtifactDataDefinition <#_artifactdatade | +| | finition>`__ | ++--------------------------------+-------------------------------------------+ +| **implementationArtifact**\ *o | `ArtifactDefinition <#_artifactdefinition | +| ptional* | >`__ | ++--------------------------------+-------------------------------------------+ +| **inputs**\ *optional* | < string, | +| | `PropertyDataDefinition <#_propertydatade | +| | finition>`__ | +| | > map | ++--------------------------------+-------------------------------------------+ +| **lastUpdateDate**\ *optional* | integer (int64) | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **uniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +OperationDataDefinition +----------------------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **creationDate**\ *optional* | integer (int64) | ++--------------------------------+-------------------------------------------+ +| **description**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **implementation**\ *optional* | `ArtifactDataDefinition <#_artifactdatade | +| | finition>`__ | ++--------------------------------+-------------------------------------------+ +| **inputs**\ *optional* | < string, | +| | `PropertyDataDefinition <#_propertydatade | +| | finition>`__ | +| | > map | ++--------------------------------+-------------------------------------------+ +| **lastUpdateDate**\ *optional* | integer (int64) | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **uniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +Product +------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **additionalInformation**\ *op | < | +| tional* | `AdditionalInformationDefinition <#_addit | +| | ionalinformationdefinition>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **allArtifacts**\ *optional* | < string, | +| | `ArtifactDefinition <#_artifactdefinition | +| | >`__ | +| | > map | ++--------------------------------+-------------------------------------------+ +| **allVersions**\ *optional* | < string, string > map | ++--------------------------------+-------------------------------------------+ +| **artifacts**\ *optional* | < string, | +| | `ArtifactDefinition <#_artifactdefinition | +| | >`__ | +| | > map | ++--------------------------------+-------------------------------------------+ +| **capabilities**\ *optional* | < string, < | +| | `CapabilityDefinition <#_capabilitydefini | +| | tion>`__ | +| | > array > map | ++--------------------------------+-------------------------------------------+ +| **categories**\ *optional* | < | +| | `CategoryDefinition <#_categorydefinition | +| | >`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **componentInstances**\ *optio | < | +| nal* | `ComponentInstance <#_componentinstance>` | +| | __ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **componentInstancesAttributes | < string, < | +| **\ *optional* | `ComponentInstanceProperty <#_componentin | +| | stanceproperty>`__ | +| | > array > map | ++--------------------------------+-------------------------------------------+ +| **componentInstancesInputs**\ | < string, < | +| *optional* | `ComponentInstanceInput <#_componentinsta | +| | nceinput>`__ | +| | > array > map | ++--------------------------------+-------------------------------------------+ +| **componentInstancesProperties | < string, < | +| **\ *optional* | `ComponentInstanceProperty <#_componentin | +| | stanceproperty>`__ | +| | > array > map | ++--------------------------------+-------------------------------------------+ +| **componentInstancesRelations* | < | +| *\ *optional* | `RequirementCapabilityRelDef <#_requireme | +| | ntcapabilityreldef>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **componentMetadataDefinition* | `ComponentMetadataDefinition <#_component | +| *\ *optional* | metadatadefinition>`__ | ++--------------------------------+-------------------------------------------+ +| **componentType**\ *optional* | enum (RESOURCE, SERVICE, | +| | RESOURCE\_INSTANCE, PRODUCT, | +| | SERVICE\_INSTANCE) | ++--------------------------------+-------------------------------------------+ +| **conformanceLevel**\ *optiona | string | +| l* | | ++--------------------------------+-------------------------------------------+ +| **contactId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **contacts**\ *optional* | < string > array | ++--------------------------------+-------------------------------------------+ +| **creationDate**\ *optional* | integer (int64) | ++--------------------------------+-------------------------------------------+ +| **creatorFullName**\ *optional | string | +| * | | ++--------------------------------+-------------------------------------------+ +| **creatorUserId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **csarUUID**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **csarVersion**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **deploymentArtifacts**\ *opti | < string, | +| onal* | `ArtifactDefinition <#_artifactdefinition | +| | >`__ | +| | > map | ++--------------------------------+-------------------------------------------+ +| **derivedFromGenericType**\ *o | string | +| ptional* | | ++--------------------------------+-------------------------------------------+ +| **derivedFromGenericVersion**\ | string | +| *optional* | | ++--------------------------------+-------------------------------------------+ +| **description**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **fullName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **groups**\ *optional* | < `GroupDefinition <#_groupdefinition>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **highestVersion**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **icon**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **importedToscaChecksum**\ *op | string | +| tional* | | ++--------------------------------+-------------------------------------------+ +| **inputs**\ *optional* | < `InputDefinition <#_inputdefinition>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **invariantUUID**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **isActive**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **isDeleted**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **lastUpdateDate**\ *optional* | integer (int64) | ++--------------------------------+-------------------------------------------+ +| **lastUpdaterFullName**\ *opti | string | +| onal* | | ++--------------------------------+-------------------------------------------+ +| **lastUpdaterUserId**\ *option | string | +| al* | | ++--------------------------------+-------------------------------------------+ +| **lifecycleState**\ *optional* | enum (READY\_FOR\_CERTIFICATION, | +| | CERTIFICATION\_IN\_PROGRESS, CERTIFIED, | +| | NOT\_CERTIFIED\_CHECKIN, | +| | NOT\_CERTIFIED\_CHECKOUT) | ++--------------------------------+-------------------------------------------+ +| **name**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **normalizedName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **projectCode**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **requirements**\ *optional* | < string, < | +| | `RequirementDefinition <#_requirementdefi | +| | nition>`__ | +| | > array > map | ++--------------------------------+-------------------------------------------+ +| **systemName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **tags**\ *optional* | < string > array | ++--------------------------------+-------------------------------------------+ +| **toscaArtifacts**\ *optional* | < string, | +| | `ArtifactDefinition <#_artifactdefinition | +| | >`__ | +| | > map | ++--------------------------------+-------------------------------------------+ +| **toscaType**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **uniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **uuid**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **version**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +PropertyConstraint +------------------ + +*Type* : object + +PropertyDataDefinition +---------------------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **defaultValue**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **definition**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **description**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **getInputValues**\ *optional* | < | +| | `GetInputValueDataDefinition <#_getinputv | +| | aluedatadefinition>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **hidden**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **immutable**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **inputId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **inputPath**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **instanceUniqueId**\ *optiona | string | +| l* | | ++--------------------------------+-------------------------------------------+ +| **label**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **name**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **parentUniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **password**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **propertyId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **required**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **schema**\ *optional* | `SchemaDefinition <#_schemadefinition>`__ | ++--------------------------------+-------------------------------------------+ +| **status**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **type**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **uniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **value**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +PropertyDefinition +------------------ + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **constraints**\ *optional* | < | +| | `PropertyConstraint <#_propertyconstraint | +| | >`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **defaultValue**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **definition**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **description**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **getInputValues**\ *optional* | < | +| | `GetInputValueDataDefinition <#_getinputv | +| | aluedatadefinition>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **hidden**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **immutable**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **inputId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **inputPath**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **instanceUniqueId**\ *optiona | string | +| l* | | ++--------------------------------+-------------------------------------------+ +| **label**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **name**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **parentUniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **password**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **propertyId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **required**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **schema**\ *optional* | `SchemaDefinition <#_schemadefinition>`__ | ++--------------------------------+-------------------------------------------+ +| **status**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **type**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **uniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **value**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +PropertyRule +------------ + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **firstToken**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **rule**\ *optional* | < string > array | ++--------------------------------+-------------------------------------------+ +| **ruleSize**\ *optional* | integer (int32) | ++--------------------------------+-------------------------------------------+ +| **value**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +RelationshipImpl +---------------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **type**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +RequirementAndRelationshipPair +------------------------------ + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **capability**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **capabilityOwnerId**\ *option | string | +| al* | | ++--------------------------------+-------------------------------------------+ +| **capabilityUid**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **id**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **relationship**\ *optional* | `RelationshipImpl <#_relationshipimpl>`__ | ++--------------------------------+-------------------------------------------+ +| **requirement**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **requirementOwnerId**\ *optio | string | +| nal* | | ++--------------------------------+-------------------------------------------+ +| **requirementUid**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +RequirementCapabilityRelDef +--------------------------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **fromNode**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **relationships**\ *optional* | < | +| | `RequirementAndRelationshipPair <#_requir | +| | ementandrelationshippair>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **toNode**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **uid**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +RequirementDefinition +--------------------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **capability**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **leftOccurrences**\ *optional | string | +| * | | ++--------------------------------+-------------------------------------------+ +| **maxOccurrences**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **minOccurrences**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **name**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **node**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **ownerName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **parentName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **path**\ *optional* | < string > array | ++--------------------------------+-------------------------------------------+ +| **relationship**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **source**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **uniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +Resource +-------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **abstract**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **additionalInformation**\ *op | < | +| tional* | `AdditionalInformationDefinition <#_addit | +| | ionalinformationdefinition>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **allArtifacts**\ *optional* | < string, | +| | `ArtifactDefinition <#_artifactdefinition | +| | >`__ | +| | > map | ++--------------------------------+-------------------------------------------+ +| **allVersions**\ *optional* | < string, string > map | ++--------------------------------+-------------------------------------------+ +| **artifacts**\ *optional* | < string, | +| | `ArtifactDefinition <#_artifactdefinition | +| | >`__ | +| | > map | ++--------------------------------+-------------------------------------------+ +| **attributes**\ *optional* | < | +| | `PropertyDefinition <#_propertydefinition | +| | >`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **capabilities**\ *optional* | < string, < | +| | `CapabilityDefinition <#_capabilitydefini | +| | tion>`__ | +| | > array > map | ++--------------------------------+-------------------------------------------+ +| **categories**\ *optional* | < | +| | `CategoryDefinition <#_categorydefinition | +| | >`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **componentInstances**\ *optio | < | +| nal* | `ComponentInstance <#_componentinstance>` | +| | __ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **componentInstancesAttributes | < string, < | +| **\ *optional* | `ComponentInstanceProperty <#_componentin | +| | stanceproperty>`__ | +| | > array > map | ++--------------------------------+-------------------------------------------+ +| **componentInstancesInputs**\ | < string, < | +| *optional* | `ComponentInstanceInput <#_componentinsta | +| | nceinput>`__ | +| | > array > map | ++--------------------------------+-------------------------------------------+ +| **componentInstancesProperties | < string, < | +| **\ *optional* | `ComponentInstanceProperty <#_componentin | +| | stanceproperty>`__ | +| | > array > map | ++--------------------------------+-------------------------------------------+ +| **componentInstancesRelations* | < | +| *\ *optional* | `RequirementCapabilityRelDef <#_requireme | +| | ntcapabilityreldef>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **componentMetadataDefinition* | `ComponentMetadataDefinition <#_component | +| *\ *optional* | metadatadefinition>`__ | ++--------------------------------+-------------------------------------------+ +| **componentType**\ *optional* | enum (RESOURCE, SERVICE, | +| | RESOURCE\_INSTANCE, PRODUCT, | +| | SERVICE\_INSTANCE) | ++--------------------------------+-------------------------------------------+ +| **conformanceLevel**\ *optiona | string | +| l* | | ++--------------------------------+-------------------------------------------+ +| **contactId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **cost**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **creationDate**\ *optional* | integer (int64) | ++--------------------------------+-------------------------------------------+ +| **creatorFullName**\ *optional | string | +| * | | ++--------------------------------+-------------------------------------------+ +| **creatorUserId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **csarUUID**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **csarVersion**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **defaultCapabilities**\ *opti | < string > array | +| onal* | | ++--------------------------------+-------------------------------------------+ +| **deploymentArtifacts**\ *opti | < string, | +| onal* | `ArtifactDefinition <#_artifactdefinition | +| | >`__ | +| | > map | ++--------------------------------+-------------------------------------------+ +| **derivedFrom**\ *optional* | < string > array | ++--------------------------------+-------------------------------------------+ +| **derivedFromGenericType**\ *o | string | +| ptional* | | ++--------------------------------+-------------------------------------------+ +| **derivedFromGenericVersion**\ | string | +| *optional* | | ++--------------------------------+-------------------------------------------+ +| **derivedList**\ *optional* | < string > array | ++--------------------------------+-------------------------------------------+ +| **description**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **groups**\ *optional* | < `GroupDefinition <#_groupdefinition>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **highestVersion**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **icon**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **importedToscaChecksum**\ *op | string | +| tional* | | ++--------------------------------+-------------------------------------------+ +| **inputs**\ *optional* | < `InputDefinition <#_inputdefinition>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **interfaces**\ *optional* | < string, | +| | `InterfaceDefinition <#_interfacedefiniti | +| | on>`__ | +| | > map | ++--------------------------------+-------------------------------------------+ +| **invariantUUID**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **isDeleted**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **lastUpdateDate**\ *optional* | integer (int64) | ++--------------------------------+-------------------------------------------+ +| **lastUpdaterFullName**\ *opti | string | +| onal* | | ++--------------------------------+-------------------------------------------+ +| **lastUpdaterUserId**\ *option | string | +| al* | | ++--------------------------------+-------------------------------------------+ +| **licenseType**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **lifecycleState**\ *optional* | enum (READY\_FOR\_CERTIFICATION, | +| | CERTIFICATION\_IN\_PROGRESS, CERTIFIED, | +| | NOT\_CERTIFIED\_CHECKIN, | +| | NOT\_CERTIFIED\_CHECKOUT) | ++--------------------------------+-------------------------------------------+ +| **name**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **normalizedName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **projectCode**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **properties**\ *optional* | < | +| | `PropertyDefinition <#_propertydefinition | +| | >`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **requirements**\ *optional* | < string, < | +| | `RequirementDefinition <#_requirementdefi | +| | nition>`__ | +| | > array > map | ++--------------------------------+-------------------------------------------+ +| **resourceType**\ *optional* | enum (VFC, VF, CP, PNF, CVFC, VL, VFCMT, | +| | ABSTRACT) | ++--------------------------------+-------------------------------------------+ +| **resourceVendorModelNumber**\ | string | +| *optional* | | ++--------------------------------+-------------------------------------------+ +| **systemName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **tags**\ *optional* | < string > array | ++--------------------------------+-------------------------------------------+ +| **toscaArtifacts**\ *optional* | < string, | +| | `ArtifactDefinition <#_artifactdefinition | +| | >`__ | +| | > map | ++--------------------------------+-------------------------------------------+ +| **toscaResourceName**\ *option | string | +| al* | | ++--------------------------------+-------------------------------------------+ +| **toscaType**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **uniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **uuid**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **vendorName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **vendorRelease**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **version**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +SchemaDefinition +---------------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **constraints**\ *optional* | < string > array | ++--------------------------------+-------------------------------------------+ +| **derivedFrom**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **properties**\ *optional* | < string, | +| | `PropertyDataDefinition <#_propertydatade | +| | finition>`__ | +| | > map | ++--------------------------------+-------------------------------------------+ +| **property**\ *optional* | `PropertyDataDefinition <#_propertydatade | +| | finition>`__ | ++--------------------------------+-------------------------------------------+ + +Service +------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **additionalInformation**\ *op | < | +| tional* | `AdditionalInformationDefinition <#_addit | +| | ionalinformationdefinition>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **allArtifacts**\ *optional* | < string, | +| | `ArtifactDefinition <#_artifactdefinition | +| | >`__ | +| | > map | ++--------------------------------+-------------------------------------------+ +| **allVersions**\ *optional* | < string, string > map | ++--------------------------------+-------------------------------------------+ +| **artifacts**\ *optional* | < string, | +| | `ArtifactDefinition <#_artifactdefinition | +| | >`__ | +| | > map | ++--------------------------------+-------------------------------------------+ +| **capabilities**\ *optional* | < string, < | +| | `CapabilityDefinition <#_capabilitydefini | +| | tion>`__ | +| | > array > map | ++--------------------------------+-------------------------------------------+ +| **categories**\ *optional* | < | +| | `CategoryDefinition <#_categorydefinition | +| | >`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **componentInstances**\ *optio | < | +| nal* | `ComponentInstance <#_componentinstance>` | +| | __ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **componentInstancesAttributes | < string, < | +| **\ *optional* | `ComponentInstanceProperty <#_componentin | +| | stanceproperty>`__ | +| | > array > map | ++--------------------------------+-------------------------------------------+ +| **componentInstancesInputs**\ | < string, < | +| *optional* | `ComponentInstanceInput <#_componentinsta | +| | nceinput>`__ | +| | > array > map | ++--------------------------------+-------------------------------------------+ +| **componentInstancesProperties | < string, < | +| **\ *optional* | `ComponentInstanceProperty <#_componentin | +| | stanceproperty>`__ | +| | > array > map | ++--------------------------------+-------------------------------------------+ +| **componentInstancesRelations* | < | +| *\ *optional* | `RequirementCapabilityRelDef <#_requireme | +| | ntcapabilityreldef>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **componentMetadataDefinition* | `ComponentMetadataDefinition <#_component | +| *\ *optional* | metadatadefinition>`__ | ++--------------------------------+-------------------------------------------+ +| **componentType**\ *optional* | enum (RESOURCE, SERVICE, | +| | RESOURCE\_INSTANCE, PRODUCT, | +| | SERVICE\_INSTANCE) | ++--------------------------------+-------------------------------------------+ +| **conformanceLevel**\ *optiona | string | +| l* | | ++--------------------------------+-------------------------------------------+ +| **contactId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **creationDate**\ *optional* | integer (int64) | ++--------------------------------+-------------------------------------------+ +| **creatorFullName**\ *optional | string | +| * | | ++--------------------------------+-------------------------------------------+ +| **creatorUserId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **csarUUID**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **csarVersion**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **deploymentArtifacts**\ *opti | < string, | +| onal* | `ArtifactDefinition <#_artifactdefinition | +| | >`__ | +| | > map | ++--------------------------------+-------------------------------------------+ +| **derivedFromGenericType**\ *o | string | +| ptional* | | ++--------------------------------+-------------------------------------------+ +| **derivedFromGenericVersion**\ | string | +| *optional* | | ++--------------------------------+-------------------------------------------+ +| **description**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **distributionStatus**\ *optio | enum (DISTRIBUTION\_NOT\_APPROVED, | +| nal* | DISTRIBUTION\_APPROVED, DISTRIBUTED, | +| | DISTRIBUTION\_REJECTED) | ++--------------------------------+-------------------------------------------+ +| **ecompGeneratedNaming**\ *opt | boolean | +| ional* | | ++--------------------------------+-------------------------------------------+ +| **groups**\ *optional* | < `GroupDefinition <#_groupdefinition>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **highestVersion**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **icon**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **importedToscaChecksum**\ *op | string | +| tional* | | ++--------------------------------+-------------------------------------------+ +| **inputs**\ *optional* | < `InputDefinition <#_inputdefinition>`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **invariantUUID**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **isDeleted**\ *optional* | boolean | ++--------------------------------+-------------------------------------------+ +| **lastUpdateDate**\ *optional* | integer (int64) | ++--------------------------------+-------------------------------------------+ +| **lastUpdaterFullName**\ *opti | string | +| onal* | | ++--------------------------------+-------------------------------------------+ +| **lastUpdaterUserId**\ *option | string | +| al* | | ++--------------------------------+-------------------------------------------+ +| **lifecycleState**\ *optional* | enum (READY\_FOR\_CERTIFICATION, | +| | CERTIFICATION\_IN\_PROGRESS, CERTIFIED, | +| | NOT\_CERTIFIED\_CHECKIN, | +| | NOT\_CERTIFIED\_CHECKOUT) | ++--------------------------------+-------------------------------------------+ +| **name**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **namingPolicy**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **normalizedName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **projectCode**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **requirements**\ *optional* | < string, < | +| | `RequirementDefinition <#_requirementdefi | +| | nition>`__ | +| | > array > map | ++--------------------------------+-------------------------------------------+ +| **serviceApiArtifacts**\ *opti | < string, | +| onal* | `ArtifactDefinition <#_artifactdefinition | +| | >`__ | +| | > map | ++--------------------------------+-------------------------------------------+ +| **serviceRole**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **serviceType**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **systemName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **tags**\ *optional* | < string > array | ++--------------------------------+-------------------------------------------+ +| **toscaArtifacts**\ *optional* | < string, | +| | `ArtifactDefinition <#_artifactdefinition | +| | >`__ | +| | > map | ++--------------------------------+-------------------------------------------+ +| **toscaType**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **uniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **uuid**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **version**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +SubCategoryDefinition +--------------------- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **groupings**\ *optional* | < | +| | `GroupingDefinition <#_groupingdefinition | +| | >`__ | +| | > array | ++--------------------------------+-------------------------------------------+ +| **icons**\ *optional* | < string > array | ++--------------------------------+-------------------------------------------+ +| **name**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **normalizedName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **ownerId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **uniqueId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ + +User +---- + ++--------------------------------+-------------------------------------------+ +| Name | Schema | ++================================+===========================================+ +| **email**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **firstName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **fullName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **lastLoginTime**\ *optional* | integer (int64) | ++--------------------------------+-------------------------------------------+ +| **lastName**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **role**\ *optional* | string | ++--------------------------------+-------------------------------------------+ +| **status**\ *optional* | enum (ACTIVE, INACTIVE) | ++--------------------------------+-------------------------------------------+ +| **userId**\ *optional* | string | ++--------------------------------+-------------------------------------------+ diff --git a/sdc-os-chef/pom.xml b/sdc-os-chef/pom.xml index eb01a97916..5416939dac 100644 --- a/sdc-os-chef/pom.xml +++ b/sdc-os-chef/pom.xml @@ -78,7 +78,19 @@ <directory>${project.basedir}/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/files/default/tools</directory> <followSymlinks>false</followSymlinks> </fileset> - + <!-- Sanity jar --> + <fileset> + <directory>${project.basedir}/sdc-sanity</directory> + <followSymlinks>false</followSymlinks> + <includes> + <include>*.jar</include> + </includes> + </fileset> + <!-- Sanity test suites --> + <fileset> + <directory>${project.basedir}/sdc-sanity/chef-repo/cookbooks/sdc-sanity/files/default/testSuites</directory> + <followSymlinks>false</followSymlinks> + </fileset> </filesets> </configuration> </execution> @@ -410,7 +422,7 @@ <tags> <tag>${docker.tag}</tag> <tag>${docker.latest.tag}</tag> - <tag>1.1-STAGING-latest</tag> + <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-latest</tag> </tags> </build> </image> diff --git a/sdc-os-chef/scripts/docker_run.sh b/sdc-os-chef/scripts/docker_run.sh index 63f89d1f96..20cde17f57 100755 --- a/sdc-os-chef/scripts/docker_run.sh +++ b/sdc-os-chef/scripts/docker_run.sh @@ -212,5 +212,5 @@ echo "Triger sanity docker, please wait..." if [ ${LOCAL} = false ]; then docker pull ${PREFIX}/sdc-sanity:${RELEASE} fi - docker run --detach --name sdc-sanity --env HOST_IP=${IP} --env ENVNAME="${DEP_ENV}" --env http_proxy=${http_proxy} --env https_proxy=${https_proxy} --env no_proxy=${no_proxy} --log-driver=json-file --log-opt max-size=100m --log-opt max-file=10 --ulimit memlock=-1:-1 --memory 512m --memory-swap=512m --ulimit nofile=4096:100000 --volume /etc/localtime:/etc/localtime:ro --volume /data/logs/sdc-sanity/target:/var/lib/tests/target --volume /data/logs/sdc-sanity/ExtentReport:/var/lib/tests/ExtentReport --volume /data/environments:/root/chef-solo/environments --publish 9560:9560 ${PREFIX}/sdc-sanity:${RELEASE} + docker run --detach --name sdc-sanity --env HOST_IP=${IP} --env ENVNAME="${DEP_ENV}" --env http_proxy=${http_proxy} --env https_proxy=${https_proxy} --env no_proxy=${no_proxy} --log-driver=json-file --log-opt max-size=100m --log-opt max-file=10 --ulimit memlock=-1:-1 --memory 1g --memory-swap=1g --ulimit nofile=4096:100000 --volume /etc/localtime:/etc/localtime:ro --volume /data/logs/sdc-sanity/target:/var/lib/tests/target --volume /data/logs/sdc-sanity/ExtentReport:/var/lib/tests/ExtentReport --volume /data/environments:/root/chef-solo/environments --publish 9560:9560 ${PREFIX}/sdc-sanity:${RELEASE} fi
\ No newline at end of file diff --git a/sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/files/default/Files/VNFs/base_vlb.zip b/sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/files/default/Files/VNFs/base_vlb.zip Binary files differdeleted file mode 100644 index 19c8a7d599..0000000000 --- a/sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/files/default/Files/VNFs/base_vlb.zip +++ /dev/null diff --git a/sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/files/default/Files/VNFs/vCSCF_aligned.csar b/sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/files/default/Files/VNFs/vCSCF_aligned.csar Binary files differnew file mode 100644 index 0000000000..ea977bea80 --- /dev/null +++ b/sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/files/default/Files/VNFs/vCSCF_aligned.csar diff --git a/sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/files/default/Files/VNFs/vLB.zip b/sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/files/default/Files/VNFs/vLB.zip Binary files differnew file mode 100644 index 0000000000..b61ca1b83b --- /dev/null +++ b/sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/files/default/Files/VNFs/vLB.zip diff --git a/sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/recipes/SDC_Simulator_3_logback.rb b/sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/recipes/SDC_Simulator_3_logback.rb deleted file mode 100644 index 0d9282b28a..0000000000 --- a/sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/recipes/SDC_Simulator_3_logback.rb +++ /dev/null @@ -1,10 +0,0 @@ -jetty_base="/var/lib/jetty" - - -cookbook_file "logback.xml" do - path "#{jetty_base}/config/sdc-simulator/logback.xml" - source "logback.xml" - owner "jetty" - group "jetty" - mode "0755" -end
\ No newline at end of file diff --git a/sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/recipes/SDC_Simulator_4_locate_keystore.rb b/sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/recipes/SDC_Simulator_4_locate_keystore.rb deleted file mode 100644 index 3bb482d89a..0000000000 --- a/sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/recipes/SDC_Simulator_4_locate_keystore.rb +++ /dev/null @@ -1,16 +0,0 @@ -jetty_base="/var/lib/jetty" - -directory "Jetty_etcdir_creation" do - path "/#{jetty_base}/etc" - owner 'jetty' - group 'jetty' - mode '0755' - action :create -end - -cookbook_file "/#{jetty_base}/etc/keystore" do - source "keystore" - owner "jetty" - group "jetty" - mode 0755 -end
\ No newline at end of file diff --git a/sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/recipes/SDC_Simulator_5_create_jetty_modules.rb b/sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/recipes/SDC_Simulator_5_create_jetty_modules.rb deleted file mode 100644 index 38b87fa65d..0000000000 --- a/sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/recipes/SDC_Simulator_5_create_jetty_modules.rb +++ /dev/null @@ -1,14 +0,0 @@ -jetty_base="/var/lib/jetty" -jetty_home="/usr/local/jetty" - -###### create Jetty modules -bash "create-jetty-modules" do -cwd "#{jetty_base}" -code <<-EOH - cd "#{jetty_base}" - java -jar "/#{jetty_home}"/start.jar --add-to-start=deploy - java -jar "/#{jetty_home}"/start.jar --add-to-startd=http,https,logging,setuid -EOH -not_if "ls /#{jetty_base}/start.d/https.ini" -end - diff --git a/test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/dataProviders/OnbordingDataProviders.java b/test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/dataProviders/OnboardingDataProviders.java index 8b58ca9993..cf94c79462 100644 --- a/test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/dataProviders/OnbordingDataProviders.java +++ b/test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/dataProviders/OnboardingDataProviders.java @@ -9,7 +9,7 @@ import java.util.ArrayList; import java.util.Collections; import java.util.List; -public class OnbordingDataProviders { +public class OnboardingDataProviders { protected static String filepath = FileHandling.getVnfRepositoryPath(); diff --git a/test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/sanity/Onboard.java b/test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/sanity/Onboard.java index ec83b05be9..44e386ada6 100644 --- a/test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/sanity/Onboard.java +++ b/test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/sanity/Onboard.java @@ -32,7 +32,7 @@ import org.openecomp.sdc.be.model.Service; import org.openecomp.sdc.be.model.User; import org.openecomp.sdc.ci.tests.api.ComponentBaseTest; import org.openecomp.sdc.ci.tests.api.ExtentTestActions; -import org.openecomp.sdc.ci.tests.dataProviders.OnbordingDataProviders; +import org.openecomp.sdc.ci.tests.dataProviders.OnboardingDataProviders; import org.openecomp.sdc.ci.tests.datatypes.ResourceReqDetails; import org.openecomp.sdc.ci.tests.datatypes.ServiceReqDetails; import org.openecomp.sdc.ci.tests.datatypes.VendorSoftwareProductObject; @@ -78,7 +78,7 @@ public class Onboard extends ComponentBaseTest { } - @Test(dataProviderClass = OnbordingDataProviders.class, dataProvider = "VNF_List") + @Test(dataProviderClass = OnboardingDataProviders.class, dataProvider = "VNF_List") public void onboardVNFShotFlow(String filepath, String vnfFile) throws Exception, Throwable { setLog(vnfFile); System.out.println("print - >" + makeDistributionValue); diff --git a/test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/utils/general/FileHandling.java b/test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/utils/general/FileHandling.java index b82e6a0f52..c8f9ee4139 100644 --- a/test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/utils/general/FileHandling.java +++ b/test-apis-ci/src/main/java/org/openecomp/sdc/ci/tests/utils/general/FileHandling.java @@ -20,25 +20,37 @@ package org.openecomp.sdc.ci.tests.utils.general; -import com.aventstack.extentreports.Status; -import com.clearspring.analytics.util.Pair; -import org.apache.commons.io.FileUtils; -import org.openecomp.sdc.be.model.DataTypeDefinition; -import org.openecomp.sdc.ci.tests.api.ComponentBaseTest; -import org.openecomp.sdc.ci.tests.config.Config; - -import org.openecomp.sdc.common.util.GeneralUtility; -import org.yaml.snakeyaml.Yaml; +import static org.testng.AssertJUnit.assertTrue; -import java.io.*; +import java.io.BufferedOutputStream; +import java.io.BufferedWriter; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.FileWriter; +import java.io.FilenameFilter; +import java.io.IOException; +import java.io.InputStream; import java.nio.file.Paths; -import java.util.*; +import java.util.ArrayList; +import java.util.Enumeration; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Properties; import java.util.zip.ZipEntry; import java.util.zip.ZipException; import java.util.zip.ZipFile; import java.util.zip.ZipInputStream; -import static org.testng.AssertJUnit.assertTrue; +import org.apache.commons.io.FileUtils; +import org.openecomp.sdc.be.model.DataTypeDefinition; +import org.openecomp.sdc.ci.tests.api.ComponentBaseTest; +import org.openecomp.sdc.ci.tests.config.Config; +import org.openecomp.sdc.common.util.GeneralUtility; +import org.yaml.snakeyaml.Yaml; + +import com.aventstack.extentreports.Status; public class FileHandling { @@ -173,9 +185,9 @@ public class FileHandling { } public static List<String> filterFileNamesListFromFolder(String filepath, String extension) { + List<String> filenames = new ArrayList<String>(); try { File dir = new File(filepath); - List<String> filenames = new ArrayList<String>(); FilenameFilter extensionFilter = new FilenameFilter() { public boolean accept(File dir, String name) { @@ -193,7 +205,7 @@ public class FileHandling { } catch (Exception e) { e.printStackTrace(); } - return null; + return filenames; } public static String[] getArtifactsFromZip(String filepath, String zipFilename){ @@ -233,7 +245,9 @@ public class FileHandling { // } public static List<String> getZipFileNamesFromFolder(String filepath) { - return filterFileNamesListFromFolder(filepath, ".zip"); + List<String> fileNamesListFromFolder = filterFileNamesListFromFolder(filepath, ".zip"); + fileNamesListFromFolder.addAll(filterFileNamesListFromFolder(filepath, ".csar")); + return fileNamesListFromFolder; } public static int countFilesInZipFile(String[] artifactsArr, String reqExtension){ |