5 from sdcBePy.common.normative.toscaElements import process_and_create_normative_element
6 from sdcBePy.tosca.main import get_args, usage
7 from sdcBePy.tosca.models.normativeElementsList import get_capability, get_data, get_relationship, \
8 get_interface_lifecycle, get_categories, get_group, get_policy, get_annotation
12 scheme, be_host, be_port, header, admin_user, _, debug = get_args()
14 process_and_create_normative_element(candidate,
15 scheme, be_host, be_port, header, admin_user,
18 except AttributeError:
23 def run_import_data():
24 data_candidate = get_data()
28 def run_import_capabilities():
29 capability_candidate = get_capability()
30 run(capability_candidate)
33 def run_import_relationship():
34 relationship_candidate = get_relationship()
35 run(relationship_candidate)
38 def run_import_interface_lifecycle():
39 interface_lifecycle_candidate = get_interface_lifecycle()
40 run(interface_lifecycle_candidate)
43 def run_import_categories():
44 categories_candidate = get_categories()
45 run(categories_candidate)
48 def run_import_group():
49 group_candidate = get_group()
53 def run_import_policy():
54 policy_candidate = get_policy()
58 def run_import_annotation():
59 annotation_candidate = get_annotation()
60 run(annotation_candidate)
63 if __name__ == '__main__':
65 # run_import_capabilities()
66 # run_import_relationship()
67 # run_import_interface_lifecycle()
68 # run_import_categories()
71 # run_import_annotation()