aboutsummaryrefslogtreecommitdiffstats
path: root/onap_data_provider/resources/resource_creator.py
diff options
context:
space:
mode:
authorpaweldenst <pawel.denst@external.t-mobile.pl>2022-12-19 08:38:11 +0000
committerpaweldenst <pawel.denst@external.t-mobile.pl>2023-01-24 09:42:05 +0000
commit2af8eed99a00371db238c1021fbe110df59fd476 (patch)
treee1d90b7b270a37da7920be8a43cce2f18da3f36c /onap_data_provider/resources/resource_creator.py
parent3a6c1f7f293956d6b0cff1593ca248b19e63334f (diff)
Create CPS anchor nodes using ODP
Added required anchor-name and dataspace-name for schema Issue-ID: INT-2179 Signed-off-by: paweldenst <pawel.denst@external.t-mobile.pl> Change-Id: I98d3b25a724af16adf4943bcd832054ed43c69f0
Diffstat (limited to 'onap_data_provider/resources/resource_creator.py')
-rw-r--r--onap_data_provider/resources/resource_creator.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/onap_data_provider/resources/resource_creator.py b/onap_data_provider/resources/resource_creator.py
index 35959f1..a8ccfbb 100644
--- a/onap_data_provider/resources/resource_creator.py
+++ b/onap_data_provider/resources/resource_creator.py
@@ -28,7 +28,7 @@ from .cloud_region_resource import CloudRegionResource
from .complex_resource import ComplexResource
from .customer_resource import CustomerResource
from .data_dictionary_resource import DataDictionarySetResource
-from .cps_resource import AnchorResource, DataspaceResource, SchemaSetResource
+from .cps_resource import AnchorNodeResource, AnchorResource, DataspaceResource, SchemaSetResource
from .line_of_business_resource import LineOfBusinessResource
from .msb_k8s_definition import MsbK8SDefinitionResource
from .owning_entity_resource import OwningEntityResource
@@ -163,15 +163,19 @@ class ResourceCreator(ABC):
},
"cps-dataspace": {
VersionsEnum.V1_1: DataspaceResource,
- VersionsEnum.V2_0: DataspaceResource
+ VersionsEnum.V2_0: DataspaceResource,
},
"cps-schema-set": {
VersionsEnum.V1_1: SchemaSetResource,
- VersionsEnum.V2_0: SchemaSetResource
+ VersionsEnum.V2_0: SchemaSetResource,
},
"cps-anchor": {
VersionsEnum.V1_1: AnchorResource,
- VersionsEnum.V2_0: AnchorResource
+ VersionsEnum.V2_0: AnchorResource,
+ },
+ "cps-anchor-node": {
+ VersionsEnum.V1_1: AnchorNodeResource,
+ VersionsEnum.V2_0: AnchorNodeResource
}
}