aboutsummaryrefslogtreecommitdiffstats
path: root/onap_data_provider/resources/resource_creator.py
diff options
context:
space:
mode:
authorMichal Jagiello <michal.jagiello@t-mobile.pl>2022-07-12 09:52:01 +0000
committerMichal Jagiello <michal.jagiello@t-mobile.pl>2022-07-18 09:49:01 +0000
commit0a7c213c87d9b0916080d62d8e97ac4d47851688 (patch)
tree4599fc1da6a74decdd789f70d01b057e8f426308 /onap_data_provider/resources/resource_creator.py
parentdc0b8a7349225066f0e8e55c8decc0049696b21f (diff)
[CPS] Create CPS resources using data provider0.7.0
Create: - dataspace - anchor - schema set Issue-ID: INT-2135 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I49fa9aa34bd4157372571275774c6a410d1bedcb
Diffstat (limited to 'onap_data_provider/resources/resource_creator.py')
-rw-r--r--onap_data_provider/resources/resource_creator.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/onap_data_provider/resources/resource_creator.py b/onap_data_provider/resources/resource_creator.py
index c6ed4d8..7bd61bc 100644
--- a/onap_data_provider/resources/resource_creator.py
+++ b/onap_data_provider/resources/resource_creator.py
@@ -28,6 +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 .line_of_business_resource import LineOfBusinessResource
from .msb_k8s_definition import MsbK8SDefinitionResource
from .owning_entity_resource import OwningEntityResource
@@ -141,6 +142,15 @@ class ResourceCreator(ABC):
},
"blueprint-resource-template": {
VersionsEnum.V1_1: BlueprintResourceTemplateResource,
+ },
+ "cps-dataspace": {
+ VersionsEnum.V1_1: DataspaceResource
+ },
+ "cps-schema-set": {
+ VersionsEnum.V1_1: SchemaSetResource
+ },
+ "cps-anchor": {
+ VersionsEnum.V1_1: AnchorResource
}
}
@@ -174,6 +184,9 @@ class ResourceCreator(ABC):
- data-dictionaries: DataDictionarySetResource
- blueprints: BlueprintResource
- blueprint-resource-template: BlueprintResourceTemplateResource
+ - cps-dataspace: DataspaceResource
+ - cps-schema-set: SchemaSetResource
+ - cps-anchor: AnchorResource
Args:
resource_type (str): Resource type to create